Commit af83f1fc by luyt

fix:隐藏分页

1 parent 943afd83
...@@ -37,7 +37,7 @@ ...@@ -37,7 +37,7 @@
<button></button> <button></button>
</view> --> </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="btns-wrap" wx:if="{{isShow}}">
<view class="top"> <view class="top">
<view class="btn" wx:for="{{btnList}}" wx:key="name" bindtap="handleClick" data-index="{{index}}"> <view class="btn" wx:for="{{btnList}}" wx:key="name" bindtap="handleClick" data-index="{{index}}">
......
...@@ -95,9 +95,10 @@ Page({ ...@@ -95,9 +95,10 @@ Page({
isShow: false, isShow: false,
// 看线索部分 // 看线索部分
unreadClueCount: 0, unreadClueCount: 0,
cluePageSize: 10, cluePageSize: 1000,
clueCurrentPage: 1, clueCurrentPage: 1,
disLikeFlag: true disLikeFlag: true,
clueParams:{} //看线索参数
}, },
//引导图 //引导图
...@@ -479,6 +480,7 @@ Page({ ...@@ -479,6 +480,7 @@ Page({
onReady: function () { onReady: function () {
this.prompt = this.selectComponent('#toast') this.prompt = this.selectComponent('#toast')
}, },
//点击收藏
showToast: function (e) { showToast: function (e) {
wx.$storage.set('disLikeRecordFlag', false) wx.$storage.set('disLikeRecordFlag', false)
let disLikeRecordFlag = wx.$storage.get('disLikeRecordFlag') let disLikeRecordFlag = wx.$storage.get('disLikeRecordFlag')
...@@ -660,14 +662,16 @@ Page({ ...@@ -660,14 +662,16 @@ Page({
} }
return item return item
}) })
let concatArr = []
if(arr.length > 0) {
concatArr = clueList.concat(arr)
} //添加分页数据
// let concatArr = []
// if(arr.length > 0) {
// concatArr = clueList.concat(arr)
// }
this.setData({ this.setData({
clueList: concatArr clueList: arr
}) })
let arrinx = arr.findIndex(e => e.clueType == 1 && e.starTag == 0) let arrinx = arr.findIndex(e => e.clueType == 1 && e.starTag == 0)
this.setData({ this.setData({
...@@ -677,9 +681,19 @@ Page({ ...@@ -677,9 +681,19 @@ Page({
}, },
//喜欢收藏功能 //喜欢收藏功能
async getTagApi(param) { async getTagApi(param) {
let {clueParams} = this.data
let res = await tagApi(param) let res = await tagApi(param)
console.log('res: ', res) console.log('res: ', res)
this.getPageApi(param)
if(res.code == 0){
let clueListPamas = {
...param,
...clueParams
}
this.getPageApi(clueListPamas)
}
}, },
onReachBottom() { onReachBottom() {
console.log('滑到底部了') console.log('滑到底部了')
......
...@@ -72,7 +72,8 @@ ...@@ -72,7 +72,8 @@
<image class="point" wx:if="{{index != 3}}" src="{{item['selectIndex']!=2&&index != 3? IMAGES.actArrow : IMAGES.arrow}}" /> <image class="point" wx:if="{{index != 3}}" src="{{item['selectIndex']!=2&&index != 3? IMAGES.actArrow : IMAGES.arrow}}" />
</view> </view>
</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="list" hover-class="none" hover-stop-propagation="false">
<view class="msg" wx:for="{{clueList}}" wx:key="index"> <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!