-
Notifications
You must be signed in to change notification settings - Fork 0
/
wddd.html
285 lines (274 loc) · 10.5 KB
/
wddd.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
<!doctype html>
<html class="no-js">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="description" content="">
<meta name="keywords" content="">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
<title>车生活</title>
<!-- Set render engine for 360 browser -->
<meta name="renderer" content="webkit">
<!-- No Baidu Siteapp-->
<meta http-equiv="Cache-Control" content="no-siteapp" />
<link rel="icon" type="image/png" href="assets/i/favicon.png">
<!-- Add to homescreen for Chrome on Android -->
<meta name="mobile-web-app-capable" content="yes">
<link rel="icon" sizes="192x192" href="assets/i/[email protected]">
<!-- Add to homescreen for Safari on iOS -->
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black">
<meta name="apple-mobile-web-app-title" content="车生活" />
<link rel="apple-touch-icon-precomposed" href="assets/i/[email protected]">
<link rel="stylesheet" href="assets/css/amazeui.min.css">
<link rel="stylesheet" href="assets/css/app.css">
<style type="text/css">
[data-am-widget="tabs"] {
margin: 0 !important;
}
.am-tabs {
margin: 0;
}
.am-tabs-bd {
border: 0;
}
.am-tabs-bd .am-tab-panel {
padding: 0;
}
.am-list {
margin-bottom: 0 !important;
}
.am-list-news-default .am-list .am-list-item-desced {
margin-bottom: 5px;
padding-bottom: 5px;
}
.am-list-phone {
position: absolute;
float: right;
right: 5px;
top: 30%;
}
</style>
</head>
<body>
<header data-am-widget="header" class="am-header am-header-default">
<div class="am-header-left am-header-nav">
<a href="javascript:history.go(-1)" class="">
<i class="am-header-icon am-icon-chevron-left"></i>
</a>
</div>
<h1 class="am-header-title">
<a href="#title-link" class="">我的订单</a>
</h1>
<div class="am-header-right am-header-nav" style="display: block;">
<a href="javascript:;" id="nav_edit" class="">编辑</a>
</div>
</header>
<!--分割空白-->
<div style="height: 50px;"></div>
<div data-am-widget="tabs" class="am-tabs am-tabs-d2">
<ul class="am-tabs-nav am-cf">
<li class="am-active"><a href="[data-tab-panel-0]">全部</a></li>
<li class=""><a href="[data-tab-panel-1]">未付款</a></li>
<li class=""><a href="[data-tab-panel-2]">未消费</a></li>
<li class=""><a href="[data-tab-panel-3]">已消费</a></li>
</ul>
<div class="am-tabs-bd">
<!--商品服务-->
<div data-tab-panel-0 class="am-tab-panel am-active">
<div data-am-widget="list_news" class="am-list-news am-list-news-default" style="margin: 0;">
<div class="am-list-news-bd">
<ul class="am-list">
<!--缩略图在标题左边-->
<li class="am-g am-list-item-desced am-list-item-thumbed am-list-item-thumb-left" onclick="location.href='detailorder.html' ; ">
<span class="am-u-sm-1 edit-radio am-text-primary am-icon-circle-o"></span>
<div class="am-u-sm-3 am-list-thumb">
<img src="assets/i/sj/10.jpg" />
</div>
<div class=" am-u-sm-9 am-list-main">
<h3 class="am-list-item-hd">
人工普通洗车
</h3>
<div class="am-list-item-text">数量:1 总价:18</div>
<button class="am-btn am-lfet am-btn-sm am-btn-warning">未消费</button>
</div>
<div class="am-list-phone">
<span class="am-primary am-icon-md am-icon-angle-right"></span>
</div>
</li>
<li class="am-g am-list-item-desced am-list-item-thumbed am-list-item-thumb-left" onclick="location.href='serdetail.html'">
<span class="am-u-sm-1 edit-radio am-text-primary am-icon-circle-o"></span>
<div class="am-u-sm-3 am-list-thumb">
<img src="assets/i/sj/10.jpg" />
</div>
<div class=" am-u-sm-9 am-list-main">
<h3 class="am-list-item-hd">
人工普通洗车
</h3>
<div class="am-list-item-text">数量:1 总价:18</div>
<button class="am-btn am-lfet am-btn-sm">已消费</button>
</div>
<div class="am-list-phone">
<span class="am-primary am-icon-md am-icon-angle-right"></span>
</div>
</li>
<li class="am-g am-list-item-desced am-list-item-thumbed am-list-item-thumb-left" onclick="location.href='confirmorder.html'">
<span class="am-u-sm-1 edit-radio am-text-primary am-icon-circle-o"></span>
<div class="am-u-sm-3 am-list-thumb">
<img src="assets/i/sj/10.jpg" />
</div>
<div class=" am-u-sm-9 am-list-main">
<h3 class="am-list-item-hd">
人工普通洗车
</h3>
<div class="am-list-item-text">数量:1 总价:18</div>
<button class="am-btn am-lfet am-btn-sm am-btn-danger">未付款</button>
</div>
<div class="am-list-phone">
<span class="am-primary am-icon-md am-icon-angle-right"></span>
</div>
</li>
</ul>
</div>
</div>
</div>
<!--未付款tab-->
<div data-tab-panel-1 class="am-tab-panel ">
<div data-am-widget="list_news" class="am-list-news am-list-news-default" style="margin: 0;">
<div class="am-list-news-bd">
<ul class="am-list">
<!--缩略图在标题左边-->
<li class="am-g am-list-item-desced am-list-item-thumbed am-list-item-thumb-left" onclick="location.href='confirmorder.html'">
<span class="am-u-sm-1 edit-radio am-text-primary am-icon-circle-o"></span>
<div class="am-u-sm-3 am-list-thumb">
<img src="assets/i/sj/10.jpg" />
</div>
<div class=" am-u-sm-9 am-list-main">
<h3 class="am-list-item-hd">
人工普通洗车
</h3>
<div class="am-list-item-text">数量:1 总价:18</div>
<button class="am-btn am-lfet am-btn-sm am-btn-danger">未付款</button>
</div>
<div class="am-list-phone">
<span class="am-primary am-icon-md am-icon-angle-right"></span>
</div>
</li>
</ul>
</div>
</div>
</div>
<!--未消费tab-->
<div data-tab-panel-2 class="am-tab-panel ">
<div data-am-widget="list_news" class="am-list-news am-list-news-default" style="margin: 0;">
<div class="am-list-news-bd">
<ul class="am-list">
<!--缩略图在标题左边-->
<li class="am-g am-list-item-desced am-list-item-thumbed am-list-item-thumb-left" onclick="location.href='detailorder.html'">
<span class="am-u-sm-1 edit-radio am-text-primary am-icon-circle-o"></span>
<div class="am-u-sm-3 am-list-thumb">
<img src="assets/i/sj/10.jpg" />
</div>
<div class=" am-u-sm-9 am-list-main">
<h3 class="am-list-item-hd">
人工普通洗车
</h3>
<div class="am-list-item-text">数量:1 总价:18</div>
<button class="am-btn am-lfet am-btn-sm am-btn-warning">未消费</button>
</div>
<div class="am-list-phone">
<span class="am-primary am-icon-md am-icon-angle-right"></span>
</div>
</li>
</ul>
</div>
</div>
</div>
<!--已消费tab-->
<div data-tab-panel-3 class="am-tab-panel ">
<div data-am-widget="list_news" class="am-list-news am-list-news-default" style="margin: 0;">
<div class="am-list-news-bd">
<ul class="am-list">
<!--缩略图在标题左边-->
<li class="am-g am-list-item-desced am-list-item-thumbed am-list-item-thumb-left">
<span class="am-u-sm-1 edit-radio am-text-primary am-icon-circle-o"></span>
<a href="serdetail.html">
<div class="am-u-sm-3 am-list-thumb">
<img src="assets/i/sj/10.jpg" />
</div>
<div class=" am-u-sm-9 am-list-main">
<h3 class="am-list-item-hd">
人工普通洗车
</h3>
<div class="am-list-item-text">数量:1 总价:18</div>
<button class="am-btn am-lfet am-btn-sm">已消费</button>
</div>
<div class="am-list-phone">
<span class="am-primary am-icon-md am-icon-angle-right"></span>
</div>
</a>
</li>
</ul>
</div>
</div>
</div>
</div>
</div>
<div class="am-g del-favour-fixed">
<button class="del-favour am-btn am-btn-danger am-btn-block">删除 </button>
</div>
<script type="text/x-handlebars-template" id="amz-tpl">
{{>navbar navbar}}
</script>
<script src="assets/js/jquery.min.js"></script>
<script src="assets/js/amazeui.min.js"></script>
<script src="assets/js/handlebars.min.js"></script>
<script src="assets/js/amazeui.widgets.helper.js"></script>
<script src="assets/js/app.js"></script>
<script type="text/javascript">
$(function() {
var navEdit = $("#nav_edit");
navEdit.click(function() {
edit();
});
$(".am-list-item-desced").click(function() {
$(this).find('.edit-radio').toggleClass('am-icon-circle-o').toggleClass('am-icon-circle');
});
$(".del-favour").click(function() {
$(".am-icon-circle").parent('li').remove();
});
$("a[href ='[data-tab-panel-2]']").click(function() {
if (navEdit.text() == '取消') {
navEdit.trigger('click');
}
});
//编辑订单
function edit() {
var list = $(".am-list-item-desced");
var navEdit = $("#nav_edit");
if (navEdit.text() === '编辑') {
list.each(function() {
var onclickVal1 = $(this).attr('onclick');
var onclickVal2 = 'return false;';
$(this).attr('onclick', onclickVal2);
$(this).attr('data-url', onclickVal1);
});
navEdit.text('取消');
} else {
list.each(function() {
var dataUrl = $(this).attr('data-url');
$(this).attr('onclick', dataUrl);
});
navEdit.text('编辑');
}
$(".edit-radio").toggle();
var main = $(".am-list-main");
var thumb = $(".am-list-thumb");
var style = thumb.attr('style');
main.toggleClass('am-u-sm-9').toggleClass('am-u-sm-8');
$(".del-favour-fixed").toggle();
}
});
</script>
</body>
</html>