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