Commit f23d4e4f7d6a1f975dd780444a1925f54f573fdf
1 parent
2100b71a
默认门店的优化
Showing
2 changed files
with
11 additions
and
1 deletions
pages/goods/goodsInfo/goodsInfo.js
... | ... | @@ -7721,6 +7721,16 @@ Page({ |
7721 | 7721 | |
7722 | 7722 | if (!item) return false; |
7723 | 7723 | |
7724 | + if (item.is_no_dis_nor || (item.is_no_dis_act && !th.data.is_normal)){ | |
7725 | + wx.showToast({ | |
7726 | + title: "该门店不可售,请选择其他门店", | |
7727 | + icon: 'none', | |
7728 | + duration: 2000 | |
7729 | + }); | |
7730 | + return false; | |
7731 | + } | |
7732 | + | |
7733 | + if (!th.data.sele_g) return false; | |
7724 | 7734 | //判断门店的配送方式是不是匹配 |
7725 | 7735 | var g_distr_type = th.data.sele_g.distr_type; |
7726 | 7736 | if (item.distr_type != 0 && g_distr_type != 0 && item.distr_type != g_distr_type) { | ... | ... |
pages/goods/goodsList/goodsList.js