ljc 1 tydzień temu
rodzic
commit
70cfd54598
1 zmienionych plików z 10 dodań i 14 usunięć
  1. 10 14
      pages/mine/improveImmediately.vue

+ 10 - 14
pages/mine/improveImmediately.vue

@@ -4,7 +4,8 @@
       <uni-forms ref="formRef" :model="formData" :rules="rules" labelWidth="200" label-position="top"
                  class="payment-form">
         <!-- 第一步:身份证明 -->
-        <view v-show="currentStep === 1" class="form-section">
+        <uni-loading v-if="loading"></uni-loading>
+        <view v-show="!loading&&currentStep === 1" class="form-section">
           <uni-row class="demo-uni-row uni-row1" :gutter="20">
             <uni-col :xs="24" :sm="24" :md="12" :lg="12" :xl="12">
               <view class="crm-title-box">
@@ -158,7 +159,7 @@
           </view>
         </view>
         <!-- 第二步:个人信息 -->
-        <view v-show="currentStep === 2" class="form-section">
+        <view v-show="!loading&&currentStep === 2" class="form-section">
           <h3 class="section-title">{{ t('ImproveImmediately.Title.BasicInformation') }}</h3>
           <uni-row class="demo-uni-row uni-row1" :gutter="20">
             <!-- 客户类型 -->
@@ -307,7 +308,7 @@
           </uni-row>
         </view>
         <!-- 第三步:财务背景 -->
-        <view v-show="currentStep === 3" class="form-section">
+        <view v-show="!loading&&currentStep === 3" class="form-section">
           <h3 class="section-title">{{ t('ImproveImmediately.Title.FinancialBackground') }}</h3>
           <uni-row class="demo-uni-row uni-row1" :gutter="20">
             <uni-col :xs="24" :sm="24" :md="12" :lg="8" :xl="8">
@@ -375,7 +376,7 @@
           </view>
         </view>
         <!-- 第四步:地址证明 -->
-        <view v-show="currentStep === 4" class="form-section">
+        <view v-show="!loading&&currentStep === 4" class="form-section">
           <!--去掉地址证明-->
           <!--          <uni-row class="demo-uni-row uni-row1">
             <uni-col :xs="24" :sm="24" :md="12" :lg="12" :xl="12">
@@ -543,7 +544,7 @@
           </view>
         </view>
         <!-- 步骤控制按钮 -->
-        <view>
+        <view v-if="!loading">
           <template v-if="currentStep === 4">
             <view class="btns">
               <view class="cwg-button two-btn">
@@ -670,6 +671,7 @@
   const router = useRouter()
   const { t, locale } = useI18n()
   const currentStep = ref<number>(3)
+  const loading = ref<boolean>(false)
   const formRef = ref()
   const dialogCheck = ref(null)
   const dialogCheck1 = ref(false)
@@ -681,9 +683,6 @@
   const userStore = useUserStore()
 
   // 新增的响应式数据
-  const divActiveHelf = ref(false)
-  const divActiveAll = ref(false)
-  const websock = ref(null)
   const isPC = ref(true)
   const fileListID1 = ref({ againPath: '', id: null, path: '', status: null, type: null })
   const fileListID2 = ref({ againPath: '', id: null, path: '', status: null, type: null })
@@ -696,15 +695,10 @@
   const actionAdd2 = ref('')
   const actionOtherAdd = ref('')
   const flag = ref(false)
-  const pictLoading = ref(false)
-  const pictLoadingImg = ref(false)
   const isApprove = ref(false)
-  const metaInfo = ref({})
-  const HostWs = ref(Config.HostWs)
   const cities = ref([])
   const states = ref([])
   const countries = ref([])
-  const uploadImage = ref(0)
   const updateUrl = config.Host80
   const mobile = ref('')
   const notCountry = [
@@ -900,7 +894,7 @@
           ...formData.value,
           identity: identity ?? idCard,
           gender: gender ?? (gender1 == '男' ? 1 : 2),
-          birth: birth ?? Date.parse(new Date(birthDate).toString()) / 1000,
+          birth: birth ?? Date.parse(new Date(birthDate).toString()),
           addressLines1: addressLines1 ?? address,
           lastName: lastName ?? names[0],
           firstName: firstName ?? names[1],
@@ -1494,6 +1488,7 @@ watch(
 
   // 生命周期
   onMounted(async () => {
+    loading.value = true
     // dialogCheck.value.open()
     await getLoginInfo()
     await getMobileInfo()
@@ -1502,6 +1497,7 @@ watch(
     uni.$on('updateImproveFile', (data) => {
       updateFile(data)
     })
+    loading.value = false
   })
 
   // 组件销毁时