|
|
@@ -131,13 +131,11 @@ import { useBankAccountSign } from '@/business/bank'
|
|
|
const { router, routerTo } = useNavigation()
|
|
|
const { getLoginId, getFirstAccountId } = useLoginStore()
|
|
|
const { hasAuth } = useUserStore()
|
|
|
-const { getBankAccountList, dataList } = useBankAccountSign()
|
|
|
+const { getBankAccountList, bankInfo } = useBankAccountSign()
|
|
|
const { logout } = useAuth()
|
|
|
const { accountInfo } = useAccountStore()
|
|
|
const headerRef = shallowRef<HTMLDivElement>()
|
|
|
|
|
|
-getBankAccountList()
|
|
|
-
|
|
|
const onReady = (el: HTMLDivElement) => {
|
|
|
// 设置背景图位置
|
|
|
headerRef.value?.style.setProperty('background-position', `0 -${el.clientHeight}px`)
|
|
|
@@ -145,15 +143,16 @@ const onReady = (el: HTMLDivElement) => {
|
|
|
|
|
|
/// 进行出入金操作判断
|
|
|
const doInOutMoney = (tab: string) => {
|
|
|
-
|
|
|
- console.log('xxxx', dataList.value)
|
|
|
- /// 当前未签约
|
|
|
- if (dataList.value.length === 0 || dataList.value[0].signstatus === 1) {
|
|
|
- dialog('当前未签约,请先进行账户签约才进行出入金操作')
|
|
|
- return
|
|
|
+ if (hasAuth) {
|
|
|
+ /// 当前未签约
|
|
|
+ if (bankInfo.value.signstatus === 1) {
|
|
|
+ dialog('当前未签约,请先进行账户签约才进行出入金操作')
|
|
|
+ } else {
|
|
|
+ router.push({ name: 'bank-wallet', query: { tab } })
|
|
|
+ }
|
|
|
+ } else {
|
|
|
+ dialog('请先实名认证,再进行出入金操作业务!')
|
|
|
}
|
|
|
-
|
|
|
- router.push({ name: 'bank-wallet', query: { tab } })
|
|
|
}
|
|
|
|
|
|
const userLogout = () => {
|
|
|
@@ -163,6 +162,8 @@ const userLogout = () => {
|
|
|
logout()
|
|
|
})
|
|
|
}
|
|
|
+
|
|
|
+getBankAccountList()
|
|
|
</script>
|
|
|
|
|
|
<style lang="less">
|