Commit 51c3bb3baeddfe51975e2656f110c9cbd6dd62c0
1 parent
69240002
1. 会员没有默认门店的时候,地址会显示空的显示bug
Showing
3 changed files
with
7 additions
and
7 deletions
pages/goods/goodsInfo/buy_integral.wxml
... | ... | @@ -26,7 +26,7 @@ |
26 | 26 | <!-- 选择门店模块 --> |
27 | 27 | <view class="flex-space-between address ai_end xc-width "> |
28 | 28 | |
29 | - <view class="flex ai_end" wx:if="{{def_pick_store}}"> | |
29 | + <view class="flex ai_end" wx:if="{{def_pick_store && def_pick_store.pickup_name}}"> | |
30 | 30 | <text class="fs30 xc-black3 shop_name">{{def_pick_store.pickup_name}}</text> |
31 | 31 | <view class="distance fs24 xc-ash"wx:if="{{def_pick_store.distance!=null}}"> |
32 | 32 | 距离:{{def_pick_store.distance>1000?filters.toFix(def_pick_store.distance/1000,2)+"km":filters.toFix(def_pick_store.distance,0)+"m"}} |
... | ... | @@ -53,7 +53,7 @@ |
53 | 53 | </block> |
54 | 54 | </block> |
55 | 55 | |
56 | - <view class="fs24 xc-ash-9f xc-distance-top "wx:if="{{def_pick_store}}">地址:{{def_pick_store.fulladdress}}</view> | |
56 | + <view class="fs24 xc-ash-9f xc-distance-top "wx:if="{{def_pick_store && def_pick_store.fulladdress}}">地址:{{def_pick_store.fulladdress}}</view> | |
57 | 57 | |
58 | 58 | |
59 | 59 | <!--商品的属性项目--> | ... | ... |
pages/goods/goodsInfo/buy_integral_normal.wxml
... | ... | @@ -28,7 +28,7 @@ |
28 | 28 | <!-- 选择门店模块 --> |
29 | 29 | <view class="flex-space-between address ai_end xc-width "> |
30 | 30 | |
31 | - <view class="flex ai_end" wx:if="{{def_pick_store}}"> | |
31 | + <view class="flex ai_end" wx:if="{{def_pick_store && def_pick_store.pickup_name}}"> | |
32 | 32 | <text class="fs30 xc-black3 shop_name">{{def_pick_store.pickup_name}}</text> |
33 | 33 | <view class="distance fs24 xc-ash"wx:if="{{def_pick_store.distance!=null}}"> |
34 | 34 | 距离:{{def_pick_store.distance>1000?filters.toFix(def_pick_store.distance/1000,2)+"km":filters.toFix(def_pick_store.distance,0)+"m"}} |
... | ... | @@ -54,7 +54,7 @@ |
54 | 54 | <view wx:if="{{def_pick_store && !def_pick_store.CanOutQty && sales_rules==2 && prom_type==0}}">(库存不足)</view> |
55 | 55 | </block> |
56 | 56 | </block> |
57 | - <view class="fs24 xc-ash-9f xc-distance-top "wx:if="{{def_pick_store}}">地址:{{def_pick_store.fulladdress}}</view> | |
57 | + <view class="fs24 xc-ash-9f xc-distance-top "wx:if="{{def_pick_store && def_pick_store.fulladdress}}">地址:{{def_pick_store.fulladdress}}</view> | |
58 | 58 | |
59 | 59 | |
60 | 60 | <!--商品的属性项目--> | ... | ... |
pages/goods/goodsInfo/goodsInfo.wxml
... | ... | @@ -433,7 +433,7 @@ |
433 | 433 | </view> |
434 | 434 | </view> |
435 | 435 | |
436 | - <view wx:if="{{def_pick_store}}"> | |
436 | + <view wx:if="{{def_pick_store && def_pick_store.pickup_name}}"> | |
437 | 437 | <view class="flex-space-between address ai_end "> |
438 | 438 | <view> |
439 | 439 | <text class="fs30 xc-black3 shop_name">{{def_pick_store.pickup_name}}</text> |
... | ... | @@ -1031,7 +1031,7 @@ |
1031 | 1031 | <!-- 选择门店模块 --> |
1032 | 1032 | <view class="flex-space-between address ai_end xc-width "> |
1033 | 1033 | |
1034 | - <view class="flex ai_end" wx:if="{{def_pick_store}}"> | |
1034 | + <view class="flex ai_end" wx:if="{{def_pick_store && def_pick_store.pickup_name}}"> | |
1035 | 1035 | <text class="fs30 xc-black3 shop_name">{{def_pick_store.pickup_name}}</text> |
1036 | 1036 | <view class="distance fs24 xc-ash"wx:if="{{def_pick_store.distance!=null}}"> |
1037 | 1037 | 距离:{{def_pick_store.distance>1000?filters.toFix(def_pick_store.distance/1000,2)+"km":filters.toFix(def_pick_store.distance,0)+"m"}} |
... | ... | @@ -1058,7 +1058,7 @@ |
1058 | 1058 | </block> |
1059 | 1059 | </block> |
1060 | 1060 | |
1061 | - <view class="fs24 xc-ash-9f xc-distance-top "wx:if="{{def_pick_store}}">地址:{{def_pick_store.fulladdress}}</view> | |
1061 | + <view class="fs24 xc-ash-9f xc-distance-top "wx:if="{{def_pick_store && def_pick_store.fulladdress}}">地址:{{def_pick_store.fulladdress}}</view> | |
1062 | 1062 | </view> |
1063 | 1063 | |
1064 | 1064 | <!--商品的属性项目--> | ... | ... |