Commit ae200e6d42437f4092d4065700284c673d243ebb

Authored by yvan.ni
1 parent 6076844a

拼团的卡项的普通购买优化

packageA/pages/serviceCard_pd/goodsInfo/buy_pt.wxml
@@ -55,7 +55,7 @@ @@ -55,7 +55,7 @@
55 <view hidden="{{has_def && sys_switch.is_pricing_open_store}}" class="red-co fs28" bindtap="choice_store" >更多门店<text class="right-arrow"></text></view> 55 <view hidden="{{has_def && sys_switch.is_pricing_open_store}}" class="red-co fs28" bindtap="choice_store" >更多门店<text class="right-arrow"></text></view>
56 </view> 56 </view>
57 <view class="no_store" wx:if="{{def_pick_store.is_no_dis}}">(该店不可售)</view> 57 <view class="no_store" wx:if="{{def_pick_store.is_no_dis}}">(该店不可售)</view>
58 - <view class="no_store" wx:elif="{{def_pick_store.is_no_dis_act}}">(该店不可售)</view> 58 + <view class="no_store" wx:elif="{{def_pick_store.is_no_dis_act && !is_normal}}">(该店不可售)</view>
59 <view class="no_store" wx:elif="{{is_normal && def_pick_store && def_pick_store.CanOutQty<=0}}">(库存不足)</view> 59 <view class="no_store" wx:elif="{{is_normal && def_pick_store && def_pick_store.CanOutQty<=0}}">(库存不足)</view>
60 <view class="fs24 xc-ash-9f xc-distance-top" wx:if="{{def_pick_store && def_pick_store.pickup_name}}">地址:{{def_pick_store.fulladdress}}</view> 60 <view class="fs24 xc-ash-9f xc-distance-top" wx:if="{{def_pick_store && def_pick_store.pickup_name}}">地址:{{def_pick_store.fulladdress}}</view>
61 </view> 61 </view>
@@ -147,7 +147,7 @@ @@ -147,7 +147,7 @@
147 <view class="spec-cart-btns"> 147 <view class="spec-cart-btns">
148 <!-- 根本就找不到门店 --> 148 <!-- 根本就找不到门店 -->
149 <block wx:if="{{def_pick_store && def_pick_store.is_no_dis}}"> 149 <block wx:if="{{def_pick_store && def_pick_store.is_no_dis}}">
150 - <view class="spec-cart-btn fs32" data-action="add" style="background-color: #dcdcdc;color: #999;">配送不匹配</view> 150 + <view class="spec-cart-btn fs32" data-action="add" style="background-color: #dcdcdc;color: #999;">该店不可售</view>
151 </block> 151 </block>
152 <block wx:else> 152 <block wx:else>
153 153
@@ -183,7 +183,6 @@ @@ -183,7 +183,6 @@
183 </block> 183 </block>
184 </block> 184 </block>
185 </view> 185 </view>
186 -  
187 </block> 186 </block>
188 <block wx:else> 187 <block wx:else>
189 <!-- 根本就找不到门店 --> 188 <!-- 根本就找不到门店 -->
packageA/pages/serviceCard_pd/goodsInfo/goodsInfo.js
@@ -992,9 +992,6 @@ Page({ @@ -992,9 +992,6 @@ Page({
992 992
993 } 993 }
994 994
995 -  
996 -  
997 -  
998 }, 995 },
999 996
1000 997
@@ -1003,6 +1000,7 @@ Page({ @@ -1003,6 +1000,7 @@ Page({
1003 openSpecModal: !1, 1000 openSpecModal: !1,
1004 openSpecModal_pt: !1, 1001 openSpecModal_pt: !1,
1005 openSpecModal_flash_normal: !1, 1002 openSpecModal_flash_normal: !1,
  1003 + is_normal:0
1006 }); 1004 });
1007 }, 1005 },
1008 1006
@@ -1218,6 +1216,17 @@ Page({ @@ -1218,6 +1216,17 @@ Page({
1218 get_sto(e) { 1216 get_sto(e) {
1219 var is_normal=e; 1217 var is_normal=e;
1220 var th = this, that = this; 1218 var th = this, that = this;
  1219 +
  1220 + if (e == 1) {
  1221 + th.setData({
  1222 + is_normal: 1
  1223 + })
  1224 + } else {
  1225 + th.setData({
  1226 + is_normal: 0
  1227 + })
  1228 + }
  1229 +
1221 var timer_get = setInterval(function () { 1230 var timer_get = setInterval(function () {
1222 if (th.data.is_get_local_ok == 0) return false; 1231 if (th.data.is_get_local_ok == 0) return false;
1223 if (!th.data.fir_def_store) return false; 1232 if (!th.data.fir_def_store) return false;
packageA/pages/serviceCard_pd/goodsInfo/goodsInfo.wxml
@@ -673,7 +673,7 @@ @@ -673,7 +673,7 @@
673 <block wx:if="{{tool.is_no_dis(sele_g.storageId,item.keyid)}}"> 673 <block wx:if="{{tool.is_no_dis(sele_g.storageId,item.keyid)}}">
674 <text class="no_store">(该店不可售)</text> 674 <text class="no_store">(该店不可售)</text>
675 </block> 675 </block>
676 - <text wx:elif="{{item.is_no_dis_act}}" class="no_store">(该店不可售)</text> 676 + <text wx:elif="{{item.is_no_dis_act && !is_normal}}" class="no_store">(该店不可售)</text>
677 </view> 677 </view>
678 </view> 678 </view>
679 <view> 679 <view>
@@ -704,7 +704,7 @@ @@ -704,7 +704,7 @@
704 <block wx:if="{{tool.is_no_dis(sele_g.storageId,item.keyid)}}"> 704 <block wx:if="{{tool.is_no_dis(sele_g.storageId,item.keyid)}}">
705 <text class="no_store">(该店不可售)</text> 705 <text class="no_store">(该店不可售)</text>
706 </block> 706 </block>
707 - <text wx:elif="{{item.is_no_dis_act}}" class="no_store">(该店不可售)</text> 707 + <text wx:elif="{{item.is_no_dis_act && !is_normal}}" class="no_store">(该店不可售)</text>
708 </view> 708 </view>
709 </view> 709 </view>
710 <view> 710 <view>
@@ -737,7 +737,7 @@ @@ -737,7 +737,7 @@
737 <block wx:if="{{tool.is_no_dis(sele_g.storageId,item.keyid)}}"> 737 <block wx:if="{{tool.is_no_dis(sele_g.storageId,item.keyid)}}">
738 <text class="no_store">(该店不可售)</text> 738 <text class="no_store">(该店不可售)</text>
739 </block> 739 </block>
740 - <text wx:elif="{{item.is_no_dis_act}}" class="no_store">(该店不可售)</text> 740 + <text wx:elif="{{item.is_no_dis_act && !is_normal}}" class="no_store">(该店不可售)</text>
741 </view> 741 </view>
742 </view> 742 </view>
743 <view> 743 <view>