Commit 2dd9f62f by chenwq

我的门店触底加载

1 parent 51b89e18
......@@ -257,9 +257,10 @@ Component({
})
},
getMerchantList(isReset = false) {
console.log('getMerchantList---')
let { userInfo } = wx.$storage.get()
let { searchForm, merchantList, isAsk } = this.data
if (isAsk) {
let { searchForm, merchantList, isAsk, isEnd } = this.data
if (isAsk || isEnd) {
return true
}
this.setData({
......
......@@ -5,7 +5,7 @@
// padding-top: 16rpx;
background-color: #F2F3F7;
height: 100%;
padding: 0 16rpx;
padding: 0 16rpx 10rpx;
}
.btn-box {
......
<!--pages/tab/outputValue/components/merchant/merchant.wxml-->
<scroll-view class="merchant" id="scroller" scroll-y="{{true}}" refresher-enabled="{{true}}" refresher-triggered="{{triggered}}" bindrefresherrefresh="merchantRefresh" lower-threshold='50' scroll-top="{{busiScrollTop}}">
<scroll-view class="merchant" id="scroller" scroll-y enable-back-to-top refresher-enabled="{{true}}" refresher-triggered="{{triggered}}" bindrefresherrefresh="merchantRefresh" refresher-threshold="104" scroll-top="{{scrollTop}}" bindscrolltolower="getMore">
<!-- 全部 - 服务商总产值 -->
<service-total wx:if="{{merchantList.length}}" serviceName="{{serviceName}}" totalObj="{{totalObj}}"></service-total>
<view wx:for="{{merchantList}}" wx:key="index">
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!