feat: 优惠券金额不足错误
This commit is contained in:
@@ -193,8 +193,8 @@
|
||||
<text class="text-38 text-bold mr-10">{{ orderInfo.buyDeductionValue }}数字积分</text>
|
||||
<text class="text-24" v-if="
|
||||
selectSpecificationTempl &&
|
||||
Object.keys(selectSpecificationTempl).length !== 0">+{{ selectSpecificationTempl.price }}元</text>
|
||||
<text v-else>+{{ orderInfo.minPrice }}元</text>
|
||||
Object.keys(selectSpecificationTempl).length !== 0">+{{ selectSpecificationTempl.price }}元</text>
|
||||
<text v-else>+{{ orderInfo.minPrice }}元</text>
|
||||
</view>
|
||||
<view class="price_content_warp" v-else>
|
||||
<view>¥</view>
|
||||
@@ -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: `您当前优惠券金额不足`,
|
||||
|
||||
Reference in New Issue
Block a user