Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
s_ibanshou
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
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
蒋林
s_ibanshou
Commits
3a94c364
Commit
3a94c364
authored
Sep 27, 2017
by
杨培
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
APP下载页增加延迟以等待百度统计完成
parent
e5859868
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
78 additions
and
13 deletions
+78
-13
.gitignore
.gitignore
+1
-0
index.html
appdownload/index.html
+59
-0
index.js
appdownload/js/index.js
+18
-13
No files found.
.gitignore
View file @
3a94c364
...
@@ -16,6 +16,7 @@
...
@@ -16,6 +16,7 @@
/t
/t
/changshang
/changshang
index.html
index.html
!/appdownload/index.html
/init.zip
/init.zip
/composer.json
/composer.json
/composer.lock
/composer.lock
appdownload/index.html
0 → 100644
View file @
3a94c364
<!DOCTYPE html>
<html
lang=
"en"
>
<head>
<meta
charset=
"utf-8"
>
<meta
name=
"apple-mobile-web-app-capable"
content=
"yes"
>
<meta
name=
"apple-mobile-web-app-status-bar-style"
content=
"black"
>
<meta
id=
"viewport"
name=
"viewport"
content=
"width=device-width,initial-scale=1.0,minimum-scale=1.0,maximum-scale=1.0"
>
<meta
name=
"format-detection"
content=
"telephone=no"
>
<title>
扳手APP下载
</title>
<meta
name=
"keywords"
content=
"扳手,扳手平台,扳手门户"
>
<meta
name=
"description"
content=
"扳手是一家集家电行业资讯、家电维修教程、维修师傅互动交流的平台。"
>
<!--Font Icon-->
<link
href=
"//at.alicdn.com/t/font_386523_h1qpzvbsdbihpvi.css"
rel=
"stylesheet"
>
<!-- Css -->
<link
rel=
"stylesheet"
href=
"css/basic.css"
>
<link
rel=
"stylesheet"
href=
"css/style.css"
>
<body>
<div
class=
"warp"
>
<div
class=
"pic-hand"
>
<img
src=
"img/pic.png"
>
</div>
<div
class=
"pic-text"
>
<img
src=
"img/baiwan.png"
>
</div>
</div>
<div
class=
"foot-bar"
>
<div
class=
"warp clearfix"
>
<div
class=
"logo fl"
>
<img
src=
"img/banshouApp.png"
>
</div>
<div
class=
"download-group fr"
>
<a
href=
"https://itunes.apple.com/cn/app/wei-xiu-hui-shi-fu-ban/id1034283227?mt=8"
><i
class=
"iconfont icon-ios"
></i>
iPhone版下载
</a>
<a
href=
"http://www.weixiuhui.cn/app_publish/banshou.apk"
><i
class=
"iconfont icon-android"
></i>
Android版下载
</a>
<div
class=
"qrcode"
>
<img
src=
"img/qrcode.png"
>
<p>
手机扫描二维码下载
</p>
</div>
</div>
</div>
</div>
<script>
var
_hmt
=
_hmt
||
[];
(
function
()
{
var
hm
=
document
.
createElement
(
"script"
);
hm
.
src
=
"https://hm.baidu.com/hm.js?59926961b935e067a1cb86d52ce44500"
;
var
s
=
document
.
getElementsByTagName
(
"script"
)[
0
];
s
.
parentNode
.
insertBefore
(
hm
,
s
);
})();
</script>
<script
type=
"application/javascript"
src=
"js/mobile-detect.min.js"
></script>
<script
type=
"application/javascript"
src=
"js/index.js"
></script>
</body>
</html>
\ No newline at end of file
appdownload/js/index.js
View file @
3a94c364
(
function
(
global
)
{
(
function
(
global
)
{
var
md
=
new
MobileDetect
(
window
.
navigator
.
userAgent
);
var
appStoreUrl
=
'https://itunes.apple.com/cn/app/wei-xiu-hui-shi-fu-ban/id1034283227?mt=8'
;
global
.
onload
=
function
()
{
var
md
=
new
MobileDetect
(
window
.
navigator
.
userAgent
);
var
appStoreUrl
=
'https://itunes.apple.com/cn/app/wei-xiu-hui-shi-fu-ban/id1034283227?mt=8'
;
var
yingYongBaoUrl
=
'http://fusion.qq.com/cgi-bin/qzapps/unified_jump?appid=42387359&from=wx&isTimeline=false&actionFlag=0¶ms=pname%3Dcom.wxhkj.weixiuhui%26versioncode%3D22%26channelid%3D%26actionflag%3D0'
;
//判断是否为移动端
if
(
md
.
mobile
())
{
setTimeout
(
function
()
{
if
(
md
.
is
(
'iPhone'
)
||
md
.
is
(
'iPad'
)){
window
.
location
.
href
=
appStoreUrl
;
}
else
{
window
.
location
.
href
=
yingYongBaoUrl
;
}
},
1000
);
}
};
var
yingYongBaoUrl
=
'http://fusion.qq.com/cgi-bin/qzapps/unified_jump?appid=42387359&from=wx&isTimeline=false&actionFlag=0¶ms=pname%3Dcom.wxhkj.weixiuhui%26versioncode%3D22%26channelid%3D%26actionflag%3D0'
;
//判断是否为移动端
if
(
md
.
mobile
()){
if
(
md
.
is
(
'iPhone'
)){
window
.
location
.
href
=
appStoreUrl
;
}
else
if
(
md
.
is
(
'iPad'
)){
window
.
location
.
href
=
appStoreUrl
;
}
else
{
window
.
location
.
href
=
yingYongBaoUrl
;
}
}
})(
window
);
})(
window
);
\ No newline at end of file
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