|
@@ -1076,7 +1076,7 @@ function setGiftHtmlList(data, cmPromotion) {
|
|
.attr("data-value"));
|
|
.attr("data-value"));
|
|
console.log(thisTouchPrice);
|
|
console.log(thisTouchPrice);
|
|
console.log(data.cmPromotion.touchPrice);
|
|
console.log(data.cmPromotion.touchPrice);
|
|
- if (gift.discounts * 1 === 0) {
|
|
|
|
|
|
+ if (gift.discounts * 1 === 1) {
|
|
// var totalfee = $(".totalFee").val();
|
|
// var totalfee = $(".totalFee").val();
|
|
var b = Math.floor(thisTouchPrice / data.cmPromotion.touchPrice);
|
|
var b = Math.floor(thisTouchPrice / data.cmPromotion.touchPrice);
|
|
gift.num = gift.num * 1 * b + pageGift.num * 1;
|
|
gift.num = gift.num * 1 * b + pageGift.num * 1;
|
|
@@ -1085,7 +1085,7 @@ function setGiftHtmlList(data, cmPromotion) {
|
|
}
|
|
}
|
|
$("#product_promotion_" + gift.productId).remove();
|
|
$("#product_promotion_" + gift.productId).remove();
|
|
}
|
|
}
|
|
- if (gift.discounts * 1 === 0) {
|
|
|
|
|
|
+ if (gift.discounts * 1 === 1) {
|
|
// var totalfee = $(".totalFee").val();
|
|
// var totalfee = $(".totalFee").val();
|
|
var b = Math.floor(thisTouchPrice / data.cmPromotion.touchPrice);
|
|
var b = Math.floor(thisTouchPrice / data.cmPromotion.touchPrice);
|
|
gift.num = gift.num * 1 * b;
|
|
gift.num = gift.num * 1 * b;
|
|
@@ -1275,7 +1275,7 @@ function setOrderFee() { //不考虑经理折扣、运费,此时 商品总金
|
|
touchPrice += (product.number * product.price + product.totalTax * 1);
|
|
touchPrice += (product.number * product.price + product.totalTax * 1);
|
|
});
|
|
});
|
|
if (touchPrice >= item.touchPrice) {
|
|
if (touchPrice >= item.touchPrice) {
|
|
- if (item.discount * 1 === 0) {
|
|
|
|
|
|
+ if (item.discount * 1 === 1) {
|
|
var b = Math.floor(touchPrice/item.touchPrice);
|
|
var b = Math.floor(touchPrice/item.touchPrice);
|
|
reducedPrice = b * item.reducedPrice;
|
|
reducedPrice = b * item.reducedPrice;
|
|
payTotalFee -= reducedPrice;
|
|
payTotalFee -= reducedPrice;
|
|
@@ -2059,7 +2059,7 @@ function setProductTotalFee() {
|
|
touchPrice += (product.number * product.price + product.totalTax * 1);
|
|
touchPrice += (product.number * product.price + product.totalTax * 1);
|
|
});
|
|
});
|
|
if (touchPrice >= item.touchPrice) {
|
|
if (touchPrice >= item.touchPrice) {
|
|
- if (item.discount * 1 === 0) {
|
|
|
|
|
|
+ if (item.discount * 1 === 1) {
|
|
var b = Math.floor(touchPrice/item.touchPrice);
|
|
var b = Math.floor(touchPrice/item.touchPrice);
|
|
reducedPrice = b * item.reducedPrice;
|
|
reducedPrice = b * item.reducedPrice;
|
|
payTotalFee -= reducedPrice;
|
|
payTotalFee -= reducedPrice;
|