Commit 3a61c5b416578e43e82648b97bc690bfdbdcd9f6
1 parent
de97d874
优化分页控件
Showing
2 changed files
with
3 additions
and
3 deletions
pages/goods/categoryList/categoryList.js
@@ -726,12 +726,12 @@ Page({ | @@ -726,12 +726,12 @@ Page({ | ||
726 | 726 | ||
727 | } else { | 727 | } else { |
728 | //没有数据页面显示暂无数据 | 728 | //没有数据页面显示暂无数据 |
729 | - | ||
730 | if (page != 1) { | 729 | if (page != 1) { |
731 | var dataArray = s.data.one_level_classify | 730 | var dataArray = s.data.one_level_classify |
732 | var index = s.data.index | 731 | var index = s.data.index |
733 | console.log(dataArray[index + 1]['items']) | 732 | console.log(dataArray[index + 1]['items']) |
734 | s.setData({ | 733 | s.setData({ |
734 | + msgStatus: true, | ||
735 | stylePage: 1, | 735 | stylePage: 1, |
736 | index: index + 1, | 736 | index: index + 1, |
737 | select_classify_on: index + 1, | 737 | select_classify_on: index + 1, |
pages/goods/categoryList/categoryList.wxml
@@ -377,9 +377,9 @@ | @@ -377,9 +377,9 @@ | ||
377 | 377 | ||
378 | <!-- <view class="null" style="width:100%;margin-top:70rpx;"></view> --> | 378 | <!-- <view class="null" style="width:100%;margin-top:70rpx;"></view> --> |
379 | <scroll-view scroll-y bindscrolltolower='scrollLower' style="height:{{windowHeight}};position:absolute;margin-top:70rpx;top:120rpx;bottom:0;rigth:0;left:26%;width:73%;"> | 379 | <scroll-view scroll-y bindscrolltolower='scrollLower' style="height:{{windowHeight}};position:absolute;margin-top:70rpx;top:120rpx;bottom:0;rigth:0;left:26%;width:73%;"> |
380 | - <!-- <view class="null" style="width:100%;height:29px;"></view> --> | 380 | + <view class="null" style="width:100%;height:1px;"></view> |
381 | <!-- goodslist --> | 381 | <!-- goodslist --> |
382 | - <view class="choice_list"> | 382 | + <view class="choice_list" style="height:{{msgStatus != true?'100%':''}}"> |
383 | <navigator class="choice_item" url="/pages/goods/goodsInfo/goodsInfo?goods_id={{item.goods_id}}" wx:for="{{requestData}}" wx:key="{{index}}"> | 383 | <navigator class="choice_item" url="/pages/goods/goodsInfo/goodsInfo?goods_id={{item.goods_id}}" wx:for="{{requestData}}" wx:key="{{index}}"> |
384 | <view class="img-wrap"> | 384 | <view class="img-wrap"> |
385 | <image src="{{item.original_img}}" binderror="bind_bnerr2" data-url="{{url+item.original_img}}" lazy-load="true" data-errorimg="requestData[{{index}}].original_img"></image> | 385 | <image src="{{item.original_img}}" binderror="bind_bnerr2" data-url="{{url+item.original_img}}" lazy-load="true" data-errorimg="requestData[{{index}}].original_img"></image> |