shish 3 лет назад
Родитель
Сommit
02fcae9a9f
1 измененных файлов с 3 добавлено и 9 удалено
  1. 3 9
      hdApp/src/mixins/cgProduct.js

+ 3 - 9
hdApp/src/mixins/cgProduct.js

@@ -68,9 +68,8 @@ export default {
 			if (this.selectList) {
 				for (const item of this.selectList) {
 					const itemInfo = this.getSelectItemById(item.id, item.classId);
-					if ( itemInfo && !this.$util.isEmpty(itemInfo.bigPrice) && !this.$util.isEmpty(itemInfo.smallPrice) ) {
+					if ( itemInfo && !this.$util.isEmpty(itemInfo.bigPrice)) {
 						price += item.bigCount * Number(itemInfo.bigPrice);
-						price += item.smallCount * Number(itemInfo.smallPrice);
 					}
 				}
 			}
@@ -81,13 +80,8 @@ export default {
 			if (this.selectList) {
 				for (const item of this.selectList) {
 					const itemInfo = this.getSelectItemById(item.id, item.classId);
-					if (
-						itemInfo &&
-						!this.$util.isEmpty(itemInfo.bigPrice) &&
-						!this.$util.isEmpty(itemInfo.smallPrice)
-					) {
-						price += item.bigCount * Number(itemInfo.bigPrice);
-						price += item.smallCount * Number(itemInfo.smallPrice);
+					if ( itemInfo && !this.$util.isEmpty(itemInfo.bigPrice) ) {
+						price += item.bigCount * Number(itemInfo.bigPrice)
 					}
 				}
 			}