diff --git a/pages/other_package/productInfo/productInfo.vue b/pages/other_package/productInfo/productInfo.vue index 911a049..936b6b3 100644 --- a/pages/other_package/productInfo/productInfo.vue +++ b/pages/other_package/productInfo/productInfo.vue @@ -193,8 +193,8 @@ {{ orderInfo.buyDeductionValue }}数字积分 +{{ selectSpecificationTempl.price }}元 - +{{ orderInfo.minPrice }}元 + Object.keys(selectSpecificationTempl).length !== 0">+{{ selectSpecificationTempl.price }}元 + +{{ orderInfo.minPrice }}元 ¥ @@ -831,7 +831,7 @@ export default { const params = { id: this.id, }; - if(this.isCoupon){ + if (this.isCoupon) { params.type = -1; } const resp = await getGoodsDetail(params); @@ -944,7 +944,7 @@ export default { const params = { id: this.id, }; - if(this.isCoupon){ + if (this.isCoupon) { params.type = -1; } const resp = await getGoodsSpecs(params); @@ -1065,8 +1065,8 @@ export default { params["specsId"] = selectTempl; console.log("----------", params, this.isCoupon, this.orderInfo.buyDeductionValue, this.orderInfo.quantity, this.curAmount); - const buyCouponvalue = Number((this.orderInfo.buyDeduction * (this.orderInfo.quantity || 1)).toFixed(2)) || 0; - + const buyCouponvalue = Number((this.orderInfo.buyDeductionValue * (this.orderInfo.quantity || 1)).toFixed(2)) || 0; + if (this.isCoupon && buyCouponvalue > this.curAmount) { uni.showToast({ title: `您当前优惠券金额不足`,