Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas
/
uplus-fapai-mp
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 8fe11545
authored
Apr 26, 2026
by
chenwq
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
优化页面滚动逻辑,新增返回顶部功能
1 parent
6955f4ea
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
0 deletions
pages/tab/index/index.js
pages/tab/index/index.wxml
pages/tab/index/index.js
View file @
8fe1154
...
@@ -23,6 +23,7 @@ Page({
...
@@ -23,6 +23,7 @@ Page({
isRefreshing
:
false
,
isRefreshing
:
false
,
isLastPage
:
false
,
isLastPage
:
false
,
isLoading
:
false
,
isLoading
:
false
,
scrollTop
:
0
,
statusMap
,
statusMap
,
tabsList
:
[
tabsList
:
[
{
title
:
"全部"
,
name
:
"all"
},
{
title
:
"全部"
,
name
:
"all"
},
...
@@ -57,6 +58,9 @@ Page({
...
@@ -57,6 +58,9 @@ Page({
});
});
}
}
// 返回顶部
this
.
setData
({
scrollTop
:
0
});
// 列表曝光埋点
// 列表曝光埋点
if
(
wx
.
$Track
&&
wx
.
$Track
.
reportEvent
)
{
if
(
wx
.
$Track
&&
wx
.
$Track
.
reportEvent
)
{
wx
.
$Track
.
reportEvent
(
"liebiao_puguang"
);
wx
.
$Track
.
reportEvent
(
"liebiao_puguang"
);
...
...
pages/tab/index/index.wxml
View file @
8fe1154
...
@@ -40,6 +40,7 @@
...
@@ -40,6 +40,7 @@
</view>
</view>
<scroll-view
<scroll-view
scroll-y
scroll-y
scroll-top="{{scrollTop}}"
enable-back-to-top
enable-back-to-top
refresher-enabled="{{ true }}"
refresher-enabled="{{ true }}"
bindrefresherrefresh="onRefresh"
bindrefresherrefresh="onRefresh"
...
...
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