xiaohaizhao 2 лет назад
Родитель
Сommit
2669f1b06d
2 измененных файлов с 2 добавлено и 0 удалено
  1. 1 0
      packageA/activity/detail.js
  2. 1 0
      packageA/activity/selectProduct/index.js

+ 1 - 0
packageA/activity/detail.js

@@ -79,6 +79,7 @@ Page({
 					let image = value.attinfos.find(v => v.fileType == "image");
 					value.cover = image ? image.cover : "";
 				}
+				if (value.islimit == 0) value.groupqty = 0;
 				if (value.gradeprice) value.gradeprice = (value.gradeprice - 0).toFixed(2)
 				if (value.oldprice) value.oldprice = (value.oldprice - 0).toFixed(2)
 				if (value.price) value.price = (value.price - 0).toFixed(2)

+ 1 - 0
packageA/activity/selectProduct/index.js

@@ -52,6 +52,7 @@ Page({
           let image = value.attinfos.find(v => v.fileType == "image");
           value.cover = image ? image.cover : "";
         }
+				if (value.islimit == 0) value.groupqty = 0;
         if (newPrice) value.newPrice = CNY(value[newPrice] || 0);
         if (oldPrice) value.oldPrice = CNY(value[oldPrice] || 0);
         value.orderminqty = value.packageqty || value.orderminqty; //起订量优先取包装数量