Handy_Cao 1 年之前
父节点
当前提交
900d8e761d
共有 1 个文件被更改,包括 20 次插入14 次删除
  1. 20 14
      src/packages/zrwyt/views/mine/Index.vue

+ 20 - 14
src/packages/zrwyt/views/mine/Index.vue

@@ -98,12 +98,12 @@
                 </Cell>
                 <Cell is-link :to="{ name: 'bank-sign' }" v-if="authStatus === AuthStatus.Certified && hasSignContract">
                     <template #title>
-                        <Iconfont icon="g-icon-sign">签约账户</Iconfont>
+                        <Iconfont icon="g-icon-sign">银行签约</Iconfont>
                     </template>
                 </Cell>
                 <Cell is-link :to="{ name: 'account-protocol', query: { memberUserId: getMemberUserId()} }" v-if="userStore.userType != 2 && authStatus === AuthStatus.Certified">
                     <template #title>
-                        <Iconfont icon="g-icon-order--line">合同签署</Iconfont>
+                        <Iconfont icon="g-icon-order--line">入市协议</Iconfont>
                     </template>
                 </Cell>
                 <Cell is-link :to="{ name: 'mine-profile' }">
@@ -189,21 +189,12 @@ const doInOutMoney = (tab: string) => {
                         showCancelButton: true,
                         confirmButtonText: '去签署合同'
                     }).then(() => {
-                        router.push({ name: 'account-protocol', query: { memberUserId: getMemberUserId()} })
+                        /// 只有已签约的情况下才可以进行出入金
+                        goToBank(signstatus, tab)
                     })
                 } else {
                     /// 只有已签约的情况下才可以进行出入金
-                    if (signstatus && signstatus === 4) {
-                        router.push({ name: 'bank-wallet', query: { tab } })
-                    } else {
-                        dialog({
-                            message: '请先添加签约账户信息!',
-                            showCancelButton: true,
-                            confirmButtonText: '去签约'
-                        }).then(() => {
-                            router.push({ name: 'bank-sign' })
-                        })
-                    }
+                    goToBank(signstatus, tab)
                 }
             }).catch(() => {
                 hideLoading('加载失败', 'fail')
@@ -220,6 +211,21 @@ const doInOutMoney = (tab: string) => {
     }
 }
 
+const goToBank = (signstatus: number, tab: string) => {
+    /// 只有已签约的情况下才可以进行出入金
+    if (signstatus && signstatus === 4) {
+        router.push({ name: 'bank-wallet', query: { tab } })
+    } else {
+        dialog({
+            message: '请先添加签约账户信息!',
+            showCancelButton: true,
+            confirmButtonText: '去签约'
+        }).then(() => {
+            router.push({ name: 'bank-sign' })
+        })
+    }
+}
+
 const userLogout = () => {
     dialog({
         message: '是否退出当前账号?',