|
@@ -355,7 +355,7 @@
|
|
|
// 抵扣余额支付是否可用,有【余额支付权限】且该产品有抵扣金额
|
|
|
hasBalancePay(){
|
|
|
// 抵扣金额是否小于售价
|
|
|
- const isXPrice = this.detail&&this.detail.shopProductSubsidy&&this.detail.shopProductSubsidy.subsidyAmount<=this.detail.price
|
|
|
+ const isXPrice = this.detail&&this.detail.shopProductSubsidy&&this.detail.shopProductSubsidy.subsidyAmount<this.detail.price
|
|
|
// 是否有促销活动
|
|
|
const hasProm = this.detail&&!this.detail.shopPromoProduct
|
|
|
return this.$store.state.vuex_showBalanceAuth&&hasProm&&isXPrice
|
|
@@ -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
|
|
|
}
|
|
|
}
|