Commit f23d4e4f7d6a1f975dd780444a1925f54f573fdf

Authored by yvan.ni
1 parent 2100b71a

默认门店的优化

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
... ... @@ -282,7 +282,7 @@ Page({
282 282 arr[i].content=content;
283 283  
284 284  
285   - //--送礼包--
  285 + //--送--
286 286 if(parseInt(content.is_coupon)) {
287 287 //-- 获取 --
288 288 await getApp().request.promiseGet("/api/weshop/prom/coupon/get/"+content.coupon, {
... ...