feat(提现页): 修复没提交资料的报错
This commit is contained in:
parent
0aeea9dd20
commit
e5cbf09dcc
@ -193,7 +193,7 @@ import {
|
||||
withdrawApply, //提交提现申请
|
||||
} from '@/api/lottery'
|
||||
import { setApplyInfo, getApplyInfo } from '@/utils/applyStore.js'
|
||||
import { ref, onMounted, computed } from 'vue'
|
||||
import { ref, onMounted, computed, onUnmounted } from 'vue'
|
||||
import { useRouter } from 'vue-router'
|
||||
const router = useRouter()
|
||||
|
||||
@ -249,8 +249,14 @@ const getDrawableAmount = async () => {
|
||||
|
||||
onMounted(() => {
|
||||
getDrawableAmount() //获取可提现金额
|
||||
bankCardInfo.value =
|
||||
{ ...getApplyInfo(), cardImages: JSON.parse(getApplyInfo().cardImages) } || {}
|
||||
if (getApplyInfo()) {
|
||||
bankCardInfo.value =
|
||||
{ ...getApplyInfo(), cardImages: JSON.parse(getApplyInfo().cardImages) } || {}
|
||||
}
|
||||
})
|
||||
|
||||
onUnmounted(() => {
|
||||
setApplyInfo()
|
||||
})
|
||||
</script>
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user