|
@@ -480,7 +480,7 @@
|
|
|
res.data.priceStr = Number(bprice).toFixed(2).toString().split('.')
|
|
|
res.data.price = bprice
|
|
|
// 可抵扣金额是否可用,有余额支付权限,且没有促销活动,且有抵扣金额,且抵扣金额小于等于抵扣余额
|
|
|
- const kdk = res.data.shopProductSubsidy&&res.data.shopProductSubsidy.subsidyAmount>0&&this.storeAccount&&res.data.shopProductSubsidy.subsidyAmount<this.storeAccount.giveBalance
|
|
|
+ const kdk = res.data.shopProductSubsidy&&res.data.shopProductSubsidy.subsidyAmount>0&&this.storeAccount&&res.data.shopProductSubsidy.subsidyAmount<=this.storeAccount.giveBalance
|
|
|
this.hasKdk = kdk&&!this.detail.shopPromoProduct&&this.showBalanceAuth
|
|
|
}
|
|
|
}
|
|
@@ -565,7 +565,7 @@
|
|
|
// 没有充值余额权限
|
|
|
this.payType = this.showBalanceAuth ? this.payType : (this.hasPay? '1' : '2')
|
|
|
// 有余额支付权限,且没有促销活动,且有抵扣金额,且抵扣金额小于等于抵扣余额
|
|
|
- this.hasKdk = this.detail.shopProductSubsidy&&this.subsidyAmount>0&&this.subsidyAmount<this.storeAccount.giveBalance&&!this.detail.shopPromoProduct&&this.showBalanceAuth
|
|
|
+ this.hasKdk = this.detail.shopProductSubsidy&&this.subsidyAmount>0&&this.subsidyAmount<=this.storeAccount.giveBalance&&!this.detail.shopPromoProduct&&this.showBalanceAuth
|
|
|
}else{
|
|
|
// 充值余额支付
|
|
|
if(this.payType == 0){
|