Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
X
XiTianSenMall
Project
Project
Details
Activity
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
leiqingsong
XiTianSenMall
Commits
fd2f8ac3
Commit
fd2f8ac3
authored
4 years ago
by
leiqingsong
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'dev_lqs' into 'master'
修改 See merge request
!75
parents
7fc99ba1
834c8321
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
1 deletion
+12
-1
bridgeToAppFun.js
H5/src/utils/bridgeToAppFun.js
+12
-1
No files found.
H5/src/utils/bridgeToAppFun.js
View file @
fd2f8ac3
...
@@ -64,7 +64,18 @@ class bridgeToAppFun {
...
@@ -64,7 +64,18 @@ class bridgeToAppFun {
console
.
log
(
"返回"
);
console
.
log
(
"返回"
);
if
(
this
.
userAgent
===
"android"
)
{
if
(
this
.
userAgent
===
"android"
)
{
console
.
log
(
"an"
);
console
.
log
(
"an"
);
window
.
android
.
navigateBack
();
try
{
const
referrer
=
document
.
referrer
;
if
(
referrer
!==
''
)
{
console
.
log
(
'reffer不为空'
,
referrer
);
location
.
href
=
referrer
;
}
else
{
console
.
log
(
'调用navigateBack'
);
window
.
android
.
navigateBack
();
}
}
catch
{
console
.
log
(
'返回调用失败,都不行'
);
}
}
else
{
}
else
{
jsBridge
.
callhandler
(
"navigateBack"
);
jsBridge
.
callhandler
(
"navigateBack"
);
}
}
...
...
This diff is collapsed.
Click to expand it.
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