jiangming.html
15.7 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
<!-- 添加图标、楼层 -->
<script type="text/template" id="icon-template">
<div class="panel-body">
<div>
<table class="table table-hover table-bordered responsive dataTable no-footer">
<thead>
<tr>
<th>序号</th>
<th>图标</th>
<th>选项</th>
<th>操作</th>
</tr>
</thead>
<tbody>
[[each contentData.data as item index]]
<tr>
<td>
[[index+1]]
</td>
<td><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>
[[/each]]
</tbody>
</table>
</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" 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 value="[[contentData.data.params.more_url.url]]" class="form-control observe input-form" required="required"
data-field="params.more_url.url"/>
<br>      
<label style="color:#999;margin-top: 5px;">注:链接中不能有英文单引号</label>
</div>
</div>
[[/if]]
</div>
<div class="panel-body">
<div>
<table class="table table-hover table-bordered responsive dataTable no-footer">
<thead>
<tr>
<th>品牌图标</th>
<th>品牌名称</th>
<th>操作</th>
</tr>
</thead>
<tbody>
[[each contentData.data.list as item index]]
<tr>
<td>
<input type="file" name="file" value="[[item.src]]" class="observe" data-field="list.[[index]].src"/>
</td>
<td>
<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>
</td>
<td>
<a class="btn btn-danger delBtn" data-event="brands.list" data-index="[[index]]">删除</a>
</td>
</tr>
[[/each]]
</tbody>
</table>
</div>
<a href="JavaScript:;" id="addBrands" class="btn btn-primary btn-xs">添加品牌</a>
</div>
<div id="brandLists">
</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]]
</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>
<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" type="text" value="[[contentData.data.title_name]]" data-field="title_name">
</div>
<div class="col-sm-6">
<label>更多名称</label>  
<input class="form-control observe input-form" type="text" 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" required="required" data-field="more_link.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>
<th>序号</th>
<th>标签名称</th>
<th>导航链接</th>
</tr>
</thead>
<tbody>
[[each contentData.data.nav as item index]]
<tr>
<td>
[[index+1]]
</td>
<td>
<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>
<table class="table table-hover table-bordered responsive dataTable no-footer">
<thead>
<tr>
<th>序号</th>
<th>图片</th>
<th>选项</th>
</tr>
</thead>
<tbody>
[[each contentData.data as item index]]
<tr>
<td>
[[index+1]]
</td>
<td>
<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>
</tr>
[[/each]]
</tbody>
</table>
</div>
<a href="JavaScript:;" id="coupon-addOne" data-event="getCoupon.data" class="btn btn-primary btn-xs addBtn">添加一个</a>
</div>
</script>