diff --git a/pages/goods/goodsInfo/goodsInfo.js b/pages/goods/goodsInfo/goodsInfo.js index 712d49f..de520c8 100644 --- a/pages/goods/goodsInfo/goodsInfo.js +++ b/pages/goods/goodsInfo/goodsInfo.js @@ -3474,7 +3474,7 @@ Page({ var req_d = { "store_id": os.stoid, "goods_id": that.data.gid, - "user_id": user_id, + "user_id": getApp().globalData.user_id } getApp().request.get(url, { data: req_d, @@ -7510,12 +7510,22 @@ Page({ if (!item) return false; + if (item.is_no_dis_nor) { + wx.showToast({ + title: "该门店不可售,请选择其他门店", + icon: 'none', + duration: 2000 + }); + return false; + } + + if (!th.data.sele_g) return false; //判断门店的配送方式是不是匹配 var g_distr_type = th.data.sele_g.distr_type; if (item.distr_type != 0 && g_distr_type != 0 && item.distr_type != g_distr_type) { wx.showToast({ - title: "门店配送方式不匹配", + title: "门店配送方式不匹配,请选择其他门店", icon: 'none', duration: 2000 });