-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex1.html
172 lines (155 loc) · 4.56 KB
/
index1.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
166
167
168
169
170
171
172
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>下载页面</title>
</head>
<style>
* {
margin: 0;
padding: 0;
}
html, body {
width: 100%;
height: 100%;
min-height: 600px;
min-width: 800px;
}
.content {
width: 100%;
height: 100%;
background: linear-gradient(45deg, rgb(221, 221, 221), rgb(251, 251, 251));
}
.logo {
margin-left: 200px;
margin-top: 16px;
}
.container {
width: 1200px;
margin: 20px auto 0;
display: flex;
align-items: center;
}
.appPage {
width: 600px;
padding-top: 100px;
}
.divide {
height: 330px;
border: 1px solid rgb(216, 216, 216);
margin: 40px 60px;
display: inline-block;
}
.downLoadType, .typeItem {
list-style: none;
}
.h2 {
color: #3a3a3a;
font-size: 42px;
font-family: ArialMT;
line-height: 1.4;
}
.text {
color: #3a3a3a;
font-size: 17px;
line-height: 2.4;
}
.downLoadType {
margin-top: 30px;
}
.typeItem {
width: 130px;
height: 55px;
color: #135CD7;
font-family: ArialMT;
border: 1px solid #135CD7;
text-align: center;
line-height: 55px;
font-size: 15px;
display: inline-block;
margin-right: 20px;
margin-top: 20px;
}
.typeItem:hover, .typeItem.active {
background: #135CD7;
color: #fff
}
.hide {
display: none !important;
}
.qrCodeDiv {
width: 450px;
height: 600px;
display: flex;
align-items: center;
justify-content: center;
background: url('./images/qrCodeBg.png') no-repeat center;
background-size: auto 100%;
}
.left {
width: 600px;
height: 600px;
display: flex;
align-items: center;
justify-content: center;
}
</style>
<body>
<div class="content">
<img class="logo" width="100" src="./images/[email protected]" alt="logo">
<div class="container">
<div class="left">
<div class="appPage">
<img src="images/[email protected]" width="580" alt="app页面">
</div>
<div class="qrCodeDiv hide">
<img src="./images/qrCode.png" alt="">
</div>
</div>
<span class="divide"></span>
<div class="">
<h2 class="h2">SEA官方APP正式发布</h2>
<p class="text">选择一个你所需要的下载方式</p>
<ul id="downLoadType" class="downLoadType">
<li data-type="ios" class="typeItem">iOS版本下载</li>
<li data-type="android" class="typeItem">安卓版本下载</li>
<br>
<li data-type="local" class="typeItem">本地下载</li>
<li data-type="web" class="typeItem">网页版本</li>
</ul>
</div>
</div>
</div>
</body>
<script>
window.onload = function () {
document.querySelector('#downLoadType').addEventListener('click', function (e) {
if (e.target.nodeName === 'LI') {
e.target.parentNode.querySelector('.active') && e.target.parentNode.querySelector('.active').classList.remove('active');
e.target.classList.add('active');
var type = e.target.getAttribute('data-type');
var pagesDiv = document.querySelector('.appPage');
var qrCodeDiv = document.querySelector('.qrCodeDiv');
switch (type) {
case 'ios':
pagesDiv.classList.add('hide');
qrCodeDiv.classList.remove('hide');
break;
case 'android':
pagesDiv.classList.add('hide');
qrCodeDiv.classList.remove('hide');
break;
case 'local':
pagesDiv.classList.remove('hide');
qrCodeDiv.classList.add('hide');
break;
case 'web':
pagesDiv.classList.remove('hide');
qrCodeDiv.classList.add('hide');
break;
}
}
});
};
</script>
</html>