Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Sign in
Toggle navigation
X
xzf_uniapp-wechat-web
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
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
李智书
xzf_uniapp-wechat-web
Commits
7fb39e95
Commit
7fb39e95
authored
Nov 25, 2024
by
袁玲利
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'v_req_11.2' into uat
parents
6750e8b4
ef75ba86
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
26 additions
and
17 deletions
+26
-17
src/pages/gameOrder/gameOrder.vue
src/pages/gameOrder/gameOrder.vue
+26
-17
No files found.
src/pages/gameOrder/gameOrder.vue
View file @
7fb39e95
...
...
@@ -115,7 +115,20 @@ export default {
second
:
0
,
};
},
onShow
()
{
uni
.
$on
(
"
refreshPage
"
,
(
data
)
=>
{
console
.
log
(
data
,
"
ttttttttttttt
"
);
if
(
data
.
reload
)
{
this
.
init
();
}
});
},
mounted
()
{
this
.
init
();
},
methods
:
{
init
()
{
const
self
=
this
;
this
.
games
.
sort
(()
=>
0.5
-
Math
.
random
());
this
.
params
.
userid
=
...
...
@@ -132,12 +145,6 @@ export default {
if
(
this
.
params
.
sessionid
)
{
uni
.
setStorageSync
(
"
sessionid
"
,
this
.
params
.
sessionid
);
}
this
.
init
();
},
methods
:
{
init
()
{
const
self
=
this
;
this
.
timer
=
setInterval
(()
=>
{
this
.
second
+=
1
;
if
(
this
.
second
==
5
)
{
...
...
@@ -255,6 +262,8 @@ export default {
clearInterval
(
this
.
timer
);
this
.
timer
=
null
;
}
// 移除监听,避免内存泄露
uni
.
$off
(
"
refreshPage
"
);
},
};
</
script
>
...
...
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