-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlist.html
133 lines (124 loc) · 4.38 KB
/
list.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
<!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>
<script src="js/mui.min.js"></script>
<link href="css/mui.min.css" rel="stylesheet"/>
<link href="css/mui-icons-extra.css" rel="stylesheet"/>
<link href="css/indexstyle.css" rel="stylesheet"/>
<script type="text/javascript" charset="utf-8">
mui.init({
swipeBack:true
});
</script>
</head>
<body>
<div class="mui-inner-wrap">
<div id="slider" class="mui-slider">
<div class="mui-slider-group mui-slider-loop">
<!-- 额外增加的一个节点(循环轮播:第一个节点是最后一张轮播) -->
<div class="mui-slider-item mui-slider-item-duplicate">
<a href="#">
<img src="images/4.jpg">
</a>
</div>
<!-- 第一张 -->
<div class="mui-slider-item">
<a href="#">
<img src="images/1.jpg">
</a>
</div>
<!-- 第二张 -->
<div class="mui-slider-item">
<a href="#">
<img src="images/2.jpg">
</a>
</div>
<!-- 第三张 -->
<div class="mui-slider-item">
<a href="#">
<img src="images/3.jpg">
</a>
</div>
<!-- 第四张 -->
<div class="mui-slider-item">
<a href="#">
<img src="images/4.jpg">
</a>
</div>
<!-- 额外增加的一个节点(循环轮播:最后一个节点是第一张轮播) -->
<div class="mui-slider-item mui-slider-item-duplicate">
<a href="#">
<img src="images/1.jpg">
</a>
</div>
</div>
<div class="mui-slider-indicator">
<div class="mui-indicator mui-active"></div>
<div class="mui-indicator"></div>
<div class="mui-indicator"></div>
<div class="mui-indicator"></div>
</div>
</div>
<section class="newshort">
<ul class="mui-table-view">
<li class="mui-table-view-cell mui-media">
<a href="javascript:;" data-href="movie.html" data-title="影讯">
<img class="mui-media-object mui-pull-left" src="images/film.png">
<div class="mui-media-body">
<h3>《荒城秘史》,带你解密神秘的古老荒城</h3>
<p class="mui-ellipsis">片长:120分钟 排期:2016.12.17-2016.12.20</p>
</div>
</a>
</li>
</ul>
</section>
<section class="menulist">
<ul class="mui-table-view mui-grid-view mui-grid-9">
<li class="mui-table-view-cell mui-media mui-col-xs-6 mui-col-sm-6">
<a data-href="acitve.html" data-title="活动预约">
<span class="mui-icon mui-icon-chatboxes"><span class="mui-badge mui-badge-red">4</span></span>
<div class="mui-media-body">活动预约</div>
</a>
</li>
<li class="mui-table-view-cell mui-media mui-col-xs-6 mui-col-sm-6">
<a id="apprecate" data-href="apprecate.html" data-title="科技赏析">
<span class="mui-icon mui-icon-search"></span>
<div class="mui-media-body">科技赏析</div>
</a>
</li>
<li class="mui-table-view-cell mui-media mui-col-xs-6 mui-col-sm-6">
<a data-href="visit.html" data-title="参观导览">
<span class="mui-icon mui-icon-map"></span>
<div class="mui-media-body">参观导览</div>
</a>
</li>
<li class="mui-table-view-cell mui-media mui-col-xs-6 mui-col-sm-6">
<a data-href="science.html" data-title="走进科技馆">
<span class="mui-icon mui-icon-extra mui-icon-extra-hotel"></span>
<div class="mui-media-body">走进科技馆</div>
</a>
</li>
</ul>
</section>
</div>
<script>
var template;
mui.plusReady(function(){
template = plus.webview.create("template.html");
subWebview = plus.webview.create("loading.html","",{top:"45px",bottom:"0px"});
template.append(subWebview);
})
mui('.mui-table-view').on('tap','li a',function(){
var title = this.getAttribute('data-title');
template.evalJS("with(document.getElementById('title')){innerHTML='" + title + "'};");
template.show("slide-in-right",200);
subWebview.loadURL(this.getAttribute('data-href'));
template.append(subWebview);
subWebview.show('none');
})
</script>
</body>
</html>