五折优惠修改原有所有产品五折逻辑
This commit is contained in:
@@ -425,7 +425,13 @@
|
|||||||
if (item.CouponType == 1) {//满减
|
if (item.CouponType == 1) {//满减
|
||||||
this.OneBuyModel.CouponAmount = item.CouponValue;
|
this.OneBuyModel.CouponAmount = item.CouponValue;
|
||||||
} else {
|
} else {
|
||||||
this.OneBuyModel.CouponAmount = totalAmount * item.CouponValue * 0.1;
|
//亲 请勿非法操作呦^.^ 请按照正常的流程操作 我们后台是有记录滴
|
||||||
|
if($(".kaci").text() == '天卡'){
|
||||||
|
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 {
|
||||||
this.MoreBuyModel.CouponAmount = totalAmount * item.CouponValue * 0.1;
|
//亲 请勿非法操作呦^.^ 请按照正常的流程操作 我们后台是有记录滴
|
||||||
|
if($(".kaci").text() == '天卡'){
|
||||||
|
this.MoreBuyModel.CouponAmount = totalAmount * item.CouponValue * 0.1;
|
||||||
|
} else {
|
||||||
|
alert('非天卡无效');
|
||||||
|
this.OneBuyModel.CouponId = '0';
|
||||||
|
}
|
||||||
}
|
}
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -206,7 +206,13 @@
|
|||||||
if (item.CouponType == 1) {//满减
|
if (item.CouponType == 1) {//满减
|
||||||
this.OneBuyModel.CouponAmount = item.CouponValue;
|
this.OneBuyModel.CouponAmount = item.CouponValue;
|
||||||
} else {
|
} else {
|
||||||
this.OneBuyModel.CouponAmount = totalAmount * item.CouponValue * 0.1;
|
//亲 请勿非法操作呦^.^ 请按照正常的流程操作 我们后台是有记录滴
|
||||||
|
if($(".kaci").text() == '天卡'){
|
||||||
|
this.OneBuyModel.CouponAmount = totalAmount * item.CouponValue * 0.1;
|
||||||
|
} else {
|
||||||
|
alert('非天卡无效');
|
||||||
|
this.OneBuyModel.CouponId = '0';
|
||||||
|
}
|
||||||
}
|
}
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -491,7 +491,13 @@
|
|||||||
if (item.CouponType == 1) {//满减
|
if (item.CouponType == 1) {//满减
|
||||||
this.OneBuyModel.CouponAmount = item.CouponValue;
|
this.OneBuyModel.CouponAmount = item.CouponValue;
|
||||||
} else {
|
} else {
|
||||||
this.OneBuyModel.CouponAmount = totalAmount * item.CouponValue * 0.1;
|
//亲 请勿非法操作呦^.^ 请按照正常的流程操作 我们后台是有记录滴
|
||||||
|
if($(".sname").text() == '天卡'){
|
||||||
|
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 {
|
||||||
this.MoreBuyModel.CouponAmount = totalAmount * item.CouponValue * 0.1;
|
//亲 请勿非法操作呦^.^ 请按照正常的流程操作 我们后台是有记录滴
|
||||||
|
if($(".sname").text() == '天卡'){
|
||||||
|
this.MoreBuyModel.CouponAmount = totalAmount * item.CouponValue * 0.1;
|
||||||
|
} else {
|
||||||
|
alert('非天卡无效');
|
||||||
|
this.OneBuyModel.CouponId = '0';
|
||||||
|
}
|
||||||
}
|
}
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -275,7 +275,13 @@
|
|||||||
if (item.CouponType == 1) {//满减
|
if (item.CouponType == 1) {//满减
|
||||||
this.OneBuyModel.CouponAmount = item.CouponValue;
|
this.OneBuyModel.CouponAmount = item.CouponValue;
|
||||||
} else {
|
} else {
|
||||||
this.OneBuyModel.CouponAmount = totalAmount * item.CouponValue * 0.1;
|
//亲 请勿非法操作呦^.^ 请按照正常的流程操作 我们后台是有记录滴
|
||||||
|
if($(".sname").text() == '天卡'){
|
||||||
|
this.OneBuyModel.CouponAmount = totalAmount * item.CouponValue * 0.1;
|
||||||
|
} else {
|
||||||
|
alert('非天卡无效');
|
||||||
|
this.OneBuyModel.CouponId = '0';
|
||||||
|
}
|
||||||
}
|
}
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user