修复确认订单余额支付,余额充足无法选择问题

This commit is contained in:
2025-09-30 18:04:12 +08:00
parent b2cb18b114
commit 36f92cc680
2 changed files with 14 additions and 30 deletions

View File

@@ -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>