feat:支付方式判断
This commit is contained in:
1 parent
94290006bb
commit
2e15506325
2 files changed
+7
-3
No files matched your search
@@ -16,7 +16,7 @@ const data = {
|
||||
|
||||
const state = reactive<any>({
|
||||
walletId: null,
|
||||
currentPayType: "0",
|
||||
currentPayType: null,
|
||||
currentRecharge: 0,
|
||||
userInfo: {},
|
||||
detail: {},
|
||||
@@ -56,6 +56,10 @@ const doPay = async () => {
|
||||
uni.showToast({ title: "请选择充值金额", icon: "none" })
|
||||
return
|
||||
}
|
||||
if (state.currentPayType == undefined) {
|
||||
uni.showToast({ title: "请选择支付方式", icon: "none" })
|
||||
return
|
||||
}
|
||||
try {
|
||||
uni.showLoading({ title: "充值中...", mask: true })
|
||||
const targetRecharge = state.rechargeList[state.currentRecharge]
|
||||
|
||||
Reference in new issue
Block a user