Commit 8491594d3db72c2296c57ddf6e76276580407022

Authored by taiyuan
2 parents cec26bef 5b987e7e

Merge branch 'dev' of http://git.vipzhuang.cn/wxd/MShopWeApp into dev

packageA/pages/cart2_ser/cart2_ser.js
@@ -415,6 +415,10 @@ Page({ @@ -415,6 +415,10 @@ Page({
415 } 415 }
416 } 416 }
417 }else{ 417 }else{
  418 + if(!gg.pick_id){
  419 + getApp().showWarning("未找到门店");
  420 + return false;
  421 + }
418 422
419 var gg = getApp().globalData.service_now; 423 var gg = getApp().globalData.service_now;
420 var goods={ 424 var goods={
packageA/pages/goodsInfo/goodsInfo.js
@@ -513,6 +513,12 @@ Page({ @@ -513,6 +513,12 @@ Page({
513 th.setData({ 513 th.setData({
514 open_ind_store: ind 514 open_ind_store: ind
515 }); 515 });
  516 +
  517 + if(!th.data.sto_sele_name){
  518 + getApp().my_warnning('请选择门店', 1, th, 450);
  519 + return false;
  520 + }
  521 +
516 522
517 if(action=="buy"){ 523 if(action=="buy"){
518 //--------------此时操作的数据------------ 524 //--------------此时操作的数据------------
packageA/pages/goodsInfo/goodsInfo.wxml
@@ -208,7 +208,7 @@ @@ -208,7 +208,7 @@
208 </view> 208 </view>
209 209
210 <!-- 选择门店模块 --> 210 <!-- 选择门店模块 -->
211 - <view class="flex-space-between address ai_end xc-width" style="margin-top: 30rpx;"> 211 + <view class="flex-space-between address ai_end xc-width" style="padding-top: 30rpx;">
212 <view class="flex ai_end" wx:if="{{def_pick_store && def_pick_store.pickup_name}}"> 212 <view class="flex ai_end" wx:if="{{def_pick_store && def_pick_store.pickup_name}}">
213 <text class="fs30 xc-black3 shop_name">{{def_pick_store.pickup_name}}</text> 213 <text class="fs30 xc-black3 shop_name">{{def_pick_store.pickup_name}}</text>
214 <view class="distance fs24 xc-ash"wx:if="{{def_pick_store.distance!=null}}"> 214 <view class="distance fs24 xc-ash"wx:if="{{def_pick_store.distance!=null}}">
@@ -298,9 +298,9 @@ @@ -298,9 +298,9 @@
298 </block> 298 </block>
299 <block wx:else> 299 <block wx:else>
300 <view wx:if="{{openSpecModal_ind==1}}" bindtap="addCart"data-openSpecModal_ind="{{openSpecModal_ind}}" 300 <view wx:if="{{openSpecModal_ind==1}}" bindtap="addCart"data-openSpecModal_ind="{{openSpecModal_ind}}"
301 - class="spec-cart-btn yellow fs32" data-action="add">加入购物车</view> 301 + class="spec-cart-btn yellow fs32 {{!sto_sele_name?'gray':''}}" data-action="add">加入购物车</view>
302 <view wx:if="{{openSpecModal_ind==2}}" bindtap="addCart"data-openSpecModal_ind="{{openSpecModal_ind}}" 302 <view wx:if="{{openSpecModal_ind==2}}" bindtap="addCart"data-openSpecModal_ind="{{openSpecModal_ind}}"
303 - class="spec-cart-btn spec-buy" data-action="buy"> 303 + class="spec-cart-btn spec-buy {{!sto_sele_name?'gray':''}}" data-action="buy">
304 {{sele_g.offline_price?"券后购买":"立即购买"}} 304 {{sele_g.offline_price?"券后购买":"立即购买"}}
305 </view> 305 </view>
306 </block> 306 </block>
packageA/pages/goodsInfo/goodsInfo.wxss
@@ -2842,4 +2842,6 @@ button.custom-service::after{ @@ -2842,4 +2842,6 @@ button.custom-service::after{
2842 2842
2843 .stock { 2843 .stock {
2844 flex: 1; 2844 flex: 1;
2845 -}  
2846 \ No newline at end of file 2845 \ No newline at end of file
  2846 +}
  2847 +
  2848 +.gray{ background-color: #dcdcdc !important;}
2847 \ No newline at end of file 2849 \ No newline at end of file