taoyu.html
18.9 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
<!-- 标题图片 -->
<script type="text/template" id="titleImage-template">
<div class="panel-body" id="titleImage-baseFrom">
<div class="form-group">
<label class="col-sm-2 control-label">标题:</label>
<div class="col-sm-4">
<input type="text" class="form-control observe" data-field="title" value="[[contentData.data.title]]" required="required">
</div>
<label class="col-sm-2 control-label">更多名称</label>
<div class="col-sm-4">
<input type="text" data-field="more_name" value="[[contentData.data.more_name]]" class="form-control observe">
</div>
</div>
<div class="form-group">
<label class="col-sm-2 control-label">跳转目的</label>
<div class="col-sm-4">
<select name="goTo" class="form-control observe" data-field="more_url.action" value="[[contentData.data.more_url.action]]" >
[[layout action_template]]
</select>
</div>
<label class="col-sm-2 control-label">跳转地址</label>
<div class="col-sm-4">
<input value="[[contentData.data.more_url.url]]" data-field="more_url.url" class="form-control observe" required="required" />
<p style="color:#999;margin-top: 5px;">注:链接中不能有英文单引号</p>
</div>
</div>
<div>
<table class="table table-hover table-bordered responsive dataTable no-footer">
<thead>
<tr>
<th>序号</th>
<th>资源位</th>
<th>选项</th>
</tr>
</thead>
<tbody>
<tr>
<td>1</td>
<td><input type="file" name="file" value="[[contentData.data.image.src]]" data-field="image.src" class="observe" required="required"/></td>
<td>
<div class="col-sm-12">
<select name="goTo" class="form-control observe" data-field="image.url.action" value="[[contentData.data.image.url.action]]" >
[[layout action_template]]
</select>
</div>
<div class="col-sm-12">
<input type="text" value="[[contentData.data.image.url.url]]" class="form-control observe" data-field="image.url.url" required="required" />
<p style="color:#999;margin-top: 5px;">注:链接中不能有英文单引号</p>
</div>
</td>
</tr>
</tbody>
</table>
</div>
</div>
</script>
<!--多标签图片-->
<script type="text/template" id="multiLabelImage-template">
<div class="panel-body" id="multiLabelImage-baseFrom">
<div class="form-group">
[[each contentData.data.label as item index]]
<label class="control-label">标签[[index+1]]:</label>
<input type="text" class="observe" value="[[item.title]]" data-field="label_list.[[index]].title" required="required" style="width: 100px">
<label class="control-label">跳转目的</label>
<select name="goTo" class="observe" value="[[item.url.action]]" data-field="label_list.[[index]].url.action" style="width: 120px" >
[[layout action_template]]
</select>
<label>跳转地址</label>
<input type="text" class="observe" value="[[item.url.url]]" data-field="label_list.[[index]].url.url" required="required" style="width: 120px" /><br>
[[/each]]
</div>
<a href="JavaScript:;" id="multiLabelImage-addOne" class="btn btn-primary btn-xs">添加标签</a>
<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.image as item index]]
<tr>
<td>[[index+1]]</td>
<td><input type="file" name="file" value="[[item.src]]" data-field="image.[[index]].src" class="observe" required="required"/></td>
<td>
<div class="col-sm-12">
<select name="goTo" class="form-control observe" data-field="image.[[index]].url.action" value="[[item.url.action]]" >
[[layout action_template]]
</select>
</div>
<div class="col-sm-12">
<input type="text" value="[[item.url.url]]" class="form-control observe" data-field="image.[[index]].url.url" required="required" />
<p style="color:#999;margin-top: 5px;">注:链接中不能有英文单引号</p>
</div>
</td>
</tr>
[[/each]]
</tbody>
</table>
</div>
<a href="JavaScript:;" id="multiLabelImage-addImage" class="btn btn-primary btn-xs">添加图片</a>
</div>
</script>
<!--搭配(2T-nF)-->
<script type="text/template" id="matchImage-template">
<div class="panel-body" id="matchImage-baseFrom">
<div class="form-group">
<label class="col-sm-2 control-label">标题:</label>
<div class="col-sm-4">
<input type="text" class="form-control observe" data-field="title.name" value="[[contentData.data.title.name]]" required="required" >
</div>
<label class="col-sm-2 control-label">更多名称</label>
<div class="col-sm-4">
<input type="text" value="[[contentData.data.title.more_name]]" data-field="title.more_name" class="form-control observe" >
</div>
</div>
<div class="form-group">
<label class="col-sm-2 control-label">跳转目的</label>
<div class="col-sm-4">
<select name="goTo" class="form-control observe" value="[[contentData.data.title.more_url.action]]" data-field="title.more_url.action" >
[[layout action_template]]
</select>
</div>
<label class="col-sm-2 control-label">跳转地址</label>
<div class="col-sm-4">
<input value="[[contentData.data.title.more_url.url]]" class="form-control observe" required="required" data-field="title.more_url.url" />
<p style="color:#999;margin-top: 5px;">注:链接中不能有英文单引号</p>
</div>
</div>
<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.top_image as item index]]
<tr>
<td>[[index+1]]</td>
<td><input type="file" name="file" value="[[item.src]]" data-field="top_image.[[index]].src" class="observe" required="required"/></td>
<td>
<div class="col-sm-12">
<select name="goTo" class="form-control observe" data-field="top_image.[[index]].url.action" value="[[item.url.action]]" >
[[layout action_template]]
</select>
</div>
<div class="col-sm-12">
<input type="text" value="[[item.url.url]]" class="form-control observe" data-field="top_image.[[index]].url.url" required="required" />
<p style="color:#999;margin-top: 5px;">注:链接中不能有英文单引号</p>
</div>
</td>
</tr>
[[/each]]
[[each contentData.data.list as item index]]
<tr>
<td>[[index+3]]</td>
<td><input type="file" name="file" value="[[item.src]]" data-field="list.[[index]].src" class="observe" required="required"/></td>
<td>
<div class="col-sm-12">
<select name="goTo" class="form-control observe" data-field="list.[[index]].url.action" value="[[item.url.action]]" >
[[layout action_template]]
</select>
</div>
<div class="col-sm-12">
<input type="text" value="[[item.url.url]]" class="form-control observe" data-field="list.[[index]].url.url" required="required" />
<p style="color:#999;margin-top: 5px;">注:链接中不能有英文单引号</p>
</div>
</td>
</tr>
[[/each]]
</tbody>
</table>
</div>
<a href="JavaScript:;" id="matchImage-addOne" class="btn btn-primary btn-xs">添加一个</a>
</div>
</script>
<!--推荐-->
<script type="text/template" id="recommendContent-template">
<div class="panel-body" id="recommendContent-baseFrom">
[[if contentData.data.title]]
[[if contentData.template_name != "recommendContentFive"]]
<div class="form-group">
<label class="col-sm-2 control-label">标题:</label>
<div class="col-sm-4">
<input type="text" class="form-control observe" value="[[contentData.data.title.name]]" required="required" data-field="title.name">
</div>
<label class="col-sm-2 control-label">更多名称</label>
<div class="col-sm-4">
<input type="text" value="[[contentData.data.title.more_name]]" class="form-control observe" data-field="title.more_name">
</div>
</div>
<div class="form-group">
<label class="col-sm-2 control-label">跳转目的</label>
<div class="col-sm-4">
<select name="goTo" class="form-control observe" value="[[contentData.data.title.more_url.action]]" data-field="title.more_url.action">
[[layout action_template]]
</select>
</div>
<label class="col-sm-2 control-label">跳转地址</label>
<div class="col-sm-4">
<input type="text" value="[[contentData.data.title.more_url.url]]" class="form-control observe" required="required" data-field="title.more_url.url"/>
<p style="color:#999;margin-top: 5px;">注:链接中不能有英文单引号</p>
</div>
</div>
[[/if]]
[[if contentData.template_name=="recommendContentFive"]]
<div class="form-group">
<label class="col-sm-2 control-label">标题:</label>
<div class="col-sm-4">
<input type="text" class="form-control observe" value="[[contentData.data.title.title]]" required="required" data-field="title.title">
</div>
<label class="col-sm-4 control-label">是否显示
<input type="checkbox" value="[[contentData.data.title.is_show]]" checked="[[contentData.data.title.is_show?'checked':'']]" class="observe" data-field="title.is_show">
</label>
</div>
[[/if]]
[[/if]]
<table class="table table-hover table-bordered responsive dataTable no-footer">
<thead>
<tr>
<th>序号</th>
<th>资源位</th>
<th>选项</th>
</tr>
</thead>
<tbody>
[[if contentData.data.big_image]]
[[each contentData.data.big_image as item index]]
<tr>
<td>[[index+1]]</td>
<td><input type="file" name="file" value="[[item.src]]" class="observe" data-field="big_image.[[index]].src"/></td>
<td>
<div class="col-sm-12">
<select name="goTo" class="form-control observe" value="[[item.url.action]]" data-field="big_image.[[index]].url.action">
[[layout action_template]]
</select>
</div>
<div class="col-sm-12">
<input value="[[item.url.url]]" class="form-control observe" required="required" data-field="big_image.[[index]].url.url"/>
<p style="color:#999;margin-top: 5px;">注:链接中不能有英文单引号</p>
</div>
</td>
</tr>
[[/each]]
[[/if]]
[[each contentData.data.list as item index]]
<tr>
<td>[[index+2]]</td>
<td><input type="file" name="file" value="[[item.src]]" class="observe" data-field="list.[[index]].src"/></td>
<td>
<div class="col-sm-12">
<select name="goTo" class="form-control observe" value="[[item.url.action]]" data-field="list.[[index]].url.action">
[[layout action_template]]
</select>
</div>
<div class="col-sm-12">
<input value="[[item.url.url]]" class="form-control observe" required="required" data-field="list.[[index]].url.url"/>
<p style="color:#999;margin-top: 5px;">注:链接中不能有英文单引号</p>
</div>
</td>
</tr>
[[/each]]
</tbody>
</table>
</div>
</script>
<!--图片广告-->
<script type="text/template" id="imageGroup-template">
<div class="panel-body" id="imageGroup-baseFrom">
<p>标题设置:<input name="title" type="text" class="observe" value="[[contentData.data.title]]" data-field="title" required>更多设置:<input type="text" class="observe" style="width:120px;" value="[[contentData.data.more]]" data-field="more"></p>
<p>
更多链接 : <input type="text" value="[[contentData.data.more_url]]" class="observe" required="required" data-field="more_url" />
</p>
<p>样式设置:
<select name="image_style" value="[[contentData.data.image_style]]" data-field="image_style" class="observe">
<option value="default">默认(一张图片)</option>
<option value="T1F2">T1+F2</option>
<option value="L1R2">L1+R2</option>
<option value="imageList" selected="selected">图片列表</option>
</select>
每行显示数量:
<select name="show_num" value="[[contentData.data.show_num]]" data-element="imageGroup" data-field="show_num" class="observe">
<option value="0" selected="selected">一行显示</option>
<option value="1">一行一个</option>
<option value="2">一行两个</option>
<option value="4">一行四个</option>
<option value="6">一行六个</option>
</select> <font color="#999">注:只有图片列表是选择才会有效</font></p>
<div id="imageGroup-bottom">
<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>[[index+1]]</td>
<td><input type="file" name="file" value="[[item.src]]" data-field="list.[[index]].src" class="observe"/></td>
<td>
<div class="col-sm-12">
<select name="goTo" class="form-control observe" value="[[item.url.action]]" data-field="list.[[index]].url.action">
[[layout action_template]]
</select>
</div>
<div class="col-sm-12">
<input value="[[item.url.url]]" class="form-control observe" required="required" data-field="list.[[index]].url.url"/>
</div>
<div class="col-sm-12">
<input placeholder="图片描述" value="[[item.url.title]]" data-field="list.[[index]].url.title" class="form-control observe" required="required" />
</div>
</td>
</tr>
[[/each]]
</tbody>
</table>
</div>
</div>
</script>
<!--select选项-->
<script type="text/template" id="action_template">
<option value="">选择跳转目标</option>
<option value="go.brand">品牌列表页</option>
<option value="go.productDetail">商品详情页</option>
<option value="go.coupon">优惠券页</option>
<option value="go.fav">收藏列表页</option>
<option value="go.mine">我的页面</option>
<option value="go.list">列表或搜索页</option>
<option value="go.attention">关注页</option>
<option value="go.plus">plus页</option>
<option value="go.star">star页</option>
<option value="go.new">新品到着页</option>
<option value="go.sale">折扣页</option>
<option value="go.share">分享</option>
<option value="go.h5">h5网页</option>
<option value="go.weblogin">h5网页调用本地登录</option>
<option value="go.guangchannel">逛频道</option>
<option value="go.gender">男女首页</option>
<option value="go.activity">app活动页</option>
<option value="go.home">频道首页</option>
<option value="go.yohood">YOHOOD</option>
<option value="go.top100">热销排行</option>
<option value="go.activitytemplate">活动模板</option>
<option value="go.globalpurchase">全球购</option>
<option value="go.subchannel">二级频道</option>
<option value="go.guangchannel">逛频道或SHOW晒单页</option>
<option value="go.showgoods">去晒单</option>
<option value="go.limitpurchase">尖货频道</option>
<option value="go.vippro">会员商品</option>
<option value="go.shortsize">断码页</option>
<option value="go.discountmarket">折扣专区</option>
<option value="go.discountmarketpro">折扣专区详情页</option>
<option value="go.signin">签到页</option>
<option value="go.playvideo">视频播放</option>
</script>
<script type="text/template" id="noEdit-template">
<div>固定内容,暂时无法编辑!</div>
</script>