Преглед на файлове

feat:个人中心信息,完善信息提示,添加银行卡修改

ljc преди 2 месеца
родител
ревизия
e496e09961

+ 29 - 3
components/AddBankDialog.vue

@@ -165,9 +165,35 @@ interface AddBankForm {
     address: string;
     address: string;
     checkboxGroup: string[];
     checkboxGroup: string[];
 }
 }
-const hobbys = computed(() => [
-    { value: 1, text: t('blockchain.item8') }
-]);
+const hobbys = computed(() => {
+  let value = [
+    { value: 1, text: t('blockchain.item8') },
+  ]
+  switch (form.value.type){
+      case 1:
+        value = [
+          { value: 1, text: t('PersonalManagement.Title.DefaultBank') },
+        ]
+      break;
+      case 2:
+        value = [
+          { value: 1, text: t('PersonalManagement.Title.DefaultWire') },
+        ]
+      break;
+      case 3:
+        value = [
+          { value: 1, text: t('PersonalManagement.Title.DefaultCredit') },
+        ]
+      break;
+      case 4:
+        value = [
+          { value: 1, text: t('blockchain.item8') },
+        ]
+      break;
+  }
+  return value
+
+});
 const emit = defineEmits(["success"]);
 const emit = defineEmits(["success"]);
 
 
 const popupRef = ref<any>(null);
 const popupRef = ref<any>(null);

+ 5 - 1
components/PrefectInfo.vue

@@ -29,8 +29,11 @@
   import { useI18n } from 'vue-i18n'
   import { useI18n } from 'vue-i18n'
   import useUserStore from '@/stores/use-user-store'
   import useUserStore from '@/stores/use-user-store'
   import useRouter from '@/hooks/useRouter'
   import useRouter from '@/hooks/useRouter'
+  import useRoute from '@/hooks/useRoute'
+
 
 
   const router = useRouter()
   const router = useRouter()
+  const route = useRoute()
   const { userInfo } = useUserStore()
   const { userInfo } = useUserStore()
   const { t } = useI18n()
   const { t } = useI18n()
   const customInfo = computed(() => {
   const customInfo = computed(() => {
@@ -39,7 +42,8 @@
 
 
   const isPerfectInfo = computed(() => {
   const isPerfectInfo = computed(() => {
     const {status,applyRealStatus} = userInfo.customInfo
     const {status,applyRealStatus} = userInfo.customInfo
-    return status === 2 || applyRealStatus == 1|| applyRealStatus ==2
+    console.log(route)
+    return (status === 2 || applyRealStatus == 1|| applyRealStatus ==2) && route.path != '/pages/mine/improveImmediately'
   })
   })
 
 
   function immediately() {
   function immediately() {

+ 10 - 1
components/cwg-page-wrapper.vue

@@ -3,7 +3,7 @@
     <cwg-match-media :max-width="991" v-if="!isLoginPage">
     <cwg-match-media :max-width="991" v-if="!isLoginPage">
       <cwg-pc-header @open-right-drawer="openRightDrawer" @open-left-drawer="openLeftDrawer" class="header-box" />
       <cwg-pc-header @open-right-drawer="openRightDrawer" @open-left-drawer="openLeftDrawer" class="header-box" />
 <!--      占位-->
 <!--      占位-->
-      <view style="height: 56px;"></view>
+      <view class="fixed"></view>
     </cwg-match-media>
     </cwg-match-media>
     <LanguageDropdown style="width: 0;display: none;" />
     <LanguageDropdown style="width: 0;display: none;" />
     <cwg-progress />
     <cwg-progress />
@@ -162,6 +162,15 @@ onShow(() => {
   box-sizing: border-box;
   box-sizing: border-box;
   // border: 1px solid rgba(108, 133, 149, 0.12);
   // border: 1px solid rgba(108, 133, 149, 0.12);
 }
 }
+.fixed{
+  position: fixed;
+  top: 0;
+  left: 0;
+  width: 100%;
+  height: 56px;
+  background-color: var(--color-white);
+  z-index: 9;
+}
 
 
 @media screen and (max-width: 1504px) {
 @media screen and (max-width: 1504px) {
   .content-wrapper-padding {
   .content-wrapper-padding {

+ 3 - 3
pages/mine/components/BankInfoTab.vue

@@ -168,7 +168,7 @@
                     </view>
                     </view>
                     <view class="add-wallet-btn" @click="addBank()" v-if="unionpayCards.length < 2">
                     <view class="add-wallet-btn" @click="addBank()" v-if="unionpayCards.length < 2">
                         <text>+</text>
                         <text>+</text>
-                        <text>添加加密货币钱包</text>
+                        <text>添加中国银联卡</text>
                     </view>
                     </view>
                 </view>
                 </view>
                 <view class="bank-content" v-if="selectedBankType === 'bank'">
                 <view class="bank-content" v-if="selectedBankType === 'bank'">
@@ -263,7 +263,7 @@
                     </view>
                     </view>
                     <view class="add-wallet-btn" @click="addBank()" v-if="wireTransfers.length < 2">
                     <view class="add-wallet-btn" @click="addBank()" v-if="wireTransfers.length < 2">
                         <text>+</text>
                         <text>+</text>
-                        <text>添加加密货币钱包</text>
+                        <text>添加银行电汇</text>
                     </view>
                     </view>
                 </view>
                 </view>
                 <view class="bank-content" v-if="selectedBankType === 'credit'">
                 <view class="bank-content" v-if="selectedBankType === 'credit'">
@@ -337,7 +337,7 @@
                     </view>
                     </view>
                     <view class="add-wallet-btn" @click="addBank()">
                     <view class="add-wallet-btn" @click="addBank()">
                         <text>+</text>
                         <text>+</text>
-                        <text>添加加密货币钱包</text>
+                        <text>添加信用卡</text>
                     </view>
                     </view>
                 </view>
                 </view>
             </uni-col>
             </uni-col>

+ 8 - 4
pages/mine/components/bank.ts

@@ -38,10 +38,14 @@ export interface CardFile {
 }
 }
 
 
 export enum BankType {
 export enum BankType {
-  UNIONPAY = 1,      // 中国银联卡
-  WIRE_TRANSFER = 2, // 银行电汇
-  CREDIT_CARD = 3,   // 信用卡
-  CRYPTO = 4         // 加密钱包
+  // 中国银联卡
+  UNIONPAY = 1,
+  // 银行电汇
+  WIRE_TRANSFER = 2,
+  // 信用卡
+  CREDIT_CARD = 3,
+  // 加密钱包
+  CRYPTO = 4
 }
 }
 
 
 export enum AuthStatus {
 export enum AuthStatus {

+ 1 - 1
pages/mine/improveImmediately.vue

@@ -898,7 +898,7 @@
   }
   }
 
 
   onLoad((options) => {
   onLoad((options) => {
-    currentStep.value = parseInt(options?.currentStep || '4', 10)
+    currentStep.value = parseInt(options?.currentStep || '1', 10)
   })
   })
 
 
   function goStep(step: number) {
   function goStep(step: number) {