Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
yohobuywap-node
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
0
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Email Patches
Plain Diff
Browse Files
Authored by
陈峰
6 years ago
Commit
54eec2b4225f185b4e2f2463fa4f79b7ccaf8be5
1 parent
00e2a2db
fix mars add carts
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
3 deletions
public/js/common/open-app.js
public/js/common/open-app.js
View file @
54eec2b
...
...
@@ -4,7 +4,6 @@
const
qs
=
require
(
'yoho-qs'
);
const
cookie
=
require
(
'yoho-cookie'
);
const
dialog
=
require
(
'js/plugin/dialog'
);
const
yoho
=
require
(
'js/yoho-app'
);
const
u
=
navigator
.
userAgent
;
const
isFromYOHO
=
/m
\.
yohobuy
\.
com/i
.
test
(
document
.
referrer
);
...
...
@@ -87,7 +86,7 @@ const getIOSVersion = () => {
};
const
ua
=
navigator
.
userAgent
;
const
isOriginalChrome
=
/chrome
\/[\d
.
]
+ Mobile Safari
\/[\d
.
]
+/i
.
test
(
ua
)
&&
yoho
.
isAndroid
&&
isAndroid
&&
ua
.
indexOf
(
'Version'
)
<
0
;
...
...
@@ -148,7 +147,7 @@ const callA = (url, noFall) => {
export
const
toAppPage
=
(
appUrl
,
noFall
)
=>
{
if
(
isOriginalChrome
)
{
callA
(
appUrl
,
noFall
);
}
else
if
(
yoho
.
isiOS
)
{
}
else
if
(
isiOS
)
{
if
(
getIOSVersion
()
<
9
)
{
callIframe
(
appUrl
,
noFall
);
}
else
{
...
...
Please
register
or
login
to post a comment