li.shaoyi hace 1 día
padre
commit
c9af59b0d6

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

@@ -55,12 +55,14 @@ import { getCerTypePersonList } from "@/constants/account"
 import { useNavigation } from '@mobile/router/navigation'
 import { useRequest } from '@/hooks/request'
 import { getWskhOpenAccountConfigs } from '@/services/api/account'
-import { i18n, useUserStore } from '@/stores'
+import { i18n, useUserStore, useErrorInfoStore } from '@/stores'
 import AppUploader from '@mobile/components/modules/uploader/index.vue'
 import AppSelect from '@mobile/components/base/select/index.vue'
 
+const errorInfoStore = useErrorInfoStore()
 const userStore = useUserStore()
 const formRef = shallowRef<FormInstance>()
+
 const { formData, formSubmit } = addAuthReq()
 const { router } = useNavigation()
 const { global: { t } } = i18n
@@ -144,7 +146,8 @@ const onSubmit = () => {
                     })
                 })
             } else {
-                showFailToast(res.message)
+                const msg = errorInfoStore.getErrorInfoByCode(res.code)
+                showFailToast(msg ?? res.message)
             }
         }).catch((err) => {
             formData.cardnum = ''

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

@@ -40,18 +40,42 @@
                     {{ language }}
                 </template>
             </Cell>
-            <Cell is-link @click="userLogout">
+        </CellGroup>
+        <CellGroup title="关于">
+            <Cell is-link :to="{ name: 'rules-zcxy' }">
+                <template #title>
+                    <app-iconfont icon="g-icon-zcxy">{{ $t('rules.zcxy') }}</app-iconfont>
+                </template>
+            </Cell>
+            <Cell is-link :to="{ name: 'rules-yszc' }">
                 <template #title>
-                    <app-iconfont icon="g-icon-cancel">{{ $t('common.logout') }}</app-iconfont>
+                    <app-iconfont icon="g-icon-yszc">{{ $t('rules.yszc') }}</app-iconfont>
+                </template>
+            </Cell>
+            <Cell is-link :to="{ name: 'rules-fwrx' }">
+                <template #title>
+                    <app-iconfont icon="g-icon-fwrx">{{ $t('rules.fwrx') }}</app-iconfont>
+                </template>
+            </Cell>
+            <Cell is-link :to="{ name: 'rules-gywm' }">
+                <template #title>
+                    <app-iconfont icon="g-icon-gywm">{{ $t('mine.aboutus') }}</app-iconfont>
                 </template>
             </Cell>
         </CellGroup>
+        <template #footer>
+            <app-submitbar>
+                <Button block @click="userLogout">
+                    {{ $t('common.logout') }}
+                </Button>
+            </app-submitbar>
+        </template>
     </app-view>
 </template>
 
 <script lang="ts" setup>
 import { computed } from 'vue'
-import { Cell, CellGroup } from 'vant'
+import { Button, Cell, CellGroup } from 'vant'
 import { dialog } from '@/utils/vant'
 import { AppTheme } from '@/constants/theme'
 import { AuthStatus } from '@/constants/account'
@@ -60,6 +84,7 @@ import { getI18nConfigs } from '@/services/api/common'
 import { useUserStore, useGlobalStore, i18n } from '@/stores'
 import eventBus from '@/services/bus'
 import AppIconfont from '@/components/base/iconfont/index.vue'
+import AppSubmitbar from '@mobile/components/base/submitbar/index.vue'
 
 const { t } = i18n.global
 const globalStore = useGlobalStore()

+ 1 - 1
src/packages/mobile/views/rules/fwrx/Index.vue

@@ -1,5 +1,5 @@
 <template>
-    <app-view>
+    <app-view background="primary">
         <template #header>
             <app-navbar :title="$t('rules.fwrx')" />
         </template>

+ 1 - 1
src/packages/mobile/views/rules/fxgzs/Index.vue

@@ -1,5 +1,5 @@
 <template>
-    <app-view>
+    <app-view background="primary">
         <template #header>
             <app-navbar title="用户开户风险告知书" />
         </template>

+ 1 - 1
src/packages/mobile/views/rules/gywm/Index.vue

@@ -1,5 +1,5 @@
 <template>
-    <app-view>
+    <app-view background="primary">
         <template #header>
             <app-navbar :title="$t('routes.about')" />
         </template>

+ 1 - 1
src/packages/mobile/views/rules/yszc/Index.vue

@@ -1,5 +1,5 @@
 <template>
-    <app-view>
+    <app-view background="primary">
         <template #header>
             <app-navbar :title="$t('rules.ryszc')" />
         </template>

+ 1 - 1
src/packages/mobile/views/rules/zcxy/Index.vue

@@ -1,5 +1,5 @@
 <template>
-    <app-view>
+    <app-view background="primary">
         <template #header>
             <app-navbar :title="$t('rules.zcxy')" />
         </template>