|
|
@@ -91,12 +91,12 @@
|
|
|
<Iconfont icon="g-icon-capital">资金信息</Iconfont>
|
|
|
</template>
|
|
|
</Cell>
|
|
|
- <Cell is-link :to="{ name: 'account-certification' }" v-if="authStatus !== AuthStatus.Certified">
|
|
|
+ <Cell is-link :to="{ name: 'account-certification' }" v-if="authStatus !== AuthStatus.Certified && hasSignContract">
|
|
|
<template #title>
|
|
|
<Iconfont icon="g-icon-certification">实名认证</Iconfont>
|
|
|
</template>
|
|
|
</Cell>
|
|
|
- <Cell is-link :to="{ name: 'bank-sign' }" v-if="authStatus === AuthStatus.Certified && hasSignContract">
|
|
|
+ <Cell is-link :to="{ name: 'bank-sign' }" v-if="authStatus === AuthStatus.Certified">
|
|
|
<template #title>
|
|
|
<Iconfont icon="g-icon-sign">银行签约</Iconfont>
|
|
|
</template>
|
|
|
@@ -167,7 +167,8 @@ const { currentAccount } = accountStore.$toRefs()
|
|
|
/// 判断是否能签约
|
|
|
const hasSignContract = shallowRef(false)
|
|
|
const headerRef = shallowRef<HTMLDivElement>()
|
|
|
-const authStatus = computed(() => userStore.userAccount.hasauth) // 实名认证状态
|
|
|
+// 实名认证状态
|
|
|
+const authStatus = computed(() => userStore.userAccount.hasauth)
|
|
|
|
|
|
const onReady = (el: HTMLDivElement) => {
|
|
|
// 设置背景图位置
|
|
|
@@ -182,19 +183,39 @@ const doInOutMoney = (tab: string) => {
|
|
|
queryBankAccountSign().then((res) => {
|
|
|
hideLoading()
|
|
|
const { signstatus } = res.data[0] ?? {}
|
|
|
- /// 已实名未签合同
|
|
|
- if (!hasSignContract.value) {
|
|
|
- dialog({
|
|
|
- message: '请先去签署合同条例!',
|
|
|
- showCancelButton: true,
|
|
|
- confirmButtonText: '去签署合同'
|
|
|
- }).then(() => {
|
|
|
- /// 只有已签约的情况下才可以进行出入金
|
|
|
- goToBank(signstatus, tab)
|
|
|
- })
|
|
|
+ /// 判断当前有签约
|
|
|
+ if (signstatus && signstatus === 4) {
|
|
|
+ /// 已实名未签合同
|
|
|
+ if (!hasSignContract.value) {
|
|
|
+ dialog({
|
|
|
+ message: '请先去签署合同条例!',
|
|
|
+ showCancelButton: true,
|
|
|
+ confirmButtonText: '我知道了'
|
|
|
+ }).then(() => {
|
|
|
+ router.push({ name: 'bank-wallet', query: { tab } })
|
|
|
+ })
|
|
|
+ } else {
|
|
|
+ router.push({ name: 'bank-wallet', query: { tab } })
|
|
|
+ }
|
|
|
} else {
|
|
|
- /// 只有已签约的情况下才可以进行出入金
|
|
|
- goToBank(signstatus, tab)
|
|
|
+ /// 未签约
|
|
|
+ if (!hasSignContract.value) {
|
|
|
+ dialog({
|
|
|
+ message: '请先去签署合同条例!',
|
|
|
+ showCancelButton: true,
|
|
|
+ confirmButtonText: '我知道了'
|
|
|
+ }).then(() => {
|
|
|
+ router.push({ name: 'account-protocol', query: { memberUserId: getMemberUserId()} })
|
|
|
+ })
|
|
|
+ } else {
|
|
|
+ dialog({
|
|
|
+ message: '请先添加签约账户信息!',
|
|
|
+ showCancelButton: true,
|
|
|
+ confirmButtonText: '去签约'
|
|
|
+ }).then(() => {
|
|
|
+ router.push({ name: 'bank-sign' })
|
|
|
+ })
|
|
|
+ }
|
|
|
}
|
|
|
}).catch(() => {
|
|
|
hideLoading('加载失败', 'fail')
|
|
|
@@ -211,21 +232,6 @@ 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: '是否退出当前账号?',
|