五折优惠修改原有所有产品五折逻辑

This commit is contained in:
wanyongkang
2020-10-12 19:37:47 +08:00
parent 20474cd13f
commit f3911de303
4 changed files with 42 additions and 6 deletions

View File

@@ -425,7 +425,13 @@
if (item.CouponType == 1) {//满减 if (item.CouponType == 1) {//满减
this.OneBuyModel.CouponAmount = item.CouponValue; this.OneBuyModel.CouponAmount = item.CouponValue;
} else { } else {
//亲 请勿非法操作呦^.^ 请按照正常的流程操作 我们后台是有记录滴
if($(".kaci").text() == '天卡'){
this.OneBuyModel.CouponAmount = totalAmount * item.CouponValue * 0.1; this.OneBuyModel.CouponAmount = totalAmount * item.CouponValue * 0.1;
} else {
alert('非天卡无效');
this.OneBuyModel.CouponId = '0';
}
} }
return; return;
} }
@@ -445,7 +451,13 @@
if (item.CouponType == 1) {//满减 if (item.CouponType == 1) {//满减
this.MoreBuyModel.CouponAmount = item.CouponValue; this.MoreBuyModel.CouponAmount = item.CouponValue;
} else { } else {
//亲 请勿非法操作呦^.^ 请按照正常的流程操作 我们后台是有记录滴
if($(".kaci").text() == '天卡'){
this.MoreBuyModel.CouponAmount = totalAmount * item.CouponValue * 0.1; this.MoreBuyModel.CouponAmount = totalAmount * item.CouponValue * 0.1;
} else {
alert('非天卡无效');
this.OneBuyModel.CouponId = '0';
}
} }
return; return;
} }

View File

@@ -206,7 +206,13 @@
if (item.CouponType == 1) {//满减 if (item.CouponType == 1) {//满减
this.OneBuyModel.CouponAmount = item.CouponValue; this.OneBuyModel.CouponAmount = item.CouponValue;
} else { } else {
//亲 请勿非法操作呦^.^ 请按照正常的流程操作 我们后台是有记录滴
if($(".kaci").text() == '天卡'){
this.OneBuyModel.CouponAmount = totalAmount * item.CouponValue * 0.1; this.OneBuyModel.CouponAmount = totalAmount * item.CouponValue * 0.1;
} else {
alert('非天卡无效');
this.OneBuyModel.CouponId = '0';
}
} }
return; return;
} }

View File

@@ -491,7 +491,13 @@
if (item.CouponType == 1) {//满减 if (item.CouponType == 1) {//满减
this.OneBuyModel.CouponAmount = item.CouponValue; this.OneBuyModel.CouponAmount = item.CouponValue;
} else { } else {
//亲 请勿非法操作呦^.^ 请按照正常的流程操作 我们后台是有记录滴
if($(".sname").text() == '天卡'){
this.OneBuyModel.CouponAmount = totalAmount * item.CouponValue * 0.1; this.OneBuyModel.CouponAmount = totalAmount * item.CouponValue * 0.1;
} else {
alert('非天卡无效');
this.OneBuyModel.CouponId = '0';
}
} }
return; return;
} }
@@ -511,7 +517,13 @@
if (item.CouponType == 1) {//满减 if (item.CouponType == 1) {//满减
this.MoreBuyModel.CouponAmount = item.CouponValue; this.MoreBuyModel.CouponAmount = item.CouponValue;
} else { } else {
//亲 请勿非法操作呦^.^ 请按照正常的流程操作 我们后台是有记录滴
if($(".sname").text() == '天卡'){
this.MoreBuyModel.CouponAmount = totalAmount * item.CouponValue * 0.1; this.MoreBuyModel.CouponAmount = totalAmount * item.CouponValue * 0.1;
} else {
alert('非天卡无效');
this.OneBuyModel.CouponId = '0';
}
} }
return; return;
} }

View File

@@ -275,7 +275,13 @@
if (item.CouponType == 1) {//满减 if (item.CouponType == 1) {//满减
this.OneBuyModel.CouponAmount = item.CouponValue; this.OneBuyModel.CouponAmount = item.CouponValue;
} else { } else {
//亲 请勿非法操作呦^.^ 请按照正常的流程操作 我们后台是有记录滴
if($(".sname").text() == '天卡'){
this.OneBuyModel.CouponAmount = totalAmount * item.CouponValue * 0.1; this.OneBuyModel.CouponAmount = totalAmount * item.CouponValue * 0.1;
} else {
alert('非天卡无效');
this.OneBuyModel.CouponId = '0';
}
} }
return; return;
} }