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 | 726 | |
727 | 727 | } else { |
728 | 728 | //没有数据页面显示暂无数据 |
729 | - | |
730 | 729 | if (page != 1) { |
731 | 730 | var dataArray = s.data.one_level_classify |
732 | 731 | var index = s.data.index |
733 | 732 | console.log(dataArray[index + 1]['items']) |
734 | 733 | s.setData({ |
734 | + msgStatus: true, | |
735 | 735 | stylePage: 1, |
736 | 736 | index: index + 1, |
737 | 737 | select_classify_on: index + 1, | ... | ... |
pages/goods/categoryList/categoryList.wxml
... | ... | @@ -377,9 +377,9 @@ |
377 | 377 | |
378 | 378 | <!-- <view class="null" style="width:100%;margin-top:70rpx;"></view> --> |
379 | 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 | 381 | <!-- goodslist --> |
382 | - <view class="choice_list"> | |
382 | + <view class="choice_list" style="height:{{msgStatus != true?'100%':''}}"> | |
383 | 383 | <navigator class="choice_item" url="/pages/goods/goodsInfo/goodsInfo?goods_id={{item.goods_id}}" wx:for="{{requestData}}" wx:key="{{index}}"> |
384 | 384 | <view class="img-wrap"> |
385 | 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> | ... | ... |