Commit b039a86f9e85f50f372484c63714f3f0a1c8696e
1 parent
3629eed0
预售的限购问题优化
Showing
1 changed file
with
8 additions
and
1 deletions
packageC/pages/presell/goodsInfo/goodsInfo.js
| @@ -2861,8 +2861,15 @@ Page({ | @@ -2861,8 +2861,15 @@ Page({ | ||
| 2861 | th.setData({ | 2861 | th.setData({ | 
| 2862 | g_buy_num: map, | 2862 | g_buy_num: map, | 
| 2863 | }); | 2863 | }); | 
| 2864 | + | ||
| 2865 | + | ||
| 2866 | + let t_prom_id=gd.prom_id; | ||
| 2867 | + if(th.data.presellForm){ | ||
| 2868 | + t_prom_id=th.data.presellForm.id; | ||
| 2869 | + } | ||
| 2870 | + | ||
| 2864 | getApp().request.get("/api/weshop/order/orderPresell/countBuyGoodsSum", { | 2871 | getApp().request.get("/api/weshop/order/orderPresell/countBuyGoodsSum", { | 
| 2865 | - data: { store_id: os.stoid, user_id: user_id, goods_id: gd.goods_id, prom_id: gd.prom_id }, | 2872 | + data: { store_id: os.stoid, user_id: user_id, goods_id: gd.goods_id, prom_id: t_prom_id }, | 
| 2866 | success: function (e) { | 2873 | success: function (e) { | 
| 2867 | if (e.data.code == 0) { | 2874 | if (e.data.code == 0) { | 
| 2868 | th.setData({ prom_buy_num: e.data.data.sumgoodsnum }) | 2875 | th.setData({ prom_buy_num: e.data.data.sumgoodsnum }) |