Commit 792332be8f416a78cec63bdb5538c8a37c3711b1
1 parent
3a61c5b4
优化分页控件
Showing
2 changed files
with
5 additions
and
6 deletions
pages/goods/categoryList/categoryList.js
@@ -768,7 +768,7 @@ Page({ | @@ -768,7 +768,7 @@ Page({ | ||
768 | console.log("dataArray[index + 1] = undefined") | 768 | console.log("dataArray[index + 1] = undefined") |
769 | s.setData({ | 769 | s.setData({ |
770 | stylePage: 1, | 770 | stylePage: 1, |
771 | - msgStatus: false, | 771 | + msgStatus: true, |
772 | lastMsg: true | 772 | lastMsg: true |
773 | }); | 773 | }); |
774 | }else{ | 774 | }else{ |
pages/goods/categoryList/categoryList.wxml
@@ -461,13 +461,12 @@ | @@ -461,13 +461,12 @@ | ||
461 | </view> | 461 | </view> |
462 | <view class="no-data" wx:if="{{msgStatus == true}}"> | 462 | <view class="no-data" wx:if="{{msgStatus == true}}"> |
463 | <image class="cart-image" src="{{iurl}}/miniapp/images/cart-null.png"></image> | 463 | <image class="cart-image" src="{{iurl}}/miniapp/images/cart-null.png"></image> |
464 | - <view class="no-data-title">该类别暂无推荐商品 {{countDownNum}} 秒后自动跳到下一个类别</view> | 464 | + |
465 | + <view wx:if="{{msgStatus == true && lastMsg == false}}" class="no-data-title">该类别暂无推荐商品 {{countDownNum}} 秒后自动跳到下一个类别</view> | ||
466 | + <view wx:elif="{{lastMsg == true && msgStatus == true}}" class="no-data-title">该类别暂无推荐商品</view> | ||
465 | <!-- <navigator class="lookat" openType="switchTab" url="/pages/index/index/index"> 去逛逛 </navigator> --> | 467 | <!-- <navigator class="lookat" openType="switchTab" url="/pages/index/index/index"> 去逛逛 </navigator> --> |
466 | </view> | 468 | </view> |
467 | - <view class="no-data" wx:if="{{lastMsg == true}}"> | ||
468 | - <image class="cart-image" src="{{iurl}}/miniapp/images/cart-null.png"></image> | ||
469 | - <view class="no-data-title">该类别暂无推荐商品</view> | ||
470 | - </view> | 469 | + |
471 | </scroll-view> | 470 | </scroll-view> |
472 | <!-- /goodslist --> | 471 | <!-- /goodslist --> |
473 | </view> | 472 | </view> |