jiangming.html
20.6 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
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
<!-- 添加图标、楼层 -->
<script type="text/template" id="icon-template">
[[if contentData.template_name=='appIconList']]
<div class="panel-body">
<div class="form-group">
<div class="col-sm-6">
<label>图标类型</label>  
<input type="radio" name="number" class="icon-number" value="4">一行4个
</label>
<label style="cursor: pointer;">
<input type="radio" name="number" class="icon-number" value="5">一行5个
</label>
<input type="hidden" id="number" value="[[contentData.number]]" for="radio"/>
</div>
<div class="col-sm-1">
<label>添加皮肤</label> 
</div>
<div class="col-sm-3">
<input type="file" name="file" class="backImage" value="[[contentData.back_image]]" data-field="..back_image"/>
</div>
<div class="col-sm-1">
<input type="button" class="btn btn-danger delBackImage" value="删除皮肤">
</div>
</div>
</div>
[[/if]]
<div class="panel-body">
<div>
<ul class="draggable" data-array="data">
[[each contentData.data as item index]]
<li>
<table class="table table-hover table-bordered responsive dataTable no-footer">
<tbody>
<tr>
<td align="center">
[[index+1]]
</td>
<td align="center"><input type="file" name="file" value="[[item.src]]" class="observe" data-field="[[index]].src"/>
</td>
<td>
<div class="form-group ">
<select name="goTo" class="form-control observe" value="[[item.url.action]]"
data-field="[[index]].url.action">
[[layout action_template]]
</select>
</div>
<div class="form-group ">
<input value="[[item.url.url]]" class="form-control observe" required="required"
data-field="[[index]].url.url" placeholder="图片链接"/>
<p style="color:#999;margin-top: 5px;">链接中不能有英文单引号</p>
</div>
<div class="form-group ">
<input value="[[item.alt]]" class="form-control observe"
data-field="[[index]].alt" placeholder="图片描述"/>
</div>
[[if contentData.template_name=='addfloor']]
<div class="form-group ">
<input value="[[item.altEn]]" class="form-control observe"
data-field="[[index]].altEn" placeholder="英文描述"/>
</div>
[[/if]]
</td>
<td>
<a class="btn btn-danger delBtn" data-event="icon.data" data-index="[[index]]">删除</a>
</td>
</tr>
</tbody>
</table>
</li>
[[/each]]
</ul>
</div>
<a href="JavaScript:;" data-event="icon.data" class="btn btn-primary btn-xs addBtn">添加一个</a>
</div>
</script>
<!-- 推荐品牌-->
<script type="text/template" id="brands-template">
<div class="panel-body">
[[if contentData.template_name=='appHotBrands']]
<div class="form-group">
<div class="col-sm-10">
<label>标题</label>
<input class="form-control observe input-form" type="text" value="[[contentData.data.title.title]]" data-field="title.title" placeholder="推荐品牌">
    <label>显示名称</label>
<label style="cursor: pointer;"><input type="radio" name="is_show_name_brand" class="is_show_name_brand" value="Y">是</label>
<label style="cursor: pointer;"><input type="radio" name="is_show_name_brand" class="is_show_name_brand" value="N">否</label>
<input type="hidden" id="is_show_name_brand" value="[[contentData.data.is_show_name]]" for="radio"/>
</div>
</div>
[[/if]]
[[if contentData.template_name=='customBrands']]
<div class="form-group">
<div class="col-sm-6">
<label>标题</label>    
<input class="form-control observe input-form" type="text" value="[[contentData.data.title.title]]" data-field="title.title" placeholder="自定义品牌">
</div>
</div>
<div class="form-group">
<div class="col-sm-6">
<label>附加参数</label>  
<select class="form-control observe input-form" value="[[contentData.data.title.param]]" data-field="title.param">
[[layout parm1_template]]
</select>
</div>
<div class="col-sm-6">
<label>附加参数值</label> 
<input class="form-control observe input-form" type="text" value="[[contentData.data.title.param_value]]" data-field="title.param_value" placeholder="附加参数值">
</div>
</div>
[[/if]]
[[if contentData.template_name=='kidsBrands']]
<div class="form-group">
<div class="col-sm-6">
<label>标题</label>    
<input class="form-control observe input-form" required type="text" value="[[contentData.data.params.title]]" data-field="params.title" placeholder="请输入标题" prompt="标题">
</div>
</div>
<div class="form-group">
<div class="col-sm-6">
<label>分类</label>    
<select class="form-control observe input-form" value="[[contentData.data.params.param]]" data-field="params.param">
[[layout parm2_template]]
</select>
</div>
<div class="col-sm-6">
<label>附加参数值</label> 
<input class="form-control observe input-form" type="text" value="[[contentData.data.params.paramValue]]" data-field="params.paramValue" placeholder="附加参数值">
</div>
</div>
<div class="form-group ">
<div class="col-sm-6">
<label>更多名称</label>  
<input class="form-control observe input-form" type="text" value="[[contentData.data.params.more]]" data-field="params.more" placeholder="更多名称">
</div>
</div>
<div class="form-group ">
<div class="col-sm-6">
<label>跳转目的</label>  
<select name="goTo" class="form-control observe input-form" value="[[contentData.data.params.more_url.action]]"
data-field="params.more_url.action">
[[layout action_template]]
</select>
</div>
<div class="col-sm-6">
<label>链接</label>    
<input placeholder="url" value="[[contentData.data.params.more_url.url]]" class="form-control observe input-form"
data-field="params.more_url.url"/>
<br>      
<label style="color:#999;margin-top: 5px;">注:链接中不能有英文单引号</label>
</div>
</div>
[[/if]]
</div>
<div class="panel-body">
<div class="form-group">
<a href="JavaScript:;" id="addBrands" class="btn btn-primary btn-xs">添加品牌</a>
</div>
<div>
<ul class="draggable" data-array="data.list">
[[each contentData.data.list as item index]]
<li>
<table class="table table-hover table-bordered responsive dataTable no-footer">
<tbody>
<tr>
<td align="center">
<input type="file" name="file" value="[[item.src]]" class="observe" data-field="list.[[index]].src"/>
</td>
<td align="center">
<div class="form-group">
[[if contentData.template_name=='kidsBrands']]
<input class="form-control observe" type="text" value="[[item.title]]" data-field="list.[[index]].title">
[[else]]
<input class="form-control observe" type="text" value="[[item.name]]" data-field="list.[[index]].name">
[[/if]]
</div>
[[if contentData.template_name=='appHotBrands']]
<div class="form-group">
<select name="goTo" class="observe form-control" value="[[item.url.action]]" data-field="list.[[index]].url.action">
[[layout action_template]]
</select>
</div>
<div class="form-group">
<input placeholder="url" value="[[item.url.url]]" class="observe form-control" data-field="list.[[index]].url.url"/>
</div>
[[/if]]
</td>
<td>
<a class="btn btn-danger delBtn" data-event="brands.list" data-index="[[index]]">删除</a>
</td>
</tr>
</tbody>
</table>
</li>
[[/each]]
</ul>
</div>
</div>
<div id="brandLists">
</div>
<div class="panel-body">
[[if contentData.template_name=='appHotBrands']]
<div class="form-group">
<table class="table table-hover table-bordered responsive dataTable no-footer">
<thead>
<tr>
<th>图片</th>
<th>选项</th>
</tr>
</thead>
<tbody>
<tr>
<td>
<input type="file" name="file" value="[[contentData.data.image.src]]"
class="observe" required="required"
data-field="image.src"/>
</td>
<td>
<div class="form-group ">
<select name="goTo" class="form-control observe"
value="[[contentData.data.image.url.action]]"
data-field="image.url.action">
[[layout action_template]]
</select>
</div>
<div class="form-group ">
<input value="[[contentData.data.image.url.url]]"
class="form-control observe"
data-field="image.url.url" placeholder="图片链接"/>
<p style="color:#999;margin-top: 5px;">链接中不能有英文单引号</p>
</div>
<div class="form-group ">
<input value="[[contentData.data.image.alt]]"
class="form-control observe"
data-field="image.alt" placeholder="图片描述"/>
</div>
</td>
</tr>
</tbody>
</table>
</div>
[[/if]]
</div>
</script>
<!--品牌选择模态-->
<script type="text/template" id="template5">
<div class="row" id="brandForm">
<div class="form-group">
[[each Brands as brand index]]
<a class="btn brand-index" href="#[[brand.name]]">[[brand.name]]</a>
[[/each]]
<input type="text" class="form-control" placeholder="搜索" id="brandsearch"/>
</div>
<div class="form-group brand-wrap" style="height: 400px;overflow: auto;">
[[each Brands as brand index]]
<div class="form-group" name="[[brand.name]]">
[[each brand.items as item __index ]]
<a class="btn">
<input type="checkbox" value="[[item.id]]" name="brandCheckBox">
<label>[[item.brand_name]]</label>
</a>
[[/each]]
</div>
[[/each]]
<div class="form-group" id="brandsearchwrap" name="brandsearch">
</div>
</div>
<input type="hidden" id="brandCheckBox" for="checkbox" value="[[Brdata]]"/>
</div>
</script>
<!--自定义品牌附加参数-->
<script type="text/template" id="parm1_template">
<option value="">请选择附加参数</option>
<option value="msort">大分类</option>
</script>
<!--kids品牌分类参数-->
<script type="text/template" id="parm2_template">
<option value="promotion">促销id</option>
<option value="msort">大分类ID</option>
</script>
<!-- 9-1 标题标签 -->
<script type="text/template" id="title-template">
<div class="rows">
<div class="form-group ">
<div class="col-sm-6">
<label>标题名称</label>  
<input class="form-control observe input-form" placeholder="标题名称" type="text" value="[[contentData.data.title_name]]" data-field="title_name" required>
</div>
<div class="col-sm-6">
<label>更多名称</label>  
<input class="form-control observe input-form" type="text" placeholder="更多名称" value="[[contentData.data.more_name]]" data-field="more_name">
</div>
</div>
<div class="form-group ">
<div class="col-sm-6">
<label>跳转目的</label>  
<select name="goTo" class="form-control observe input-form" value="[[contentData.data.more_link.action]]" data-field="more_link.action">
[[layout action_template]]
</select>
</div>
<div class="col-sm-6">
<label>链接</label>    
<input value="[[contentData.data.more_link.url]]" class="form-control observe input-form" data-field="more_link.url" placeholder="url"/>
<p style="color:#999;margin-top: 5px;">注:链接中不能有英文单引号</p>
</div>
</div>
</div>
<div class="panel-body">
<div>
<table class="table table-hover table-bordered responsive dataTable no-footer">
<thead>
<tr>
<td align="center"><strong>序号</strong></td>
<td align="center"><strong>标签名称</strong></td>
<td align="center"><strong>导航链接</strong></td>
</tr>
</thead>
<tbody>
[[each contentData.data.nav as item index]]
<tr>
<td align="center">
[[index+1]]
</td>
<td align="center">
<div class="form-group">
<div class="col-sm-10">
<input value="[[item.name]]" class="form-control observe" required="required" data-field="nav.[[index]].name" placeholder="标签名称"/>
</div>
</div>
</td>
<td>
<div class="form-group">
<div class="col-sm-10">
<select name="goTo" class="form-control observe" value="[[item.url.action]]"
data-field="nav.[[index]].url.action">
[[layout action_template]]
</select>
</div>
</div>
<div class="form-group">
<div class="col-sm-10">
<input value="[[item.url.url]]" class=" form-control observe" required="required"
data-field="nav.[[index]].url.url" placeholder="链接"/>
<p style="color:#999;margin-top: 5px;">链接中不能有英文单引号</p>
</div>
</div>
</td>
</tr>
[[/each]]
</tbody>
</table>
</div>
<a href="JavaScript:;" data-event="title.nav" class="btn btn-primary btn-xs addBtn">添加一个</a>
</div>
</script>
<!-- 领券频道 -->
<script type="text/template" id="getCoupon-template">
<div class="panel-body">
<div>
<ul class="draggable" data-array="data">
[[each contentData.data as item index]]
<li>
<table class="table table-hover table-bordered responsive dataTable no-footer">
<tbody>
<tr>
<td align="center">
[[index+1]]
</td>
<td align="center">
<div class="form-group">
<div class="col-sm-10">
<input type="file" name="file" value="[[item.image.src]]" class="form-control observe" data-field="[[index]].image.src" required placeholder="图片"/>
</div>
</div>
</td>
<td>
<div class="form-group">
<div class="col-sm-10">
<input value="[[item.couponID]]" id="couponID" class="form-control observe" required="required" data-field="[[index]].couponID" placeholder="领券码"/>
<p style="color:#999;margin-top: 5px;">多个领券码以英文逗号隔开</p>
</div>
</div>
<div class="form-group">
<div class="col-sm-10">
<select name="goTo" class="form-control observe" value="[[item.image.url.action]]" data-field="[[index]].image.url.action">
[[layout action_template]]
</select>
</div>
</div>
<div class="form-group">
<div class="col-sm-10">
<input value="[[item.image.url.url]]" class="form-control observe" required="required" data-field="[[index]].image.url.url" placeholder="图片链接" type="text"/>
<p style="color:#999;margin-top: 5px;">链接中不能有英文单引号</p>
</div>
</div>
</td>
<td>
<a class="btn btn-danger delBtn [[if contentData.data.length == 1]]disabled[[/if]]" data-event="getCoupon.data" data-index="[[index]]">删除</a>
</td>
</tr>
</tbody>
</table>
</li>
[[/each]]
</ul>
</div>
<a href="JavaScript:;" id="coupon-addOne" data-event="getCoupon.data" class="btn btn-primary btn-xs addBtn">添加一个</a>
</div>
</script>