|
|
1
|
+<!--领券楼层-->
|
|
|
2
|
+
|
1
|
<!-- 标题图片 -->
|
3
|
<!-- 标题图片 -->
|
2
|
<script type="text/template" id="titleImage-template">
|
4
|
<script type="text/template" id="titleImage-template">
|
3
|
<div class="panel-body" id="titleImage-baseFrom">
|
5
|
<div class="panel-body" id="titleImage-baseFrom">
|
|
@@ -215,7 +217,8 @@ |
|
@@ -215,7 +217,8 @@ |
215
|
<input type="text" class="form-control observe" value="[[contentData.data.title.title]]" required="required" data-field="title.title">
|
217
|
<input type="text" class="form-control observe" value="[[contentData.data.title.title]]" required="required" data-field="title.title">
|
216
|
</div>
|
218
|
</div>
|
217
|
<label class="col-sm-4 control-label">是否显示
|
219
|
<label class="col-sm-4 control-label">是否显示
|
218
|
- <input type="checkbox" value="[[contentData.data.title.is_show]]" checked="[[contentData.data.title.is_show?'checked':'']]" class="observe" data-field="title.is_show">
|
220
|
+ <input type="checkbox" name="is_show" value="1" id="recommendContentFive-is_show">
|
|
|
221
|
+ <input type="hidden" id="is_show" for="checkbox" value="[[contentData.data.title.is_show]]" />
|
219
|
</label>
|
222
|
</label>
|
220
|
</div>
|
223
|
</div>
|
221
|
[[/if]]
|
224
|
[[/if]]
|
|
@@ -250,7 +253,11 @@ |
|
@@ -250,7 +253,11 @@ |
250
|
[[/if]]
|
253
|
[[/if]]
|
251
|
[[each contentData.data.list as item index]]
|
254
|
[[each contentData.data.list as item index]]
|
252
|
<tr>
|
255
|
<tr>
|
|
|
256
|
+ [[if contentData.data.big_image]]
|
253
|
<td>[[index+2]]</td>
|
257
|
<td>[[index+2]]</td>
|
|
|
258
|
+ [[else]]
|
|
|
259
|
+ <td>[[index+1]]</td>
|
|
|
260
|
+ [[/if]]
|
254
|
<td><input type="file" name="file" value="[[item.src]]" class="observe" data-field="list.[[index]].src"/></td>
|
261
|
<td><input type="file" name="file" value="[[item.src]]" class="observe" data-field="list.[[index]].src"/></td>
|
255
|
<td>
|
262
|
<td>
|
256
|
<div class="col-sm-12">
|
263
|
<div class="col-sm-12">
|
|
@@ -419,7 +426,7 @@ |
|
@@ -419,7 +426,7 @@ |
419
|
<script type="text/template" id="debrisSlider-template">
|
426
|
<script type="text/template" id="debrisSlider-template">
|
420
|
<div class="panel-body" id="debrisSlider-baseFrom">
|
427
|
<div class="panel-body" id="debrisSlider-baseFrom">
|
421
|
<div class="debris_slider">
|
428
|
<div class="debris_slider">
|
422
|
- <p><input type="button" name="select-pic" class="btn btn-info btn-xs" value="添加左图" style="margin:10px;" id="select-left-pic"></p>
|
429
|
+ <p><input type="button" name="select-pic" class="btn btn-info btn-xs" value="添加左图" style="margin:10px;" id="debrisSlider-addLeft"></p>
|
423
|
<table class="table table-hover table-bordered responsive dataTable no-footer">
|
430
|
<table class="table table-hover table-bordered responsive dataTable no-footer">
|
424
|
<thead>
|
431
|
<thead>
|
425
|
<tr>
|
432
|
<tr>
|
|
@@ -435,57 +442,53 @@ |
|
@@ -435,57 +442,53 @@ |
435
|
<td><input type="file" name="file" value="[[item.src]]" class="observe" data-field="left.[[index]].src"/></td>
|
442
|
<td><input type="file" name="file" value="[[item.src]]" class="observe" data-field="left.[[index]].src"/></td>
|
436
|
<td>
|
443
|
<td>
|
437
|
<div class="col-sm-12">
|
444
|
<div class="col-sm-12">
|
438
|
- <select name="goTo" class="observe" value="[[url.action]]" data-field="left.[[index]].action">
|
445
|
+ <select name="goTo" class="observe form-control" value="[[item.url.action]]" data-field="left.[[index]].url.action">
|
439
|
[[layout action_template]]
|
446
|
[[layout action_template]]
|
440
|
</select>
|
447
|
</select>
|
441
|
</div>
|
448
|
</div>
|
442
|
<div class="col-sm-12">
|
449
|
<div class="col-sm-12">
|
443
|
- <input value="[[item.url.url]]" class="observe" required="required" data-field="left.[[index]].url.url"/>
|
450
|
+ <input placeholder="url" value="[[item.url.url]]" class="observe form-control" required="required" data-field="left.[[index]].url.url"/>
|
444
|
</div>
|
451
|
</div>
|
445
|
<div class="col-sm-12">
|
452
|
<div class="col-sm-12">
|
446
|
- <input placeholder="图片描述" value="[[item.title]]" class="observe" required="required" data-field="left.[[index]].title"/>
|
453
|
+ <input placeholder="图片描述" value="[[item.title]]" class="observe form-control" required="required" data-field="left.[[index]].title"/>
|
447
|
</div>
|
454
|
</div>
|
448
|
</td>
|
455
|
</td>
|
449
|
</tr>
|
456
|
</tr>
|
450
|
[[/each]]
|
457
|
[[/each]]
|
451
|
</tbody>
|
458
|
</tbody>
|
452
|
</table>
|
459
|
</table>
|
453
|
- <p><input type="button" name="select-pic" class="btn btn-info btn-xs" value="添加中间图" style="margin:10px;" id="select-big-pic"></p>
|
|
|
454
|
- <div class="image-info">
|
|
|
455
|
- <ul class="sortable" style="width:100%;">
|
|
|
456
|
- <table class="table table-hover table-bordered responsive dataTable no-footer">
|
|
|
457
|
- <thead>
|
|
|
458
|
- <tr>
|
|
|
459
|
- <th>序号</th>
|
|
|
460
|
- <th>资源位</th>
|
|
|
461
|
- <th>选项</th>
|
|
|
462
|
- </tr>
|
|
|
463
|
- </thead>
|
|
|
464
|
- <tbody>
|
|
|
465
|
- [[each contentData.data.big_image as item index]]
|
|
|
466
|
- <tr>
|
|
|
467
|
- <td>[[index+1]]</td>
|
|
|
468
|
- <td><input type="file" name="file" value="[[item.src]]" class="observe" data-field="big_image.[[index]].src"/></td>
|
|
|
469
|
- <td>
|
|
|
470
|
- <div class="col-sm-12">
|
|
|
471
|
- <select name="goTo" class="observe" value="[[url.action]]" data-field="big_image.[[index]].action">
|
|
|
472
|
- [[layout action_template]]
|
|
|
473
|
- </select>
|
|
|
474
|
- </div>
|
|
|
475
|
- <div class="col-sm-12">
|
|
|
476
|
- <input value="[[item.url.url]]" class="observe" required="required" data-field="big_image.[[index]].url.url"/>
|
|
|
477
|
- </div>
|
|
|
478
|
- <div class="col-sm-12">
|
|
|
479
|
- <input placeholder="图片描述" value="[[item.title]]" class="observe" required="required" data-field="big_image.[[index]].title"/>
|
|
|
480
|
- </div>
|
|
|
481
|
- </td>
|
|
|
482
|
- </tr>
|
|
|
483
|
- [[/each]]
|
|
|
484
|
- </tbody>
|
|
|
485
|
- </table>
|
|
|
486
|
- </ul>
|
|
|
487
|
- </div>
|
|
|
488
|
- <p><input type="button" name="select-pic" class="btn btn-info btn-xs" value="添加右图" style="margin:10px;" id="select-right-pic"></p>
|
460
|
+ <p><input type="button" name="select-pic" class="btn btn-info btn-xs" value="添加中间图" style="margin:10px;" id="debrisSlider-addCenter"></p>
|
|
|
461
|
+ <table class="table table-hover table-bordered responsive dataTable no-footer">
|
|
|
462
|
+ <thead>
|
|
|
463
|
+ <tr>
|
|
|
464
|
+ <th>序号</th>
|
|
|
465
|
+ <th>资源位</th>
|
|
|
466
|
+ <th>选项</th>
|
|
|
467
|
+ </tr>
|
|
|
468
|
+ </thead>
|
|
|
469
|
+ <tbody>
|
|
|
470
|
+ [[each contentData.data.big_image as item index]]
|
|
|
471
|
+ <tr>
|
|
|
472
|
+ <td>[[index+1]]</td>
|
|
|
473
|
+ <td><input type="file" name="file" value="[[item.src]]" class="observe" data-field="big_image.[[index]].src"/></td>
|
|
|
474
|
+ <td>
|
|
|
475
|
+ <div class="col-sm-12">
|
|
|
476
|
+ <select name="goTo" class="observe form-control" value="[[item.url.action]]" data-field="big_image.[[index]].url.action">
|
|
|
477
|
+ [[layout action_template]]
|
|
|
478
|
+ </select>
|
|
|
479
|
+ </div>
|
|
|
480
|
+ <div class="col-sm-12">
|
|
|
481
|
+ <input placeholder="url" value="[[item.url.url]]" class="observe form-control" required="required" data-field="big_image.[[index]].url.url"/>
|
|
|
482
|
+ </div>
|
|
|
483
|
+ <div class="col-sm-12">
|
|
|
484
|
+ <input placeholder="图片描述" value="[[item.title]]" class="observe form-control" required="required" data-field="big_image.[[index]].title"/>
|
|
|
485
|
+ </div>
|
|
|
486
|
+ </td>
|
|
|
487
|
+ </tr>
|
|
|
488
|
+ [[/each]]
|
|
|
489
|
+ </tbody>
|
|
|
490
|
+ </table>
|
|
|
491
|
+ <p><input type="button" name="select-pic" class="btn btn-info btn-xs" value="添加右图" style="margin:10px;" id="debrisSlider-addRight"></p>
|
489
|
<table class="table table-hover table-bordered responsive dataTable no-footer">
|
492
|
<table class="table table-hover table-bordered responsive dataTable no-footer">
|
490
|
<thead>
|
493
|
<thead>
|
491
|
<tr>
|
494
|
<tr>
|
|
@@ -501,15 +504,15 @@ |
|
@@ -501,15 +504,15 @@ |
501
|
<td><input type="file" name="file" value="[[item.src]]" class="observe" data-field="right.[[index]].src"/></td>
|
504
|
<td><input type="file" name="file" value="[[item.src]]" class="observe" data-field="right.[[index]].src"/></td>
|
502
|
<td>
|
505
|
<td>
|
503
|
<div class="col-sm-12">
|
506
|
<div class="col-sm-12">
|
504
|
- <select name="goTo" class="observe" value="[[url.action]]" data-field="right.[[index]].action">
|
507
|
+ <select name="goTo" class="observe form-control" value="[[item.url.action]]" data-field="right.[[index]].url.action">
|
505
|
[[layout action_template]]
|
508
|
[[layout action_template]]
|
506
|
</select>
|
509
|
</select>
|
507
|
</div>
|
510
|
</div>
|
508
|
<div class="col-sm-12">
|
511
|
<div class="col-sm-12">
|
509
|
- <input value="[[item.url.url]]" class="observe" required="required" data-field="right.[[index]].url.url"/>
|
512
|
+ <input placeholder="url" value="[[item.url.url]]" class="observe form-control" required="required" data-field="right.[[index]].url.url"/>
|
510
|
</div>
|
513
|
</div>
|
511
|
<div class="col-sm-12">
|
514
|
<div class="col-sm-12">
|
512
|
- <input placeholder="图片描述" value="[[item.title]]" class="observe" required="required" data-field="right.[[index]].title"/>
|
515
|
+ <input placeholder="图片描述" value="[[item.title]]" class="observe form-control" required="required" data-field="right.[[index]].title"/>
|
513
|
</div>
|
516
|
</div>
|
514
|
</td>
|
517
|
</td>
|
515
|
</tr>
|
518
|
</tr>
|
|
@@ -519,6 +522,264 @@ |
|
@@ -519,6 +522,264 @@ |
519
|
</div>
|
522
|
</div>
|
520
|
</div>
|
523
|
</div>
|
521
|
</script>
|
524
|
</script>
|
|
|
525
|
+<!--热门品类-->
|
|
|
526
|
+<script type="text/template" id="hotCategory-template">
|
|
|
527
|
+ <div class="hotCategory">
|
|
|
528
|
+ <p>
|
|
|
529
|
+ 标题 : <input type="text" class="observe" data-field="title.name" value="[[contentData.data.title.name]]" required> 更多名称 : <input type="text" class="observe" data-field="title.more_name" value="[[contentData.data.title.more_name]]" style="width:50px;"><br>
|
|
|
530
|
+ 跳转目的 : <select name="goTo" class="observe" value="[[contentData.data.title.more_url.action]]" data-field="title.more_url.action">
|
|
|
531
|
+ [[layout action_template]]
|
|
|
532
|
+ </select>
|
|
|
533
|
+ 跳转url : <input value="[[contentData.data.title.more_url.url]]" class="observe" required="required" data-field="title.more_url.url"/>
|
|
|
534
|
+ </p>
|
|
|
535
|
+ <p><input type="button" name="select-pic" class="btn btn-info btn-xs" value="添加左上图片" style="margin:10px;" id="hotCategory-addLeft"></p>
|
|
|
536
|
+ [[if contentData.data.blocks.length]]
|
|
|
537
|
+ <table class="table table-hover table-bordered responsive dataTable no-footer">
|
|
|
538
|
+ <thead>
|
|
|
539
|
+ <tr>
|
|
|
540
|
+ <th>序号</th>
|
|
|
541
|
+ <th>资源位</th>
|
|
|
542
|
+ <th>选项</th>
|
|
|
543
|
+ <th>操作</th>
|
|
|
544
|
+ </tr>
|
|
|
545
|
+ </thead>
|
|
|
546
|
+ <tbody>
|
|
|
547
|
+ [[each contentData.data.blocks as item index]]
|
|
|
548
|
+ <tr>
|
|
|
549
|
+ <td>[[index+1]]</td>
|
|
|
550
|
+ <td><input type="file" name="file" value="[[item.src]]" class="observe" data-field="blocks.[[index]].src"/></td>
|
|
|
551
|
+ <td>
|
|
|
552
|
+ <div class="col-sm-12">
|
|
|
553
|
+ <select name="goTo" class="observe form-control" value="[[item.url.action]]" data-field="blocks.[[index]].url.action">
|
|
|
554
|
+ [[layout action_template]]
|
|
|
555
|
+ </select>
|
|
|
556
|
+ </div>
|
|
|
557
|
+ <div class="col-sm-12">
|
|
|
558
|
+ <input placeholder="url" value="[[item.url.url]]" class="observe form-control" required="required" data-field="blocks.[[index]].url.url"/>
|
|
|
559
|
+ </div>
|
|
|
560
|
+ <div class="col-sm-12">
|
|
|
561
|
+ <input placeholder="图片描述" value="[[item.title]]" class="observe form-control" required="required" data-field="blocks.[[index]].title"/>
|
|
|
562
|
+ </div>
|
|
|
563
|
+ </td>
|
|
|
564
|
+ <td><button class="btn btn-danger btn-sm hotCategory-delLeft" type="button" data-index="[[index]]">删除</button></td>
|
|
|
565
|
+ </tr>
|
|
|
566
|
+ [[/each]]
|
|
|
567
|
+ </tbody>
|
|
|
568
|
+ </table>
|
|
|
569
|
+ [[/if]]
|
|
|
570
|
+ <p>添加左下导航:</p>
|
|
|
571
|
+ [[each contentData.data.list as item index]]
|
|
|
572
|
+ <p>
|
|
|
573
|
+ 导航名称:<input type="text" class="observe" value="[[item.name]]" data-field="list.[[index]].name">
|
|
|
574
|
+ <select name="goTo" class="observe" value="[[item.url.action]]" data-field="list.[[index]].url.action">
|
|
|
575
|
+ [[layout action_template]]
|
|
|
576
|
+ </select>
|
|
|
577
|
+ <input value="[[item.url.url]]" class="observe" required="required" data-field="list.[[index]].url.url"/>
|
|
|
578
|
+ </p>
|
|
|
579
|
+ [[/each]]
|
|
|
580
|
+ <p>
|
|
|
581
|
+ <input type="button" name="select-pic" class="btn btn-info btn-xs" value="添加右侧图片" style="margin:10px;" id="hotCategory-addRight">
|
|
|
582
|
+ </p>
|
|
|
583
|
+ [[if contentData.data.imgs.length]]
|
|
|
584
|
+ <table class="table table-hover table-bordered responsive dataTable no-footer">
|
|
|
585
|
+ <thead>
|
|
|
586
|
+ <tr>
|
|
|
587
|
+ <th>序号</th>
|
|
|
588
|
+ <th>资源位</th>
|
|
|
589
|
+ <th>选项</th>
|
|
|
590
|
+ <th>操作</th>
|
|
|
591
|
+ </tr>
|
|
|
592
|
+ </thead>
|
|
|
593
|
+ <tbody>
|
|
|
594
|
+ [[each contentData.data.imgs as item index]]
|
|
|
595
|
+ <tr>
|
|
|
596
|
+ <td>[[index+1]]</td>
|
|
|
597
|
+ <td><input type="file" name="file" value="[[item.src]]" class="observe" data-field="imgs.[[index]].src"/></td>
|
|
|
598
|
+ <td>
|
|
|
599
|
+ <div class="col-sm-12">
|
|
|
600
|
+ <select name="goTo" class="observe form-control" value="[[item.url.action]]" data-field="imgs.[[index]].url.action">
|
|
|
601
|
+ [[layout action_template]]
|
|
|
602
|
+ </select>
|
|
|
603
|
+ </div>
|
|
|
604
|
+ <div class="col-sm-12">
|
|
|
605
|
+ <input placeholder="url" value="[[item.url.url]]" class="observe form-control" required="required" data-field="imgs.[[index]].url.url"/>
|
|
|
606
|
+ </div>
|
|
|
607
|
+ <div class="col-sm-12">
|
|
|
608
|
+ <input placeholder="图片描述" value="[[item.title]]" class="observe form-control" required="required" data-field="imgs.[[index]].title"/>
|
|
|
609
|
+ </div>
|
|
|
610
|
+ </td>
|
|
|
611
|
+ <td><button class="btn btn-danger btn-sm hotCategory-delRight" type="button" data-index="[[index]]">删除</button></td>
|
|
|
612
|
+ </tr>
|
|
|
613
|
+ [[/each]]
|
|
|
614
|
+ </tbody>
|
|
|
615
|
+ </table>
|
|
|
616
|
+ [[/if]]
|
|
|
617
|
+ </div>
|
|
|
618
|
+</script>
|
|
|
619
|
+<!--图片列表-->
|
|
|
620
|
+<script type="text/template" id="imageList-template">
|
|
|
621
|
+ <p>
|
|
|
622
|
+ 标题:<input type="text" class="observe" data-field="title.title" value="[[contentData.data.title.title]]" style="width:100px;">
|
|
|
623
|
+ 显示名称: <input type="radio" name="is_show_name" id="imageList_Y" value="Y"> 是 <input type="radio" name="is_show_name" id="imageList_N" value="N"> 否
|
|
|
624
|
+ <input type="hidden" id="is_show_name" for="radio" value="[[contentData.data.title.is_show_name]]" />
|
|
|
625
|
+ 每行显示:<input style="width:60px;" type="number" data-field="title.column_num" class="observe" value="[[contentData.data.title.column_num]]"> 张图片
|
|
|
626
|
+ </p>
|
|
|
627
|
+ <p><input type="button" name="select-pic" class="btn btn-info btn-xs" value="添加图片" style="margin:10px;" id="imageList-addOne"></p>
|
|
|
628
|
+ [[if contentData.data.list.length]]
|
|
|
629
|
+ <table class="table table-hover table-bordered responsive dataTable no-footer">
|
|
|
630
|
+ <thead>
|
|
|
631
|
+ <tr>
|
|
|
632
|
+ <th>序号</th>
|
|
|
633
|
+ <th>资源位</th>
|
|
|
634
|
+ <th>选项</th>
|
|
|
635
|
+ <th>操作</th>
|
|
|
636
|
+ </tr>
|
|
|
637
|
+ </thead>
|
|
|
638
|
+ <tbody>
|
|
|
639
|
+ [[each contentData.data.list as item index]]
|
|
|
640
|
+ <tr>
|
|
|
641
|
+ <td>[[index+1]]</td>
|
|
|
642
|
+ <td><input type="file" name="file" value="[[item.src]]" class="observe" data-field="list.[[index]].src"/></td>
|
|
|
643
|
+ <td>
|
|
|
644
|
+ <div class="col-sm-12">
|
|
|
645
|
+ <select name="goTo" class="observe form-control" value="[[item.url.action]]" data-field="list.[[index]].url.action">
|
|
|
646
|
+ [[layout action_template]]
|
|
|
647
|
+ </select>
|
|
|
648
|
+ </div>
|
|
|
649
|
+ <div class="col-sm-12">
|
|
|
650
|
+ <input placeholder="url" value="[[item.url.url]]" class="observe form-control" required="required" data-field="list.[[index]].url.url"/>
|
|
|
651
|
+ </div>
|
|
|
652
|
+ <div class="col-sm-12">
|
|
|
653
|
+ <input placeholder="图片描述" value="[[item.title]]" class="observe form-control" required="required" data-field="list.[[index]].title"/>
|
|
|
654
|
+ </div>
|
|
|
655
|
+ </td>
|
|
|
656
|
+ <td><button class="btn btn-danger btn-sm imageList-del" type="button" data-index="[[index]]">删除</button></td>
|
|
|
657
|
+ </tr>
|
|
|
658
|
+ [[/each]]
|
|
|
659
|
+ </tbody>
|
|
|
660
|
+ </table>
|
|
|
661
|
+ [[/if]]
|
|
|
662
|
+</script>
|
|
|
663
|
+<!--文本导航-->
|
|
|
664
|
+<script type="text/template" id="textNav-template">
|
|
|
665
|
+ <div class="textNav-baseForm">
|
|
|
666
|
+ <p><input type="button" name="select-pic" class="btn btn-info btn-xs" value="添加一个" style="margin:10px;" id="textNav-addOne"></p>
|
|
|
667
|
+ [[each contentData.data as item index]]
|
|
|
668
|
+ <p>
|
|
|
669
|
+ 导航名称:<input type="text" value="[[item.name]]" class="observe" data-field="[[index]].name" required>
|
|
|
670
|
+ <select name="goTo" class="observe" value="[[item.url.action]]" data-field="[[index]].url.action">
|
|
|
671
|
+ [[layout action_template]]
|
|
|
672
|
+ </select>
|
|
|
673
|
+ <input value="[[item.url.url]]" data-field="[[index]].url.url" class="observe" required="required"/>
|
|
|
674
|
+ <a type="button" class="btn btn-danger btn-xs textNav-delOne" data-index="[[index]]">删除</a>
|
|
|
675
|
+ </p>
|
|
|
676
|
+ [[/each]]
|
|
|
677
|
+ </div>
|
|
|
678
|
+</script>
|
|
|
679
|
+<!--轮播banner-->
|
|
|
680
|
+<script type="text/template" id="carouselBanner-template">
|
|
|
681
|
+ <input type="button" name="select-pic" value="添加图片" class="btn btn-info btn-xs" style="margin:10px;" id="carouselBanner-addOne">
|
|
|
682
|
+ 轮播速度:<input type="text" class="observe" data-field="speed" value="[[contentData.data.speed]]">秒<br>
|
|
|
683
|
+ <table class="table table-hover table-bordered responsive dataTable no-footer">
|
|
|
684
|
+ <thead>
|
|
|
685
|
+ <tr>
|
|
|
686
|
+ <th>序号</th>
|
|
|
687
|
+ <th>资源位</th>
|
|
|
688
|
+ <th>操作</th>
|
|
|
689
|
+ </tr>
|
|
|
690
|
+ </thead>
|
|
|
691
|
+ <tbody>
|
|
|
692
|
+ [[each contentData.data.list as item index]]
|
|
|
693
|
+ <tr>
|
|
|
694
|
+ <td>[[index+1]]</td>
|
|
|
695
|
+ <td><input type="file" name="file" value="[[item.src]]" class="observe" data-field="list.[[index]].src"/></td>
|
|
|
696
|
+ <td><button class="btn btn-danger btn-sm carouselBanner-del" type="button" data-index="[[index]]">删除</button></td>
|
|
|
697
|
+ </tr>
|
|
|
698
|
+ [[/each]]
|
|
|
699
|
+ </tbody>
|
|
|
700
|
+ </table>
|
|
|
701
|
+</script>
|
|
|
702
|
+<!--添加促销-->
|
|
|
703
|
+<script type="text/template" id="promotion-template">
|
|
|
704
|
+ <p> 添加促销id:<input type="text" class="observe" value="[[contentData.data.promotionId]]" data-field="promotionId"></p>
|
|
|
705
|
+</script>
|
|
|
706
|
+<!--标题广告-->
|
|
|
707
|
+<script type="text/template" id="singleNameImage-template">
|
|
|
708
|
+ <p style="margin:10px;">添加标题: <input type="text" class="observe" value="[[contentData.data.title]]" data-field="title"></p>
|
|
|
709
|
+ <table class="table table-hover table-bordered responsive dataTable no-footer">
|
|
|
710
|
+ <thead>
|
|
|
711
|
+ <tr>
|
|
|
712
|
+ <th>序号</th>
|
|
|
713
|
+ <th>资源位</th>
|
|
|
714
|
+ <th>选项</th>
|
|
|
715
|
+ </tr>
|
|
|
716
|
+ </thead>
|
|
|
717
|
+ <tbody>
|
|
|
718
|
+ <tr>
|
|
|
719
|
+ <td>1</td>
|
|
|
720
|
+ <td><input type="file" name="file" value="[[contentData.data.src]]" class="observe" data-field="src" required/></td>
|
|
|
721
|
+ <td>
|
|
|
722
|
+ <div class="col-sm-12">
|
|
|
723
|
+ <select name="goTo" class="observe form-control" value="[[contentData.data.url.action]]" data-field="url.action">
|
|
|
724
|
+ [[layout action_template]]
|
|
|
725
|
+ </select>
|
|
|
726
|
+ </div>
|
|
|
727
|
+ <div class="col-sm-12">
|
|
|
728
|
+ <input placeholder="url" value="[[contentData.data.url.url]]" class="observe form-control" required="required" data-field="url.url"/>
|
|
|
729
|
+ </div>
|
|
|
730
|
+ <div class="col-sm-12">
|
|
|
731
|
+ <input placeholder="图片描述" value="[[contentData.data.alt]]" class="observe form-control" data-field="alt"/>
|
|
|
732
|
+ </div>
|
|
|
733
|
+ </td>
|
|
|
734
|
+ </tr>
|
|
|
735
|
+ </tbody>
|
|
|
736
|
+ </table>
|
|
|
737
|
+</script>
|
|
|
738
|
+<!--焦点图-->
|
|
|
739
|
+<script type="text/template" id="focus-template">
|
|
|
740
|
+ <input type="button" class="btn btn-info btn-xs" id="focus-addOne" value="添加图片" style="margin:10px;"><br>
|
|
|
741
|
+ 焦点图类型:
|
|
|
742
|
+ <select id="focus-select" value="[[contentData.focus_type]]">
|
|
|
743
|
+ <option value="1">通栏</option>
|
|
|
744
|
+ <option value="2">左右滑动</option>
|
|
|
745
|
+ <option value="3">手风琴</option>
|
|
|
746
|
+ </select>
|
|
|
747
|
+ <table class="table table-hover table-bordered responsive dataTable no-footer">
|
|
|
748
|
+ <thead>
|
|
|
749
|
+ <tr>
|
|
|
750
|
+ <th>序号</th>
|
|
|
751
|
+ <th>资源位</th>
|
|
|
752
|
+ <th>选项</th>
|
|
|
753
|
+ <th>操作</th>
|
|
|
754
|
+ </tr>
|
|
|
755
|
+ </thead>
|
|
|
756
|
+ <tbody>
|
|
|
757
|
+ [[each contentData.data as item index]]
|
|
|
758
|
+ <tr>
|
|
|
759
|
+ <td>[[index+1]]</td>
|
|
|
760
|
+ <td><input type="file" name="file" value="[[item.src]]" class="observe" data-field="[[index]].src" required/></td>
|
|
|
761
|
+ <td>
|
|
|
762
|
+ <div class="col-sm-12">
|
|
|
763
|
+ <select name="goTo" class="observe form-control" value="[[item.url.action]]" data-field="[[index]].url.action">
|
|
|
764
|
+ [[layout action_template]]
|
|
|
765
|
+ </select>
|
|
|
766
|
+ </div>
|
|
|
767
|
+ <div class="col-sm-12">
|
|
|
768
|
+ <input placeholder="url" value="[[item.url.url]]" class="observe form-control" required="required" data-field="[[index]].url.url"/>
|
|
|
769
|
+ </div>
|
|
|
770
|
+ <div class="col-sm-12">
|
|
|
771
|
+ <input placeholder="图片描述" value="[[item.alt]]" class="observe form-control" data-field="[[index]].alt"/>
|
|
|
772
|
+ </div>
|
|
|
773
|
+ <div class="col-sm-12">
|
|
|
774
|
+ <input placeholder="通栏背景色" value="[[item.bgColor]]" class="observe form-control" data-field="[[index]].bgColor"/>
|
|
|
775
|
+ </div>
|
|
|
776
|
+ </td>
|
|
|
777
|
+ <td><button class="btn btn-danger btn-sm focus-del" type="button" data-index="[[index]]">删除</button></td>
|
|
|
778
|
+ </tr>
|
|
|
779
|
+ [[/each]]
|
|
|
780
|
+ </tbody>
|
|
|
781
|
+ </table>
|
|
|
782
|
+</script>
|
522
|
<!--select选项-->
|
783
|
<!--select选项-->
|
523
|
<script type="text/template" id="action_template">
|
784
|
<script type="text/template" id="action_template">
|
524
|
<option value="">选择跳转目标</option>
|
785
|
<option value="">选择跳转目标</option>
|