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
8ff02282
Commit
8ff02282
authored
Nov 22, 2024
by
袁玲利
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'v_req_11.2' into uat
parents
2d45a297
7c5b634b
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
11 deletions
+7
-11
src/pages/gameOrder/gameOrder.vue
src/pages/gameOrder/gameOrder.vue
+7
-11
No files found.
src/pages/gameOrder/gameOrder.vue
View file @
8ff02282
...
@@ -20,6 +20,12 @@ var gHost = "https://" + window.location.host;
...
@@ -20,6 +20,12 @@ var gHost = "https://" + window.location.host;
if
(
window
.
location
.
protocol
!=
"
https:
"
)
{
if
(
window
.
location
.
protocol
!=
"
https:
"
)
{
gHost
=
"
https://uat-pay.xiaopay.net
"
;
gHost
=
"
https://uat-pay.xiaopay.net
"
;
}
}
window
.
addEventListener
(
'
beforeunload
'
,
function
(
e
)
{
// 在此处添加需要执行的代码
// 例如:发送请求、保存数据等
// 注意:在有些浏览器上,这里不能弹出提示框,只能做些无感知操作
console
.
log
(
'
zzzzzzzzzzzzzzzzzzzzzzz
'
)
});
export
default
{
export
default
{
data
()
{
data
()
{
return
{
return
{
...
@@ -228,7 +234,7 @@ export default {
...
@@ -228,7 +234,7 @@ export default {
});
});
},
},
},
},
onHide
()
{
beforeDestroy
()
{
console
.
log
(
'
111111111
'
)
console
.
log
(
'
111111111
'
)
this
.
params
.
behavior
=
"
viewPage
"
;
this
.
params
.
behavior
=
"
viewPage
"
;
this
.
params
.
data
=
"
closePage
"
;
this
.
params
.
data
=
"
closePage
"
;
...
@@ -238,16 +244,6 @@ export default {
...
@@ -238,16 +244,6 @@ export default {
this
.
timer
=
null
;
this
.
timer
=
null
;
}
}
},
},
beforeRouteLeave
(
to
,
from
,
next
){
console
.
log
(
'
222222222222
'
)
wx
.
miniProgram
.
postMessage
({
data
:
{
cardId
:
0
,
title
:
'
电子名片
'
}
})
next
()
},
};
};
</
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