Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas_plus
/
supervisor-miniprogram
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 14680dae
authored
Mar 26, 2026
by
zhangxw
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
工作台吸顶体验优化
1 parent
8d6f8646
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
14 deletions
pages/tab/index/index.js
pages/tab/index/index.js
View file @
14680da
...
@@ -216,20 +216,20 @@ Page({
...
@@ -216,20 +216,20 @@ Page({
[
`list[
${
pageNum
-
1
}
]`
]:
list
[
`list[
${
pageNum
-
1
}
]`
]:
list
})
})
}
}
if
(
repload
)
{
//
if (repload) {
const
query
=
wx
.
createSelectorQuery
().
in
(
this
)
//
const query = wx.createSelectorQuery().in(this)
query
.
select
(
'.top-box'
).
boundingClientRect
()
//
query.select('.top-box').boundingClientRect()
query
.
exec
(
res
=>
{
//
query.exec(res => {
let
topBoxHeight
=
res
[
0
].
height
//
let topBoxHeight = res[0].height
if
(
scrollTop
>=
topBoxHeight
)
{
//
if (scrollTop >= topBoxHeight) {
setTimeout
(()
=>
{
//
setTimeout(() => {
this
.
setData
({
//
this.setData({
setScrollTop
:
topBoxHeight
//
setScrollTop: topBoxHeight
})
//
})
},
200
)
//
}, 200)
}
//
}
})
//
})
}
//
}
this
.
setData
({
this
.
setData
({
total
,
total
,
flag
:
true
,
flag
:
true
,
...
...
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