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
990ee231
Commit
990ee231
authored
Nov 22, 2024
by
袁玲利
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'v_req_11.2' into develop
parents
510f2e22
d03faeeb
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
29 deletions
+4
-29
src/pages.json
src/pages.json
+1
-1
src/pages/gameOrder/gameOrder.vue
src/pages/gameOrder/gameOrder.vue
+3
-28
No files found.
src/pages.json
View file @
990ee231
...
@@ -617,7 +617,7 @@
...
@@ -617,7 +617,7 @@
"path"
:
"pages/gameOrder/gameOrder"
,
"path"
:
"pages/gameOrder/gameOrder"
,
"style"
:
{
"style"
:
{
"navigationStyle"
:
"custom"
,
"navigationStyle"
:
"custom"
,
"navigationBarTitleText"
:
"
游戏排行榜
"
,
"navigationBarTitleText"
:
"
为你推荐
"
,
"enablePullDownRefresh"
:
false
"enablePullDownRefresh"
:
false
}
}
...
...
src/pages/gameOrder/gameOrder.vue
View file @
990ee231
...
@@ -114,19 +114,6 @@ export default {
...
@@ -114,19 +114,6 @@ export default {
};
};
},
},
mounted
()
{
mounted
()
{
const
that
=
this
;
// 监听返回
this
.
pushHistory
();
window
.
addEventListener
(
"
popstate
"
,
function
(
e
)
{
// 为了避免只调用一次
that
.
pushHistory
(
"
title1
"
);
// 自定义方法, 直接关闭网页或返回小程序上一页
that
.
goBack
();
},
false
);
this
.
games
.
sort
(()
=>
0.5
-
Math
.
random
());
this
.
games
.
sort
(()
=>
0.5
-
Math
.
random
());
this
.
params
.
userid
=
this
.
getQueryParams
(
"
userId
"
);
this
.
params
.
userid
=
this
.
getQueryParams
(
"
userId
"
);
this
.
params
.
sessionid
=
this
.
getQueryParams
(
"
sessionid
"
);
this
.
params
.
sessionid
=
this
.
getQueryParams
(
"
sessionid
"
);
...
@@ -136,23 +123,10 @@ export default {
...
@@ -136,23 +123,10 @@ export default {
this
.
init
();
this
.
init
();
},
},
methods
:
{
methods
:
{
// 添加一条 history 实体作为替代原来的 history 实体
pushHistory
(
str
=
"
title
"
,
url
=
"
#
"
)
{
const
state
=
{
title
:
str
,
url
,
};
window
.
history
.
pushState
(
state
,
state
.
title
,
state
.
url
);
},
goBack
()
{
console
.
log
(
'
游戏排行榜的物理返回按钮
'
)
wx
.
miniProgram
.
postMessage
({
data
:
{
behavior
:
'
back
'
}
})
},
init
()
{
init
()
{
const
self
=
this
;
const
self
=
this
;
this
.
timer
=
setInterval
(()
=>
{
this
.
timer
=
setInterval
(()
=>
{
this
.
second
+=
1
;
this
.
second
+=
1
;
console
.
log
(
this
.
second
,
"
xxxxxxxxx
"
);
if
(
this
.
second
==
5
)
{
if
(
this
.
second
==
5
)
{
self
.
params
.
behavior
=
"
duration
"
;
self
.
params
.
behavior
=
"
duration
"
;
self
.
params
.
data
=
"
5s
"
;
self
.
params
.
data
=
"
5s
"
;
...
@@ -254,8 +228,9 @@ export default {
...
@@ -254,8 +228,9 @@ export default {
},
},
},
},
onHide
()
{
onHide
()
{
this
.
params
.
behavior
=
"
viewPage
"
;
console
.
log
(
'
2222
'
)
this
.
params
.
data
=
"
closePage
"
;
this
.
params
.
behavior
=
"
closePage
"
;
this
.
params
.
data
=
"
gameOrder
"
;
this
.
GameStatistics
();
this
.
GameStatistics
();
if
(
this
.
timer
!==
null
)
{
if
(
this
.
timer
!==
null
)
{
clearInterval
(
this
.
timer
);
clearInterval
(
this
.
timer
);
...
...
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