Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
cust-app
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
李伟
cust-app
Commits
b4833a23
Commit
b4833a23
authored
Jan 17, 2025
by
liwei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
增加了下拉刷新以及回到顶部功能
parent
7db0d8c6
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
3 deletions
+11
-3
List.vue
pages/components/article/List.vue
+9
-1
article.vue
pages/tab/article.vue
+2
-2
No files found.
pages/components/article/List.vue
View file @
b4833a23
...
...
@@ -12,7 +12,7 @@
'top': '210rpx',
'width': '447rpx',
'height': '375rpx'
}" v-model="dataList" @query="queryList" :fixed="false">
}" v-model="dataList" @query="queryList" :fixed="false"
@onRefresh="onRefresh" auto-show-back-to-top="true"
>
<view
v-if=
"currentIndex == '2'"
>
<u-tabs
ref=
"tabs"
:list=
"topicList"
font-size=
"30"
:current=
"current"
@
click=
"tabClick"
:activeStyle=
"
{
...
...
@@ -106,6 +106,14 @@
},
},
methods
:
{
// 下拉刷新被触发
onRefresh
()
{
// 告知z-paging下拉刷新结束,这样才可以开始下一次的下拉刷新
setTimeout
(()
=>
{
// 1.5秒之后停止刷新动画
this
.
reload
()
},
1500
)
},
//tab标签点击
tabClick
({
id
})
{
this
.
topicId
=
id
...
...
pages/tab/article.vue
View file @
b4833a23
...
...
@@ -199,8 +199,8 @@
width
:
90rpx
;
height
:
90rpx
;
position
:
fixed
;
bottom
:
10
0rpx
;
right
:
56
rpx
;
bottom
:
2
0rpx
;
right
:
30
rpx
;
z-index
:
99
;
box-shadow
:
0rpx
0rpx
24rpx
2rpx
rgba
(
181
,
202
,
252
,
0
.84
);
background
:
#86A6F3
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
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 comment