-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathaidachu.html
293 lines (281 loc) · 12.1 KB
/
aidachu.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
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
<!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" />
<meta content="yes" name="apple-mobile-web-app-capable">
<meta content="default" name="apple-mobile-web-app-status-bar-style">
<meta content="telephone=no" name="format-detection">
<title>产品详情</title>
<script type="text/javascript" src="js/jquery-2.1.1.js" ></script>
<script src="js/mui.min.js"></script>
<script src="js/mui.listpicker.js" type="text/javascript" charset="utf-8"></script>
<script src="js/mui.dtpicker.js" type="text/javascript" charset="utf-8"></script>
<link href="css/mui.min.css" rel="stylesheet"/>
<link rel="stylesheet" href="css/iconfont.css" />
<link rel="stylesheet" type="text/css" href="css/mui.listpicker.css"/>
<link rel="stylesheet" href="css/mui.dtpicker.css" />
<link rel="stylesheet" href="css/zhbcss.css" />
<script src="js/jquery.alert.js" type="text/javascript" charset="utf-8"></script>
<script type="text/javascript" charset="utf-8">
mui.init();
$(function(){
var slider = mui("#slider");
slider.slider({
interval: 3000
});
swipeBack:true;
$(".mui-collapse").on("tap",function(){
return false;
})
var ycTime=document.getElementById("dateaa");
document.getElementById("alertBtn").addEventListener('tap', function() {
if(ycTime.value.length == 0){
webToast("请选择用餐时间!");
}else{
//预约成功
showWebAlert();
}
});
document.getElementById("colse").addEventListener('tap', function() {
hideWebAlert();
});
});
</script>
</head>
<body>
<div class="goodsdetailmian3">
<header class="mui-bar mui-bar-nav header2">
<button class="mui-btn mui-btn-link mui-btn-nav mui-pull-left">
<span class="mui-icon mui-icon-left-nav"></span>
</button>
<button class="mui-btn mui-btn-link mui-btn-nav mui-pull-right">
<span class="mui-icon mui-icon-right-nav"><i class="icon iconfont"></i></span>
</button>
<h1 class="mui-title">爱大厨</h1>
</header>
<div class="clear"></div>
<div class="dachu">
<ul class="mui-table-view">
<li class="mui-table-view-cell mui-media">
<a href="#">
<img class="mui-media-object mui-pull-left" src="img/shuijiao.jpg">
<div class="mui-media-body">
付小兵
<p class='mui-ellipsis'>85640342</p>
<p><i class="icon iconfont orangecol"></i><i class="icon iconfont orangecol"></i><i class="icon iconfont"></i><i class="icon iconfont"></i><i class="icon iconfont"></i></p>
</div>
</a>
</li>
</ul>
<div class="peopleyd">
<span>333</span><br />
<p>人预定</p>
</div>
</div>
<div class="shanchang">
<div class="guesslove guesslove2">
<div class="mui-content">
<h2>
<p><span>擅长</span>融合菜系</p>
<p><span>服务</span>沙坪坝,江北 ,渝北</p>
</h2>
<div class="mui-slider">
<div class="mui-slider-group mui-slider-loop">
<!-- 额外增加的一个节点(循环轮播:第一个节点是最后一个图文表格) -->
<div class="mui-slider-item mui-slider-item-duplicate">
<ul class="mui-table-view mui-grid-view">
<li class="mui-table-view-cell mui-media mui-col-xs-4"><a href="#"><img class="mui-media-object" src="img/shuijiao.jpg">
</a></li>
<li class="mui-table-view-cell mui-media mui-col-xs-4"><a href="#"><img class="mui-media-object" src="img/shuijiao.jpg">
</a></li>
<li class="mui-table-view-cell mui-media mui-col-xs-4"><a href="#"><img class="mui-media-object" src="img/shuijiao.jpg">
/a></li>
</ul>
</div>
<div class="mui-slider-item">
<ul class="mui-table-view mui-grid-view">
<li class="mui-table-view-cell mui-media mui-col-xs-4"><a href="#"><img class="mui-media-object" src="img/shuijiao.jpg">
</a></li>
<li class="mui-table-view-cell mui-media mui-col-xs-4"><a href="#"><img class="mui-media-object" src="img/shuijiao.jpg">
</a></li>
<li class="mui-table-view-cell mui-media mui-col-xs-4"><a href="#"><img class="mui-media-object" src="img/shuijiao.jpg">
</a></li>
</ul>
</div>
<div class="mui-slider-item">
<ul class="mui-table-view mui-grid-view">
<li class="mui-table-view-cell mui-media mui-col-xs-4"><a href="#"><img class="mui-media-object" src="img/shuijiao.jpg">
</a></li>
<li class="mui-table-view-cell mui-media mui-col-xs-4"><a href="#"><img class="mui-media-object" src="img/shuijiao.jpg">
</a></li>
<li class="mui-table-view-cell mui-media mui-col-xs-4"><a href="#"><img class="mui-media-object" src="img/shuijiao.jpg">
</a></li>
</ul>
</div>
<!-- 额外增加的一个节点(循环轮播:最后一个节点是第一个图文表格) -->
<div class="mui-slider-item mui-slider-item-duplicate">
<ul class="mui-table-view mui-grid-view">
<li class="mui-table-view-cell mui-media mui-col-xs-4"><a href="#"><img class="mui-media-object" src="img/shuijiao.jpg">
</a></li>
<li class="mui-table-view-cell mui-media mui-col-xs-4"><a href="#"><img class="mui-media-object" src="img/shuijiao.jpg">
</a></li>
<li class="mui-table-view-cell mui-media mui-col-xs-4"><a href="#"><img class="mui-media-object" src="img/shuijiao.jpg">
</a></li>
</ul>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="clear"></div>
<div class="manzeng manzeng2">
<ul class="mui-table-view">
<li class="mui-table-view-cell lidate">
<span class="mui-ellipsis-2">
<a class="mui-navigate-right">
<p><i class="icon iconfont"></i><span class="hei">用餐时间:</span> <input type="text" id='dateaa' placeholder="请选择时间..." data-options='{}' class="btn mui-btn mui-btn-block" /></p>
</a>
</span>
</li>
<li class="mui-table-view-cell">
<p><i class="icon iconfont"></i><span class="hei">做几个菜:六菜/99元(建议四人用餐)</span></p>
</li>
</ul>
<ul class="mui-table-view">
<li class="mui-table-view-cell">
<a class="mui-navigate-right">
<p><i class="icon iconfont"></i><span class="hei">上门保障</span></p>
</a>
</li>
<li class="mui-table-view-cell">
<span class="mui-ellipsis-2">
<a class="mui-navigate-right">
<p><i class="icon iconfont"></i><span class="hei">服务说明:</span><span class="shtime">由香之谜语洗护用品旗舰店从广东广州市发货并提供售后服务</span></p>
</a>
</span>
</li>
</ul>
<ul class="mui-table-view">
<li class="mui-table-view-cell buyinfo">
<p><i class="icon iconfont"></i><span class="hei">购买须知</span></p>
<div class="buyinfo_con">
<h4>有效期:</h4>
<p>2015.7.21至2015.12.15</p>
<h4>有效期:</h4>
<p>2015.7.21至2015.12.15</p>
<h4>有效期:</h4>
<p>2015.7.21至2015.12.15</p>
</div>
</li>
</ul>
<ul class="mui-table-view">
<li class="mui-table-view-cell">
<a class="mui-navigate-right">
<p class="tes"><i class="icon iconfont"></i><span class="hei">累计评价<span class="yellowF">(512)</span><span class="fr"><i class="yellowF">812</i>人购买</span></span></p>
</a>
</li>
</ul>
</div>
<div class="evaluation evaluation2">
<ul class="mui-table-view">
<li class="mui-table-view-cell mui-media">
<a href="javascript:;">
<img class="mui-media-object mui-pull-left" src="img/shuijiao.jpg">
<div class="mui-media-body">
麦甜甜
<p class='mui-ellipsis'>送给朋友的,他还说质量很不错呢!</p>
<p class='mui-ellipsis'>2015-8-4 <span>颜色:蓝粉色</span> <span>尺码:L</span></p>
</div>
</a>
</li>
<li class="mui-table-view-cell mui-media">
<a href="javascript:;">
<img class="mui-media-object mui-pull-left" src="img/shuijiao.jpg">
<div class="mui-media-body">
麦甜甜
<p class='mui-ellipsis'>送给朋友的,他还说质量很不错呢!</p>
<p class='mui-ellipsis'>2015-8-4 <span>颜色:蓝粉色</span> <span>尺码:L</span></p>
</div>
</a>
</li>
<li class="mui-table-view-cell mui-media">
<a href="javascript:;">
<img class="mui-media-object mui-pull-left" src="img/shuijiao.jpg">
<div class="mui-media-body">
麦甜甜
<p class='mui-ellipsis'>送给朋友的,他还说质量很不错呢!</p>
<p class='mui-ellipsis'>2015-8-4 <span>颜色:蓝粉色</span> <span>尺码:L</span></p>
</div>
</a>
</li>
</ul>
</div>
<div class="detailbottom">
<nav class="mui-bar mui-bar-tab">
<a class="mui-tab-item" href="#tabbar">
<div><i class="icon iconfont"></i></div>
<span class="mui-tab-label">收藏</span>
</a>
<a class="mui-tab-item" href="#tabbar-with-chat">
<div><i class="icon iconfont"></i></div>
<span class="mui-tab-label">购物车</span>
</a>
<a class="mui-tab-item mui-active" href="#tabbar-with-contact">
<div><i class="icon iconfont"></i></div>
<span class="mui-tab-label">一键购买</span>
</a>
<a class="mui-tab-item joincars" href="#tabbar-with-map">
<span class="mui-tab-label" id="alertBtn">预约该厨师</span>
</a>
</nav>
</div>
</div>
<div id="webAlert">
<div class="header">提示信息</div>
<div class="body">
预约成功,是否进入购物车?
</div>
<div class="footer">
<button type="button" id="colse" class="colse">否</button>
<button type="button">是</button>
</div>
</div>
<!--背景遮罩-->
<div class="webalert-in"></div>
<script>
(function($) {
$.init();
var result = $('#dateaa')[0];
var btns = $('.btn');
var pickers = {};
btns.each(function(i, btn) {
btn.addEventListener('tap', function() {
var optionsJson = this.getAttribute('data-options') || '{}';
var options = JSON.parse(optionsJson);
var id = this.getAttribute('id');
/*
* 首次显示时实例化组件
* 示例为了简洁,将 options 放在了按钮的 dom 上
* 也可以直接通过代码声明 optinos 用于实例化 DtPicker
*/
pickers[id] = pickers[id] || new $.DtPicker(options);
pickers[id].show(function(rs) {
/*
* rs.value 拼合后的 value
* rs.text 拼合后的 text
* rs.y 年,可以通过 rs.y.vaue 和 rs.y.text 获取值和文本
* rs.m 月,用法同年
* rs.d 日,用法同年
* rs.h 时,用法同年
* rs.i 分(minutes 的第二个字母),用法同年
*/
btn.value = rs.text;
});
}, false);
});
})(mui);
</script>
</body>
</html>