Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
H
hls-xcmg-vue-app
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
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
xugong
hls-xcmg-vue-app
Commits
8c7629a2
Commit
8c7629a2
authored
Feb 26, 2020
by
linxin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add
parent
03d31774
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
1 deletion
+21
-1
my-info.vue
src/pages/myInfo/my-info.vue
+21
-1
No files found.
src/pages/myInfo/my-info.vue
View file @
8c7629a2
...
@@ -988,6 +988,22 @@ export default {
...
@@ -988,6 +988,22 @@ export default {
}
}
})
})
},
},
loadstartCallback
(
event
)
{
console
.
log
(
'Loading started: '
+
event
.
url
)
},
loadstopCallback
(
event
)
{
console
.
log
(
'Loading finished: '
+
event
.
url
)
},
loaderrorCallback
(
error
)
{
console
.
log
(
'Loading error: '
+
error
.
message
)
},
exitCallback
()
{
console
.
log
(
'Browser is closed...'
)
},
// 认证入口
// 认证入口
async
certification
()
{
async
certification
()
{
let
vm
=
this
let
vm
=
this
...
@@ -1002,7 +1018,11 @@ export default {
...
@@ -1002,7 +1018,11 @@ export default {
const
isiOS
=
!!
u
.
match
(
/
\(
i
[^
;
]
+;
(
U;
)?
CPU.+Mac OS X/
)
const
isiOS
=
!!
u
.
match
(
/
\(
i
[^
;
]
+;
(
U;
)?
CPU.+Mac OS X/
)
if
(
isiOS
)
{
if
(
isiOS
)
{
let
ref
=
cordova
.
InAppBrowser
.
open
(
authUrl
,
'_blank'
,
'location=yes'
)
let
ref
=
cordova
.
InAppBrowser
.
open
(
authUrl
,
'_blank'
,
'location=yes'
)
ref
.
addEventListener
(
'exit'
,
vm
.
userQuery
())
ref
.
addEventListener
(
'loadstart'
,
vm
.
loadstartCallback
())
ref
.
addEventListener
(
'loadstop'
,
vm
.
loadstopCallback
())
ref
.
addEventListener
(
'loadloaderror'
,
vm
.
loaderrorCallback
())
ref
.
addEventListener
(
'exit'
,
vm
.
exitCallback
())
// ref.addEventListener('exit', vm.userQuery())
console
.
log
(
'ios'
)
console
.
log
(
'ios'
)
}
else
{
}
else
{
vm
.
$router
.
push
({
vm
.
$router
.
push
({
...
...
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