Toggle navigation
Toggle navigation
This project
Loading...
Sign in
YOHOBUY
/
yohobuy-union
·
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
DengXinFei
8 years ago
Commit
88921bde52065208e869d693f40dcec5d9679df6
1 parent
60eff171
添加app内启动不自动下载 --review by 邓新飞
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
7 deletions
web/src/main/webapp/app-downloads.html
web/src/main/webapp/app-downloads.html
View file @
88921bd
...
...
@@ -100,7 +100,7 @@
<script
type=
"text/javascript"
>
function
cookie
(
name
)
{
var
cookies
=
document
.
cookie
,
cookieVal
;
cookieVal
;
if
(
cookies
)
{
cookies
=
cookies
.
split
(
';'
);
...
...
@@ -117,8 +117,8 @@
function
queryString
()
{
var
vars
=
{},
hash
,
i
;
hash
,
i
;
var
hashes
=
window
.
location
.
search
.
slice
(
1
).
split
(
'&'
);
for
(
i
=
0
;
i
<
hashes
.
length
;
i
++
)
{
...
...
@@ -157,12 +157,13 @@
var
u
=
navigator
.
userAgent
.
toLowerCase
();
var
isiOS
=
u
.
indexOf
(
'os'
)
>
-
1
||
u
.
indexOf
(
'iphone'
)
>
-
1
||
u
.
indexOf
(
'mac'
)
>
-
1
||
u
.
indexOf
(
'ipad'
)
>
-
1
;
var
androidExp
=
new
RegExp
(
'MQQBrowser'
);
//安卓QQ内置浏览器正则
var
isAndroidQQ
=
androidExp
.
test
(
navigator
.
userAgent
);
//判断是不是QQ内置浏览器
var
version
,
type
,
appid
,
td
;
var
isApp
=
/yohobuy/i
.
test
(
navigator
.
userAgent
);
if
(
params
.
union_type
){
url
=
'yohobuy://yohobuy.com/goapp?ct='
+
params
.
union_type
+
'&openby:yohobuy='
+
openbyYohobuy
;
}
...
...
@@ -221,7 +222,7 @@
}
//如果setTimeout 回调超过2500ms,则弹出下载
if
((
+
new
Date
())
-
openTime
>
500
)
{
if
((
+
new
Date
())
-
openTime
>
500
&&
!
isApp
)
{
if
(
isiOS
)
{
url
=
'//itunes.apple.com/cn/app/yoho!-you-huo/id490655927?mt=8'
;
}
else
{
...
...
@@ -354,8 +355,8 @@
(
function
()
{
function
getUid
()
{
var
uid
,
name
=
'_UID'
,
cookies
=
(
document
.
cookie
&&
document
.
cookie
.
split
(
';'
))
||
[];
name
=
'_UID'
,
cookies
=
(
document
.
cookie
&&
document
.
cookie
.
split
(
';'
))
||
[];
cookies
.
forEach
(
function
(
c
)
{
if
(
c
.
indexOf
(
name
)
>
-
1
)
{
...
...
Please
register
or
login
to post a comment