Commit af83f1fc by luyt

fix:隐藏分页

1 parent 943afd83
......@@ -37,7 +37,7 @@
<button></button>
</view> -->
<!-- 用于图片加载事件 -->
<!-- <image class="img" src="{{IMG_URL}}index/longpic{{actNum+1}}.png" bindload="onloadFn" /> -->
<!-- <image class="img" webp src="{{IMG_URL}}index/longpic{{actNum+1}}.png" bindload="onloadFn" /> -->
<view class="btns-wrap" wx:if="{{isShow}}">
<view class="top">
<view class="btn" wx:for="{{btnList}}" wx:key="name" bindtap="handleClick" data-index="{{index}}">
......
......@@ -95,9 +95,10 @@ Page({
isShow: false,
// 看线索部分
unreadClueCount: 0,
cluePageSize: 10,
cluePageSize: 1000,
clueCurrentPage: 1,
disLikeFlag: true
disLikeFlag: true,
clueParams:{} //看线索参数
},
//引导图
......@@ -479,6 +480,7 @@ Page({
onReady: function () {
this.prompt = this.selectComponent('#toast')
},
//点击收藏
showToast: function (e) {
wx.$storage.set('disLikeRecordFlag', false)
let disLikeRecordFlag = wx.$storage.get('disLikeRecordFlag')
......@@ -660,14 +662,16 @@ Page({
}
return item
})
let concatArr = []
if(arr.length > 0) {
concatArr = clueList.concat(arr)
//添加分页数据
// let concatArr = []
// if(arr.length > 0) {
// concatArr = clueList.concat(arr)
}
// }
this.setData({
clueList: concatArr
clueList: arr
})
let arrinx = arr.findIndex(e => e.clueType == 1 && e.starTag == 0)
this.setData({
......@@ -677,9 +681,19 @@ Page({
},
//喜欢收藏功能
async getTagApi(param) {
let {clueParams} = this.data
let res = await tagApi(param)
console.log('res: ', res)
this.getPageApi(param)
console.log('res: ', res)
if(res.code == 0){
let clueListPamas = {
...param,
...clueParams
}
this.getPageApi(clueListPamas)
}
},
onReachBottom() {
console.log('滑到底部了')
......
......@@ -72,7 +72,8 @@
<image class="point" wx:if="{{index != 3}}" src="{{item['selectIndex']!=2&&index != 3? IMAGES.actArrow : IMAGES.arrow}}" />
</view>
</view>
<scroll-view scroll-y="true" class="list-wrap" bindscrolltolower="scrolltolowerFn">
<!-- bindscrolltolower="scrolltolowerFn" -->
<scroll-view scroll-y="true" class="list-wrap" >
<view class="list" hover-class="none" hover-stop-propagation="false">
<view class="msg" wx:for="{{clueList}}" wx:key="index">
<!-- 门店助手 -->
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!