Commit 766669759a8a5c65498ff70b700f247d13811297
1 parent
0fb8f31a
真机调试测试出商品的bug问题
Showing
1 changed file
with
2 additions
and
1 deletions
pages/goods/goodsInfo/goodsInfo.js
... | ... | @@ -3491,7 +3491,8 @@ Page({ |
3491 | 3491 | o_plist[kk].CanOutQty = Qty; |
3492 | 3492 | new_list.push(o_plist[kk]); |
3493 | 3493 | } |
3494 | - if (th.data.fir_def_store && (g_distr_type == 0 || th.data.fir_def_store.distr_type == 0 || th.data.def_pick_store.distr_type == g_distr_type)) { | |
3494 | + if (th.data.fir_def_store && | |
3495 | + (g_distr_type == 0 || th.data.fir_def_store.distr_type == 0 || (th.data.def_pick_store && th.data.def_pick_store.distr_type == g_distr_type))) { | |
3495 | 3496 | th.data.fir_def_store.Qty; |
3496 | 3497 | if (def_pick_store.pickup_id == th.data.fir_def_store.pickup_id) |
3497 | 3498 | th.setData({def_pick_store: th.data.fir_def_store}) | ... | ... |