Commit d9ca78b14abbec27104ce94030481b5847fefdf1
1 parent
0af1cd6f
组合购优化的7点
Showing
1 changed file
with
3 additions
and
3 deletions
pages/goods/goodsInfo/goodsInfo.js
@@ -1311,8 +1311,8 @@ Page({ | @@ -1311,8 +1311,8 @@ Page({ | ||
1311 | th.check_zh_acting(function (ee){ | 1311 | th.check_zh_acting(function (ee){ |
1312 | newd.prom_id = 0; | 1312 | newd.prom_id = 0; |
1313 | newd.prom_type = 0; | 1313 | newd.prom_type = 0; |
1314 | - if(ee){ | ||
1315 | - newd.prom_id = th.data.zh_act.id; | 1314 | + if(ee && this.data.sele_g.act){ |
1315 | + newd.prom_id = this.data.sele_g.act.id; | ||
1316 | newd.prom_type = 7; | 1316 | newd.prom_type = 7; |
1317 | if (o.store_count <= 0) return s.my_warnning("库存已为空!", 0, th); | 1317 | if (o.store_count <= 0) return s.my_warnning("库存已为空!", 0, th); |
1318 | if (o.store_count <e.data.goodsInputNum) return s.my_warnning("库存不足!", 0, th); | 1318 | if (o.store_count <e.data.goodsInputNum) return s.my_warnning("库存不足!", 0, th); |
@@ -5578,8 +5578,8 @@ Page({ | @@ -5578,8 +5578,8 @@ Page({ | ||
5578 | isok = 0; | 5578 | isok = 0; |
5579 | } | 5579 | } |
5580 | item.act=res.data.data; | 5580 | item.act=res.data.data; |
5581 | + func(isok); | ||
5581 | }) | 5582 | }) |
5582 | - func(isok); | ||
5583 | } | 5583 | } |
5584 | 5584 | ||
5585 | 5585 |