|
|
@@ -119,9 +119,9 @@
|
|
|
</template>
|
|
|
|
|
|
<script lang="ts" setup>
|
|
|
-import { shallowRef, onActivated } from 'vue'
|
|
|
-import { Cell, CellGroup, Button, Tag } from 'vant'
|
|
|
-import { dialog } from '@/utils/vant'
|
|
|
+import { shallowRef } from 'vue'
|
|
|
+import { Cell, CellGroup, Button, Tag, Toast } from 'vant'
|
|
|
+import { fullloading, dialog } from '@/utils/vant'
|
|
|
import { useNavigation } from '@/hooks/navigation'
|
|
|
import { useLoginStore, useUserStore, useAccountStore, } from '@/stores'
|
|
|
import { useAuth } from '@/business/auth'
|
|
|
@@ -144,12 +144,19 @@ const onReady = (el: HTMLDivElement) => {
|
|
|
/// 进行出入金操作判断
|
|
|
const doInOutMoney = (tab: string) => {
|
|
|
if (hasAuth) {
|
|
|
- const { signstatus } = bankInfo.value ?? {}
|
|
|
- if (signstatus && signstatus !== 1) {
|
|
|
- router.push({ name: 'bank-wallet', query: { tab } })
|
|
|
- } else {
|
|
|
- dialog('当前未签约,请先进行账户签约才进行出入金操作')
|
|
|
- }
|
|
|
+ fullloading((hideLoading) => {
|
|
|
+ getBankAccountList().then(() => {
|
|
|
+ hideLoading()
|
|
|
+ const { signstatus } = bankInfo.value ?? {}
|
|
|
+ if (signstatus && signstatus !== 1) {
|
|
|
+ router.push({ name: 'bank-wallet', query: { tab } })
|
|
|
+ } else {
|
|
|
+ dialog('当前未签约,请先进行账户签约才进行出入金操作')
|
|
|
+ }
|
|
|
+ }).catch(() => {
|
|
|
+ Toast.fail('加载失败')
|
|
|
+ })
|
|
|
+ }, '正在加载...')
|
|
|
} else {
|
|
|
dialog('请先实名认证,再进行出入金操作业务!')
|
|
|
}
|
|
|
@@ -162,8 +169,6 @@ const userLogout = () => {
|
|
|
logout()
|
|
|
})
|
|
|
}
|
|
|
-
|
|
|
-onActivated(() => getBankAccountList())
|
|
|
</script>
|
|
|
|
|
|
<style lang="less">
|