li.shaoyi 3 тижнів тому
батько
коміт
c7d8202206

+ 3 - 5
src/packages/digital/views/account/certification/index.vue

@@ -137,11 +137,9 @@ const onSubmit = () => {
         formSubmit().then((res) => {
             /// 失败
             if (res.code.toString() === '0') {
-                userStore.getUserData().finally(() => {
-                    hideLoading()
-                    dialog(t("user.authentication.opensuccess")).then(() => {
-                        router.back()
-                    })
+                hideLoading()
+                dialog(t("user.authentication.opensuccess")).then(() => {
+                    router.back()
                 })
             } else {
                 showFailToast(res.message)

+ 3 - 1
src/packages/digital/views/setting/index.vue

@@ -37,7 +37,7 @@
             </Cell>
             <Cell is-link @click="userLogout">
                 <template #title>
-                    <app-iconfont icon="g-icon-cancel">{{ $t('common.logout')}}</app-iconfont>
+                    <app-iconfont icon="g-icon-cancel">{{ $t('common.logout') }}</app-iconfont>
                 </template>
             </Cell>
         </CellGroup>
@@ -68,6 +68,8 @@ const userLogout = () => {
         eventBus.$emit('LogoutNotify')
     })
 }
+
+userStore.getUserData()
 </script>
 
 <style lang="less">

+ 8 - 7
src/packages/mobile/views/account/authresult/Index.vue

@@ -12,17 +12,16 @@
                 <Cell :title="t('banksign.mobilephone')" :value="userInfo.mobile2" v-if="userInfo.mobile2" />
                 <Cell :title="t('banksign.bankname1')" :value="userInfo.bankbankname" v-if="userInfo.bankbankname" />
                 <Cell :title="t('banksign.bankno')" :value="userInfo.bankaccount" v-if="userInfo.bankaccount" />
-                <Cell v-if="userInfo.userinfotype === 1" :title="t('user.authentication.cardfrontphoto')">
-                    <Image fit="contain" :src="getFileUrl(userInfo.cardfrontphotourl)" width="100" height="100" />
-                </Cell>
-                <Cell v-if="userInfo.userinfotype === 2" :title="t('user.authentication.cardfrontphoto1')">
+                <Cell v-if="userInfo.cardfrontphotourl"
+                    :title="t(userInfo.userinfotype === 1 ? 'user.authentication.cardfrontphoto' : 'user.authentication.cardfrontphoto1')">
                     <Image fit="contain" :src="getFileUrl(userInfo.cardfrontphotourl)" width="100" height="100" />
                 </Cell>
                 <Cell :title="t('user.authentication.cardbackphoto')"
-                    v-if="showCardBackPhoto && userInfo.userinfotype === 1">
+                    v-if="showCardBackPhoto && userInfo.cardbackphotourl && userInfo.userinfotype === 1">
                     <Image fit="contain" :src="getFileUrl(userInfo.cardbackphotourl)" width="100" height="100" />
                 </Cell>
-                <Cell :title="halfBodyPhotoTitle" v-if="showHalfBodyPhoto && userInfo.userinfotype === 1">
+                <Cell :title="halfBodyPhotoTitle"
+                    v-if="showHalfBodyPhoto && userInfo.halfbodyphotourl && userInfo.userinfotype === 1">
                     <Image fit="contain" :src="getFileUrl(userInfo.halfbodyphotourl)" width="100" height="100" />
                 </Cell>
                 <Cell :title="t('user.authentication.authstatus')"
@@ -67,7 +66,9 @@ const { data, loading, run } = useRequest(queryWrDraftUserInfo, {
         data.value = res.data[0]
     },
     onFinally: () => {
-        toast.close()
+        userStore.getUserData().finally(() => {
+            toast.close()
+        })
     }
 })