|
|
|
|
@ -52,7 +52,7 @@
|
|
|
|
|
</view>
|
|
|
|
|
</view>
|
|
|
|
|
<view class="subInfo">{{item.merchant.address}}</view>
|
|
|
|
|
<view class="menu"><text class="hui">惠</text>{{item.merchant.name}}</view>
|
|
|
|
|
<view class="menu"><text class="hui">惠</text>{{item.merchant.username}}</view>
|
|
|
|
|
</view>
|
|
|
|
|
</view>
|
|
|
|
|
</block>
|
|
|
|
|
@ -97,13 +97,16 @@
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
onReachBottom: function(e) {
|
|
|
|
|
if (!isLoading)
|
|
|
|
|
if (!this.isLoading) {
|
|
|
|
|
console.log("onReachBottom", this.currentPage + 1)
|
|
|
|
|
this.loadPage(this.currentPage + 1);
|
|
|
|
|
this.loadPage(this.currentPage + 1);
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
onPullDownRefresh: function(e) {
|
|
|
|
|
console.log("onPullDownRefresh", this.currentPage + 1)
|
|
|
|
|
this.loadPage(1);
|
|
|
|
|
if (!this.isLoading) {
|
|
|
|
|
this.loadPage(this.currentPage + 1);
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
onLoad(options) {
|
|
|
|
|
//获取系统信息 具体信息请转至 https://uniapp.dcloud.io/api/system/info
|
|
|
|
|
@ -172,7 +175,8 @@
|
|
|
|
|
var res = r.data.data;
|
|
|
|
|
|
|
|
|
|
that.isLoading = false;
|
|
|
|
|
var hasNoMore = that.dataList.length < 6 && page > 1;
|
|
|
|
|
var hasNoMore = r.data.total < 6 && page > 1;
|
|
|
|
|
console.log("hasNoMore", hasNoMore)
|
|
|
|
|
if (hasNoMore || res.length == 0 && page > 1) {
|
|
|
|
|
|
|
|
|
|
uni.stopPullDownRefresh(); // 服务器总条数 < 每页条数, 会将第一页的条数重新返回
|
|
|
|
|
|