修复确认订单余额支付,余额充足无法选择问题
This commit is contained in:
@@ -216,6 +216,7 @@
|
||||
|
||||
function updateChargeSel(newval) {
|
||||
rechargeItem.value = newval
|
||||
console.log('updateChargeSel',newval);
|
||||
//充值并付款时只能微信支付
|
||||
if (newval && newval.id) {
|
||||
disablePayType.value = ['余额支付']
|
||||
@@ -224,15 +225,14 @@
|
||||
disablePayType.value = []
|
||||
}
|
||||
|
||||
|
||||
if (!shopUserInfo.value.amount) {
|
||||
if (!orderVIP.value.amount) {
|
||||
disablePayType.value = ['余额支付']
|
||||
if (paymentMethodref.value) {
|
||||
paymentMethodref.value.groupChanges(2)
|
||||
}
|
||||
return
|
||||
}
|
||||
if (shopUserInfo.value.amount < newval) {
|
||||
if (orderVIP.value.amount < newval) {
|
||||
disablePayType.value = ['余额支付']
|
||||
if (paymentMethodref.value) {
|
||||
paymentMethodref.value.groupChanges(2)
|
||||
@@ -1103,10 +1103,8 @@
|
||||
}
|
||||
|
||||
}
|
||||
const shopUserInfo = ref({})
|
||||
onLoad((opt) => {
|
||||
init(opt)
|
||||
shopUserInfo.value = uni.cache.get('shopUserInfo')
|
||||
})
|
||||
</script>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user