diff --git a/pages/goods/goodsInfo/goodsInfo.js b/pages/goods/goodsInfo/goodsInfo.js index 7a69d21..17ddf1c 100644 --- a/pages/goods/goodsInfo/goodsInfo.js +++ b/pages/goods/goodsInfo/goodsInfo.js @@ -426,7 +426,7 @@ Page({ //--定时器推迟一下-- setTimeout(function () { - var g_distr_type=th.data.data.distr_type; + if(th.data.data) var g_distr_type=th.data.data.distr_type; //--如果默认门店的配送方式不对,就不能被选择-- if(ee.distr_type!=0 && g_distr_type!=0 && ee.distr_type!=g_distr_type ){ th.data.fir_def_store={}; //赋值空对象 @@ -491,7 +491,7 @@ Page({ } }, 500) - },1000) + },1500) }); @@ -825,7 +825,16 @@ Page({ } } - } + else{ + wx.showModal({ + title: t.data.msg, + showCancel: !1, + complete: function() { + wx.navigateBack(); + } + }); + } + } }); this.data.enterAddressPage && (this.data.enterAddressPage = !1);