Commit 723395cf89b6f8d62d427a269347933be1ab0cc6
Merge branch 'dev' into 'test'
/如果会员是有默认的门店话 See merge request !998
Showing
1 changed file
with
2 additions
and
2 deletions
pages/goods/goodsInfo/goodsInfo.js
... | ... | @@ -2823,8 +2823,8 @@ Page({ |
2823 | 2823 | } |
2824 | 2824 | clearInterval(timer_get); |
2825 | 2825 | |
2826 | - //如果会员是有默认的门店话 | |
2827 | - if (!th.data.def_pick_store && th.data.fir_def_store) { | |
2826 | + //如果会员是有默认的门店话 | |
2827 | + if (!th.data.def_pick_store && th.data.fir_def_store && Object.keys(th.data.fir_def_store).length>0) { | |
2828 | 2828 | th.setData({def_pick_store: th.data.fir_def_store}); |
2829 | 2829 | } |
2830 | 2830 | wx.showLoading({ | ... | ... |