Browse Source

no message

feature/v1.0
xpz2018 5 years ago
parent
commit
eb1b0e9b4a
2 changed files with 6 additions and 6 deletions
  1. 8
      pages/message/index/index.js
  2. 4
      pages/message/index/index.wxml

8
pages/message/index/index.js

@ -18,7 +18,7 @@ Component({
firstShow: false, firstShow: false,
tabIndex: 0, tabIndex: 0,
tabList: [], tabList: [],
loading: true,
loading: false,
requesting: false, requesting: false,
finished: false, finished: false,
top: 0, top: 0,
@ -41,7 +41,7 @@ Component({
} }
this.setData({ height: app.globalData.safeFragmentHeight - 100, CustomBar: app.globalData.CustomBar }) this.setData({ height: app.globalData.safeFragmentHeight - 100, CustomBar: app.globalData.CustomBar })
// this.fetchCategoryList() // this.fetchCategoryList()
// this.fetchOrderList()
// this.fetchList()
this.data.firstShow = true this.data.firstShow = true
}, },
onEvent: function (message) { onEvent: function (message) {
@ -69,9 +69,9 @@ Component({
loading: true, loading: true,
finished: false finished: false
}) })
this.fetchOrderList()
this.fetchList()
}, },
fetchOrderList: function () {
fetchList: function () {
if (this.data.requesting || this.data.finished) { if (this.data.requesting || this.data.finished) {
return return
} }

4
pages/message/index/index.wxml

@ -3,7 +3,7 @@
<view slot="content" style="color:black;font-size:36rpx">消息</view> <view slot="content" style="color:black;font-size:36rpx">消息</view>
</cu-custom> </cu-custom>
<refresh-view bind:refresh="onRefreshList" height="{{height}}" triggered="{{requesting}}" scrollTop="{{top}}" bind:scrolltolower="fetchOrderList">
<refresh-view bind:refresh="onRefreshList" height="{{height}}" triggered="{{requesting}}" scrollTop="{{top}}" bind:scrolltolower="fetchList">
<!-- <van-search disabled shape="round" placeholder="请输入要搜索的商品" bindtap="searchList"/> --> <!-- <van-search disabled shape="round" placeholder="请输入要搜索的商品" bindtap="searchList"/> -->
<view class="list-empty" style="height:{{height}}rpx" wx:if="{{!orderList.length}}"> <view class="list-empty" style="height:{{height}}rpx" wx:if="{{!orderList.length}}">
<view style="margin-bottom:24px" wx:if="{{loading}}"> <view style="margin-bottom:24px" wx:if="{{loading}}">
@ -17,7 +17,7 @@
<view class="bg-white" style="padding:0rpx 32rpx" wx:if="{{pageIndex>0}}"> <view class="bg-white" style="padding:0rpx 32rpx" wx:if="{{pageIndex>0}}">
<view style="height:2rpx;background-color:#f3f3f3"></view> <view style="height:2rpx;background-color:#f3f3f3"></view>
</view> </view>
<good-item dataList="{{pageItem}}"></good-item>
<!-- <good-item dataList="{{pageItem}}"></good-item> -->
</view> </view>
<!--加载更多的UI--> <!--加载更多的UI-->
<van-divider content-position="center" wx:if="{{ form.pageNum > 1}}" custom-style="padding:0rpx 120rpx"> <van-divider content-position="center" wx:if="{{ form.pageNum > 1}}" custom-style="padding:0rpx 120rpx">

Loading…
Cancel
Save