shish 2 лет назад
Родитель
Сommit
acb3c6e290
1 измененных файлов с 3 добавлено и 9 удалено
  1. 3 9
      ghs/src/mixins/product2.js

+ 3 - 9
ghs/src/mixins/product2.js

@@ -70,23 +70,17 @@ export default {
 		},
 		allPrice() {
 			let price = 0;
-			console.log(this.selectList)
 			if (this.selectList) {
 				for (const item of this.selectList) {
-					if(item.userPrice>0){
+					if(item.aboutPrice && item.aboutPrice == 1){
+						price += Number(item.totalPrice)
+					}else{
 						if(Number(item.bigCount) > 0){
 							price += Number(item.bigCount) * Number(item.userPrice);
 						}
 						if(Number(item.smallCount) > 0){
 							price += Number(item.smallCount) * Number(item.userPrice);	
 						}
-					}else{
-						if(Number(item.bigCount) > 0){
-							price += Number(item.bigCount) * Number(item.bigPrice);
-						}
-						if(Number(item.smallCount) > 0){
-							price += Number(item.smallCount) * Number(item.smallPrice);	
-						}
 					}
 				}
 			}