forked from bizzancoin/Bico-Global
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdownload.html
154 lines (137 loc) · 3.05 KB
/
download.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta content="yes" name="apple-mobile-web-app-capable">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
<script src="./js/jquery-1.11.1.min.js"></script>
<title> App下载页</title>
<style>
* {
margin: 0;
padding: 0;
}
a {
text-decoration: none;
}
.weixin-tip {
display: none;
position: fixed;
left: 0;
top: 0;
bottom: 0;
background: rgba(0, 0, 0, 0.8);
filter: alpha(opacity=80);
height: 100%;
width: 100%;
z-index: 100;
}
.weixin-tip p {
text-align: center;
margin-top: 10%;
padding: 0 5%;
}
img {
width: 100%;
pointer-events: none;
vertical-align: middle;
}
.logo_box {
width: 60%;
margin: auto;
padding: 10vh 5vw;
}
.download_box_div {
width: 60%;
left: 20%;
position: absolute;
top: 70vh;
z-index: 10;
}
.download_android {
width: 100%;
display: block;
}
.download_ios {
width: 100%;
display: block;
margin-bottom: 20px;
}
@media screen and (max-width: 500px) {
html,
body {
width: 100%;
height: 100%;
margin: 0;
}
.download_box {
min-width: 320px;
height: 100%;
min-height: 560px;
margin: auto;
background: url("./img/dl_bj.png") no-repeat;
background-size: 100% 100%;
position: relative;
text-align: center;
}
}
@media screen and (min-width: 500px) {
html,
body {
width: 100%;
height: 100%;
min-width: 500px;
margin: 0;
}
.download_box {
width: 500px;
height: 100%;
min-height: 700px;
margin: auto;
background: url("./img/dl_bj.png") no-repeat;
background-size: cover;
position: relative;
}
}
</style>
</head>
<body>
<div class="download_box">
<!-- <div class="logo_box">
<img src="./img/logo.png" alt="">
</div> -->
<div class="download_box_div">
<a href="javasprict::void(0)" class="download_ios">
<img src="./img/ios_btn.png" alt="" srcset="">
</a>
<a href="xxxxxx.apk" class="download_android">
<img src="./img/android_btn.png" alt="" srcset="">
</a>
</div>
</div>
<div class="weixin-tip">
<p>
<img src="./img/live_weixin.png" alt="微信打开" />
</p>
</div>
<script>
$(window).on("load", function () {
var winHeight = $(window).height();
function is_weixin() {
var ua = navigator.userAgent.toLowerCase();
if (ua.match(/MicroMessenger/i) == "micromessenger") {
return true;
} else {
return false;
}
}
var isWeixin = is_weixin();
if (isWeixin) {
$(".weixin-tip").css("height", winHeight);
$(".weixin-tip").show();
}
})
</script>
</body>
</html>