This commit is contained in:
THK3121 2023-09-25 18:59:53 +08:00
parent b4c35011c7
commit cd678de1a9
4 changed files with 33 additions and 15 deletions

View File

@ -9,7 +9,8 @@
<view class="head_tit">
<view class="" style="display: flex;align-items: center;">
<view class="back" @click='backjJump()' style="margin-right:17rpx ;">
<view class="iconfont icon-xiangzuo" style="color: #333333;"></view>
<u--image :showLoading="true" src="/static/images/LHYC/PFH.png" width="50.82rpx"
height="50.82rpx"></u--image>
</view>
<view style="font-size: 40rpx;font-weight: 700;transform: skewX(-10deg);">
<!-- {{titName}} -->

View File

@ -9,7 +9,8 @@
<view class="head_tit">
<view class="" style="display: flex;align-items: center;">
<view class="back" @click='backjJump()' style="margin-right: 17rpx;">
<view class="iconfont icon-xiangzuo" style="color: #333333;"></view>
<u--image :showLoading="true" src="/static/images/LHYC/PFH.png" width="50.82rpx"
height="50.82rpx"></u--image>
</view>
<view style="font-size: 40rpx;font-weight: 700;transform: skewX(-10deg);">
<!-- {{titName}} -->

View File

@ -141,7 +141,7 @@
</view>
<u-loadmore :status="status" />
</view>
<!-- 热搜 -->
@ -414,6 +414,7 @@
menuList: [],
street: "",
showPicker: false,
status: "loadmore",
//
downMenu: [{
title: '默认',
@ -920,19 +921,33 @@
},
//
onReachBottom() {
if (this.count === this.storeList.length) {
if (this.count === 0) {
this.sotreParam.page += 1
let rqData = {
keyword: this.sotreParam.keyword,
page: this.sotreParam.page,
limit: 10,
order: this.sotreParam.order,
category_id: this.sotreParam.category_id,
type_id: this.sotreParam.type_id,
street_id: this.sotreParam.street_id,
credit_buy: this.credit_buy
}
if (this.latitude) {
rqData.location = this.latitude + ',' + this.longitude
}
// console.log(rqData)
storeMerchantList(rqData).then(res => {
if (res.data.list == 0) {
this.status = "nomore"
return
}
uni.showToast({
title: '已加载全部',
icon: 'none',
duration: 1000
});
} else {
this.sotreParam.page += 1
this.storeMerchantList()
}
this.count = res.data.count
this.storeList.push(...res.data.list)
})
}
}

View File

@ -9,7 +9,8 @@
<view class="head_tit">
<view class="" style="display: flex;align-items: center;">
<view class="back" @click='backjJump()' style="margin-right: 17rpx;">
<view class="iconfont icon-xiangzuo" style="color: #333333;"></view>
<u--image :showLoading="true" src="/static/images/LHYC/PFH.png" width="50.82rpx"
height="50.82rpx"></u--image>
</view>
<view style="font-size: 40rpx;font-weight: 700;transform: skewX(-10deg);">
<!-- {{titName}} -->