taoyu.html 50.8 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
<!-- 标题图片 -->
<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" placeholder="标题" 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" placeholder="更多名称" 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]]" placeholder="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" placeholder="图片" 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]]" placeholder="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" 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" required="required" 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="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" placeholder="url" 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:;" class="btn btn-primary btn-xs addBtn" data-event="multiLabelImage.image">添加图片</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" placeholder="标题" 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" placeholder="更多名称" 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]]" placeholder="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" 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>
                    </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" 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>
                    </td>
                </tr>
                [[/each]]
                </tbody>
            </table>
        </div>
        <a href="JavaScript:;" class="btn btn-primary btn-xs addBtn" data-event="matchImage.list">添加一个</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" placeholder="标题" 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" placeholder="更多名称" 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" placeholder="url" 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" placeholder="标题" 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" name="is_show" value="1" id="recommendContentFive-is_show" [[contentData.data.title.is_show==1?'checked':'']]>
            </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]]" placeholder="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>
                [[if contentData.data.big_image]]
                <td>[[index+2]]</td>
                [[else]]
                <td>[[index+1]]</td>
                [[/if]]
                <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]]" placeholder="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>
<!--推荐(L1-RT1-RF2)-->
<script type="text/template" id="recommendContentFour-template">
    <div class="form-group">
        <label class="col-sm-2 control-label">左边图片标题:</label>
        <div class="col-sm-4">
            <input type="text" placeholder="左边图片标题" class="observe form-control" 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="col-sm-12">
                    <select name="goTo" class="form-control observe" value="[[item.url.action]]" data-field="left.list.[[index]].url.action">
                        [[layout action_template]]
                    </select>
                </div>
                <div class="col-sm-12">
                    <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 class="col-sm-12">
                    <input value="[[item.alt]]" class="form-control observe" data-field="left.list.[[index]].alt" placeholder="图片描述"/>
                </div>
            </td>
        </tr>
        [[/each]]
        </tbody>
    </table>
    <div class="form-group">
        <label class="col-sm-2 control-label">右边图片标题:</label>
        <div class="col-sm-4">
            <input type="text" class="observe form-control" 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="col-sm-12">
                    <select name="goTo" class="form-control observe" value="[[item.url.action]]" data-field="right.list.[[index]].url.action">
                        [[layout action_template]]
                    </select>
                </div>
                <div class="col-sm-12">
                    <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 class="col-sm-12">
                    <input value="[[item.alt]]" class="form-control observe" data-field="right.list.[[index]].alt" placeholder="图片描述"/>
                </div>
            </td>
        </tr>
        [[/each]]
        </tbody>
    </table>
</script>
<!--图片广告-->
<script type="text/template" id="imageGroup-template">
    <div class="panel-body" id="imageGroup-baseFrom">
        <p>标题设置:<input name="title" type="text" class="observe" placeholder="标题" value="[[contentData.data.title]]" data-field="title" required>更多设置:<input type="text" placeholder="更多" class="observe" style="width:120px;" value="[[contentData.data.more]]" data-field="more"></p>
        <p>
            更多链接 : <input type="text" placeholder="更多链接" 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]]" placeholder="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>
        <a href="JavaScript:;" class="btn btn-primary btn-xs addBtn" data-event="imageGroup.list">添加图片</a>
    </div>
</script>
<!--自定义参数-->
<script type="text/template" id="paramsGroup-template">
    <div class="panel-body" id="paramsGroup-baseFrom">
        <div class="form-group">
            <label class="col-sm-2 control-label">标题设置:</label>
            <div class="col-sm-4">
                <input type="text" placeholder="标题" class="form-control observe" value="[[contentData.data.title]]" required="required" data-field="title">
            </div>
            <label class="col-sm-2 control-label">更多设置:</label>
            <div class="col-sm-4">
                <input type="text" placeholder="更多" value="[[contentData.data.more]]" class="form-control observe" data-field="more">
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-2 control-label">跳转地址</label>
            <div class="col-sm-4">
                <input type="text" placeholder="url" value="[[contentData.data.more_url.url]]" class="form-control observe" required="required" data-field="more_url.url"/>
                <p style="color:#999;margin-top: 5px;">注:链接中不能有英文单引号</p>
            </div>
        </div>
        <div id="paramsGroup-bottom">
            <ul id="sortable" class="sortable" 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&amp;msort=1,3 参数为:gender=1,3&amp;msort=1,3</p>
                </li>
                [[/each]]
            </ul>
            <button type="button" class="btn btn-sm addBtn" data-event="paramsGroup.list">添加一个</button>
        </div>
    </div>
</script>
<!--新人专享-->
<script type="text/template" id="newUserFloor-template">
    <div class="panel-body" id="newUserFloor-baseFrom">
        <div class="new_user_floor">
            <p>标题 : <input type="text" placeholder="标题" value="[[contentData.data.title.name]]" class="observe" data-field="title.name"> 更多名称 : <input type="text" placeholder="更多名称" value="[[contentData.data.title.more_name]]" style="width:50px;" class="observe" data-field="title.more_name"> </p>
            <p>
                更多链接 : <select name="goTo" class="observe" 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" required="required" data-field="title.more_url.url"/>
            </p>
            <p>活动 ID  <input type="text" placeholder="活动id" class="observe" value="[[contentData.data.title.active_id]]" data-field="title.active_id"></p>
            <p><input type="button" class="btn btn-info btn-xs addBtn" value="添加banner" style="margin:10px;" data-event="newUserFloor.banner_image"></p>
        </div>
        <div id="newUserFloor-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.banner_image as item index]]
                <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="col-sm-12">
                            <select name="goTo" class="form-control observe" value="[[item.url.action]]" data-field="banner_image.[[index]].url.action">
                                [[layout action_template]]
                            </select>
                        </div>
                        <div class="col-sm-12">
                            <input type="text" placeholder="url" value="[[item.url.url]]" class="form-control observe" required="required" data-field="banner_image.[[index]].url.url"/>
                        </div>
                        <div class="col-sm-12">
                            <input type="text" placeholder="图片描述" value="[[item.title]]" class="form-control observe" required="required" data-field="banner_image.[[index]].title"/>
                        </div>
                    </td>
                </tr>
                [[/each]]
                </tbody>
            </table>
        </div>
    </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>
            <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 as item index]]
                    <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="col-sm-12">
                                <select name="goTo" class="observe form-control" value="[[item.url.action]]" data-field="left.[[index]].url.action">
                                    [[layout action_template]]
                                </select>
                            </div>
                            <div class="col-sm-12">
                                <input placeholder="url" value="[[item.url.url]]" class="observe form-control" required="required" data-field="left.[[index]].url.url"/>
                            </div>
                            <div class="col-sm-12">
                                <input placeholder="图片描述" value="[[item.title]]" class="observe form-control" required="required" data-field="left.[[index]].title"/>
                            </div>
                        </td>
                    </tr>
                [[/each]]
                </tbody>
            </table>
            <p><input type="button" name="select-pic" class="btn btn-info btn-xs addBtn" value="添加中间图" style="margin:10px;" data-event="debrisSlider.big_image"></p>
            <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.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="observe form-control" value="[[item.url.action]]" data-field="big_image.[[index]].url.action">
                                [[layout action_template]]
                            </select>
                        </div>
                        <div class="col-sm-12">
                            <input placeholder="url" value="[[item.url.url]]" class="observe form-control" required="required" data-field="big_image.[[index]].url.url"/>
                        </div>
                        <div class="col-sm-12">
                            <input placeholder="图片描述" value="[[item.title]]" class="observe form-control" required="required" data-field="big_image.[[index]].title"/>
                        </div>
                    </td>
                </tr>
                [[/each]]
                </tbody>
            </table>
            <p><input type="button" name="select-pic" class="btn btn-info btn-xs addBtn" value="添加右图" style="margin:10px;" data-event="debrisSlider.right"></p>
            <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 as item index]]
                <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="col-sm-12">
                            <select name="goTo" class="observe form-control" value="[[item.url.action]]" data-field="right.[[index]].url.action">
                                [[layout action_template]]
                            </select>
                        </div>
                        <div class="col-sm-12">
                            <input type="text" placeholder="url" value="[[item.url.url]]" class="observe form-control" required="required" data-field="right.[[index]].url.url"/>
                        </div>
                        <div class="col-sm-12">
                            <input type="text" placeholder="图片描述" value="[[item.title]]" class="observe form-control" required="required" data-field="right.[[index]].title"/>
                        </div>
                    </td>
                </tr>
                [[/each]]
                </tbody>
            </table>
        </div>
    </div>
</script>
<!--编辑推荐-->
<script type="text/template" id="editorTalk-template">
    <div class="form-group">
        <label class="col-sm-2 control-label">标题:</label>
        <div class="col-sm-4">
            <input type="text" placeholder="标题" 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" 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>
    <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]]
    <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.list as item index]]
        <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="col-sm-12">
                    <input type="text" placeholder="标签名称" value="[[item.title]]" class="observe form-control" required="required" data-field="list.[[index]].title"/>
                </div>
                <div class="col-sm-12">
                    <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-12">
                    <input type="text" placeholder="url" value="[[item.url.url]]" class="observe form-control" required="required" data-field="list.[[index]].url.url"/>
                </div>
            </td>
            <td><button class="btn btn-danger btn-sm delBtn" data-event="editorTalk.list" type="button" data-index="[[index]]">删除</button></td>
        </tr>
        [[/each]]
        </tbody>
    </table>
    [[/if]]
</script>
<!--热门品类-->
<script type="text/template" id="hotCategory-template">
    <div class="hotCategory">
        <p>
            标题 : <input type="text" placeholder="标题" class="observe" data-field="title.name" value="[[contentData.data.title.name]]" required> 更多名称 : <input type="text" placeholder="更多名称" class="observe" data-field="title.more_name" value="[[contentData.data.title.more_name]]" style="width:50px;"><br>
            跳转目的 : <select name="goTo" class="observe" value="[[contentData.data.title.more_url.action]]" data-field="title.more_url.action">
            [[layout action_template]]
        </select>
            跳转url : <input type="text" value="[[contentData.data.title.more_url.url]]" class="observe" required="required" data-field="title.more_url.url"/>
        </p>
        <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]]
        <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.blocks as item index]]
            <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="col-sm-12">
                        <select name="goTo" class="observe form-control" value="[[item.url.action]]" data-field="blocks.[[index]].url.action">
                            [[layout action_template]]
                        </select>
                    </div>
                    <div class="col-sm-12">
                        <input type="text" placeholder="url" value="[[item.url.url]]" class="observe form-control" required="required" data-field="blocks.[[index]].url.url"/>
                    </div>
                    <div class="col-sm-12">
                        <input type="text" placeholder="图片描述" value="[[item.title]]" class="observe form-control" required="required" data-field="blocks.[[index]].title"/>
                    </div>
                </td>
                <td><button class="btn btn-danger btn-sm delBtn" data-event="hotCategory.blocks" type="button" data-index="[[index]]">删除</button></td>
            </tr>
            [[/each]]
            </tbody>
        </table>
        [[/if]]
        <p>添加左下导航:</p>
        [[each contentData.data.list as item index]]
        <p>
            导航名称:<input type="text" placeholder="导航名称" class="observe" value="[[item.name]]" data-field="list.[[index]].name">
            <select name="goTo" class="observe" value="[[item.url.action]]" data-field="list.[[index]].url.action">
                [[layout action_template]]
            </select>
            <input type="text" placeholder="url" value="[[item.url.url]]" class="observe" required="required" data-field="list.[[index]].url.url"/>
        </p>
        [[/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="col-sm-12">
                        <select name="goTo" class="observe form-control" value="[[item.url.action]]" data-field="imgs.[[index]].url.action">
                            [[layout action_template]]
                        </select>
                    </div>
                    <div class="col-sm-12">
                        <input type="text" placeholder="url" value="[[item.url.url]]" class="observe form-control" required="required" data-field="imgs.[[index]].url.url"/>
                    </div>
                    <div class="col-sm-12">
                        <input type="text" placeholder="图片描述" value="[[item.title]]" class="observe form-control" required="required" data-field="imgs.[[index]].title"/>
                    </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">
    <p>
        标题:<input type="text" placeholder="标题" class="observe" data-field="title.title" value="[[contentData.data.title.title]]" style="width:100px;">
        显示名称: <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":""]]>  &nbsp;&nbsp;&nbsp;&nbsp;
        <input type="hidden" id="is_show_name" for="radio" value="[[contentData.data.title.is_show_name]]" />
        每行显示:<input style="width:60px;" type="number" data-field="title.column_num" class="observe" value="[[contentData.data.title.column_num]]"> 张图片
    </p>
    <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]]
    <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.list as item index]]
        <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="col-sm-12">
                    <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-12">
                    <input type="text" placeholder="url" value="[[item.url.url]]" class="observe form-control" required="required" data-field="list.[[index]].url.url"/>
                </div>
                <div class="col-sm-12">
                    <input type="text" placeholder="图片描述" value="[[item.title]]" class="observe form-control" data-field="list.[[index]].title"/>
                </div>
            </td>
            <td><button class="btn btn-danger btn-sm delBtn" data-event="imageList.list" type="button" data-index="[[index]]">删除</button></td>
        </tr>
        [[/each]]
        </tbody>
    </table>
    [[/if]]
</script>
<!--文本导航-->
<script type="text/template" id="textNav-template">
    <div class="textNav-baseForm">
        <p><input type="button" name="select-pic" class="btn btn-info btn-xs addBtn" 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]]
    </div>
</script>
<!--轮播banner-->
<script type="text/template" id="carouselBanner-template">
    <input type="button" name="select-pic" value="添加图片" class="btn btn-info btn-xs addBtn" style="margin:10px;" data-event="carouselBanner.list">
      轮播速度:<input type="text" placeholder="轮播速度" class="observe" data-field="speed" value="[[contentData.data.speed]]"><br>
    <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]]" 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>
        [[/each]]
        </tbody>
    </table>
</script>
<!--添加促销-->
<script type="text/template" id="promotion-template">
    <p> 添加促销id<input type="text" placeholder="促销id" class="observe" value="[[contentData.data.promotionId]]" data-field="promotionId"></p>
</script>
<!--标题广告-->
<script type="text/template" id="singleNameImage-template">
    <p style="margin:10px;">添加标题: <input type="text" placeholder="标题" class="observe" value="[[contentData.data.title]]" data-field="title"></p>
    <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="col-sm-12">
                    <select name="goTo" class="observe form-control" value="[[contentData.data.url.action]]" data-field="url.action">
                        [[layout action_template]]
                    </select>
                </div>
                <div class="col-sm-12">
                    <input type="text" placeholder="url" value="[[contentData.data.url.url]]" class="observe form-control" required="required" data-field="url.url"/>
                </div>
                <div class="col-sm-12">
                    <input type="text" placeholder="图片描述" value="[[contentData.data.alt]]" class="observe form-control" data-field="alt"/>
                </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>
    焦点图类型:&nbsp;&nbsp;
    <select id="focus-select" value="[[contentData.focus_type]]">
        <option value="1">通栏</option>
        <option value="2">左右滑动</option>
        <option value="3">手风琴</option>
    </select>
    <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" required/></td>
            <td>
                <div class="col-sm-12">
                    <select name="goTo" class="observe form-control" value="[[item.url.action]]" data-field="[[index]].url.action">
                        [[layout action_template]]
                    </select>
                </div>
                <div class="col-sm-12">
                    <input type="text" placeholder="url" value="[[item.url.url]]" class="observe form-control" required="required" data-field="[[index]].url.url"/>
                </div>
                <div class="col-sm-12">
                    <input type="text" placeholder="图片描述" value="[[item.alt]]" class="observe form-control" data-field="[[index]].alt"/>
                </div>
                <div class="col-sm-12">
                    <input type="text" placeholder="通栏背景色" value="[[item.bgColor]]" class="observe form-control" data-field="[[index]].bgColor"/>
                </div>
            </td>
            <td><button class="btn btn-danger btn-sm delBtn" data-event="focus.data" type="button" data-index="[[index]]">删除</button></td>
        </tr>
        [[/each]]
        </tbody>
    </table>
</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>

<!--有序焦点-->
<script type="text/template" id="debrisSlider-grid">
    <li>
        <table style="width:100%;z-index:-1;" id="tableImageBox">
            <tbody>
            <tr>
                <td style="width:100px;"><img class="bImgBox" src="[[src]]"></td>
                <td>
                    <div class="col-sm-12">
                        <select name="goTo" class="recommendContent-observe" value="[[url.action]]" data-rows="[[__index]]" data-index="[[index]]" data-observe="list-action" >
                            [[layout action_template]]
                        </select>
                    </div>
                    <div class="col-sm-12">
                        <input type="text" placeholder="url" value="[[url.url]]" class="recommendContent-observe" required="required" data-rows="[[__index]]" data-index="[[index]]" data-observe="list-url" />
                    </div>
                    <div class="col-sm-12">
                        <input type="text" placeholder="图片描述" value="[[url.title]]" class="recommendContent-observe" required="required" data-rows="[[__index]]" data-index="[[index]]" data-observe="list-url" />
                    </div>
                </td>
                <td><input type="button" value="更换图片" class="btn btn-info btn-xs change-big-pic" data-id=""> <input class="btn btn-danger btn-xs del-pic" type="button" value="删除" data-id=""></td>
            </tr>
            </tbody>
        </table>
    </li>
</script>