taoyu.html
67.5 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
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
<!-- 标题图片 -->
<script type="text/template" id="titleImage-template">
<div class="panel-body" id="titleImage-baseFrom">
<div class="form-group">
<div class="col-sm-6">
<label>标题</label>    
<input type="text" class="form-control observe input-form" placeholder="标题" data-field="title" value="[[contentData.data.title]]" required="required">
</div>
<div class="col-sm-6">
<label>更多名称</label>  
<input type="text" data-field="more_name" placeholder="更多名称" value="[[contentData.data.more_name]]" class="form-control observe input-form">
</div>
</div>
<div class="form-group">
<div class="col-sm-6">
<label>跳转目的</label>  
<select name="goTo" class="form-control observe input-form" data-field="more_url.action" value="[[contentData.data.more_url.action]]" >
[[layout action_template]]
</select>
</div>
<div class="col-sm-6">
<label>跳转地址</label>  
<input value="[[contentData.data.more_url.url]]" placeholder="url" data-field="more_url.url" class="form-control observe input-form" />
<br>      <label style="color:#999;margin-top: 5px;">注:链接中不能有英文单引号</label>
</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" placeholder="图片" value="[[contentData.data.image.src]]" data-field="image.src" class="observe" required="required"/></td>
<td>
<div class="form-group">
<div class="col-sm-10">
<select name="goTo" class="form-control observe" data-field="image.url.action" value="[[contentData.data.image.url.action]]" >
[[layout action_template]]
</select>
</div>
</div>
<div class="form-group">
<div class="col-sm-10">
<input type="text" value="[[contentData.data.image.url.url]]" placeholder="url" class="form-control observe" data-field="image.url.url" required="required" />
<label style="color:#999;margin-top: 5px;">注:链接中不能有英文单引号</label>
</div>
</div>
</td>
</tr>
</tbody>
</table>
</div>
</div>
</script>
<!--多标签图片-->
<script type="text/template" id="multiLabelImage-template">
<div class="form-group">
[[each contentData.data.label as item index]]
<label class="control-label">标签[[index+1]]:</label>
<input type="text" class="observe" placeholder="名称" value="[[item.title]]" data-field="label.[[index]].title" required="required" style="width: 100px">
<label class="control-label">跳转目的</label>
<select name="goTo" class="observe" value="[[item.url.action]]" data-field="label.[[index]].url.action" style="width: 120px" >
[[layout action_template]]
</select>
<label>跳转地址</label>
<input type="text" class="observe" placeholder="跳转地址" value="[[item.url.url]]" data-field="label.[[index]].url.url" style="width: 120px" /><br>
[[/each]]
</div>
<a href="JavaScript:;" class="btn btn-primary btn-xs addBtn" data-event="multiLabelImage.label">添加标签</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="form-group">
<div class="col-sm-10">
<select name="goTo" class="form-control observe" data-field="image.[[index]].url.action" value="[[item.url.action]]" >
[[layout action_template]]
</select>
</div>
</div>
<div class="form-group">
<div class="col-sm-10">
<input type="text" placeholder="url" value="[[item.url.url]]" class="form-control observe" data-field="image.[[index]].url.url" required="required" />
<label style="color:#999;margin-top: 5px;">注:链接中不能有英文单引号</label>
</div>
</div>
</td>
</tr>
[[/each]]
</tbody>
</table>
</div>
<a href="JavaScript:;" class="btn btn-primary btn-xs addBtn" data-event="multiLabelImage.image">添加图片</a>
</script>
<!--搭配(2T-nF)-->
<script type="text/template" id="matchImage-template">
<div class="panel-body" id="matchImage-baseFrom">
<div class="form-group">
<div class="col-sm-6">
<label>标题</label>    
<input type="text" placeholder="标题" class="form-control observe input-form" data-field="title.name" value="[[contentData.data.title.name]]" required="required" >
</div>
<div class="col-sm-6">
<label>更多名称</label>  
<input type="text" placeholder="更多名称" value="[[contentData.data.title.more_name]]" data-field="title.more_name" class="form-control observe input-form" >
</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.title.more_url.action]]" data-field="title.more_url.action" >
[[layout action_template]]
</select>
</div>
<div class="col-sm-6">
<label>跳转地址</label>  
<input value="[[contentData.data.title.more_url.url]]" placeholder="url" class="form-control observe input-form" required="required" data-field="title.more_url.url" />
<br>      <label style="color:#999;margin-top: 5px;">注:链接中不能有英文单引号</label>
</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="form-group">
<div class="col-sm-10">
<select name="goTo" class="form-control observe" data-field="top_image.[[index]].url.action" value="[[item.url.action]]" >
[[layout action_template]]
</select>
</div>
</div>
<div class="form-group">
<div class="col-sm-10">
<input type="text" placeholder="url" 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>
</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="form-group">
<div class="col-sm-10">
<select name="goTo" class="form-control observe" data-field="list.[[index]].url.action" value="[[item.url.action]]" >
[[layout action_template]]
</select>
</div>
</div>
<div class="form-group">
<div class="col-sm-10">
<input type="text" placeholder="url" 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>
</div>
</td>
</tr>
[[/each]]
</tbody>
</table>
</div>
<a href="JavaScript:;" class="btn btn-primary btn-xs addBtn" data-event="matchImage.list">添加一个</a>
</div>
</script>
<!--推荐(1T-1L-4R) -->
<script type="text/template" id="recommendContentOne-template">
<div class="form-group">
<div class="col-sm-6">
<label>标题</label>    
<input type="text" placeholder="标题" class="form-control observe input-form" value="[[contentData.data.title.name]]" required="required" data-field="title.name">
</div>
<div class="col-sm-6">
<label>更多名称</label>  
<input type="text" placeholder="更多名称" value="[[contentData.data.title.more_name]]" class="form-control observe input-form" data-field="title.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.title.more_url.action]]" data-field="title.more_url.action">
[[layout action_template]]
</select>
</div>
<div class="col-sm-6">
<label>跳转地址</label>  
<input type="text" placeholder="url" value="[[contentData.data.title.more_url.url]]" class="form-control observe input-form" data-field="title.more_url.url"/>
<br>      <label style="color:#999;margin-top: 5px;">注:链接中不能有英文单引号</label>
</div>
</div>
<p><input type="button" name="select-pic" class="btn btn-info btn-xs addBtn" value="添加大图" style="margin:10px;" data-event="recommendContentOne.big_image"></p>
<ul class="draggable" data-array="data.big_image">
[[each contentData.data.big_image as item index]]
<li>
<table class="table table-hover table-bordered responsive dataTable no-footer">
<tbody>
<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="form-group">
<div class="col-sm-10">
<select name="goTo" class="observe form-control" value="[[item.url.action]]" data-field="big_image.[[index]].url.action">
[[layout action_template]]
</select>
</div>
</div>
<div class="form-group">
<div class="col-sm-10">
<input placeholder="url" value="[[item.url.url]]" class="observe form-control" required="required" data-field="big_image.[[index]].url.url"/>
</div>
</div>
<div class="form-group">
<div class="col-sm-10">
<input placeholder="图片描述" value="[[item.title]]" class="observe form-control" data-field="big_image.[[index]].title"/>
</div>
</div>
</td>
</tr>
</tbody>
</table>
</li>
[[/each]]
</ul>
<p><input type="button" name="select-pic" class="btn btn-info btn-xs addBtn" value="添加小图" style="margin:10px;" data-event="recommendContentOne.list"></p>
<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>[[index+1]]</td>
<td><input type="file" name="file" value="[[item.src]]" class="observe" data-field="list.[[index]].src"/></td>
<td>
<div class="form-group">
<div class="col-sm-10">
<select name="goTo" class="observe form-control" value="[[item.url.action]]" data-field="list.[[index]].url.action">
[[layout action_template]]
</select>
</div>
</div>
<div class="form-group">
<div class="col-sm-10">
<input placeholder="url" value="[[item.url.url]]" class="observe form-control" required="required" data-field="list.[[index]].url.url"/>
</div>
</div>
<div class="form-group">
<div class="col-sm-10">
<input placeholder="图片描述" value="[[item.title]]" class="observe form-control" data-field="list.[[index]].title"/>
</div>
</div>
</td>
</tr>
</tbody>
</table>
</li>
[[/each]]
</ul>
</script>
<!--推荐(1T-6F) -->
<script type="text/template" id="recommendContentTwo-template">
<div class="form-group">
<div class="col-sm-6">
<label>标题</label>    
<input type="text" placeholder="标题" class="form-control observe input-form" value="[[contentData.data.title.name]]" required="required" data-field="title.name">
</div>
<div class="col-sm-6">
<label>更多名称</label>  
<input type="text" placeholder="更多名称" value="[[contentData.data.title.more_name]]" class="form-control observe input-form" data-field="title.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.title.more_url.action]]" data-field="title.more_url.action">
[[layout action_template]]
</select>
</div>
<div class="col-sm-6">
<label>跳转地址</label>  
<input type="text" placeholder="url" value="[[contentData.data.title.more_url.url]]" class="form-control observe input-form" data-field="title.more_url.url"/>
<br>      <label style="color:#999;margin-top: 5px;">注:链接中不能有英文单引号</label>
</div>
</div>
<p><input type="button" name="select-pic" class="btn btn-info btn-xs addBtn" value="添加大图" style="margin:10px;" data-event="recommendContentTwo.big_image"></p>
<ul class="draggable" data-array="data.big_image">
[[each contentData.data.big_image as item index]]
<li>
<table class="table table-hover table-bordered responsive dataTable no-footer">
<tbody>
<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="form-group">
<div class="col-sm-10">
<select name="goTo" class="observe form-control" value="[[item.url.action]]" data-field="big_image.[[index]].url.action">
[[layout action_template]]
</select>
</div>
</div>
<div class="form-group">
<div class="col-sm-10">
<input placeholder="url" value="[[item.url.url]]" class="observe form-control" required="required" data-field="big_image.[[index]].url.url"/>
</div>
</div>
<div class="form-group">
<div class="col-sm-10">
<input placeholder="图片描述" value="[[item.title]]" class="observe form-control" data-field="big_image.[[index]].title"/>
</div>
</div>
</td>
</tr>
</tbody>
</table>
</li>
[[/each]]
</ul>
<p><input type="button" name="select-pic" class="btn btn-info btn-xs addBtn" value="添加小图" style="margin:10px;" data-event="recommendContentTwo.list"></p>
<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>[[index+1]]</td>
<td><input type="file" name="file" value="[[item.src]]" class="observe" data-field="list.[[index]].src"/></td>
<td>
<div class="form-group">
<div class="col-sm-10">
<select name="goTo" class="observe form-control" value="[[item.url.action]]" data-field="list.[[index]].url.action">
[[layout action_template]]
</select>
</div>
</div>
<div class="form-group">
<div class="col-sm-10">
<input placeholder="url" value="[[item.url.url]]" class="observe form-control" required="required" data-field="list.[[index]].url.url"/>
</div>
</div>
<div class="form-group">
<div class="col-sm-10">
<input placeholder="图片描述" value="[[item.title]]" class="observe form-control" data-field="list.[[index]].title"/>
</div>
</div>
</td>
</tr>
</tbody>
</table>
</li>
[[/each]]
</ul>
</script>
<!--推荐(1T-12F) -->
<script type="text/template" id="recommendContentThree-template">
<p><input type="button" name="select-pic" class="btn btn-info btn-xs addBtn" value="添加大图" style="margin:10px;" data-event="recommendContentThree.big_image"></p>
<ul class="draggable" data-array="data.big_image">
[[each contentData.data.big_image as item index]]
<li>
<table class="table table-hover table-bordered responsive dataTable no-footer">
<tbody>
<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="form-group">
<div class="col-sm-10">
<select name="goTo" class="observe form-control" value="[[item.url.action]]" data-field="big_image.[[index]].url.action">
[[layout action_template]]
</select>
</div>
</div>
<div class="form-group">
<div class="col-sm-10">
<input placeholder="url" value="[[item.url.url]]" class="observe form-control" required="required" data-field="big_image.[[index]].url.url"/>
</div>
</div>
<div class="form-group">
<div class="col-sm-10">
<input placeholder="图片描述" value="[[item.title]]" class="observe form-control" data-field="big_image.[[index]].title"/>
</div>
</div>
</td>
</tr>
</tbody>
</table>
</li>
[[/each]]
</ul>
<p><input type="button" name="select-pic" class="btn btn-info btn-xs addBtn" value="添加小图" style="margin:10px;" data-event="recommendContentThree.list"></p>
<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>[[index+1]]</td>
<td><input type="file" name="file" value="[[item.src]]" class="observe" data-field="list.[[index]].src"/></td>
<td>
<div class="form-group">
<div class="col-sm-10">
<select name="goTo" class="observe form-control" value="[[item.url.action]]" data-field="list.[[index]].url.action">
[[layout action_template]]
</select>
</div>
</div>
<div class="form-group">
<div class="col-sm-10">
<input placeholder="url" value="[[item.url.url]]" class="observe form-control" required="required" data-field="list.[[index]].url.url"/>
</div>
</div>
<div class="form-group">
<div class="col-sm-10">
<input placeholder="图片描述" value="[[item.title]]" class="observe form-control" required="required" data-field="list.[[index]].title"/>
</div>
</div>
</td>
</tr>
</tbody>
</table>
</li>
[[/each]]
</ul>
</script>
<!--推荐(L1-RT1-RF2)-->
<script type="text/template" id="recommendContentFour-template">
<div class="form-group">
<div class="col-sm-10">
<label>左边图片标题</label> 
<input type="text" placeholder="左边图片标题" class="observe form-control input-form" data-field="left.title" value="[[contentData.data.left.title]]" required="required">
</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.left.list as item index]]
<tr>
<td>[[index+1]]</td>
<td><input type="file" name="file" value="[[item.src]]" class="observe" data-field="left.list.[[index]].src" required/></td>
<td>
<div class="form-group">
<div class="col-sm-10">
<select name="goTo" class="form-control observe" value="[[item.url.action]]" data-field="left.list.[[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" data-field="left.list.[[index]].url.url" placeholder="url"/>
<p style="color:#999;margin-top: 5px;">注:链接中不能有英文单引号</p>
</div>
</div>
<div class="form-group">
<div class="col-sm-10">
<input value="[[item.alt]]" class="form-control observe" data-field="left.list.[[index]].alt" placeholder="图片描述"/>
</div>
</div>
</td>
</tr>
[[/each]]
</tbody>
</table>
<div class="form-group">
<div class="col-sm-10">
<label>右边图片标题:</label>
<input type="text" class="observe form-control input-form" placeholder="右边图片标题" data-field="right.title" value="[[contentData.data.right.title]]" required="required">
</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.right.list as item index]]
<tr>
<td>[[index+1]]</td>
<td><input type="file" name="file" value="[[item.src]]" class="observe" data-field="right.list.[[index]].src" required/></td>
<td>
<div class="form-group">
<div class="col-sm-10">
<select name="goTo" class="form-control observe" value="[[item.url.action]]" data-field="right.list.[[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" data-field="right.list.[[index]].url.url" placeholder="url"/>
<p style="color:#999;margin-top: 5px;">注:链接中不能有英文单引号</p>
</div>
</div>
<div class="form-group">
<div class="col-sm-10">
<input value="[[item.alt]]" class="form-control observe" data-field="right.list.[[index]].alt" placeholder="图片描述"/>
</div>
</div>
</td>
</tr>
[[/each]]
</tbody>
</table>
</script>
<!--推荐(标题 + 12张图) -->
<script type="text/template" id="recommendContentFive-template">
<div class="form-group">
<div class="col-sm-10">
<label>标题</label>   
<input type="text" placeholder="标题" class="form-control observe input-form" value="[[contentData.data.title.title]]" required="required" data-field="title.title">
<label>  
是否显示<input type="checkbox" name="is_show" value="1" id="recommendContentFive-is_show" [[contentData.data.title.is_show==1?'checked':'']]>
</label>
</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>[[index+1]]</td>
<td><input type="file" name="file" value="[[item.src]]" class="observe" data-field="list.[[index]].src"/></td>
<td>
<div class="form-group">
<div class="col-sm-10">
<select name="goTo" class="observe form-control" value="[[item.url.action]]" data-field="list.[[index]].url.action">
[[layout action_template]]
</select>
</div>
</div>
<div class="form-group">
<div class="col-sm-10">
<input placeholder="url" value="[[item.url.url]]" class="observe form-control" required="required" data-field="list.[[index]].url.url"/>
</div>
</div>
<div class="form-group">
<div class="col-sm-10">
<input placeholder="图片描述" value="[[item.title]]" class="observe form-control" data-field="list.[[index]].title"/>
</div>
</div>
</td>
</tr>
</tbody>
</table>
</li>
[[/each]]
</ul>
<p><input type="button" name="select-pic" class="btn btn-info btn-xs addBtn" value="添加一张" style="margin:10px;" data-event="recommendContentFive.list"></p>
</script>
<!--图片广告-->
<script type="text/template" id="imageGroup-template">
<div class="form-group">
<div class="col-sm-12">
<label>标题设置</label>
<input name="title" type="text" class="observe form-control input-form" placeholder="标题" value="[[contentData.data.title]]" data-field="title" required>
<label>更多设置</label>
<input type="text" placeholder="更多" prompt="更多设置" class="observe form-control input-form" style="width:120px;" value="[[contentData.data.more]]" data-field="more">
</div>
</div>
<div class="form-group">
<div class="col-sm-6">
<label>更多链接</label>
<input type="text" placeholder="更多链接" value="[[contentData.data.more_url]]" class="observe form-control input-form" data-field="more_url" />
</div>
</div>
<div class="form-group">
<div class="col-sm-12">
<label>样式设置</label>
<select name="image_style" value="[[contentData.data.image_style]]" data-field="image_style" class="observe form-control input-form">
<option value="default">默认(一张图片)</option>
<option value="T1F2">T1+F2</option>
<option value="L1R2">L1+R2</option>
<option value="imageList" selected="selected">图片列表</option>
</select>
<label>每行显示数量</label>
<select name="show_num" value="[[contentData.data.show_num]]" data-element="imageGroup" data-field="show_num" class="observe form-control input-form">
<option value="0" selected="selected">一行显示</option>
<option value="1">一行一个</option>
<option value="2">一行两个</option>
<option value="4">一行四个</option>
<option value="6">一行六个</option>
</select><i color="#999">注:只有图片列表是选择才会有效</i>
</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>[[index+1]]</td>
<td><input type="file" name="file" value="[[item.src]]" data-field="list.[[index]].src" class="observe"/></td>
<td>
<div class="form-group">
<div class="col-sm-10">
<select name="goTo" class="form-control observe" value="[[item.url.action]]" data-field="list.[[index]].url.action">
[[layout action_template]]
</select>
</div>
</div>
<div class="form-group">
<div class="col-sm-10">
<input value="[[item.url.url]]" placeholder="url" class="form-control observe" required="required" data-field="list.[[index]].url.url"/>
</div>
</div>
<div class="form-group">
<div class="col-sm-10">
<input placeholder="图片描述" value="[[item.title]]" data-field="list.[[index]].title" class="form-control observe" />
</div>
</div>
</td>
</tr>
</tbody>
</table>
</li>
[[/each]]
</ul>
<a href="JavaScript:;" class="btn btn-primary btn-xs addBtn" data-event="imageGroup.list">添加图片</a>
</script>
<!--自定义参数-->
<script type="text/template" id="paramsGroup-template">
<div class="form-group">
<div class="col-sm-6">
<label>标题设置</label>  
<input type="text" placeholder="标题" class="form-control observe input-form" value="[[contentData.data.title]]" required="required" data-field="title">
</div>
<div class="col-sm-6">
<label>更多设置</label>  
<input type="text" placeholder="更多" value="[[contentData.data.more]]" class="form-control observe input-form" data-field="more">
</div>
</div>
<div class="form-group">
<div class="col-sm-12">
<label>跳转地址</label>  
<input type="text" placeholder="url" value="[[contentData.data.more_url.url]]" class="form-control observe input-form" data-field="more_url.url"/>
<br>      <label style="color:#999;margin-top: 5px;">注:链接中不能有英文单引号</label>
</div>
</div>
<div id="paramsGroup-bottom">
<ul class="draggable sortable" data-array="data.list" style="margin:10px;width:100%;">
[[each contentData.data.list as item index]]
<li class="dragItem">
<table style="width:100%;z-index:-1;">
<tbody>
<tr>
<td width="100px">标题:<input type="text" placeholder="标题" required style="width: 60px;" class="observe" value="[[item.title]]" data-field="list.[[index]].title"></td>
<td>参数:<input type="text" placeholder="参数" style="width:300px;" class="observe" value="[[item.params]]" data-field="list.[[index]].params"></td>
<td><button class="btn btn-danger btn-sm delBtn" data-event="paramsGroup.list" type="button" data-index="[[index]]">删除</button></td>
</tr>
</tbody>
</table>
<p style="color:#999">如:http://list.yohobuy.com/?gender=1,3&msort=1,3 参数为:gender=1,3&msort=1,3</p>
</li>
[[/each]]
</ul>
<button type="button" class="btn btn-sm addBtn" data-event="paramsGroup.list">添加一个</button>
</div>
</script>
<!--新人专享-->
<script type="text/template" id="newUserFloor-template">
<div class="form-group">
<div class="col-sm-6">
<label>标题</label>    
<input type="text" placeholder="标题" value="[[contentData.data.title.name]]" class="observe form-control input-form" data-field="title.name" required>
</div>
<div class="col-sm-6">
<label>更多名称</label>  
<input type="text" placeholder="更多名称" value="[[contentData.data.title.more_name]]" style="width:100px;" class="observe form-control input-form" data-field="title.more_name">
</div>
</div>
<div class="form-group">
<div class="col-sm-12">
<label>更多链接</label>  
<select name="goTo" class="observe form-control input-form" value="[[contentData.data.title.more_url.action]]" data-field="title.more_url.action">
[[layout action_template]]
</select>
<input type="text" placeholder="更多链接" value="[[contentData.data.title.more_url.url]]" class="observe form-control input-form" data-field="title.more_url.url"/>
</div>
</div>
<div class="form-group">
<div class="col-sm-10">
<label>活动ID</label>   
<input type="text" placeholder="活动id" class="observe form-control input-form" value="[[contentData.data.title.active_id]]" data-field="title.active_id">
</div>
</div>
<p><input type="button" class="btn btn-info btn-xs addBtn" value="添加banner" style="margin:10px;" data-event="newUserFloor.banner_image"></p>
<div id="newUserFloor-bottom">
<ul class="draggable" data-array="data.banner_image">
[[each contentData.data.banner_image as item index]]
<li>
<table class="table table-hover table-bordered responsive dataTable no-footer">
<tbody>
<tr>
<td>[[index+1]]</td>
<td><input type="file" name="file" value="[[item.src]]" class="observe" data-field="banner_image.[[index]].src"/></td>
<td>
<div class="form-group">
<div class="col-sm-10">
<select name="goTo" class="form-control observe" value="[[item.url.action]]" data-field="banner_image.[[index]].url.action">
[[layout action_template]]
</select>
</div>
</div>
<div class="form-group">
<div class="col-sm-10">
<input type="text" placeholder="url" value="[[item.url.url]]" class="form-control observe" required="required" data-field="banner_image.[[index]].url.url"/>
</div>
</div>
<div class="form-group">
<div class="col-sm-10">
<input type="text" placeholder="图片描述" value="[[item.title]]" class="form-control observe" data-field="banner_image.[[index]].title"/>
</div>
</div>
</td>
</tr>
</tbody>
</table>
</li>
[[/each]]
</ul>
</div>
</script>
<!--有序焦点-->
<script type="text/template" id="debrisSlider-template">
<div class="panel-body" id="debrisSlider-baseFrom">
<div class="debris_slider">
<p><input type="button" name="select-pic" class="btn btn-info btn-xs addBtn" value="添加左图" style="margin:10px;" data-event="debrisSlider.left"></p>
<ul class="draggable" data-array="data.left">
[[each contentData.data.left as item index]]
<li>
<table class="table table-hover table-bordered responsive dataTable no-footer">
<tbody>
<tr>
<td>[[index+1]]</td>
<td><input type="file" name="file" value="[[item.src]]" class="observe" data-field="left.[[index]].src"/></td>
<td>
<div class="form-group">
<div class="col-sm-10">
<select name="goTo" class="observe form-control" value="[[item.url.action]]" data-field="left.[[index]].url.action">
[[layout action_template]]
</select>
</div>
</div>
<div class="form-group">
<div class="col-sm-10">
<input placeholder="url" value="[[item.url.url]]" class="observe form-control" required="required" data-field="left.[[index]].url.url"/>
</div>
</div>
<div class="form-group">
<div class="col-sm-10">
<input placeholder="图片描述" value="[[item.title]]" class="observe form-control" data-field="left.[[index]].title"/>
</div>
</div>
</td>
</tr>
</tbody>
</table>
</li>
[[/each]]
</ul>
<p><input type="button" name="select-pic" class="btn btn-info btn-xs addBtn" value="添加中间图" style="margin:10px;" data-event="debrisSlider.big_image"></p>
<ul class="draggable" data-array="data.big_image">
[[each contentData.data.big_image as item index]]
<li>
<table class="table table-hover table-bordered responsive dataTable no-footer">
<tbody>
<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="form-group">
<div class="col-sm-10">
<select name="goTo" class="observe form-control" value="[[item.url.action]]" data-field="big_image.[[index]].url.action">
[[layout action_template]]
</select>
</div>
</div>
<div class="form-group">
<div class="col-sm-10">
<input placeholder="url" value="[[item.url.url]]" class="observe form-control" required="required" data-field="big_image.[[index]].url.url"/>
</div>
</div>
<div class="form-group">
<div class="col-sm-10">
<input placeholder="图片描述" value="[[item.title]]" class="observe form-control" data-field="big_image.[[index]].title"/>
</div>
</div>
</td>
</tr>
</tbody>
</table>
</li>
[[/each]]
</ul>
<p><input type="button" name="select-pic" class="btn btn-info btn-xs addBtn" value="添加右图" style="margin:10px;" data-event="debrisSlider.right"></p>
<ul class="draggable" data-array="data.right">
[[each contentData.data.right as item index]]
<li>
<table class="table table-hover table-bordered responsive dataTable no-footer">
<tbody>
<tr>
<td>[[index+1]]</td>
<td><input type="file" name="file" value="[[item.src]]" class="observe" data-field="right.[[index]].src"/></td>
<td>
<div class="form-group">
<div class="col-sm-10">
<select name="goTo" class="observe form-control" value="[[item.url.action]]" data-field="right.[[index]].url.action">
[[layout action_template]]
</select>
</div>
</div>
<div class="form-group">
<div class="col-sm-10">
<input type="text" placeholder="url" value="[[item.url.url]]" class="observe form-control" required="required" data-field="right.[[index]].url.url"/>
</div>
</div>
<div class="form-group">
<div class="col-sm-10">
<input type="text" placeholder="图片描述" value="[[item.title]]" class="observe form-control" data-field="right.[[index]].title"/>
</div>
</div>
</td>
</tr>
</tbody>
</table>
</li>
[[/each]]
</ul>
</div>
</div>
</script>
<!--编辑推荐-->
<script type="text/template" id="editorTalk-template">
<div class="form-group">
<div class="col-sm-10">
<label>标题</label>    
<input type="text" placeholder="标题" class="form-control observe input-form" value="[[contentData.data.title.title]]" required="required" data-field="title.title">
  
<label>是否显示
<input type="checkbox" name="editorTalkIs_show" value="1" id="editorTalk-is_show" [[contentData.data.title.is_show==1?'checked':'']]>
<input type="hidden" id="editorTalkIs_show" for="checkbox" value="[[contentData.data.title.is_show]]" />
</label>
</div>
</div>
<p><input type="button" class="btn btn-info btn-xs addBtn" value="添加标签" style="margin:10px;" data-event="editorTalk.list"></p>
[[if contentData.data.list.length]]
<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>[[index+1]]</td>
<td><input type="file" name="file" value="[[item.src]]" class="observe" data-field="list.[[index]].src"/></td>
<td>
<div class="form-group">
<div class="col-sm-10">
<input type="text" placeholder="标签名称" value="[[item.title]]" class="observe form-control" required="required" data-field="list.[[index]].title"/>
</div>
</div>
<div class="form-group">
<div class="col-sm-10">
<select name="goTo" class="observe form-control" value="[[item.url.action]]" data-field="list.[[index]].url.action">
[[layout action_template]]
</select>
</div>
</div>
<div class="form-group">
<div class="col-sm-10">
<input type="text" placeholder="url" value="[[item.url.url]]" class="observe form-control" required="required" data-field="list.[[index]].url.url"/>
</div>
</div>
</td>
<td><button class="btn btn-danger btn-sm delBtn" data-event="editorTalk.list" type="button" data-index="[[index]]">删除</button></td>
</tr>
</tbody>
</table>
</li>
[[/each]]
</ul>
[[/if]]
</script>
<!--热门品类-->
<script type="text/template" id="hotCategory-template">
<div class="hotCategory">
<div class="form-group">
<div class="col-sm-12">
<label>标题</label>    
<input type="text" placeholder="标题" class="observe form-control input-form" data-field="title.name" value="[[contentData.data.title.name]]" required>
<label>更多名称</label>  
<input type="text" placeholder="更多名称" class="observe form-control input-form" data-field="title.more_name" value="[[contentData.data.title.more_name]]" style="width:100px;"><br>
</div>
</div>
<div class="form-group">
<div class="col-sm-12">
<label>跳转目的</label>  
<select name="goTo" class="observe form-control input-form" value="[[contentData.data.title.more_url.action]]" data-field="title.more_url.action">
[[layout action_template]]
</select>
<label>跳转url</label>   
<input type="text" value="[[contentData.data.title.more_url.url]]" placeholder="url" class="observe form-control input-form" data-field="title.more_url.url"/>
</div>
</div>
<p><input type="button" name="select-pic" class="btn btn-info btn-xs addBtn" value="添加左上图片" style="margin:10px;" data-event="hotCategory.blocks"></p>
[[if contentData.data.blocks.length]]
<ul class="draggable" data-array="data.blocks">
[[each contentData.data.blocks as item index]]
<li>
<table class="table table-hover table-bordered responsive dataTable no-footer">
<tbody>
<tr>
<td>[[index+1]]</td>
<td><input type="file" name="file" value="[[item.src]]" class="observe" data-field="blocks.[[index]].src"/></td>
<td>
<div class="form-group">
<div class="col-sm-10">
<select name="goTo" class="observe form-control" value="[[item.url.action]]" data-field="blocks.[[index]].url.action">
[[layout action_template]]
</select>
</div>
</div>
<div class="form-group">
<div class="col-sm-10">
<input type="text" placeholder="url" value="[[item.url.url]]" class="observe form-control" required="required" data-field="blocks.[[index]].url.url"/>
</div>
</div>
<div class="form-group">
<div class="col-sm-10">
<input type="text" placeholder="图片描述" value="[[item.title]]" class="observe form-control" data-field="blocks.[[index]].title"/>
</div>
</div>
</td>
<td><button class="btn btn-danger btn-sm delBtn" data-event="hotCategory.blocks" type="button" data-index="[[index]]">删除</button></td>
</tr>
</tbody>
</table>
</li>
[[/each]]
</ul>
[[/if]]
<div class="form-group">
<label>添加左下导航:</label>
</div>
[[each contentData.data.list as item index]]
<div class="form-group">
<div class="col-sm-2">
<label>导航名称:</label>
</div>
<div class="col-sm-3">
<input type="text" placeholder="导航名称" class="observe form-control" value="[[item.name]]" data-field="list.[[index]].name">
</div>
<div class="col-sm-3">
<select name="goTo" class="observe form-control" value="[[item.url.action]]" data-field="list.[[index]].url.action">
[[layout action_template]]
</select>
</div>
<div class="col-sm-4">
<input type="text" placeholder="url" value="[[item.url.url]]" class="observe form-control" required="required" data-field="list.[[index]].url.url"/>
</div>
</div>
[[/each]]
<p>
<input type="button" name="select-pic" class="btn btn-info btn-xs addBtn" value="添加右侧图片" style="margin:10px;" data-event="hotCategory.imgs">
</p>
[[if contentData.data.imgs.length]]
<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.imgs as item index]]
<tr>
<td>[[index+1]]</td>
<td><input type="file" name="file" value="[[item.src]]" class="observe" data-field="imgs.[[index]].src"/></td>
<td>
<div class="form-group">
<div class="col-sm-10">
<select name="goTo" class="observe form-control" value="[[item.url.action]]" data-field="imgs.[[index]].url.action">
[[layout action_template]]
</select>
</div>
</div>
<div class="form-group">
<div class="col-sm-10">
<input type="text" placeholder="url" value="[[item.url.url]]" class="observe form-control" required="required" data-field="imgs.[[index]].url.url"/>
</div>
</div>
<div class="form-group">
<div class="col-sm-10">
<input type="text" placeholder="图片描述" value="[[item.title]]" class="observe form-control" data-field="imgs.[[index]].title"/>
</div>
</div>
</td>
<td><button class="btn btn-danger btn-sm delBtn" data-event="hotCategory.imgs" type="button" data-index="[[index]]">删除</button></td>
</tr>
[[/each]]
</tbody>
</table>
[[/if]]
</div>
</script>
<!--图片列表-->
<script type="text/template" id="imageList-template">
<div class="form-group">
<div class="col-sm-12">
<label>标题:</label>
<input type="text" placeholder="标题" class="observe form-control input-form" data-field="title.title" value="[[contentData.data.title.title]]" style="width:100px;">
 
<label>显示名称: </label>
<input type="radio" name="is_show_name" class="is_show_name" value="Y" [[contentData.data.title.is_show_name=="Y"?"checked":""]]> 是
<input type="radio" name="is_show_name" class="is_show_name" value="N" [[contentData.data.title.is_show_name=="N"?"checked":""]]> 否  
<input type="hidden" id="is_show_name" for="radio" value="[[contentData.data.title.is_show_name]]" />
<label>每行显示:</label>
<input style="width:60px;" type="text" data-field="title.column_num" class="observe number form-control input-form" value="[[contentData.data.title.column_num]]"> 张图片
</div>
</div>
<p><input type="button" name="select-pic" class="btn btn-info btn-xs addBtn" value="添加图片" style="margin:10px;" data-event="imageList.list"></p>
[[if contentData.data.list.length]]
<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>[[index+1]]</td>
<td><input type="file" name="file" value="[[item.src]]" class="observe" data-field="list.[[index]].src" required/></td>
<td>
<div class="form-group">
<div class="col-sm-10">
<select name="goTo" class="observe form-control" value="[[item.url.action]]" data-field="list.[[index]].url.action">
[[layout action_template]]
</select>
</div>
</div>
<div class="form-group">
<div class="col-sm-10">
<input type="text" placeholder="url" value="[[item.url.url]]" class="observe form-control" required="required" data-field="list.[[index]].url.url"/>
</div>
</div>
<div class="form-group">
<div class="col-sm-10">
<input type="text" placeholder="图片描述" value="[[item.title]]" class="observe form-control" data-field="list.[[index]].title"/>
</div>
</div>
</td>
<td><button class="btn btn-danger btn-sm delBtn" data-event="imageList.list" type="button" data-index="[[index]]">删除</button></td>
</tr>
</tbody>
</table>
</li>
[[/each]]
</ul>
[[/if]]
</script>
<!--文本导航-->
<script type="text/template" id="textNav-template">
<p><input type="button" name="select-pic" class="btn btn-info btn-xs addBtn" data-limit="10" value="添加一个" style="margin:10px;" data-event="textNav.data"></p>
[[each contentData.data as item index]]
<p>
导航名称:<input type="text" placeholder="导航名称" value="[[item.name]]" class="observe" data-field="[[index]].name" required="required">
<select name="goTo" class="observe" value="[[item.url.action]]" data-field="[[index]].url.action">
[[layout action_template]]
</select>
<input type="text" placeholder="url" value="[[item.url.url]]" data-field="[[index]].url.url" class="observe" required="required"/>
<a type="button" class="btn btn-danger btn-xs delBtn" data-event="textNav.data" data-index="[[index]]">删除</a>
</p>
[[/each]]
</script>
<!--轮播banner-->
<script type="text/template" id="carouselBanner-template">
<div class="form-group">
<div class="col-sm-10">
<input type="button" name="select-pic" value="添加图片" class="btn btn-info btn-xs addBtn" style="margin:10px;" data-event="carouselBanner.list">
<label>轮播速度:</label>
<input type="text" placeholder="轮播速度" class="observe form-control input-form" data-field="speed" value="[[contentData.data.speed]]">秒
</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>[[index+1]]</td>
<td><input type="file" name="file" value="[[item.src]]" class="observe" data-field="list.[[index]].src"/></td>
<td><button class="btn btn-danger btn-sm delBtn" type="button" data-event="carouselBanner.list" data-index="[[index]]">删除</button></td>
</tr>
</tbody>
</table>
</li>
[[/each]]
</ul>
</script>
<!--添加促销-->
<script type="text/template" id="promotion-template">
<div class="form-group">
<div class="col-sm-6">
<label>添加促销id:</label>
<input type="text" placeholder="促销id" class="observe form-control input-form" value="[[contentData.data.promotionId]]" data-field="promotionId">
</div>
</div>
</script>
<!--标题广告-->
<script type="text/template" id="singleNameImage-template">
<div class="form-group">
<label class="control-label col-sm-2">添加标题:</label>
<div class="col-sm-4">
<input type="text" placeholder="标题" class=" form-control observe" value="[[contentData.data.title]]" data-field="title">
</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.src]]" class="observe" data-field="src" required/></td>
<td>
<div class="form-group">
<div class="col-sm-10">
<select name="goTo" class="observe form-control" value="[[contentData.data.url.action]]" data-field="url.action">
[[layout action_template]]
</select>
</div>
</div>
<div class="form-group">
<div class="col-sm-10">
<input type="text" placeholder="url" value="[[contentData.data.url.url]]" class="observe form-control" required="required" data-field="url.url"/>
</div>
</div>
<div class="form-group">
<div class="col-sm-10">
<input type="text" placeholder="图片描述" value="[[contentData.data.alt]]" class="observe form-control" data-field="alt"/>
</div>
</div>
</td>
</tr>
</tbody>
</table>
</script>
<!--焦点图-->
<script type="text/template" id="focus-template">
<input type="button" class="btn btn-info btn-xs addBtn" data-event="focus.data" value="添加图片" style="margin:10px;"><br>
<div class="form-group">
<div class="col-sm-10">
<label>焦点图类型:</label>
<select class="form-control input-form" id="focus-select" value="[[contentData.focus_type]]">
<option value="1">通栏</option>
<option value="2">左右滑动</option>
<option value="3">手风琴</option>
</select>
</div>
</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>[[index+1]]</td>
<td><input type="file" name="file" value="[[item.src]]" class="observe" data-field="[[index]].src" required/></td>
<td>
<div class="form-group">
<div class="col-sm-10">
<select name="goTo" class="observe form-control" value="[[item.url.action]]" data-field="[[index]].url.action">
[[layout action_template]]
</select>
</div>
</div>
<div class="form-group">
<div class="col-sm-10">
<input type="text" placeholder="url" value="[[item.url.url]]" class="observe form-control" required="required" data-field="[[index]].url.url"/>
</div>
</div>
<div class="form-group">
<div class="col-sm-10">
<input type="text" placeholder="图片描述" value="[[item.alt]]" class="observe form-control" data-field="[[index]].alt"/>
</div>
</div>
<div class="form-group">
<div class="col-sm-10">
<input type="text" placeholder="通栏背景色" value="[[item.bgColor]]" class="observe form-control" data-field="[[index]].bgColor"/>
</div>
</div>
</td>
<td><button class="btn btn-danger btn-sm delBtn" data-event="focus.data" type="button" data-index="[[index]]">删除</button></td>
</tr>
</tbody>
</table>
</li>
[[/each]]
</ul>
</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>
<option value="go.shop">店铺</option>
</script>
<script type="text/template" id="noEdit-template">
<div>固定内容,暂时无法编辑!</div>
</script>