Commit 505afb28d95dade73e79c696dd6acd5c6714c87a
1 parent
6341715b
在页面加载的时候,不显示提示标语
Showing
4 changed files
with
5 additions
and
4 deletions
pages/goods/categoryList/categoryList.js
... | ... | @@ -67,7 +67,7 @@ Page({ |
67 | 67 | if (e.categoryset.indexOf("," + 1 + ",") != -1) { that.setData({ is_show_pl: 1 }); } |
68 | 68 | if (e.categoryset.indexOf("," + 3 + ",") != -1) { that.setData({ is_show_pp: 1 }); } |
69 | 69 | if (e.categoryset.indexOf("," + 2 + ",") != -1) { that.setData({ is_show_gb: 1 }); } |
70 | - that.setData({ store_config: e }); | |
70 | + that.setData({ store_config: e,is_do:1 }); | |
71 | 71 | |
72 | 72 | if (that.data.is_show_pl) that.setData({ currentTab: 0 }); |
73 | 73 | else if (that.data.is_show_gb){ that.setData({ currentTab: 1 });that.get_nation(); } |
... | ... | @@ -113,7 +113,7 @@ Page({ |
113 | 113 | continue; |
114 | 114 | } |
115 | 115 | } |
116 | - t.setData({ catelist: arr}); | |
116 | + t.setData({ catelist: arr}); | |
117 | 117 | } |
118 | 118 | }); |
119 | 119 | }, | ... | ... |
pages/goods/categoryList/categoryList.wxml
pages/goods/goodsList/goodsList.js
pages/goods/goodsList/goodsList.wxml
... | ... | @@ -42,7 +42,7 @@ |
42 | 42 | </view> |
43 | 43 | </navigator> |
44 | 44 | </view> |
45 | - <view class="no-data" wx:if="{{!requestData||requestData.length==0}}"> | |
45 | + <view class="no-data" wx:if="{{(!requestData||requestData.length==0) && is_go}}"> | |
46 | 46 | <image class="cart-image" src="{{iurl}}/miniapp/images/cart-null.png"></image> |
47 | 47 | <view class="no-data-title">没有相关的数据</view> |
48 | 48 | <navigator class="lookat" openType="switchTab" url="/pages/index/index/index"> 去逛逛 </navigator> | ... | ... |