Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas_plus
/
business-assistant
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit af83f1fc
authored
Oct 30, 2022
by
luyt
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
fix:隐藏分页
1 parent
943afd83
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
26 additions
and
11 deletions
pages/checkProduct/checkProduct.wxml
pages/tab/index/index.js
pages/tab/index/index.wxml
pages/checkProduct/checkProduct.wxml
View file @
af83f1f
...
...
@@ -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}}">
...
...
pages/tab/index/index.js
View file @
af83f1f
...
...
@@ -95,9 +95,10 @@ Page({
isShow
:
false
,
// 看线索部分
unreadClueCount
:
0
,
cluePageSize
:
10
,
cluePageSize
:
10
00
,
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
:
concatA
rr
clueList
:
a
rr
})
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
(
'滑到底部了'
)
...
...
pages/tab/index/index.wxml
View file @
af83f1f
...
...
@@ -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">
<!-- 门店助手 -->
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment