Commit 30de34b9283989958c4928399478cae059ab3901
1 parent
210fd0ab
团购活动的优化
Showing
2 changed files
with
2 additions
and
2 deletions
pages/goods/goodsInfo/goodsInfo.js
@@ -1061,7 +1061,7 @@ Page({ | @@ -1061,7 +1061,7 @@ Page({ | ||
1061 | if (this.data.prom_type == 1 || this.data.prom_type == 2) { | 1061 | if (this.data.prom_type == 1 || this.data.prom_type == 2) { |
1062 | this.getactLen(function (num) { | 1062 | this.getactLen(function (num) { |
1063 | if (num < th.data.goodsInputNum) { | 1063 | if (num < th.data.goodsInputNum) { |
1064 | - getApp().my_warnning("秒杀库存不足!", 0, th); | 1064 | + getApp().my_warnning("活动库存不足!", 0, th); |
1065 | return false; | 1065 | return false; |
1066 | } else { | 1066 | } else { |
1067 | th.add_cart_func(t); | 1067 | th.add_cart_func(t); |
pages/goods/goodsList/goodsList.js
@@ -233,7 +233,7 @@ Page({ | @@ -233,7 +233,7 @@ Page({ | ||
233 | var rd= { | 233 | var rd= { |
234 | store_id: oo.stoid, | 234 | store_id: oo.stoid, |
235 | presell_id: presell_id, | 235 | presell_id: presell_id, |
236 | - goods_id: val.goods_id | 236 | + goods_id: item.goods_id |
237 | } | 237 | } |
238 | //------获取预售从表---------- | 238 | //------获取预售从表---------- |
239 | await getApp().request.promiseGet(url1, { | 239 | await getApp().request.promiseGet(url1, { |