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
c186e1d7
Commit
c186e1d7
authored
Nov 25, 2024
by
袁玲利
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
游戏排行榜缓存userid和sessionid
parent
199c9981
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
6 deletions
+8
-6
src/pages/gameOrder/gameOrder.vue
src/pages/gameOrder/gameOrder.vue
+8
-6
No files found.
src/pages/gameOrder/gameOrder.vue
View file @
c186e1d7
...
@@ -117,12 +117,12 @@ export default {
...
@@ -117,12 +117,12 @@ export default {
},
},
mounted
()
{
mounted
()
{
this
.
games
.
sort
(()
=>
0.5
-
Math
.
random
());
this
.
games
.
sort
(()
=>
0.5
-
Math
.
random
());
if
(
this
.
getQueryParams
(
"
userId
"
))
{
this
.
params
.
userid
=
this
.
getQueryParams
(
"
userId
"
);
this
.
params
.
userid
=
}
this
.
getQueryParams
(
"
userId
"
)
||
uni
.
getStorageSync
(
"
userid
"
);
if
(
this
.
getQueryParams
(
"
sessionid
"
))
{
this
.
params
.
sessionid
=
this
.
params
.
sessionid
=
this
.
getQueryParams
(
"
sessionid
"
);
this
.
getQueryParams
(
"
sessionid
"
)
||
uni
.
getStorageSync
(
"
sessionid
"
);
}
this
.
params
.
behavior
=
"
viewPage
"
;
this
.
params
.
behavior
=
"
viewPage
"
;
this
.
params
.
data
=
"
gameOrder
"
;
this
.
params
.
data
=
"
gameOrder
"
;
this
.
GameStatistics
();
this
.
GameStatistics
();
...
@@ -242,6 +242,8 @@ export default {
...
@@ -242,6 +242,8 @@ export default {
clearInterval
(
this
.
timer
);
clearInterval
(
this
.
timer
);
this
.
timer
=
null
;
this
.
timer
=
null
;
}
}
uni
.
setStorageSync
(
"
userid
"
,
this
.
params
.
userid
);
uni
.
setStorageSync
(
"
sessionid
"
,
this
.
params
.
sessionid
);
},
},
};
};
</
script
>
</
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