Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
梁建民
/
scm_app
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
f57241f2
authored
Apr 20, 2026
by
liangjianmin
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
add
parent
3fe5901f
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
4 deletions
pages/home/index.vue
pages/home/index.vue
View file @
f57241f2
...
@@ -122,8 +122,7 @@
...
@@ -122,8 +122,7 @@
};
};
},
},
onShow
()
{
onShow
()
{
this
.
getData
();
this
.
loadHomeData
();
this
.
getStayHandleCount
();
},
},
/**
/**
* 下拉刷新
* 下拉刷新
...
@@ -132,11 +131,21 @@
...
@@ -132,11 +131,21 @@
// #ifdef APP-PLUS
// #ifdef APP-PLUS
uni
.
vibrateShort
();
uni
.
vibrateShort
();
// #endif
// #endif
Promise
.
all
([
this
.
getData
(),
this
.
getStayHandleCount
()]).
finally
(()
=>
{
this
.
loadHomeData
(
true
);
},
methods
:
{
/**
* 统一加载首页数据
* @param {Boolean} needStopRefresh 是否需要结束下拉刷新
* @return {Promise}
*/
loadHomeData
(
needStopRefresh
=
false
)
{
return
Promise
.
allSettled
([
this
.
getData
(),
this
.
getStayHandleCount
()]).
finally
(()
=>
{
if
(
needStopRefresh
)
{
uni
.
stopPullDownRefresh
();
uni
.
stopPullDownRefresh
();
}
});
});
},
},
methods
:
{
/**
/**
* 获取首页统计数据
* 获取首页统计数据
* @return {Promise}
* @return {Promise}
...
...
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