-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
104 lines (101 loc) · 2.21 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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
<title></title>
<link href="css/mui.min.css" rel="stylesheet" />
</head>
<body>
<div class="mui-content">
<nav class="mui-bar mui-bar-tab">
<a class="mui-tab-item mui-active" id="main">
<span class="mui-icon mui-icon-phone"></span>
<span class="mui-tab-label">首页</span>
</a>
<a class="mui-tab-item" id="type">
<span class="mui-icon mui-icon-chat"></span>
<span class="mui-tab-label">分类</span>
</a>
<a class="mui-tab-item" id="cart">
<span class="mui-icon mui-icon-home"></span>
<span class="mui-tab-label">购物车</span>
</a>
<a class="mui-tab-item" id="people">
<span class="mui-icon mui-icon-map"></span>
<span class="mui-tab-label">我的</span>
</a>
</nav>
</div>
</body>
<script src="js/mui.min.js"></script>
<script>
mui.init({
subpages: [{
url: "Main.html",
id: "main",
styles: {
top: "0px",
bottom: "50px"
},
show: {
aniShow: "fade-in",
}
}]
});
mui.plusReady(function() {
document.getElementById("main").addEventListener("tap", function() {
mui.openWindow({
url: "Main.html",
id: "main",
styles: {
top: "0px",
bottom: "50px"
},
show: {
aniShow: "fade-in",
}
})
});
document.getElementById("type").addEventListener("tap", function() {
mui.openWindow({
url: "Type.html",
id: "type",
styles: {
top: "0px",
bottom: "50px"
},
show: {
aniShow: "fade-in",
}
})
});
document.getElementById("cart").addEventListener("tap", function() {
mui.openWindow({
url: "Cart.html",
id: "cart",
styles: {
top: "0px",
bottom: "50px"
},
show: {
aniShow: "fade-in",
}
})
});
document.getElementById("people").addEventListener("tap", function() {
mui.openWindow({
url: "People.html",
id: "people",
styles: {
top: "0px",
bottom: "50px"
},
show: {
aniShow: "fade-in",
}
})
});
});
</script>
</html>