Commit 505afb28d95dade73e79c696dd6acd5c6714c87a

Authored by F5VT98DI7XY4X12\Administrator
1 parent 6341715b

在页面加载的时候,不显示提示标语

pages/goods/categoryList/categoryList.js
@@ -67,7 +67,7 @@ Page({ @@ -67,7 +67,7 @@ Page({
67 if (e.categoryset.indexOf("," + 1 + ",") != -1) { that.setData({ is_show_pl: 1 }); } 67 if (e.categoryset.indexOf("," + 1 + ",") != -1) { that.setData({ is_show_pl: 1 }); }
68 if (e.categoryset.indexOf("," + 3 + ",") != -1) { that.setData({ is_show_pp: 1 }); } 68 if (e.categoryset.indexOf("," + 3 + ",") != -1) { that.setData({ is_show_pp: 1 }); }
69 if (e.categoryset.indexOf("," + 2 + ",") != -1) { that.setData({ is_show_gb: 1 }); } 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 if (that.data.is_show_pl) that.setData({ currentTab: 0 }); 72 if (that.data.is_show_pl) that.setData({ currentTab: 0 });
73 else if (that.data.is_show_gb){ that.setData({ currentTab: 1 });that.get_nation(); } 73 else if (that.data.is_show_gb){ that.setData({ currentTab: 1 });that.get_nation(); }
@@ -113,7 +113,7 @@ Page({ @@ -113,7 +113,7 @@ Page({
113 continue; 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
@@ -90,7 +90,7 @@ @@ -90,7 +90,7 @@
90 </view> 90 </view>
91 </block> 91 </block>
92 92
93 -<block wx:else> 93 +<block wx:elif="{{is_do}}">
94 <view class="no-data" > 94 <view class="no-data" >
95 <image class="cart-image" src="{{iurl}}/miniapp/images/cart-null.png"></image> 95 <image class="cart-image" src="{{iurl}}/miniapp/images/cart-null.png"></image>
96 <view class="no-data-title">商家暂未设置分类</view> 96 <view class="no-data-title">商家暂未设置分类</view>
pages/goods/goodsList/goodsList.js
@@ -67,6 +67,7 @@ Page({ @@ -67,6 +67,7 @@ Page({
67 t +="&page=" + e.data.currentPage, 67 t +="&page=" + e.data.currentPage,
68 a.request(t, 68 a.request(t,
69 function(t) { 69 function(t) {
  70 + e.setData({is_go:1});
70 e.data.currentPage++, null == e.data.allData && (e.data.allData = Object.assign({}, t.data.result)), 71 e.data.currentPage++, null == e.data.allData && (e.data.allData = Object.assign({}, t.data.result)),
71 wx.stopPullDownRefresh(); 72 wx.stopPullDownRefresh();
72 }, 73 },
pages/goods/goodsList/goodsList.wxml
@@ -42,7 +42,7 @@ @@ -42,7 +42,7 @@
42 </view> 42 </view>
43 </navigator> 43 </navigator>
44 </view> 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 <image class="cart-image" src="{{iurl}}/miniapp/images/cart-null.png"></image> 46 <image class="cart-image" src="{{iurl}}/miniapp/images/cart-null.png"></image>
47 <view class="no-data-title">没有相关的数据</view> 47 <view class="no-data-title">没有相关的数据</view>
48 <navigator class="lookat" openType="switchTab" url="/pages/index/index/index"> 去逛逛 </navigator> 48 <navigator class="lookat" openType="switchTab" url="/pages/index/index/index"> 去逛逛 </navigator>