diff --git a/pages/order_package/order_submit/order_submit.vue b/pages/order_package/order_submit/order_submit.vue index efdda48..d87d1d4 100644 --- a/pages/order_package/order_submit/order_submit.vue +++ b/pages/order_package/order_submit/order_submit.vue @@ -61,7 +61,7 @@ ¥{{ pItem.totalPrice - }} + }} 每件到手价¥{{ pItem.unitPrice }} @@ -85,7 +85,7 @@ ¥{{ pItem.totalPrice - }} + }} 每件到手价¥{{ pItem.unitPrice }} @@ -109,7 +109,7 @@ 运费{{ getValue(PRODUCT_DELIVERY_TIME, addItem.deliveryTime) - }} + }} {{ orderInfo.postage ? "¥" + orderInfo.postage : "包邮" }} @@ -583,7 +583,7 @@ export default { const params = { id: this.sed.id, }; - if(this.isCoupon){ + if (this.isCoupon) { params.type = -1; } const resp = await getGoodsDetail(params); @@ -592,7 +592,7 @@ export default { this.isPoints = data.type == 3 ? 1 : 0; this.orderInfo = { address: null, - amount: this.sed.goodsNum * this.sed.specsId.price, + amount: this.sed.goodsNum * this.sed.specsId.price, postage: 0, shops: [ { @@ -815,13 +815,6 @@ export default { console.log("orderInfo----", arr); if (arr.length) { if (this.isCoupon) { - if (this.buyCouponvalue > this.couponData.balance) { - this.$refs.uToastRef.show({ - type: "error", - message: "您当前优惠券金额不足", - }); - return; - } this.show = true; } else if (arr[0].type == "balance" || arr[0].type == "redpacket") { this.show = true; diff --git a/pages/other_package/productInfo/productInfo.vue b/pages/other_package/productInfo/productInfo.vue index 936b6b3..3f4512e 100644 --- a/pages/other_package/productInfo/productInfo.vue +++ b/pages/other_package/productInfo/productInfo.vue @@ -1063,18 +1063,7 @@ export default { console.log("selectTempl", selectTempl); if (this.isShowCart == 1 || this.isCoupon) { params["specsId"] = selectTempl; - console.log("----------", params, this.isCoupon, this.orderInfo.buyDeductionValue, this.orderInfo.quantity, this.curAmount); - const buyCouponvalue = Number((this.orderInfo.buyDeductionValue * (this.orderInfo.quantity || 1)).toFixed(2)) || 0; - - if (this.isCoupon && buyCouponvalue > this.curAmount) { - uni.showToast({ - title: `您当前优惠券金额不足`, - icon: "none", // 可选 success/loading/none - duration: 2000, // 持续时长,单位ms - }); - return; - } uni.navigateTo({ url: `/pages/order_package/order_submit/order_submit?sed=${JSON.stringify( params