刘翔宇-旅管家 3 years ago
parent 2efcb58396
commit be27a5c4f8

@ -43,7 +43,7 @@
<view class="shop">
<image class="pic" src="../../static/shop-logo.png"></image>
<view class="infos">
<view class="name">{{info.merchant.name}}</view>
<view class="name">{{info.merchant.username}}</view>
<view class="date-txt">周一至周日 09:00-18:00</view>
<view class="txt">{{info.merchant.address}}</view>
</view>
@ -51,7 +51,7 @@
</view>
<view class="details">
<view class="detail">
<view class="tit">商品详</view>
<view class="tit" v-if="false"></view>
<view class="txts">
<u-parse :html="info.content"></u-parse>
</view>

@ -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(); // < ,

@ -29,7 +29,7 @@
<view class="date">{{item.end_at}}</view>
</view>
<view class="title">{{item.name}}</view>
<view class="subTit">{{item.merchant.name}}</view>
<view class="subTit">{{item.merchant.username}}</view>
<view class="price">
<text class="font_red">{{item.price > 0 ? `${item.price}` : '免费'}}</text>
</view>

Loading…
Cancel
Save