Commit 803c5e266b57dd54e954320b3c4cfda18b9f7fbf
1 parent
22c9b72b
拼团的bug优化
Showing
2 changed files
with
12 additions
and
8 deletions
pages/team/team_show/team_show.js
... | ... | @@ -721,11 +721,12 @@ Page({ |
721 | 721 | go_pay:function () { |
722 | 722 | var th=this; |
723 | 723 | var def_pick_store=this.data.def_pick_store; |
724 | - if(def_pick_store) { | |
724 | + if(def_pick_store && def_pick_store.pickup_id) { | |
725 | 725 | th.data.pick_id=def_pick_store.pickup_id; //选择门店 |
726 | 726 | th.data.end_name=def_pick_store.pickup_name; |
727 | 727 | } |
728 | - if (th.data.pick_id == 0) return s.my_warnning("请选择门店", 0, th); | |
728 | + if (!th.data.pick_id) return s.my_warnning("请选择门店", 0, th); | |
729 | + if (th.data.pick_id==0) return s.my_warnning("请选择门店", 0, th); | |
729 | 730 | |
730 | 731 | //----判断起购数---- |
731 | 732 | var qnum=parseFloat(th.data.teamlist.minbuynum); | ... | ... |
pages/team/team_show/team_show.wxml
... | ... | @@ -215,26 +215,29 @@ |
215 | 215 | <view style="margin-top: 20rpx"> |
216 | 216 | <view class="flex-space-between address ai_end xc-width "> |
217 | 217 | |
218 | - <view class="flex ai_end" wx:if="{{def_pick_store}}"> | |
218 | + <view class="flex ai_end" wx:if="{{def_pick_store && def_pick_store.pickup_name}}"> | |
219 | 219 | <text class="fs30 xc-black3 shop_name">{{def_pick_store.pickup_name}}</text> |
220 | 220 | |
221 | 221 | <view class="distance fs24 xc-ash" wx:if="{{def_pick_store.distance!=null}}"> |
222 | 222 | 距离:{{def_pick_store.distance>1000?filters.toFix(def_pick_store.distance/1000,2)+"km":filters.toFix(def_pick_store.distance,0)+"m"}} |
223 | 223 | </view> |
224 | 224 | </view> |
225 | - <view class="red-co fs28" bindtap="choice_store" wx:if="{{def_pick_store}}"> | |
226 | - 更多门店 | |
227 | - <text class="right-arrow"></text> | |
228 | - </view> | |
225 | + | |
226 | + | |
229 | 227 | <view class="flex" bindtap="choice_store" wx:else> |
230 | 228 | <image class="stores-img" src="{{iurl}}/miniapp/images/stores.png"></image> |
231 | 229 | <view class="fs28 xc-ash-9f">选择门店</view> |
232 | 230 | </view> |
231 | + | |
232 | + <view class="red-co fs28" bindtap="choice_store"> | |
233 | + 更多门店 | |
234 | + <text class="right-arrow"></text> | |
235 | + </view> | |
233 | 236 | |
234 | 237 | |
235 | 238 | </view> |
236 | 239 | <view class="no_store" wx:if="{{def_pick_store && def_pick_store.is_no_dis}}">(配送不匹配)</view> |
237 | - <view class="fs24 xc-ash-9f xc-distance-top " wx:if="{{def_pick_store}}">地址:5{{def_pick_store.fulladdress}}</view> | |
240 | + <view class="fs24 xc-ash-9f xc-distance-top " wx:elif="{{def_pick_store && def_pick_store.fulladdress}}">地址:{{def_pick_store.fulladdress}}</view> | |
238 | 241 | |
239 | 242 | </view> |
240 | 243 | <!-- 商品的属性项目 --> | ... | ... |