|
@@ -174,7 +174,14 @@
|
|
if (code !== 0) {
|
|
if (code !== 0) {
|
|
return
|
|
return
|
|
}
|
|
}
|
|
- state.payMethods = getPayMethods(data)
|
|
|
|
|
|
+ const payMethods = getPayMethods(data)
|
|
|
|
+
|
|
|
|
+ // 余额不足禁用余额支付
|
|
|
|
+ if ((state?.orderInfo?.price-0) > (sheep.$store('user')?.userWallet?.balance-0)) {
|
|
|
|
+ payMethods.forEach(e => { if (e.value === 'wallet') e.disabled = true })
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ state.payMethods = payMethods
|
|
}
|
|
}
|
|
|
|
|
|
onLoad((options) => {
|
|
onLoad((options) => {
|