-
Notifications
You must be signed in to change notification settings - Fork 0
/
discount.html
436 lines (434 loc) · 18.8 KB
/
discount.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
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
<!doctype html>
<html class="no-js">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title></title>
<meta name="description" content="">
<meta name="keywords" content="">
<meta name="viewport" content="width=1280, initial-scale=1">
<meta name="renderer" content="webkit">
<meta http-equiv="Cache-Control" content="no-siteapp">
<link rel="stylesheet" href="css/amazeui.min.css">
<link rel="stylesheet" href="icon/iconfont.css">
<link rel="stylesheet" href="css/common2.css">
<link rel="stylesheet" href="css/style.css">
<style type="text/css">
[id*='udiscountm'] .am-form-horizontal .am-radio-inline{margin:5px 17px 0 0;}
[id*='udiscountm'] .am-form-horizontal .am-checkbox-inline{margin-top:5px; padding-top:0;}
#udiscountm3 .umodal{width:883px;}
#udiscountm3 .umodal .am-tabs-nav li{margin-top:0;}
#udiscountm3 .umodal .am-tabs-bd{border:none; border-left:1px solid #ddd;}
#udiscountm3 .umodal label.am-u-lg-3{text-align:left;}
#udiscountm3 .umodal .am-u-lg-9 .ua{float:left; margin-left:15px;}
#udiscountm3 .umodal .am-u-lg-9 .ua .am-form-label{padding-top:0; vertical-align:middle;}
#udiscountm3 .umodal .am-u-lg-9 > button{float:right;}
</style>
</head>
<body id="ubody">
<!-- header -->
<header id="uheader" class="am-topbar am-topbar-fixed-top">
<div class="am-topbar-brand ulogo">
<a href=""><img src="./img/logo.jpg"></a>
</div>
<div class="am-topbar-left utitle">河南奕之堂健康管理有限公司——唐人街老店</div>
<ul class="am-nav am-nav-pills am-topbar-nav am-topbar-right unav">
<li>
<a href="javascript:;"><span class="iconfont icon-systemprompt_fill"></span> <span>消息</span></a>
</li>
<li class="am-dropdown" data-am-dropdown>
<a class="am-dropdown-toggle" href="javascript:;" data-am-dropdown-toggle>
<span class="iconfont icon-wode"></span> <span class="udropdown">收银员</span>
</a>
<ul class="am-dropdown-content umenu1">
<li><a href="#"><span class="am-icon-user am-icon-fw"></span>资料</a></li>
<li><a href="#"><span class="am-icon-cog am-icon-fw"></span>设置</a></li>
<li><a href="#"><span class="am-icon-power-off am-icon-fw"></span>退出</a></li>
</ul>
</li>
<li class="am-dropdown" data-am-dropdown>
<a class="am-dropdown-toggle" href="javascript:;" data-am-dropdown-toggle>
<span class="iconfont icon-dianpu1"></span> <span class="udropdown">转换为管理员</span>
</a>
<ul class="am-dropdown-content umenu1">
<li><a href="#"><span class="iconfont icon-question"></span> 唐人街老店</a></li>
<li><a href="#"><span class="iconfont icon-question"></span> 伏牛路新店</a></li>
<li><a href="#"><span class="iconfont icon-question"></span> 第八号当铺</a></li>
</ul>
</li>
</ul>
<a href="#" class="am-topbar-right uad">视频教程</a>
</header>
<!-- header end -->
<!-- left bar -->
<ul id="uleftbar" class="am-nav">
<li><a href="main.html"><span class="iconfont icon-caiwu-xianxing"></span> 收银</a></li>
<li><a href="user.html"><span class="iconfont icon-wsmp-payuser"></span> 会员</a></li>
<li><a href="appoint.html"><span class="iconfont icon-clock"></span> 预约</a></li>
<li><a href="detail.html"><span class="iconfont icon-tixing"></span> 提醒</a></li>
<li><a href="detail.html"><span class="iconfont icon-ziliao"></span> 明细</a></li>
<li class="am-dropdown" data-am-dropdown>
<a href="javascript:;" class="am-dropdown-toggle" data-am-dropdown-toggle><span class="iconfont icon-jifen-xianxing"></span> 收支</a>
<ul class="am-dropdown-content umenu2 umenu2-two">
<li><a href="bill.html"><span class="iconfont icon-question"></span> 收支管理</a></li>
<li><a href="billtype.html"><span class="iconfont icon-question"></span> 收支分类</a></li>
</ul>
</li>
<li><a href="stock.html"><span class="iconfont icon-kucun"></span> 库存</a></li>
<li class="am-dropdown" data-am-dropdown>
<a href="javascript:;" class="am-dropdown-toggle" data-am-dropdown-toggle><span class="iconfont icon-iconfont31quanbushangpin"></span> 商品</a>
<ul class="am-dropdown-content umenu2 umenu2-two">
<li><a href="#"><span class="iconfont icon-question"></span> 通用型商品</a></li>
<li><a href="#"><span class="iconfont icon-question"></span> 店铺型商品</a></li>
</ul>
</li>
<li class="am-dropdown" data-am-dropdown>
<a href="javascript:;" class="am-dropdown-toggle" data-am-dropdown-toggle><span class="iconfont icon-iconfont31quanbushangpin"></span> 营销活动</a>
<ul class="am-dropdown-content umenu2 umenu2-two">
<li><a href="discount.html"><span class="iconfont icon-question"></span> 即时折扣</a></li>
<li><a href="coupon.html"><span class="iconfont icon-question"></span> 优惠券</a></li>
</ul>
</li>
<li class="am-dropdown" data-am-dropdown>
<a href="javascript:;" class="am-dropdown-toggle" data-am-dropdown-toggle><span class="iconfont icon-setup"></span> 设置</a>
<ul class="am-dropdown-content umenu2 umenu2-one">
<li><a href="wechat.html"><span class="iconfont icon-question"></span> 打印设置</a></li>
</ul>
</li>
</ul>
<!-- left bar end -->
<!-- content -->
<div id="udiscount" class="gcontent">
<ul class="am-nav am-nav-pills ubread">
<li class="am-active"><a href="#">限时折扣</a></li>
</ul>
<div class="gspace15"></div>
<div class="utools">
<form class="am-form-inline uform2">
<div class="am-form-group">
顾客类型:
<select class="uselect" data-am-selected name="">
<option value="all">全部</option>
<option value="2">2</option>
<option value="3">3</option>
</select>
</div>
<div class="am-form-group">
<button type="submit" class="am-btn ubtn-search">
<i class="iconfont icon-search"></i>查询
</button>
</div>
</form>
<button class="am-btn ubtn-sure ubtn-blue" data-am-modal="{target:'#udiscountm1'}">
<i class="iconfont icon-addition"></i>
新增活动
</button>
</div>
<div class="gspace30"></div>
<table class="am-table am-table-bordered am-table-hover am-table-compact utable1">
<thead>
<tr>
<td>活动名称</td>
<td>顾客类型</td>
<td>开始时间</td>
<td>结束时间</td>
<td>备注</td>
<td style="width:20%;">操作</td>
</tr>
</thead>
<tbody>
<tr>
<td>端午大酬宾</td>
<td>不限</td>
<td>2017-05-04</td>
<td>2017-05-30</td>
<td>无</td>
<td>
<button class="am-btn ubtn-table ubtn-green" data-am-modal="{target:'#udiscountm3'}">
<i class="iconfont icon-question"></i>
折扣商品
</button>
<button class="am-btn ubtn-table ubtn-green" data-am-modal="{target:'#udiscountm2'}">
<i class="iconfont icon-bianji"></i>
编辑
</button>
<button class="am-btn ubtn-table ubtn-gray cdel">
<i class="iconfont icon-shanchu"></i>
删除
</button>
</td>
</tr>
</tbody>
</table>
<ul class="am-pagination am-pagination-centered upages">
<li class="upagedec">共1页 3条记录</li>
<li class="am-disabled"><a href="#">«</a></li>
<li class="am-active"><a href="#">1</a></li>
<li><a href="#">2</a></li>
<li><a href="#">3</a></li>
<li><a href="#">»</a></li>
</ul>
</div>
<!-- 弹出框添加 -->
<div class="am-modal" tabindex="-1" id="udiscountm1">
<div class="am-modal-dialog umodal">
<div class="am-modal-hd uhead">新增活动
<a href="javascript: void(0)" class="am-close am-close-spin uclose" data-am-modal-close><img src="img/close.jpg"></a>
</div>
<div class="am-modal-bd umain1">
<form class="am-form am-form-horizontal" id="cadd">
<div class="am-form-group">
<label class="am-u-lg-3 am-form-label" for="">活动名称</label>
<div class="am-u-lg-4 am-u-end">
<input type="text" class="am-form-field uinput uinput-max">
</div>
</div>
<div class="am-form-group">
<label class="am-u-lg-3 am-form-label" for="">顾客类型</label>
<div class="am-u-lg-5 am-u-end">
<label class="am-radio-inline">
<input type="radio" name="radio1" value="0" data-am-ucheck> 不限
</label>
<label class="am-radio-inline">
<input type="radio" name="radio1" value="1" data-am-ucheck> 会员
</label>
<label class="am-radio-inline">
<input type="radio" name="radio1" value="1" data-am-ucheck> 非会员
</label>
</div>
</div>
<div class="am-form-group">
<label class="am-u-lg-3 am-form-label" for="">开始时间</label>
<div class="am-u-lg-4">
<div class="am-input-group am-datepicker-date udatepicker udatepicker-max" data-am-datepicker="{format:'yyyy-mm-dd'}">
<input type="text" class="am-form-field">
<span class="am-input-group-btn am-datepicker-add-on">
<button class="am-btn am-btn-default" type="button"><span class="am-icon-calendar"></span></button>
</span>
</div>
</div>
</div>
<div class="am-form-group">
<label class="am-u-lg-3 am-form-label" for="">结束时间</label>
<div class="am-u-lg-4">
<div class="am-input-group am-datepicker-date udatepicker udatepicker-max" data-am-datepicker="{format:'yyyy-mm-dd'}">
<input type="text" class="am-form-field">
<span class="am-input-group-btn am-datepicker-add-on">
<button class="am-btn am-btn-default" type="button"><span class="am-icon-calendar"></span></button>
</span>
</div>
</div>
</div>
<div class="am-form-group">
<label class="am-u-lg-3 am-form-label" for="">备注</label>
<div class="am-u-lg-8">
<textarea class="am-form-field utextarea utextarea-max" row="3"></textarea>
</div>
</div>
</form>
</div>
<div class="am-modal-footer ufoot">
<div class="am-btn-group">
<button type="button" class="am-btn ubtn-sure ubtn-green copenm3"><i class="iconfont icon-yuanxingxuanzhong"></i>
下一步
</button>
</div>
</div>
</div>
</div>
<div class="am-modal" tabindex="-1" id="udiscountm2">
<div class="am-modal-dialog umodal">
<div class="am-modal-hd uhead">修改活动
<a href="javascript: void(0)" class="am-close am-close-spin uclose" data-am-modal-close><img src="img/close.jpg"></a>
</div>
<div class="am-modal-bd umain1">
<form class="am-form am-form-horizontal" id="cadd">
<div class="am-form-group">
<label class="am-u-lg-3 am-form-label" for="">活动名称</label>
<div class="am-u-lg-4 am-u-end">
<input type="text" class="am-form-field uinput uinput-max">
</div>
</div>
<div class="am-form-group">
<label class="am-u-lg-3 am-form-label" for="">顾客类型</label>
<div class="am-u-lg-5 am-u-end">
<label class="am-radio-inline">
<input type="radio" name="radio1" value="0" data-am-ucheck> 不限
</label>
<label class="am-radio-inline">
<input type="radio" name="radio1" value="1" data-am-ucheck> 会员
</label>
<label class="am-radio-inline">
<input type="radio" name="radio1" value="1" data-am-ucheck> 非会员
</label>
</div>
</div>
<div class="am-form-group">
<label class="am-u-lg-3 am-form-label" for="">开始时间</label>
<div class="am-u-lg-4">
<div class="am-input-group am-datepicker-date udatepicker udatepicker-max" data-am-datepicker="{format:'yyyy-mm-dd'}">
<input type="text" class="am-form-field">
<span class="am-input-group-btn am-datepicker-add-on">
<button class="am-btn am-btn-default" type="button"><span class="am-icon-calendar"></span></button>
</span>
</div>
</div>
</div>
<div class="am-form-group">
<label class="am-u-lg-3 am-form-label" for="">结束时间</label>
<div class="am-u-lg-4">
<div class="am-input-group am-datepicker-date udatepicker udatepicker-max" data-am-datepicker="{format:'yyyy-mm-dd'}">
<input type="text" class="am-form-field">
<span class="am-input-group-btn am-datepicker-add-on">
<button class="am-btn am-btn-default" type="button"><span class="am-icon-calendar"></span></button>
</span>
</div>
</div>
</div>
<div class="am-form-group">
<label class="am-u-lg-3 am-form-label" for="">备注</label>
<div class="am-u-lg-8">
<textarea class="am-form-field utextarea utextarea-max" row="3"></textarea>
</div>
</div>
</form>
</div>
<div class="am-modal-footer ufoot">
<div class="am-btn-group">
<button type="button" class="am-btn ubtn-sure ubtn-green"><i class="iconfont icon-yuanxingxuanzhong"></i>
完成
</button>
</div>
</div>
</div>
</div>
<div class="am-modal" tabindex="-1" id="udiscountm3">
<div class="am-modal-dialog umodal">
<div class="am-modal-hd uhead">折扣商品
<a href="javascript: void(0)" class="am-close am-close-spin uclose" data-am-modal-close><img src="img/close.jpg"></a>
</div>
<div class="am-modal-bd umain1">
<form class="am-form am-form-horizontal">
<div class="am-tabs am-form-group" data-am-tabs style="border:1px solid #ddd;">
<ul class="am-u-lg-2 am-nav am-tabs-nav" style="padding-right: 0px;">
<li class="am-active"><a href="#tab1">服务</a></li>
<li><a href="#tab2">商品</a></li>
</ul>
<div class="am-u-lg-10 am-tabs-bd">
<div class="am-tab-panel am-fade am-in am-active" id="tab1">
<div class="am-form-group">
<label class="am-u-lg-3 am-form-label" for="" style="font-weight: bold;">服务分类</label>
<div class="am-u-lg-9">
<div class="ua">
<label class="am-checkbox-inline">
<input type="checkbox" value="join" checked="checked" data-am-ucheck id="ajoinall"> 参与活动
</label>
</div>
<div class="ua">
<label for="doc-ipt-3" class="am-form-label">折扣</label>
<input class="uinput uinput-60" type="text" id="acountall" name="count">
</div>
<div class="ua">
<label for="doc-ipt-3" class="am-form-label">优惠价</label>
<input class="uinput uinput-60" type="text" id="apriceall" name="price">
</div>
<button type="button" class="am-btn ubtn-search2 ubtn-green abat">
批量设置
</button>
</div>
</div>
<div class="gspace15"></div>
<div class="am-form-group">
<label class="am-u-lg-3 am-form-label" for="">————服务1</label>
<div class="am-u-lg-9">
<div class="ua">
<label class="am-checkbox-inline">
<input type="checkbox" id="ajoin1" value="" data-am-ucheck> 参与活动
</label>
</div>
<div class="ua">
<label for="doc-ipt-3" class="am-form-label">折扣</label>
<input id="acount1" class="uinput uinput-60" type="text" name="">
</div>
<div class="ua">
<label for="doc-ipt-3" class="am-form-label">优惠价</label>
<input id="aprice1" class="uinput uinput-60" type="text" name="">
</div>
</div>
</div>
<div class="am-form-group">
<label class="am-u-lg-3 am-form-label" for="">————服务2</label>
<div class="am-u-lg-9">
<div class="ua">
<label class="am-checkbox-inline">
<input id="ajoin2" type="checkbox" value="" data-am-ucheck> 参与活动
</label>
</div>
<div class="ua">
<label for="doc-ipt-3" class="am-form-label">折扣</label>
<input id="acount2" class="uinput uinput-60" type="text" name="">
</div>
<div class="ua">
<label for="doc-ipt-3" class="am-form-label">优惠价</label>
<input id="aprice2" class="uinput uinput-60" type="text" name="">
</div>
</div>
</div>
</div>
<div class="am-tab-panel am-fade" id="tab2">
wu
</div>
</div>
</div>
</form>
</div>
<div class="am-modal-footer ufoot">
<div class="am-btn-group">
<button type="submit" class="am-btn ubtn-sure ubtn-green"><i class="iconfont icon-yuanxingxuanzhong"></i>
完成
</button>
</div>
</div>
</div>
</div>
<!-- 删除按钮弹出框 -->
<div id="cconfirm" class="am-modal am-modal-confirm" tabindex="-1">
<div class="am-modal-dialog uconfirm">
<div class="am-modal-hd uhead"><b>删 除 提 醒</b></div>
<div class="am-modal-bd">
你,确定要删除这条记录吗?
</div>
<div class="am-modal-footer">
<span class="am-modal-btn" data-am-modal-cancel>取消</span>
<span class="am-modal-btn" data-am-modal-confirm>确定</span>
</div>
</div>
</div>
<script src="js/jquery.min.js"></script>
<script src="js/amazeui.min.js"></script>
<script type="text/javascript">
$(function() {
$('.cdel').on('click', function() {
$('#cconfirm').modal({
relatedTarget: this,
onConfirm: function(options) {
$(this.relatedTarget).parent('td').parent('tr').remove();
},
onCancel: function(){
return
}
});
});
$('.copenm3').on('click', function() {
$('#udiscountm1').modal('close');
$('#udiscountm3').modal('open');
});
$(document).on('click','.abat',function(){
$("[id*='aprice']").val($("#apriceall").val());
$("[id*='acount']").val($("#acountall").val());
$("[id*='ajoin']").prop('checked',$("#ajoinall").prop('checked'));
})
});
</script>
</body>
</html>