Commit bb905ce34f7f3ac1e6d7b41b73fa0c72a7da32e9

Authored by yvan.ni
1 parent ae945bda

设置默认门店~~·

packageA/pages/goodsInfo/goodsInfo.js
@@ -1839,8 +1839,9 @@ Page({ @@ -1839,8 +1839,9 @@ Page({
1839 } 1839 }
1840 1840
1841 //判断门店的配送方式是不是匹配 1841 //判断门店的配送方式是不是匹配
1842 - var g_distr_type = th.data.sele_g.distr_type;  
1843 - if(item.distr_type!=0 && g_distr_type!=0 && item.distr_type!=g_distr_type){ 1842 + var ser_card=this.data.data;
  1843 + //判断门店的配送方式是不是匹配
  1844 + if(ser_card.storageId!=null && ser_card.storageId!="" && ser_card.storageId.indexOf(item.keyid)==-1){
1844 wx.showToast({ 1845 wx.showToast({
1845 title: "门店配送方式不匹配", 1846 title: "门店配送方式不匹配",
1846 icon: 'none', 1847 icon: 'none',