|
@@ -68,6 +68,13 @@ var shoppingCart = new Vue({
|
|
|
$(el).parents('.priceTag').find('.tag').removeClass("on").siblings('.mFixed').hide();
|
|
|
if(!isPC){looseBody();}
|
|
|
},
|
|
|
+ ckeckItem: function(event){
|
|
|
+ var el = event.currentTarget;
|
|
|
+ if(!$(el).prop("checked")){
|
|
|
+ $(el).parents('.supplierItem').find('.supplierTit').find('input.check').prop("checked", false);
|
|
|
+ }
|
|
|
+ this.computedPrice();
|
|
|
+ },
|
|
|
ckeckSupplier: function(event, supplierChecked){
|
|
|
var el = event.currentTarget;
|
|
|
var _self = this;
|
|
@@ -157,12 +164,13 @@ var shoppingCart = new Vue({
|
|
|
if(promotions.mode ===2){
|
|
|
var promotionsPrice = 0;
|
|
|
promotions.productList.forEach(function(product){
|
|
|
- promotionsPrice += product.number * product.price;
|
|
|
+ if (_self.submitIds.includes(product.productId*1)){
|
|
|
+ promotionsPrice += product.number * product.price;
|
|
|
+ }
|
|
|
});
|
|
|
if(promotionsPrice>=promotions.touchPrice){
|
|
|
reducedPrice += promotions.reducedPrice;
|
|
|
totalPrice -= promotions.reducedPrice;
|
|
|
-
|
|
|
}
|
|
|
} else if (promotions.type===1 && promotions.mode ===1) {
|
|
|
promotions.productList.forEach(function(product){
|