|
@@ -161,6 +161,8 @@ var shoppingCart = new Vue({
|
|
});
|
|
});
|
|
if(promotionsPrice>=promotions.touchPrice){
|
|
if(promotionsPrice>=promotions.touchPrice){
|
|
reducedPrice += promotions.reducedPrice;
|
|
reducedPrice += promotions.reducedPrice;
|
|
|
|
+ totalPrice -= promotions.reducedPrice;
|
|
|
|
+
|
|
}
|
|
}
|
|
} else if (promotions.type===1 && promotions.mode ===1) {
|
|
} else if (promotions.type===1 && promotions.mode ===1) {
|
|
promotions.productList.forEach(function(product){
|
|
promotions.productList.forEach(function(product){
|
|
@@ -170,7 +172,7 @@ var shoppingCart = new Vue({
|
|
});
|
|
});
|
|
_self.reducedPrice = reducedPrice;
|
|
_self.reducedPrice = reducedPrice;
|
|
_self.originalPrice = originalPrice;
|
|
_self.originalPrice = originalPrice;
|
|
- _self.totalPrice = totalPrice-reducedPrice;
|
|
|
|
|
|
+ _self.totalPrice = totalPrice;
|
|
_self.kindCount = kindCount;
|
|
_self.kindCount = kindCount;
|
|
_self.totalCount = totalCount;
|
|
_self.totalCount = totalCount;
|
|
});
|
|
});
|
|
@@ -195,6 +197,7 @@ var shoppingCart = new Vue({
|
|
cart.ladderPrices.forEach(function(ladder){
|
|
cart.ladderPrices.forEach(function(ladder){
|
|
if(cart.number>=ladder.buyNum){
|
|
if(cart.number>=ladder.buyNum){
|
|
cart.price = ladder.buyPrice;
|
|
cart.price = ladder.buyPrice;
|
|
|
|
+ cart.originalPrice = ladder.buyPrice;
|
|
}
|
|
}
|
|
});
|
|
});
|
|
}
|
|
}
|