购买优化
This commit is contained in:
@@ -459,7 +459,7 @@
|
|||||||
this.MoreBuyModel.CouponAmount = totalAmount * item.CouponValue * 0.1;
|
this.MoreBuyModel.CouponAmount = totalAmount * item.CouponValue * 0.1;
|
||||||
} else {
|
} else {
|
||||||
alert('非天卡无效');
|
alert('非天卡无效');
|
||||||
this.OneBuyModel.CouponId = '0';
|
this.MoreBuyModel.CouponId = '0';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return;
|
return;
|
||||||
|
|||||||
@@ -487,9 +487,6 @@
|
|||||||
if (totalAmount < item.AllowMinAmount) {
|
if (totalAmount < item.AllowMinAmount) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
if(newValue == '0'){
|
|
||||||
this.OneBuyModel.CouponAmount = 0;
|
|
||||||
}
|
|
||||||
if (item.Id == newValue) {
|
if (item.Id == newValue) {
|
||||||
if (item.CouponType == 1) {//满减
|
if (item.CouponType == 1) {//满减
|
||||||
this.OneBuyModel.CouponAmount = item.CouponValue;
|
this.OneBuyModel.CouponAmount = item.CouponValue;
|
||||||
@@ -503,6 +500,8 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
return;
|
return;
|
||||||
|
} else {
|
||||||
|
this.OneBuyModel.CouponAmount = 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@@ -516,9 +515,6 @@
|
|||||||
if (totalAmount < item.AllowMinAmount) {
|
if (totalAmount < item.AllowMinAmount) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
if(newValue == '0'){
|
|
||||||
this.OneBuyModel.CouponAmount = 0;
|
|
||||||
}
|
|
||||||
if (item.Id == newValue) {
|
if (item.Id == newValue) {
|
||||||
if (item.CouponType == 1) {//满减
|
if (item.CouponType == 1) {//满减
|
||||||
this.MoreBuyModel.CouponAmount = item.CouponValue;
|
this.MoreBuyModel.CouponAmount = item.CouponValue;
|
||||||
@@ -528,10 +524,12 @@
|
|||||||
this.MoreBuyModel.CouponAmount = totalAmount * item.CouponValue * 0.1;
|
this.MoreBuyModel.CouponAmount = totalAmount * item.CouponValue * 0.1;
|
||||||
} else {
|
} else {
|
||||||
alert('非天卡无效');
|
alert('非天卡无效');
|
||||||
this.OneBuyModel.CouponId = '0';
|
this.MoreBuyModel.CouponId = '0';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return;
|
return;
|
||||||
|
} else {
|
||||||
|
this.MoreBuyModel.CouponAmount = 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -271,9 +271,6 @@
|
|||||||
if (totalAmount < item.AllowMinAmount) {
|
if (totalAmount < item.AllowMinAmount) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
if(newValue == '0'){
|
|
||||||
this.OneBuyModel.CouponAmount = 0;
|
|
||||||
}
|
|
||||||
if (item.Id == newValue) {
|
if (item.Id == newValue) {
|
||||||
if (item.CouponType == 1) {//满减
|
if (item.CouponType == 1) {//满减
|
||||||
this.OneBuyModel.CouponAmount = item.CouponValue;
|
this.OneBuyModel.CouponAmount = item.CouponValue;
|
||||||
@@ -287,8 +284,10 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
return;
|
return;
|
||||||
|
} else {
|
||||||
|
this.OneBuyModel.CouponId = '0';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
immediate: true
|
immediate: true
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user