-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
165 lines (151 loc) · 4.57 KB
/
index.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
155
156
157
158
159
160
161
162
163
164
165
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>DiningHall下载</title>
<style type="text/css">
html, body {
height: 100%;
margin: 0;
padding: 0;
font-family: "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, "Hiragino Sans GB", "Hiragino Sans GB W3", "WenQuanYi Micro Hei", sans-serif;
font-size: 14px;
}
.content {
height: 90%;
overflow: auto;
}
.logo {
background-image: url(bg.png);
height: 130px;
padding-top: 20px;
color: #fff;
text-align: center;
}
.logo > div {
font-size: 16px;
}
.image-display > img {
float: left;
display: block;
width: 30%;
height: 240px;
margin-left: 10px;
}
.picture-Preview {
overflow-y: hidden;
overflow-x: auto;
}
.image-display {
width: 500px;
overflow: auto;
padding: 5px 0;
}
.image-display:after {
clear: both;
content: ' ';
display: block;
}
.attribute {
padding: 10px 16px;
border-bottom: 1px solid gainsboro;
}
.introduction {
padding: 10px 16px;
}
.footer {
height: 10%;
width: 100%;
text-align: center;
position: fixed;
bottom: 0;
}
.footer button {
font-size: 16px;
background: #0084ff;
padding: 10px 20px;
border: none;
border-radius: 50px;
color: white;
margin-top: 10px;
min-width: 240px;
}
#weiXin {
position: fixed;
left: 0;
top: 0;
background: rgba(0, 0, 0, 0.8);
filter: alpha(opacity=80);
width: 100%;
height: 100%;
z-index: 100;
text-align: center;
padding-top: 10px;
display: none;
}
#weiXin > img {
width: 95%;
}
</style>
</head>
<body>
<div class="content">
<div class="logo">
<img src="logo.png" alt="">
<div>DiningHall</div>
</div>
<div class="picture-Preview">
<div class="image-display">
<img src="0.png" alt="">
<img src="1.png" alt="">
<img src="2.png" alt="">
</div>
</div>
<div class="attribute">
<div>资费:免费</div>
<div>大小:16M</div>
<div>版本:1.1.3</div>
<div>开发:溢达集团纺织有限公司</div>
</div>
<div class="introduction">
<h3>应用介绍</h3>
<div> 这是一个订单app,让我们溢起订餐吧。</div>
</div>
<div class="introduction">
<h3>更新日志</h3>
<div>增加图片上传功能</div>
<div>信息推送</div>
<div>浏览更顺畅</div>
</div>
</div>
<div class="footer">
<button onclick='download()' id="download">立 即 安 装</button>
</div>
<!-- <div id="weiXin">
<img src="weixin_tip.png" alt="点击右上角按钮,选择在浏览器打开">
</div> -->
<script>
var ua = navigator.userAgent.toLowerCase();
if (ua.match(/MicroMessenger/i) == "micromessenger") {
// document.getElementById('weiXin').style.display = 'block';
}
function download() {
var download = document.getElementById('download');
download.innerHTML='准 备 下 载 中...';
var isiOS = !!navigator.userAgent.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/);
if (isiOS) {
window.location.href = "itms-services://?action=download-manifest&url=https://fasohdininghallstorage02.blob.core.chinacloudapi.cn/dininghallupload/app.plist";
setTimeout(function () {
download.innerHTML='点击安装后,请按Home键在桌面查看';
},2000);
} else {
window.location.href = "https://fasohdininghallstorage02.blob.core.chinacloudapi.cn/sit/Appversion/dininghall.apk";
setTimeout(function () {
download.innerHTML='立 即 安 装';
},4000);
}
}
</script>
</body>
</html>