feat: 对接完接口
This commit is contained in:
@@ -71,8 +71,6 @@ const userStore = useUserStore()
|
||||
|
||||
const form = ref({
|
||||
money: '',
|
||||
bankid: '6',
|
||||
tpassword: '',
|
||||
})
|
||||
|
||||
const onWithdrawalDetail = () => {
|
||||
@@ -81,22 +79,6 @@ const onWithdrawalDetail = () => {
|
||||
})
|
||||
}
|
||||
|
||||
const typeName = computed(() => {
|
||||
return ['支付宝', '微信', '银行卡'][Number(unref(currentBank)?.typedata) - 1]
|
||||
})
|
||||
|
||||
const currentBank = ref<any>(null)
|
||||
const onSelectPayType = () => {
|
||||
uni.$once('withdrawal-type', (data: any) => {
|
||||
form.value.bankid = data.id
|
||||
console.log(data)
|
||||
currentBank.value = data
|
||||
})
|
||||
uni.navigateTo({
|
||||
url: '/pages-sub/withdrawal-type/index?type=select',
|
||||
})
|
||||
}
|
||||
|
||||
const onSubmit = async () => {
|
||||
if (!form.value.money) {
|
||||
return uni.showToast({
|
||||
@@ -104,18 +86,7 @@ const onSubmit = async () => {
|
||||
icon: 'none',
|
||||
})
|
||||
}
|
||||
if (!form.value.bankid) {
|
||||
return uni.showToast({
|
||||
title: '请选择收款方式',
|
||||
icon: 'none',
|
||||
})
|
||||
}
|
||||
if (!form.value.tpassword) {
|
||||
return uni.showToast({
|
||||
title: '请输入交易密码',
|
||||
icon: 'none',
|
||||
})
|
||||
}
|
||||
|
||||
await showModal('确认提现?')
|
||||
await submitWithdrawalAPI(form.value)
|
||||
await showModal('提交成功')
|
||||
|
||||
Reference in New Issue
Block a user