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 117b3a22
authored
Oct 29, 2022
by
luyt
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
feat:分页添加
1 parent
85b4276d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
3 deletions
pages/tab/index/index.js
pages/tab/index/index.js
View file @
117b3a2
...
...
@@ -525,6 +525,7 @@ Page({
this
.
getTagApi
(
params
)
},
filterTypeFn
(
e
)
{
let
{
typeList
}
=
this
.
data
let
index
=
e
.
currentTarget
.
dataset
.
index
// console.log('index: ', index);
...
...
@@ -543,6 +544,8 @@ Page({
this
.
setData
({
typeList
})
//重置数据
this
.
clearclueData
()
return
this
.
getPageApi
()
}
...
...
@@ -552,6 +555,9 @@ Page({
wx
.
pro
.
showActionSheet
({
itemList
,
success
(
res
)
{
//重置数据
_this
.
clearclueData
()
// 选中全部
let
selectIndex
=
res
.
tapIndex
// console.log('selectIndex: ', selectIndex);
...
...
@@ -593,8 +599,7 @@ Page({
// break
// }
// 清空数据
_this
.
setData
({
typeList
,
clueParams
:
params
,
clueList
:[]})
_this
.
setData
({
typeList
,
clueParams
:
params
})
_this
.
getPageApi
(
params
)
},
fail
(
res
)
{
...
...
@@ -602,6 +607,16 @@ Page({
}
})
},
//重置数据
clearclueData
(){
this
.
setData
({
clueList
:[],
clueCurrentPage
:
1
,
// hasPhone: '',
// starTag: '',
// clueSource: '',
})
},
// 打电话
phoneCallFn
(
e
)
{
let
{
phone
}
=
e
.
currentTarget
.
dataset
...
...
@@ -738,7 +753,11 @@ Page({
*/
onPullDownRefresh
:
function
()
{
// console.log('onPullDownRefresh: ');
this
.
onLoad
()
let
{
clueParams
}
=
this
.
data
this
.
clearclueData
()
this
.
getClueInit
(
clueParams
)
// this.onLoad()
wx
.
pro
.
showToast
({
title
:
'刷新成功'
,
icon
:
'loading'
,
...
...
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