coupon-edit.html
12.4 KB
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
<div class="contentpanel">
<div class="row">
<div class="col-md-12">
<form id="basicForm" role="{{type}}" class="form-horizontal form-bordered" method="get" action="{{action}}">
<div class="panel panel-default">
{{# data}}
<div class="panel-heading">
<h4 class="panel-title">基本信息</h4>
</div><!-- panel-heading -->
<div class="panel-body">
<div class="row">
<div class="form-group">
<label class="col-sm-2 control-label">名称 <span class="red">*</span></label>
<div class="col-sm-8">
<input type="text" id="name" placeholder="名称" class="form-control" required maxlength="15" value="{{name}}">
</div>
</div>
<div class="form-group">
<label for="limitTimes" class="col-sm-2 control-label">次数</label>
<div class="col-sm-8">
<input type="text" id="limitTimes" placeholder="0 表示不限制" class="form-control" required pattern="^[0-9]+$" value="{{limitTimes}}">
</div>
<!--required pattern="^[0-9]+$"-->
</div>
<div class="form-group">
<label for="code" class="col-sm-2 control-label">码值<i class="red">*</i></label>
<div class="col-sm-8">
<input type="text" id="code" placeholder="仅限数字,字母(不区分大小写),30字符内,多码值用英文逗号分隔" value='{{code}}' class="form-control" pattern="^[A-Za-z0-9]+$" maxlength="30" required>
<!--pattern="^[A-Za-z0-9]+$" maxlength="30" required-->
</div>
</div>
<div class="form-group">
<label class="col-sm-2 control-label">店铺类型</label>
<div class="col-sm-3">
<select id="department1" class="form-control">
<option value="零售部">零售部</option>
<option value="市场部">市场部</option>
<option value="会员部">会员部</option>
<option value="品牌合作部">品牌合作部</option>
<option value="潮流资源部">潮流资源部</option>
<option value="其他">其他</option>
</select>
</div>
<div class="col-sm-3">
<select id="department2" class="form-control">
<option value="营销策划">营销策划</option>
<option value="类目运营">类目运营</option>
<option value="店铺运营">店铺运营</option>
</select>
</div>
<input type="hidden" id="reqDepartment" value="{{reqDepartment}}" required>
</div>
<div class="form-group">
<label class="col-sm-2 control-label">营业期限<span class="red">*</span></label>
<div class="col-sm-3">
<input type="text" class="form-control" jsaction="time:end:limitDateTo" id="limitDateFrom" placeholder="优惠开始时间" value="{{limitDateFrom}}" readonly required>
</div>
<div class="col-sm-3">
<input type="text" class="form-control" jsaction="time:start:limitDateFrom" id="limitDateTo" placeholder="优惠结束时间" value="{{limitDateTo}}" readonly required>
</div>
<!-- readonly require-->
</div>
<div class="form-group">
<label for="name" class="col-sm-2 control-label">优惠码说明<i class="red">*</i></label>
<div class="col-sm-8">
<textarea class="form-control" id="describe" placeholder="优惠码使用条件简介" required>{{describe}}</textarea>
</div>
<!-- require-->
</div>
</div>
</div>
<div class="panel-heading">
<h4 class="panel-title">优惠详情</h4>
</div>
<div class="panel-body">
<div class="row">
<div class="form-group">
<label for="promotionInfo.type" class="col-sm-2 control-label">优惠类型<i class="red">*</i></label>
<div class="col-sm-8">
<label class="radio-inline">
<input type="radio" value="1" name="promotionInfo-type" minchecked="1" required checked> 折扣(吊牌价)
</label>
<label class="radio-inline">
<input type="radio" value="2" name="promotionInfo-type"> 折扣(销售价)
</label>
<label class="radio-inline">
<input type="radio" value="3" name="promotionInfo-type"> 满减
</label>
</div>
<!-- <input type="hidden" value="1" id="promotionInfo-type"> -->
<!-- required checked-->
</div>
<div class="form-group">
<label for="condition" class="col-sm-2 control-label">优惠条件<i class="red">*</i></label>
<div class="col-sm-8">
<div class="form-inline">
<div class="form-group">
>=
<input type="text" class="form-control" id="promotionInfo-condition-amount_at_least" placeholder="0.00" value="0" required pattern="^[0-9]+(.\d{1,2})?$">
<!--required pattern="^[0-9]+(.\d{1,2})?$"-->
元,
</div>
<div class="form-group">
>=
<input type="text" class="form-control" id="promotionInfo-condition-count_at_least" placeholder="1" value="1" required pattern="^[1-9]+$">
件
</div>
<!-- required pattern="^[1-9]+$"-->
</div>
</div>
</div>
<div class="form-group">
<label for="action" class="col-sm-2 control-label">优惠结果<i class="red">*</i></label>
<div class="col-sm-8">
<div class="form-inline">
<div class="form-group" id="resultdiscount">
打
<input type="text" class="form-control" placeholder="0.00" id="promotionInfo-action-discount" value="0.00" required pattern="^0(.\d{1,2})?$">
<!--required pattern="^0(.\d{1,2})?$"-->
折,
</div>
<div class="form-group">
最高减
<input type="text" class="form-control" placeholder="0" id="promotionInfo-action-discount_at_most" required pattern="^[0-9]+(.\d{1,2})?$">
<!--required pattern="^[0-9]+(.\d{1,2})?$"-->
元
</div>
</div>
</div>
</div>
<input type="hidden" id="promotionInfo" value="{{promotionInfo}}">
</div>
</div>
<div class="panel-heading">
<h4 class="panel-title">使用条件</h4>
</div>
<div class="form-group">
<label for="userSourceLimit" class="col-sm-2 control-label">用户来源<i class="red">*</i></label>
<div class="col-sm-8">
<label class="checkbox-inline">
<input type="checkbox" value="1" name="userSourceLimit" > IOS
</label>
<label class="checkbox-inline">
<input type="checkbox" value="2" name="userSourceLimit" > 安卓
</label>
</div>
<input type="hidden" value="{{userSourceLimit}}" id="userSourceLimit" for="checkbox" required>
</div>
<div class="form-group">
<label for="name" class="col-sm-2 control-label">用户身份<i class="red">*</i></label>
<div class="col-sm-8">
<label class="checkbox-inline">
<input type="checkbox" value="1" name="userTypeLimit" > 新注册
</label>
<label class="checkbox-inline">
<input type="checkbox" value="2" name="userTypeLimit"> 注册未购买
</label>
</div>
<input type="hidden" value="{{userTypeLimit}}" id="userTypeLimit" for="checkbox" required>
</div>
<div class="form-group">
<label for="name" class="col-sm-2 control-label">限制次数<i class="red">*</i></label>
<div class="col-sm-8">
<input type="number" id="userUseLimit" placeholder="限制次数" class="form-control" value="{{userUseLimit}}" required pattern="^[1-9]+$">
<!--required pattern="^[1-9]+$"-->
</div>
</div>
<div class="form-group">
<label class="col-sm-2 control-label">申请人</label>
<div class="col-sm-8">
<label class="form-label" id="staff">{{staff}}</label>
</div>
</div>
<input type="hidden" value="{{staff}}" id="staff" >
<input type="hidden" value="{{id}}" id="id" >
<input type="hidden" value="{{status}}" id="status" >
{{/ data}}
<div class="panel-footer">
<div class="row">
<div class="col-sm-8 col-sm-offset-2">
<a href="javascript:;" onclick="history.go(-1);" class="btn btn-default">取消</a>
<button id="save_brand" type="submit" data-loading-text="保存中..." class="btn btn-primary">保存</button>
</div>
</div>
</div>
</div>
</form>
</div>
</div>
</div>