weiqingting.html 84 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 1286 1287 1288 1289 1290 1291 1292 1293 1294 1295 1296 1297 1298 1299 1300 1301 1302 1303 1304 1305 1306 1307 1308 1309 1310 1311 1312 1313 1314 1315 1316 1317 1318 1319 1320 1321 1322 1323 1324 1325 1326 1327 1328 1329 1330 1331 1332 1333 1334 1335 1336 1337 1338 1339 1340 1341 1342 1343 1344 1345 1346 1347 1348 1349 1350 1351 1352 1353 1354 1355 1356 1357 1358 1359 1360 1361 1362 1363 1364 1365 1366 1367 1368 1369 1370 1371 1372 1373 1374 1375 1376 1377 1378 1379 1380 1381 1382 1383 1384 1385 1386 1387 1388 1389 1390 1391 1392 1393 1394 1395 1396 1397 1398 1399 1400 1401 1402 1403 1404 1405 1406 1407 1408 1409 1410 1411 1412 1413 1414 1415 1416 1417 1418 1419 1420 1421 1422 1423 1424 1425 1426 1427 1428 1429 1430 1431 1432 1433 1434 1435 1436 1437 1438 1439 1440 1441 1442 1443 1444 1445 1446 1447 1448 1449 1450 1451 1452 1453 1454 1455 1456 1457 1458 1459 1460 1461 1462 1463 1464 1465 1466 1467 1468 1469 1470 1471 1472 1473 1474 1475 1476 1477 1478 1479 1480 1481 1482 1483 1484 1485 1486 1487 1488 1489 1490 1491 1492 1493 1494 1495 1496 1497 1498 1499 1500 1501 1502 1503 1504 1505 1506 1507 1508 1509 1510 1511 1512 1513 1514 1515 1516 1517 1518 1519 1520 1521 1522 1523 1524 1525 1526 1527 1528 1529 1530 1531 1532 1533 1534 1535 1536 1537 1538 1539 1540 1541 1542 1543 1544 1545 1546 1547 1548 1549 1550 1551 1552 1553 1554 1555 1556 1557 1558 1559 1560 1561 1562 1563 1564 1565 1566 1567 1568 1569 1570 1571 1572 1573 1574 1575 1576 1577 1578 1579 1580 1581 1582 1583 1584 1585 1586 1587 1588 1589 1590 1591 1592 1593 1594 1595 1596 1597 1598 1599 1600 1601 1602 1603 1604 1605 1606 1607 1608 1609 1610 1611 1612 1613 1614 1615 1616 1617 1618 1619 1620 1621 1622 1623 1624 1625 1626 1627 1628 1629 1630 1631 1632 1633 1634 1635 1636 1637 1638 1639 1640 1641 1642 1643 1644 1645 1646 1647 1648 1649 1650 1651 1652 1653 1654 1655 1656 1657 1658 1659 1660 1661 1662 1663 1664 1665 1666 1667 1668 1669 1670 1671 1672 1673 1674 1675 1676 1677 1678 1679 1680 1681 1682 1683 1684 1685 1686 1687 1688 1689 1690 1691 1692 1693 1694 1695 1696 1697 1698 1699 1700 1701 1702 1703 1704 1705 1706 1707 1708 1709 1710 1711 1712 1713 1714 1715 1716 1717 1718 1719 1720 1721 1722 1723 1724 1725 1726 1727 1728 1729 1730 1731 1732
<script type="text/template" id="template_content">
<!-- 文本内容 -->
[[each modules as module index]]
    <li class="form-group custom-group dragItem" data-index="[[index]]" style="width: 100%">
    [[if module.contentData.template_name=='text']]
        <div class="col-sm-12"><h3>[[module.contentData.data.text]]</h3></div>
    [[else if module.contentData.template_name=='singleImage']]
        <div class="col-sm-12">
            <img src="[[module.contentData.data[0].src]]" title="[[module.contentData.data[0].title]]">
        </div>
    [[else if module.contentData.template_name=='newSingleImage']]
    <div class="col-sm-12">
        <img src="[[module.contentData.data.list[0].src]]" title="[[module.contentData.data.list[0].title]]">
    </div>
        [[else if module.contentData.template_name=='secondFloor']]
        <div class="col-sm-12">
            <img src="[[module.contentData.data.src1]]" title="二楼楼层">
        </div>
        [[else if module.contentData.template_name=='imageListFloor']]
        <div class="col-sm-12">
            <img src="[[module.contentData.data.list[0].src]]" title="[[module.contentData.data.list[0].title]]">
        </div>
        [[else if module.contentData.template_name=='tabFloor']]
        <div class="col-sm-12">
            <div class="wordText">
                <span>Tab楼层</span>
            </div>
        </div>
    [[else if module.contentData.template_name=='divideImage']]
    <div class="col-sm-12">
        <img src="[[module.contentData.data[0].src]]" title="[[module.contentData.data[0].title]]">
    </div>
    [[else if module.contentData.template_name=='smallPic']]
        [[each module.contentData.data as item i]]
        <div class="col-sm-6">
                <img src="[[item.src]]" title="[[item.title]]">
        </div>
        [[/each]]
    [[else if module.contentData.template_name=='goods']]
        [[each module.contentData.data as item i]]
        <div class="col-sm-6">
                <img src="[[item.src]]" title="[[item.title]]">
        </div>
        [[/each]]
    [[else if module.contentData.template_name=='link']]
        <div class="col-sm-12">
            <div class="wordText">
                <span>一个链接</span>
            </div>
        </div>
    [[else if module.contentData.template_name=='goodsGroup']]
        <div class="form-group">
        [[each module.contentData.data as items i]]
        <div class="col-sm-3">
            <img src="[[items.cover.cover]]" >
        </div>
        [[/each]]
        </div>

        [[each module.contentData.data[0].list as item index]]
        <div class="col-sm-6">
            <img src="[[item.src]]" title="[[item.id]]">
        </div>
        [[/each]]

    </div>
    [[else if module.contentData.template_name=='blkBrand']]
        <div class="form-group">
        [[each module.contentData.data.list as item i]]
        [[if i<=2]]
        <div class="col-sm-3">
            <img src="[[item.src]]" title="[[item.productName]]">
        </div>
         <div class="col-sm-3">
          [[item.productName]]
         </div>
         [[/if]]
        [[/each]]
        </div>

    [[else if module.contentData.template_name=='titleFloor']]
        <div class="col-sm-12">
            <div class="wordText">
                <span>[[module.contentData.data.title.name]]</span>
                <div style="float: right;">[[module.contentData.data.title.more_name]]</div>
            </div>
        </div>
        [[else if module.contentData.template_name=='newProductListFloor']]
        <div class="col-sm-12">
            <div class="wordText">
                <span>新品商品列表</span>
            </div>
        </div>
        [[else if module.contentData.template_name=='blkNewProductFloor']]
        <div class="col-sm-12">
            <div class="wordText">
                <span>BLK新品到着商品列表</span>
            </div>
        </div>
        [[else if module.contentData.template_name=='findGoodsListFloor']]
        <div class="col-sm-12">
            <div class="wordText">
                <span>发现好货列表</span>
            </div>
        </div>
        [[else if module.contentData.template_name=='popularListFloor']]
        <div class="col-sm-12">
            <div class="wordText">
                <span>人气商品列表</span>
            </div>
        </div>
        [[else if module.contentData.template_name=='limitSaleListFloor']]
        <div class="col-sm-12">
            <div class="wordText">
                <span>限定发售列表</span>
            </div>
        </div>
        [[else if module.contentData.template_name=='shopListFloor']]
        <div class="col-sm-12">
            <div class="wordText">
                <span>店铺列表</span>
            </div>
        </div>
        [[else if module.contentData.template_name=='homeEntrance']]
        <div class="col-sm-12">
            <div class="wordText">
                <span>第二首页入口</span>
            </div>
        </div>
        [[else if module.contentData.template_name=='matchFloor']]
        <div class="col-sm-12">
            <div class="wordText">
                <span>搭配楼层</span>
            </div>
        </div>
        [[else if module.contentData.template_name=='shopActivityListFloor']]
        <div class="col-sm-12">
            <div class="wordText">
                <span>店铺活动列表</span>
            </div>
        </div>
        [[else if module.contentData.template_name=='editorRecommendFloor']]
        <div class="col-sm-12">
            <div class="wordText">
                <span>编辑推荐</span>
            </div>
        </div>
        [[else if module.contentData.template_name=='recommendGoodsGroup']]
        <div class="col-sm-12">
            <div class="wordText">
                <span>推荐商品组</span>
            </div>
        </div>
        [[else if module.contentData.template_name=='shopFloor']]
        <div class="col-sm-12">
            <img src="[[module.contentData.data.list[0].src]]">
        </div>
        [[else if module.contentData.template_name=='tfGoodsList']]
        <div class="col-sm-12">
            <div class="wordText">
                <span>3:4商品列表</span>
            </div>
        </div>
    [[else if module.contentData.template_name=='sixLinesFloor']]
    [[each module.contentData.data.list as item i]]
        <div class="col-sm-6">
            <img src="[[item.src]]" title="[[item.title]]">
        </div>
        [[/each]]
    [[else if module.contentData.template_name=='shopRecommend']]
        <div class="shopRecommend">
            <p class="title"><span>[[module.contentData.data.title.name]]</span>
            </p>
    [[if module.contentData.isShopRecommend=='N']]
        [[each module.contentData.data.list as item i]]
            [[if i == 0]]
            <div class="recommend-info">
                <p class="big-pic"><img src="[[item.src]]"></p>
                <ul class="small-pic">
                    <li class="li_[[0]]"><img src="[[item.goods0.src]]"></li>
                    <li class="li_[[1]]"><img src="[[item.goods1.src]]"></li>
                    [[ if item.size >= 2]]
                    <li class="li_[[2]]"><img src="[[item.goods2.src]]"></li>
                    [[ /if ]]
                </ul>
            </div>
            [[/if]]
            [[/each]]
            [[/if]]
        </div>

    <%include 'taoyu2'%>
    [[/if]]
        <div class="actions-box">
            <div class="actions-wrap">
                <span class="edit" data-index="[[index]]">编辑</span>
                <span class="del" data-index="[[index]]">删除</span>
            </div>
        </div>
     </li>
[[/each]]

</script>

<!-- 文本弹层 -->
<script type="text/template" id="template_dialog_text">
    <div class="rows">
       <textarea rows="2" class="form-control observe" placeholder="文章摘要" data-field="text" style="resize: none">[[contentData.data.text]]</textarea>
    </div>
</script>

<!-- 一张图片/两张小图 -->
<script type="text/template" id="oneimage-template">
<input type="button" class="btn btn-info btn-xs addBtn" data-event="oneimage.data" value="添加图片" style="margin:10px;"><br>
    <div class="rows">
        <div id="grid-baseFrom"> 
            <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 align="center">[[index+1]]</td>
                            <td align="center">
                                <input type="file" name="file" id="src-[[index]]" value="[[item.src]]"
                                       data-field="[[index]].src" data-index="[[index]]" required/>
                            </td>
                            <td>
                                <div class="form-group">
                                    <div class="col-sm-10">
                                        <select class="form-control observe" data-field="[[index]].url.action"
                                                value='[[item.url?item.url.action:""]]'>
                                            [[layout action_template]]
                                        </select>
                                    </div>
                                </div>

                                <div class="form-group">
                                    <div class="col-sm-10">
                                        <input class="form-control observe" placeholder="跳转地址" data-field="[[index]].url.url"
                                               value="[[item.url?item.url.url:'']]"/>
                                    </div>
                                </div>
                                <div class="form-group">
                                    <div class="col-sm-10">
                                        <input class="form-control observe" value="[[item.alt?item.alt:'']]" placeholder="图片描述"
                                               data-field='[[index]].alt'/>
                                    </div>
                                </div>
                            </td>
                            <td><button class="btn btn-danger btn-sm delBtn" data-event="oneimage.data" type="button" data-index="[[index]]">删除</button></td>
                        </tr>
                        </tbody>
                    </table>
                </li>
                [[/each]]
            </ul>
        </div>
    </div>
    <div class="rows">
        <a href="javascript:void(0);" class="set_show_time" style="font-size: 12px;">[[contentData.begin_show_time?"删除":"设置"]]展示时间</a>
    </div>
    [[if contentData.begin_show_time || contentData.begin_show_time]]
    <div class="rows show_time_input" style="margin-top: 10px;">
        <label class="control-label pull-left" style="margin-top: 10px;">展示时间:</label>
        <div class="panel-col">
            <input type="text" data-field="..begin_show_time" data-type="time" class="form-control panel-input hasDatepickerPlat observe" readonly required placeholder="开始时间" value="[[contentData.begin_show_time]]">
        </div>
        <div class="col-sm-1" style="width: 28px;">~</div>
        <div class="panel-col">
            <input type="text" data-field="..end_show_time" data-type="time" class="form-control panel-input hasDatepickerPlat observe" readonly required placeholder="结束时间" value="[[contentData.end_show_time]]">
        </div>
    </div>
    [[/if]]
</script>
<script type="text/template" id="set_show_time_template">
    <div class="rows show_time_input" style="margin-top: 10px;">
        <label class="control-label pull-left" style="margin-top: 10px;">展示时间:</label>
        <div class="panel-col">
            <input type="text" data-field="..begin_show_time" data-type="time" class="form-control panel-input hasDatepickerPlat observe" readonly required placeholder="开始时间" value="">
        </div>
        <div class="col-sm-1" style="width: 28px;">~</div>
        <div class="panel-col">
            <input type="text" data-field="..end_show_time" data-type="time" class="form-control panel-input hasDatepickerPlat observe" readonly required placeholder="结束时间" value="">
        </div>
    </div>
</script>
<script type="text/template" id="divideImage-template">
    <div class="rows">
        <div id="baseForm">
            <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 align="center">[[index+1]]</td>
                            <td align="center">
                                <input type="file" name="file" id="src-[[index]]" value="[[item.src]]"
                                       data-field="[[index]].src" data-index="[[index]]" required/>
                            </td>
                            <td>
                                <div class="form-group">
                                    <div class="col-sm-10">
                                        <select class="form-control observe" data-field="[[index]].url.action"
                                                value='[[item.url?item.url.action:""]]'>
                                            [[layout action_template]]
                                        </select>
                                    </div>
                                </div>

                                <div class="form-group">
                                    <div class="col-sm-10">
                                        <input class="form-control observe" placeholder="跳转地址" data-field="[[index]].url.url"
                                               value="[[item.url?item.url.url:'']]"/>
                                    </div>
                                </div>
                                <div class="form-group">
                                    <div class="col-sm-10">
                                        <input class="form-control observe" value="[[item.alt?item.alt:'']]" placeholder="图片描述"
                                               data-field='[[index]].alt'/>
                                    </div>
                                </div>
                            </td>
                        </tr>
                        </tbody>
                    </table>
                </li>
                [[/each]]
            </ul>
        </div>
    </div>
    </script>
<!--多张小图-->
<script type="text/template" id="smallPic-template">
    [[if contentData.data.length]]
    <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 align="center">[[index+1]]</td>
                    <td align="center">
                        <input type="file" name="file" id="src-[[index]]" value="[[item.src]]"
                               data-field="[[index]].src" data-index="[[index]]" required/>
                    </td>
                    <td>
                        <div class="form-group">
                            <div class="col-sm-10">
                                <select class="form-control observe" data-field="[[index]].url.action"
                                        value='[[item.url?item.url.action:""]]'>
                                    [[layout action_template]]
                                </select>
                            </div>
                        </div>

                        <div class="form-group">
                            <div class="col-sm-10">
                                <input class="form-control observe" placeholder="跳转地址" data-field="[[index]].url.url"
                                       value="[[item.url?item.url.url:'']]"/>
                            </div>
                        </div>
                        <div class="form-group">
                            <div class="col-sm-10">
                                <input class="form-control observe" value="[[item.alt?item.alt:'']]" placeholder="图片描述"
                                       data-field='[[index]].alt'/>
                            </div>
                        </div>
                    </td>
                    <td><button class="btn btn-danger btn-sm delBtn" data-event="smallPic.data" type="button" data-index="[[index]]">删除</button></td>
                </tr>
                </tbody>
            </table>
        </li>
        [[/each]]
    </ul>
    [[/if]]
    <p><input type="button" name="select-pic" class="btn btn-info btn-xs addBtn" value="继续添加" style="margin:10px;" data-event="smallPic.data"></p>
    </ul>
</script>
<!-- 选择商品 -->
<script type="text/template" id="template_dialog_goods">
    <div class="rows">
        <div class="form-group">
            <div class="col-sm-12">
                <ul class="cover-image-list col-sm-10 imagegroup" id="goodspic">
                    [[each contentData.data as item index]]
                    <li class="cover-image-item image-list" data-index="2">
                        <div class="goods-img">
                            <a class="fileinput-button-icon" href="javascript:void(0);">
                                <img src="[[item.src]]">
                            </a>
                            <i class="remove-item-btn removepic glyphicon glyphicon-remove-circle"
                               data-index="[[index]]"></i>
                        </div>
                    </li>
                    [[/each]]
                </ul>
            </div>

        </div>
        <div class="form-group">
            <div class="col-sm-1">
                <button class="btn btn-info" type="button" id="goodsSelectBtn">选择标签</button>
            </div>
        </div>
    </div>
</script>

<script type="text/template" id="template_dialog_goodsimgs">
    [[each datas as data index]]
        <li class="cover-image-item image-list" data-index="2">
            <div class="goods-img">
                <a class="fileinput-button-icon" href="javascript:void(0);">
                    <img src="[[data.src]]">
                </a>
                <i class="remove-item-btn removepic glyphicon glyphicon-remove-circle" data-index="[[index]]"></i>
            </div>
        </li>
    [[/each]]
</script>

<!-- 推荐商品 -->
<script type="text/tempalte" id="template_dialog_remgoods">
    <div class="rows" id="groupsgoods">
       [[layout template_dialog_remgoodsgroup]]
    </div>
    <div class="rows">
     <div class="form-group">
            <div class="col-sm-1">
                <button class="btn btn-info" type="button" id="goodsaddBtn">添加组</button>
            </div>
        </div>
    </div>
</script>

<script type="text/template" id="template_dialog_remgoodsgroup">
    [[each contentData.data as items i]]
    <div class="form-group">
        <div class="col-sm-10">
            <ul class="cover-image-list col-sm-10 imagegroup" data-i="[[i]]">
                [[each items.list as item index]]
                <li class="cover-image-item image-list" data-index="2">
                    <div class="goods-img">
                        <a class="fileinput-button-icon" href="javascript:void(0);">
                            <img src="[[item.src]]">
                        </a>
                        <i class="remove-item-btn removepic glyphicon glyphicon-remove-circle"
                           data-index="[[index]]"></i>
                    </div>
                </li>
                [[/each]]
            </ul>
        </div>
        <div class="col-sm-2">
            <button class="btn btn-info goodsSelectBtn" type="button" data-index="[[i]]">选择标签</button>
        </div>
    </div>
    [[/each]]
</script>
<!-- 一个连接 -->
<script type="text/template" id="template_dialog_link">
    <div class="rows">
        <div class="form-group">
            <label class="col-sm-2 control-label">选择跳转目的地:</label>
            <div class="col-sm-8">
                <select class="form-control observe" data-field="0.url.action" value='[[contentData.data[0].url.action]]'>     
                    [[layout action_template]]
                </select>

            </div>
        </div>

        <div class="form-group">
            <label class="col-sm-2 control-label">跳转地址:</label>
            <div class="col-sm-8">
                <textarea rows="2" class="form-control observe" placeholder="跳转地址" data-field="0.url.url" style="resize: none;">[[contentData.data[0].url.url]]</textarea>
            </div>
           
        </div>
    </div>
</script>

<!--添加商品/商品组--选择标签界面模板-->
<script type="text/template" id="template_dialog_goodsgird">
    <h4>1、搜索商品或标签</h4>
    <nav>
        <a class="hand select" href="javascript:void(0)" style="font-size: 14px;padding:20px;color: red">手动输入</a>
        <a class="tag" href="javascript:void(0)" style="font-size: 14px;padding:20px;color: #000000">标签筛选</a>
    </nav>
    <div class="search-con1 form-group">
        <div class="col-sm-3">
            <input type="text" id="skns" class="form-control" placeholder="输入skn,多个skn以逗号分隔">
        </div>
        <div class="col-sm-2">
            <a id="search" class="go-search btn btn-primary">搜索商品</a>
        </div>

    </div>
    <div class="search-con2 form-group" hidden="hidden">
        <div class="col-sm-3">
            <input type="text" id="tags" class="form-control" placeholder="输入关键字搜索标签">
        </div>
        <div class="col-sm-1">
            <span style="line-height: 300%;margin-left: 50px"></span>
        </div>
         
        <div class="col-sm-3">
            <input type="text" id="skns2" class="form-control" placeholder="输入skn搜索标签">
        </div>
        <div class="col-sm-1">
            <a type="button" id="search-tag" class="go-search  btn btn-primary">搜索标签</a>
        </div>
    </div>
    <div class="tag-con" style="border: 1px solid rgb(0, 0, 0); padding: 10px; margin-top: 10px;" hidden="hidden">
        <div class="sort" style="display: none">
            [[layout tag-template]]
        </div>
        <div class="orther">
            [[layout sorts-template]]
        </div>
        <p style="margin-top:40px;">
            <a class="go-search tag-goods btn btn-primary" id="search2">搜索商品</a>
        </p>
    </div>
    <div class="goods-list form-group" style="display: none">
        <h4>2、选择商品</h4>

        <div class="form-group">
            <label class="col-sm-1" for="min-price">价格筛选:</label>

            <div class="col-sm-2">
                <input type="text" id="min-price" class="form-control">
            </div>
            <div class="col-sm-1">
                <span>---</span>
            </div>
            <div class="col-sm-2">
                <input type="text" id="max-price"  class="form-control">
            </div>
            <div class="col-sm-1">
                <a class="go-search price btn btn-primary" id="price-search">筛选</a>
            </div>
        </div>

        <div class="gird" id="goodsgird">
        </div>
    </div>
</script>
<script type="text/template" id="sorts-template">
    <div class="row" style="margin-bottom: 40px" id="tabSelect">
        <ul>
            <li class="selectRow">
                <dl>
                    <dt class="col-sm-1">颜色:</dt>
                    <dd class="form-inline col-sm-10 _show" data-index="0">
                        [[each colors as item index]]
                        [[if index < 5]]
                        <div class="form-group" >
                            <input type="checkbox"  class="changeCheck" name="colorName" data-val="[[item.colorName?item.colorName:item.name]]" value="[[item.id]]">
                            <label>[[item.colorName?item.colorName:item.name]]</label>
                        </div>
                        [[else]]
                        <div class="form-group hide" >
                            <input type="checkbox"  class="changeCheck" name="colorName" data-val="[[item.colorName?item.colorName:item.name]]" value="[[item.id]]">
                            <label>[[item.colorName?item.colorName:item.name]]</label>
                        </div>
                        [[/if]]
                        [[/each]]
                    </dd>
                    [[if colors.length>5]]
                    <dd class="col-sm-1 more" data-index="0"><a href="javasript:">更多</a></dd>
                    [[/if]]
                    <div class="clearfix"></div>
                </dl>
            </li>
        </ul>
        <ul>
            <li class="selectRow">
                <dl>
                    <dt class="col-sm-1">风格:</dt>
                    <dd class="form-inline col-sm-10 _show" data-index="0">
                        [[each styles as item index]]
                        [[if index < 5]]
                        <div class="form-group" >
                            <input type="checkbox"  class="changeCheck" name="stylename" data-val="[[item.stylename?item.stylename:item.name]]" value="[[item.id]]">
                            <label>[[item.stylename?item.stylename:item.name]]</label>
                        </div>
                        [[else]]
                        <div class="form-group hide" >
                            <input type="checkbox"  class="changeCheck" name="stylename" data-val="[[item.stylename?item.stylename:item.name]]" value="[[item.id]]">
                            <label>[[item.stylename?item.stylename:item.name]]</label>
                        </div>
                        [[/if]]
                        [[/each]]
                    </dd>
                    [[if styles.length>5]]
                    <dd class="col-sm-1 more" data-index="0"><a href="javasript:">更多</a></dd>
                    [[/if]]
                    <div class="clearfix"></div>
                </dl>
            </li>
        </ul>
        <ul>
            <li class="selectRow">
                <dl>
                    <dt class="col-sm-1">品类:</dt>
                    <dd class="form-inline col-sm-10 _show" data-index="0">
                        [[each sorts as item index]]
                        [[if index < 5]]
                        <div class="form-group" >
                            <input type="checkbox"  class="changeCheck" name="sortName" data-val="[[item.sortName?item.sortName:item.name]]" value="[[item.id]]">
                            <label>[[item.sortName?item.sortName:item.name]]</label>
                        </div>
                        [[else]]
                        <div class="form-group hide" >
                            <input type="checkbox"  class="changeCheck" name="sortName" data-val="[[item.sortName?item.sortName:item.name]]" value="[[item.id]]">
                            <label>[[item.sortName?item.sortName:item.name]]</label>
                        </div>
                        [[/if]]
                        [[/each]]
                    </dd>
                    [[if sorts.length>5]]
                    <dd class="col-sm-1 more" data-index="0"><a href="javasript:">更多</a></dd>
                    [[/if]]
                    <div class="clearfix"></div>
                </dl>
            </li>
        </ul>

        <ul>
            <li class="selectRow">
                <dl>
                    <dt class="col-sm-1">品牌</dt>
                    <dd class="form-inline col-sm-10 brandShow">
                        [[each brands1.items as item index]]
                        [[if index < 5]]
                        <div class="form-group">
                            <input type="checkbox" name="brand_name" class="changeCheck brandId_[[item.id]]" data-val="[[item.brand_name]]" value="[[item.id]]">
                            <label>[[item.brand_name]]</label>
                        </div>
                        [[/if]]
                        [[/each]]
                    </dd>
                    <dd class="col-sm-10 brandHide" style="display: none">
                        <div class="brandSearch form-group">
                            <span class="brand-all"><a>全部</a></span>
                            [[each brands as brand index]]
                            <span class="brand-index1"><a>[[brand.name]]</a></span>
                            [[/each]]
                            <span><input type="text" placeholder="搜索" id="brandsearch1"/></span>
                            <div class="clearfix"></div>
                        </div>
                        <div class="brandDetail form-inline" id="all">
                            [[each brands as item index]]
                            [[each item.items as _item _index]]
                            <div class="form-group" name="[[item.name]]">
                                <input type="checkbox" name="brand_name" class="changeCheck brandId_[[_item.id]]" data-val="[[_item.brand_name]]" value="[[_item.id]]">
                                <label>[[_item.brand_name]]</label>
                            </div>
                            [[/each]]
                            [[/each]]
                        </div>
                    </dd>
                    <dd class="col-sm-1 brandMore"><a href="javasript:">更多</a></dd>
                    <div class="clearfix"></div>
                </dl>
            </li>
        </ul>
        <ul>
            <li class="selectRow">
                <dl>
                    <dt class="col-sm-1">性别:</dt>
                    <dd class="form-inline col-sm-10 _show" data-index="0">
                        [[each genders as item index]]
                        [[if index < 5]]
                        <div class="form-group" >
                            <input type="checkbox"  class="changeCheck" name="gendername" data-val="[[item.gendername?item.gendername:item.name]]" value="[[item.id]]">
                            <label>[[item.gendername?item.gendername:item.name]]</label>
                        </div>
                        [[else]]
                        <div class="form-group hide" >
                            <input type="checkbox"  class="changeCheck" name="gendername" data-val="[[item.gendername?item.gendername:item.name]]" value="[[item.id]]">
                            <label>[[item.gendername?item.gendername:item.name]]</label>
                        </div>
                        [[/if]]
                        [[/each]]
                    </dd>
                    [[if genders.length>5]]
                    <dd class="col-sm-1 more" data-index="0"><a href="javasript:">更多</a></dd>
                    [[/if]]
                    <div class="clearfix"></div>
                </dl>
            </li>
        </ul>
    </div>
</script>
<script type="text/template" id="tag-template">
    <div class="form-group">
        <label style="width: 70px">已选标签:</label>
        [[each sorts as sort index]]
        [[each sort.list as _item _index]]
        <span class="tag1"><span>[[_item.name]]</span><a href="#" title="Removing tag" name="[[sort.tagName]]" data-field="[[_item.id]]" data-val="[[index]]" data-index='[[_index]]'>x</a></span>
        [[/each]]
        [[/each]]
    </div>
</script>

<!--LBK-->
<script type="text/template" id="blkBrand-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" value="[[contentData.data.title]]" style="width:100px;">
            &emsp;
            <label>显示名称: </label>
            <input type="radio" name="is_show_name2" class="is_show_name2" value="Y" [[contentData.data.is_show_name=="Y"?"checked":""]]> 
            <input type="radio" name="is_show_name2" class="is_show_name2" value="N" [[contentData.data.is_show_name=="N"?"checked":""]]>  &emsp;
            <input type="hidden" id="is_show_name2" for="radio" value="[[contentData.data.is_show_name]]" />
            <label>每行显示:</label>
            <input style="width:60px;" type="text" data-field="number" class="observe number form-control input-form" value="[[contentData.data.number]]"> 张图片
        </div>
    </div>
    <p><input type="button" name="select-pic" class="btn btn-info btn-xs addBtn" value="添加图片" style="margin:10px;" data-event="blkBrand.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 align="center">[[index+1]]</td>
                    <td align="center"><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.productName]]" class="observe form-control" data-field="list.[[index]].productName"/>
                            </div>
                        </div>
                        <div class="form-group">
                            <div class="col-sm-10">
                                <input type="text" placeholder="品牌或者商品描述" value="[[item.productDesc]]" class="observe form-control" data-field="list.[[index]].productDesc"/>
                            </div>
                        </div>
                    </td>
                    <td><button class="btn btn-danger btn-sm delBtn" data-event="list" type="button" data-index="[[index]]">删除</button></td>
                </tr>
                </tbody>
            </table>
        </li>
        [[/each]]
    </ul>
    [[/if]]
</script>

<!-- 9-1 标题标签 -->
<script type="text/template" id="titleFloor-template">
    <div class="rows">
        <div class="form-group ">
            <div class="col-sm-6">
                <label>标题名称</label>&emsp;&emsp;
                <input class="form-control observe input-form" placeholder="标题名称" type="text" value="[[contentData.data.title.name]]" data-field="title.name" required>
            </div>
            <div class="col-sm-6">
                <label>更多名称</label>&emsp;&emsp;
                <input class="form-control observe input-form" type="text" placeholder="更多名称" value="[[contentData.data.title.more_name]]" data-field="title.more_name">
            </div>
        </div>
        <div class="form-group ">
            <div class="col-sm-6">
                <label>跳转目的</label>&emsp;&emsp;
                <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>&emsp;&emsp;&emsp;&emsp;
                <input value="[[contentData.data.title.more_url.url]]" class="form-control observe input-form" data-field="title.more_url.url" placeholder="url"/>
                <p style="color:#999;margin-top: 5px;">注:链接中不能有英文单引号</p>
            </div>
        </div>
    </div>
</script>

<!-- 新品商品列表 -->
<script type="text/template" id="newProductListFloor-template">
    <div class="panel-body">
        <div class="row">
            <label class="col-sm-2 control-label">楼层名称:</label>
            <div class="col-sm-8">
                <input type="text" placeholder="楼层名称" class="form-control observe input-form" data-field="title" value="[[contentData.data.title]]" style="width:200px;margin-bottom: 20px" >
            </div>
        </div>
        <div class="row">
                <label class="col-sm-2 control-label">选择频道</label>
                <div class="col-sm-8">
                    <select class="form-control observe input-form" name="channel" value="[[contentData.data.channel]]" data-field="channel">
                        <option value="-1">选择频道</option>
                        <option value="1">男生</option>
                        <option value="2">女生</option>
                        <option value="3">潮童</option>
                        <option value="4">创意生活</option>
                    </select>
            </div>
        </div>
    </div>
    <div class="panel-body">
        <div class="row">
                <label class="col-sm-2 control-label">默认逻辑</label>
                <div class="col-sm-8">
                    <label style="color:#CCC">新品到着首页前10个不同品牌的商品</label>
                </div>
        </div>
    </div>

    <div class="panel-body">
        <div class="row">
                <label class="col-sm-2 control-label">左滑链接</label>
                <div class="col-sm-8">
                    <select name="goTo" class="form-control observe input-form" value="[[contentData.data.url.action]]" data-field="url.action">
                        [[layout action_template]]
                    </select>
                    <input value="[[contentData.data.url.url]]" class="form-control observe input-form" data-field="url.url" placeholder="url"/>
                </div>
        </div>
    </div>

    <div class="panel-body">
        <div class="row">
                <label class="col-sm-2 control-label">默认skn</label>
                <div class="col-sm-8">
                    <input type="text" placeholder="多个skn用英文逗号连接,按照顺序排在原逻辑前" class="observe form-control input-form" data-field="skns" value="[[contentData.data.skns]]" style="width:500px;">
                </div>
        </div>
    </div>
    
    <div class="panel-body">
        <div class="row">
                <label class="col-sm-2 control-label">商品池id</label>
                <div class="col-sm-8">
                    <input type="text" placeholder="多个商品池id用英文逗号连接,与上面的skn相对应" class="observe form-control input-form" data-field="poolIds" value="[[contentData.data.poolIds]]" style="width:500px;">
                </div>
        </div>
    </div>
</script>
<!--发现好货列表-->
<script type="text/template" id="findGoodsListFloor-template">
    <div class="panel-body">
        <div class="row" style="margin-bottom: 5px">
            <label class="col-sm-2 control-label">商品数量</label>
            <div class="col-sm-8">
                <select class="form-control observe input-form" name="goodsSize" value="[[contentData.data.goodsSize]]" data-field="goodsSize" required>
                    <option value="10">10(首页)</option>
                    <option value="6">6(第二首页)</option>
                </select>
            </div>
        </div>
        <div class="row">
            <label class="col-sm-2 control-label">选择频道</label>
            <div class="col-sm-8">
                <select class="form-control observe input-form" name="channel" value="[[contentData.data.channel]]" data-field="channel">
                    <option value="-1">选择频道</option>
                    <option value="1">男生</option>
                    <option value="2">女生</option>
                    <option value="3">潮童</option>
                    <option value="4">创意生活</option>
                </select>
            </div>
        </div>
    </div>
    <div class="panel-body">
        <div class="row">
            <label class="col-sm-2 control-label">逻辑说明</label>
            <div class="col-sm-8">
                <label style="color:#CCC">发现好货的商品</label>
            </div>
        </div>
    </div>

    <div class="panel-body">
        <div class="row">
            <label class="col-sm-2 control-label">左滑链接</label>
            <div class="col-sm-8">
                <select name="goTo" class="form-control observe input-form" value="[[contentData.data.url.action]]" data-field="url.action">
                    [[layout action_template]]
                </select>
                <input value="[[contentData.data.url.url]]" class="form-control observe input-form" data-field="url.url" placeholder="url"/>
            </div>
        </div>
    </div>

    <div class="panel-body">
        <div class="row">
            <label class="col-sm-2 control-label">默认skn</label>
            <div class="col-sm-8">
                <input type="text" placeholder="多个skn用英文逗号连接,按照顺序排在原逻辑前" class="observe form-control input-form" data-field="skns" value="[[contentData.data.skns]]" style="width:500px;">
            </div>
        </div>
    </div>

    <div class="panel-body">
        <div class="row">
            <label class="col-sm-2 control-label">显示内容</label>
            <div class="col-sm-8">
                <input type="radio" name="display_type" class="display_type" value="1" [[contentData.data.display_type=="1"?"checked":""]]> 商品价格
                <input type="radio" name="display_type" class="display_type" value="2" [[contentData.data.display_type=="2"?"checked":""]]> 店铺 &emsp;
                <input type="hidden" id="display_type" for="radio" value="[[contentData.data.display_type]]" />
            </div>
        </div>
    </div>

    <div class="panel-body">
        <div class="row">
            <label class="col-sm-2 control-label">跳转类型</label>
            <div class="col-sm-8">
                <input type="radio" name="url_type" class="url_type" value="1" [[contentData.data.url_type=="1"?"checked":""]]> 商品详情
                <input type="radio" name="url_type" class="url_type" value="2" [[contentData.data.url_type=="2"?"checked":""]]> 商品列表 &emsp;
                <input type="hidden" id="url_type" for="radio" value="[[contentData.data.url_type]]" />
            </div>
        </div>
    </div>
</script>
<!--人气商品列表-->
<script type="text/template" id="popularListFloor-template">
    <div class="panel-body">
        <div class="row">
            <label class="col-sm-2 control-label">选择频道</label>
            <div class="col-sm-8">
                <select class="form-control observe input-form" name="channel" value="[[contentData.data.channel]]" data-field="channel">
                    <option value="-1">选择频道</option>
                    <option value="1">男生</option>
                    <option value="2">女生</option>
                    <option value="3">潮童</option>
                    <option value="4">创意生活</option>
                </select>
            </div>
        </div>
    </div>
    <div class="panel-body">
        <div class="row">
            <label class="col-sm-2 control-label">数据来源</label>
            <div class="col-sm-8">
                <input type="radio" name="dataSource" class="dataSource" value="1" [[contentData.data.dataSource=="1"?"checked":""]]> TOP100
                <input type="radio" name="dataSource" class="dataSource" value="2" [[contentData.data.dataSource=="2"?"checked":""]]> 个性化推荐 &emsp;
                <input type="hidden" id="dataSource" for="radio" value="[[contentData.data.dataSource]]" />
            </div>
        </div>
    </div>
    <div class="panel-body activityShow" [[contentData.data.dataSource=="1"||contentData.data.dataSource==""?"hidden":""]]>
        <div class="row">
            <label class="col-sm-2 control-label">活动ID</label>
            <div class="col-sm-8" >
                <input value="[[contentData.data.activityId]]" id="activityId" class="form-control observe input-form number" data-field="activityId" placeholder="商品池ID"/>
            </div>
        </div>
    </div>

    <div class="panel-body">
        <div class="row">
            <label class="col-sm-2 control-label">左滑链接</label>
            <div class="col-sm-8">
                <select name="goTo" class="form-control observe input-form" value="[[contentData.data.url.action]]" data-field="url.action">
                    [[layout action_template]]
                </select>
                <input value="[[contentData.data.url.url]]" class="form-control observe input-form" data-field="url.url" placeholder="url"/>
            </div>
        </div>
    </div>

    <div class="panel-body">
        <div class="row">
            <label class="col-sm-2 control-label">显示内容</label>
            <div class="col-sm-8">
                <input type="radio" name="display_type" class="display_type" value="1" [[contentData.data.display_type=="1"?"checked":""]]> 商品价格
                <input type="radio" name="display_type" class="display_type" value="2" [[contentData.data.display_type=="2"?"checked":""]]> 店铺 &emsp;
                <input type="hidden" id="display_type" for="radio" value="[[contentData.data.display_type]]" />
            </div>
        </div>
    </div>

    <div class="panel-body">
        <div class="row">
            <label class="col-sm-2 control-label">跳转类型</label>
            <div class="col-sm-8">
                <input type="radio" name="url_type" class="url_type" value="1" [[contentData.data.url_type=="1"?"checked":""]]> 商品详情
                <input type="radio" name="url_type" class="url_type" value="2" [[contentData.data.url_type=="2"?"checked":""]]> 商品列表 &emsp;
                <input type="hidden" id="url_type" for="radio" value="[[contentData.data.url_type]]" />
            </div>
        </div>
    </div>
</script>
<!--限定发售列表-->
<script type="text/template" id="limitSaleListFloor-template">
    <div class="panel-body">
        <div class="row">
            <label class="col-sm-2 control-label">商品数量</label>
            <div class="col-sm-8">
                <select class="form-control observe input-form" name="goodsSize" value="[[contentData.data.goodsSize]]" data-field="goodsSize" required>
                    <option value="10">10(首页)</option>
                    <option value="4">4(第二首页)</option>
                </select>
            </div>
        </div>
    </div>
    <div class="panel-body">
        <div class="row">
            <label class="col-sm-2 control-label">逻辑说明</label>
            <div class="col-sm-8">
                <label style="color:#CCC">热门限定的商品</label>
            </div>
        </div>
    </div>
    <div class="panel-body">
        <div class="row">
            <label class="col-sm-2 control-label">左滑链接</label>
            <div class="col-sm-8">
                <select name="goTo" class="form-control observe input-form" value="[[contentData.data.url.action]]" data-field="url.action">
                    [[layout action_template]]
                </select>
                <input value="[[contentData.data.url.url]]" class="form-control observe input-form" data-field="url.url" placeholder="url"/>
            </div>
        </div>
    </div>    
</script>
<!--店铺列表-->
<script type="text/template" id="shopListFloor-template">
    <div class="panel-body">
        <div class="row">
            <label class="col-sm-2 control-label">数据来源</label>
            <div class="col-sm-8">
                <input type="radio" name="shopSource" class="shopSource" value="1" [[contentData.data.shopSource=="1"?"checked":""]]> 固定推荐
                <input type="radio" name="shopSource" class="shopSource" value="2" [[contentData.data.shopSource=="2"?"checked":""]]> 个性化推荐 &emsp;
                <input type="hidden" id="shopSource" for="radio" value="[[contentData.data.shopSource]]" />
            </div>
        </div>
    </div>
    <div class="panel-body shopIdShow" [[contentData.data.shopSource=="2"?"hidden":""]]>
        <div class="row">
            <label class="col-sm-2 control-label">店铺ID</label>
            <div class="col-sm-8">
                <input value="[[contentData.data.shopIds]]" class="form-control observe input-form" data-field="shopIds" placeholder="只能填写4个店铺ID,英文逗号分隔" style="width: 400px"/>
            </div>
        </div>
    </div>
    <div class="panel-body recommendChannelShow" [[contentData.data.shopSource==""||contentData.data.shopSource=="1"?"hidden":""]] [[contentData.data.dataSource=="2"?"display":""]]>
        <div class="row">
            <label class="col-sm-2 control-label">推荐频道</label>
            <div class="col-sm-8">
                <select class="form-control observe input-form" name="channel" value="[[contentData.data.recommendChannel]]" data-field="recommendChannel">
                    <option value="-1">选择频道</option>
                    <option value="1">男生</option>
                    <option value="2">女生</option>
                </select>
            </div>
        </div>
        <div class="row" style="margin-top: 5px">
            <label class="col-sm-2 control-label">店铺类型</label>
            <div class="col-sm-8">
                <input value="[[contentData.data.brandType1]]" class="form-control observe input-form number" data-field="brandType1" placeholder="前两张图分类"/>
                &emsp;
                <input value="[[contentData.data.brandType2]]" class="form-control observe input-form number" data-field="brandType2" placeholder="后两张图分类"/>
            </div>
            </div>
    </div>
</script>
<!--店铺活动列表-->
<script type="text/template" id="shopActivityListFloor-template">
    <div class="panel-body">
        <div class="row">
            <label class="col-sm-2 control-label">楼层名称:</label>
            <div class="col-sm-8">
                <input type="text" placeholder="楼层名称" class="form-control observe input-form" data-field="title" value="[[contentData.data.title]]" style="width:200px;margin-bottom: 20px" >
            </div>
        </div>
        <div class="row">
            <label class="col-sm-2 control-label">选择频道</label>
            <div class="col-sm-8">
                <select class="form-control observe input-form" name="channel" value="[[contentData.data.channel]]" data-field="channel">
                    <option value="-1">选择频道</option>
                    <option value="1">男生</option>
                    <option value="2">女生</option>
                    <option value="3">潮童</option>
                    <option value="4">创意生活</option>
                </select>
            </div>
        </div>
    </div>
    <div class="panel-body">
        <div class="row">
            <label class="col-sm-2 control-label">逻辑说明</label>
            <div class="col-sm-8">
                <label style="color:#CCC">取店铺活动列表中有图的</label>
            </div>
        </div>
    </div>
    <div class="panel-body">
        <div class="row">
            <label class="col-sm-2 control-label">左滑链接</label>
            <div class="col-sm-8">
                <select name="goTo" class="form-control observe input-form" value="[[contentData.data.url.action]]" data-field="url.action">
                    [[layout action_template]]
                </select>
                <input value="[[contentData.data.url.url]]" class="form-control observe input-form" data-field="url.url" placeholder="url"/>
            </div>
        </div>
    </div>
</script>
<!--新编辑推荐-->
<script type="text/template" id="editorRecommendFloor-template">
    <div class="form-group">
        <div class="col-sm-10">
            <label>模块标题</label>&emsp;&emsp;&emsp;
            <input type="text" placeholder="标题" class="form-control observe input-form" value="[[contentData.data.title.title]]" required="required" data-field="title.title">
            <label>&emsp;&emsp;
                是否显示&emsp;&emsp;<input type="checkbox" name="is_show" value="1" id="recommend-is_show" [[contentData.data.title.is_show==1?'checked':'']]>
            </label>
        </div>
    </div>
    <div class="form-group">
        <div class="col-sm-6">
            <label>"更多"样式</label>&emsp;&emsp;&emsp;
            <input type="radio" name="more_type" class="recommend-more_type" value="1" [[contentData.data.more.more_type=="1"?"checked":""]]> 名称
            <input type="text" placeholder="名称" class="form-control observe input-form" value="[[contentData.data.more.more_name]]"  data-field="more.more_name">

        </div>
        <div class="col-sm-3">
            <div style="float: left;line-height: 40px; padding-right: 10px;">
                <input type="radio" name="more_type" class="recommend-more_type" value="2" [[contentData.data.more.more_type=="2"?"checked":""]]>
            </div>
            <label style="line-height: 40px; float: left; padding-right: 30px;">图标</label>&emsp;&emsp;
            <div style="float: left;">
                <input type="file" name="file" value="[[contentData.data.more.src]]" class="observe" data-field="more.src"/>
            </div>
        </div>
    </div>
    <div class="form-group">
        <div class="col-sm-10">
            <label>"更多"落地</label>&emsp;&emsp;&emsp;
            <select name="goTo" class="form-control observe input-form" value="[[contentData.data.more.url.action]]" data-field="more.url.action">
                [[layout action_template]]
            </select>
            <input value="[[contentData.data.more.url.url]]" class="form-control observe input-form" data-field="more.url.url" placeholder="url"/>
        </div>
    </div>
    <div class="panel-body">
        <div class="row">
            <label class="col-sm-2 control-label">逻辑说明</label>
            <div class="col-sm-8">
                <label style="color:#CCC">搭配取逛“搭配”类型文章10篇,普通资讯取“话题”,“潮人”,“潮品”10</label>
            </div>
        </div>
    </div>
</script>


<script type="text/template" id="recommendGoodsGroup-template">

    <div class="panel-body">
        <div class="row">
            <label class="col-sm-2 control-label">推荐逻辑</label>
            <div class="col-sm-8">
                <textarea rows="2" class="form-control observe" placeholder="品牌,店铺,品类,价格段,品牌是否去重,性别,活动ID,库存,专区,商品池,7天内上新,15天内上新"
                          data-field="recommendLogic" style="resize: none;">[[contentData.data.recommendLogic]]</textarea>
            </div>
        </div>
    </div>
    <div class="panel-body">
        <div class="row">
            <label class="col-sm-2 control-label">默认skn</label>
            <div class="col-sm-8">
                <textarea rows="2" class="form-control observe" placeholder="多个skn用英文逗号分隔"
                          data-field="skns" style="resize: none;">[[contentData.data.skns]]</textarea>
            </div>
        </div>
    </div>
</script>
<script type="text/template" id="newSingleImage-template">
    <input type="button" class="btn btn-info btn-xs addBtn" data-event="newSingleImage.list" value="添加图片" style="margin:10px;">
    <br>
    <div class="panel-body">
        <div class="row">
            <div class="col-sm-8">
                <label class="col-sm-2 control-label">宽度:</label>
                <input type="text" placeholder="图片宽度" class="observe  number" data-field="imageWidth" value="[[contentData.data.imageWidth]]" style="width:100px;" >
            </div>
            <div class="col-sm-8">
                <label class="col-sm-2 control-label">高度:</label>
                <input type="text" placeholder="图片高度" class="observe  number" data-field="imageHeight" value="[[contentData.data.imageHeight]]" style="width:100px;" >
            </div>
            <div class="col-sm-8">
                <label class="col-sm-2 control-label">楼层名称:</label>
                <input type="text" placeholder="楼层名称" class="observe" data-field="title" value="[[contentData.data.title]]" style="width:100px;" >
            </div>
        </div>
    </div>
    <div class="rows">
        <div>
            <ul class="draggable" data-array="data">
                [[each contentData.data.list as item index]]
                <li>
                    <table class="table table-hover table-bordered responsive dataTable no-footer">
                        <tbody>
                        <tr>
                            <td align="center">[[index+1]]</td>
                            <td align="center">
                                <input type="file" name="file"value="[[item.src]]"
                                       data-field="list.[[index]].src" required/>
                            </td>
                            <td>
                                <div class="form-group">
                                    <div class="col-sm-10">
                                        <select class="form-control observe" data-field="list.[[index]].url.action"
                                                value='[[item.url?item.url.action:""]]'>
                                            [[layout action_template]]
                                        </select>
                                    </div>
                                </div>

                                <div class="form-group">
                                    <div class="col-sm-10">
                                        <input class="form-control observe" placeholder="跳转地址" data-field="list.[[index]].url.url"
                                               value="[[item.url?item.url.url:'']]"/>
                                    </div>
                                </div>
                                <div class="form-group">
                                    <div class="col-sm-10">
                                        <input class="form-control observe" value="[[item.alt?item.alt:'']]" placeholder="图片描述"
                                               data-field='list.[[index]].alt'/>
                                    </div>
                                </div>
                                <div class="form-group">
                                    <table>
                                        <tr>
                                            <td>
                                        <input type="checkbox"style="margin-left:10px" class="isShowLocation observe" name="isShowLocation_[[index]]" data-field="list.[[index]].location.isShowLocation" value="1" [[item.location.isShowLocation=="1"?"checked":""]]> 指定区域展示
                                        <input class="observe"  style="width:100px" value="[[item.location?item.location.lng:'']]" placeholder="经度"
                                               data-field='list.[[index]].location.lng'/>
                                                &emsp;
                                        <input class=" observe"  style="width:100px" value="[[item.location?item.location.lat:'']]" placeholder="纬度"
                                               data-field='list.[[index]].location.lat'/>
                                                &emsp;
                                        <input class=" observe"  style="width:100px" value="[[item.location?item.location.distance:'']]" placeholder="区域半径"
                                               data-field='list.[[index]].location.distance'/>
                                            </td>
                                        </tr>
                                    </table>
                                </div>
                            </td>
                            <td><button class="btn btn-danger btn-sm delBtn" data-event="newSingleImage.list" type="button" data-index="[[index]]">删除</button></td>
                        </tr>
                        </tbody>
                    </table>
                </li>
                [[/each]]
            </ul>
        </div>
    </div>
</script>

<script type="text/template" id="imageListFloor-template">
    <input type="button" class="btn btn-info btn-xs addBtn" data-event="imageListFloor.list" value="添加图片" style="margin:10px;">
    <br>
    <div class="panel-body">
        <div class="row">
            <div class="col-sm-8">
                    <input type="text" placeholder="楼层名称" class="form-control observe input-form" data-field="title" value="[[contentData.data.title]]" style="width:200px;margin-bottom: 20px" >
                </div>
        </div>
        <div class="row">
            <div class="col-sm-8">
                <select class="form-control observe input-form" name="imageRatio" value="[[contentData.data.imageRatio]]" data-field="imageRatio" required>
                    <option value="-1">图片比例</option>
                    <option value="1">3:4</option>
                    <option value="2">4:3</option>
                </select>
            </div>
        </div>
    </div>
    <div class="rows">
        <div>
            <ul class="draggable" data-array="data">
                [[each contentData.data.list as item index]]
                <li>
                    <table class="table table-hover table-bordered responsive dataTable no-footer">
                        <tbody>
                        <tr>
                            <td align="center">[[index+1]]</td>
                            <td align="center">
                                <input type="file" name="file"value="[[item.src]]"
                                       data-field="list.[[index]].src" required/>
                            </td>
                            <td>
                                <div class="form-group">
                                    <div class="col-sm-10">
                                        <select class="form-control observe" data-field="list.[[index]].url.action"
                                                value='[[item.url?item.url.action:""]]'>
                                            [[layout action_template]]
                                        </select>
                                    </div>
                                </div>

                                <div class="form-group">
                                    <div class="col-sm-10">
                                        <input class="form-control observe" placeholder="跳转地址" data-field="list.[[index]].url.url"
                                               value="[[item.url?item.url.url:'']]"/>
                                    </div>
                                </div>
                                <div class="form-group">
                                    <div class="col-sm-10">
                                        <input class="form-control observe" value="[[item.alt?item.alt:'']]" placeholder="图片描述"
                                               data-field='list.[[index]].alt'/>
                                    </div>
                                </div>
                            </td>
                            <td><button class="btn btn-danger btn-sm delBtn" data-event="imageListFloor.list" type="button" data-index="[[index]]">删除</button></td>
                        </tr>
                        </tbody>
                    </table>
                </li>
                [[/each]]
            </ul>
        </div>
    </div>
</script>

<script type="text/template" id="tabFloor-template">
    <input type="button" class="btn btn-info btn-xs addBtn" data-event="tabFloor.list" value="添加Tab" style="margin:10px;">
    <br>
    <div class="rows">
        <div>
            <ul class="draggable" data-array="data">
                [[each contentData.data.list as item index]]
                <li>
                    <table class="table table-hover table-bordered responsive dataTable no-footer">
                        <tbody>
                        <tr>
                            <td align="center">[[index+1]]</td>
                            <td align="center">
                                <input class="form-control observe" value="[[item.tabName?item.tabName:'']]" placeholder="输入Tab名称"
                                       data-field='list.[[index]].tabName' required/>
                            </td>
                            <td>
                                <div class="form-group">
                                    <div class="col-sm-10">
                                        <input class="form-control observe" placeholder="code码" data-field="list.[[index]].code"
                                               value="[[item.code?item.code:'']]" required/>
                                    </div>
                                </div>
                            </td>
                            <td>
                                <a target="_blank" class="btn btn-xs btn-primary goResourceContent" data-index="[[index]]">内容编辑</a>
                                <button class="btn btn-danger btn-sm delBtn" data-event="tabFloor.list" type="button" data-index="[[index]]">删除</button></td>
                        </tr>
                        </tbody>
                    </table>
                </li>
                [[/each]]
            </ul>
        </div>
    </div>
</script>

<script type="text/template" id="shopFloor-template">
    <input type="button" class="btn btn-info btn-xs addBtn addShopBtn" data-event="shopFloor.list" value="添加店铺信息" style="margin:10px;">
    <br>
    <div class="rows">
        <div>
            <ul class="draggable" data-array="data">
                [[each contentData.data.list as item index]]
                <li>
                    <table class="table table-hover table-bordered responsive dataTable no-footer">
                        <tbody>
                        <tr>
                            <td align="center">[[index+1]]</td>
                            <td align="center">
                                <div class="form-group">
                                    <div class="col-sm-10">
                                        <select name="shopsId" class="shopsId form-control observe" value="[[item.shopsId]]" data-field="list.[[index]].shopsId">
                                            [[layout shop_template]]
                                        </select>
                                        </div>
                                    </div>
                            </td>
                            <td align="center">
                                <div class="form-group">
                                    <div class="col-sm-10">
                                    <input type="file" name="file"value="[[item.src]]"
                                           data-field="list.[[index]].src" required/>
                                        </div>
                                    </div>
                            </td>
                            <td>
                                <a target="_blank" class="btn btn-xs btn-primary goResourceContent" data-index="[[index]]">内容编辑</a>
                                <button class="btn btn-danger btn-sm delBtn" data-event="shopFloor.list" type="button" data-index="[[index]]">删除</button></td>
                        </tr>
                        </tbody>
                    </table>
                </li>
                [[/each]]
            </ul>
        </div>
    </div>
</script>
<!--3:4商品列表-->
<script type="text/template" id="tfGoodsList-template">
    <div class="panel-body">
        <div class="row">
            <label class="col-sm-2 control-label">价格样式</label>
            <div class="col-sm-8">
                <input type="radio" name="priceStyle" class="priceStyle" value="0" [[contentData.data.priceStyle=="0"?"checked":""]]> 不显示
                <input type="radio" name="priceStyle" class="priceStyle" value="1" [[contentData.data.priceStyle=="1"?"checked":""]]> 销售价 &emsp;
                <input type="radio" name="priceStyle" class="priceStyle" value="2" [[contentData.data.priceStyle=="2"?"checked":""]]> 店铺 &emsp;
            </div>
        </div>
        <div class="row">
            <label class="col-sm-2 control-label">跳转目的</label>
            <div class="col-sm-8">
                <input type="radio" name="jumpType" class="jumpType" value="1" [[contentData.data.jumpType=="1"?"checked":""]]> 商品详情页
                <input type="radio" name="jumpType" class="jumpType" value="2" [[contentData.data.jumpType=="2"?"checked":""]]> 店铺 &emsp;
            </div>
        </div>
    </div>
    <div class="panel-body">
        <div class="row">
            <label class="col-sm-2 control-label">推荐逻辑</label>
            <div class="col-sm-8">
                <textarea rows="2" class="form-control observe" placeholder="品牌,店铺,品类,价格段,品牌是否去重,性别,活动ID,库存,专区,商品池,7天内上新,15天内上新"
                          data-field="recommendLogic" style="resize: none;">[[contentData.data.recommendLogic]]</textarea>
            </div>
        </div>
    </div>
    <div class="panel-body">
        <div class="row">
            <label class="col-sm-2 control-label">默认skn</label>
            <div class="col-sm-8">
                <textarea rows="2" class="form-control observe" placeholder="多个skn用英文逗号分隔"
                          data-field="skns" style="resize: none;">[[contentData.data.skns]]</textarea>
            </div>
        </div>
    </div>
</script>
<!-- 两张图片 -->
<script type="text/template" id="twoPicture-template">
    <div class="panel-body">
        <div class="row">
            <div class="col-sm-8">
                <label class="col-sm-2 control-label">宽度:</label>
                <input type="text" placeholder="330" class="observe  number" data-field="imageWidth" value="[[contentData.data.imageWidth]]" style="width:100px;" >
            </div>
            <div class="col-sm-8">
                <label class="col-sm-2 control-label">高度:</label>
                <input type="text" placeholder="330" class="observe  number" data-field="imageHeight" value="[[contentData.data.imageHeight]]" style="width:100px;" >
            </div>
            <div class="col-sm-8">
                <label class="col-sm-2 control-label">显示分割线:</label>
            <select class="observe" name="showSplitLine" value="[[contentData.data.showSplitLine]]" data-field="showSplitLine">
                <option value="">请选择</option>
                <option value="1"></option>
                <option value="0"></option>
            </select>
                </div>
            <div class="col-sm-8">
                <label class="col-sm-2 control-label">楼层名称:</label>
                <input type="text" placeholder="楼层名称" class="observe" data-field="title" value="[[contentData.data.title]]" style="width:100px;" >
            </div>
        </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 align="center">[[index+1]]</td>
                    <td align="center"><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" data-field="list.[[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="list.[[index]].alt"/>
                            </div>
                        </div>
                    </td>
                </tr>
                </tbody>
            </table>
        </li>
        [[/each]]
    </ul>
</script>
<!--二楼-->
<script type="text/template" id="secondFloor-template">
    <div class="panel-body">
        <div class="row">
            <label class="col-sm-2 control-label">二楼开关</label>
            <div class="col-sm-8">
                <input type="radio" name="is_show_secondFloor" class="is_show_secondFloor" value="Y" [[contentData.data.is_show_secondFloor=="Y"?"checked":""]]> 开启 &emsp;
                <input type="radio" name="is_show_secondFloor" class="is_show_secondFloor" value="N" [[contentData.data.is_show_secondFloor=="N"?"checked":""]]> 关闭
            </div>
        </div>
    </div>
    <div class="panel-body">
        <div class="row">
            <label class="col-sm-2 control-label">开启时间</label>
            <div class="col-sm-8">
                <input type="text" data-field="..begin_show_time" data-type="time" class="form-control panel-input hasDatepickerPlat observe" readonly required placeholder="开始时间" value="[[contentData.begin_show_time]]">
                <input type="text" data-field="..end_show_time" data-type="time" class="form-control panel-input hasDatepickerPlat observe" readonly required placeholder="结束时间" value="[[contentData.end_show_time]]">
            </div>
        </div>
    </div>
    <div class="panel-body">
        <div class="row">
            <label class="col-sm-2 control-label">图片</label>
            <div class="col-sm-8">
                &emsp; iphone4 <input type="file" name="file" value="[[contentData.data.src1]]" class="observe" data-field="src1" required/>            &emsp;
                iphone5 <input type="file" name="file" value="[[contentData.data.src2]]" class="observe" data-field="src2" required/>            &emsp;
                iphone6 <input type="file" name="file" value="[[contentData.data.src3]]" class="observe" data-field="src3" required/>            &emsp;
            </div>
        </div>
    </div>
    <div class="panel-body">
        <div class="row">
            <label class="col-sm-2 control-label">跳转地址</label>
            <div class="col-sm-8">
                <select name="goTo" class="form-control observe input-form" value="[[contentData.data.url.action]]" data-field="url.action">
                    [[layout action_template]]
                </select>
                <input value="[[contentData.data.url.url]]" class="form-control observe input-form" data-field="url.url" placeholder="url"/>
            </div>
        </div>
    </div>
</script>

<!--第二首页入口-->
<script type="text/template" id="homeEntrance-template">
    <div class="panel-body">
        <div class="row">
            <label class="col-sm-2 control-label">第二首页开关</label>
            <div class="col-sm-8">
                <input type="radio" name="is_show_homeEntrance" class="is_show_homeEntrance" value="Y" [[contentData.data.is_show_homeEntrance=="Y"?"checked":""]]> 开启 &emsp;
                <input type="radio" name="is_show_homeEntrance" class="is_show_homeEntrance" value="N" [[contentData.data.is_show_homeEntrance=="N"?"checked":""]]> 关闭&emsp;&emsp;
                <span style="color: red">所有图片和链接完全维护才能开启</span>
            </div>
        </div>
    </div>
    <div class="panel-body">
        <div class="row">
            <label class="col-sm-2 control-label">入口按钮</label>
            <div class="col-sm-8">
                <input type="file" name="file" value="[[contentData.data.enterBtn]]" class="observe" data-field="enterBtn" required/>       &emsp;
            </div>
        </div>
        <div class="row">
            <label class="col-sm-2 control-label">出口按钮</label>
            <div class="col-sm-8">
                 <input type="file" name="file" value="[[contentData.data.exitBtn]]" class="observe" data-field="exitBtn" required/>            &emsp;
            </div>
        </div>
    </div>
    <div class="panel-body">
        <div class="row">
            <label class="col-sm-2 control-label">跳转地址</label>
            <div class="col-sm-8">
                <select name="goTo" class="form-control observe input-form" value="[[contentData.data.url.action]]" data-field="url.action">
                    [[layout action_template]]
                </select>
                <input value="[[contentData.data.url.url]]" class="form-control observe input-form" data-field="url.url" placeholder="url"/>
            </div>
        </div>
    </div>
</script>
<!--第二首页搭配楼层-->
<script type="text/template" id="matchFloor-template">
    <div class="panel-body">
        <div class="row">
            <label class="col-sm-2 control-label">默认逻辑</label>
            <div class="col-sm-8">
                <label style="color:#CCC">从资讯列表搭配分类中,按时间排序,取标记为第二首页资讯的文章</label>
            </div>
        </div>
    </div>
</script>

<script type="text/template" id="timeImage-template">
    <div class="panel-body">
        <div class="row">
            <label class="col-sm-2 control-label">结束时间:</label>
            <div class="col-sm-8" style="width:200px">
                <input type="text" data-field="..end_show_time" data-type="time" class="form-control panel-input hasDatepickerPlat observe" readonly required placeholder="结束时间" value="[[contentData.end_show_time]]">
            </div>
        </div>
        <div class="row" style="margin-top:5px">
            <label class="col-sm-2 control-label">楼层名称:</label>
            <div class="col-sm-8" >
                <input type="text" placeholder="楼层名称" class="observe" data-field="title" value="[[contentData.data.title]]" style="width:150px;" >
            </div>
            </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 align="center">[[index+1]]</td>
                    <td align="center"><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" data-field="list.[[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="list.[[index]].alt"/>
                            </div>
                        </div>
                    </td>
                </tr>
                </tbody>
            </table>
        </li>
        [[/each]]
    </ul>
</script>
<script type="text/template" id="blkNewProductFloor-template">
    <div class="panel-body">
        <div class="row">
            <label class="col-sm-2 control-label">楼层名称:</label>
            <div class="col-sm-8">
                <input type="text" placeholder="楼层名称" class="form-control observe input-form" data-field="title" value="[[contentData.data.title]]" style="width:200px;margin-bottom: 20px" >
            </div>
        </div>
        <div class="row">
            <label class="col-sm-2 control-label">选择频道</label>
            <div class="col-sm-8">
                <select class="form-control observe input-form" name="channel" value="[[contentData.data.channel]]" data-field="channel">
                    <option value="-1">选择频道</option>
                    <option value="301">BLK男士</option>
                    <option value="302">BLK女士</option>
                </select>
            </div>
        </div>
    </div>

    <div class="panel-body">
        <div class="row">
            <label class="col-sm-2 control-label">左滑链接</label>
            <div class="col-sm-8">
                <select name="goTo" class="form-control observe input-form" value="[[contentData.data.url.action]]" data-field="url.action">
                    [[layout action_template]]
                </select>
                <input value="[[contentData.data.url.url]]" class="form-control observe input-form" data-field="url.url" placeholder="url"/>
            </div>
        </div>
    </div>
    <div class="panel-body">
        <div class="row">
            <label class="col-sm-2 control-label">商品属性</label>
            <div class="col-sm-8">
                <input type="checkbox"  id="productType_1" value="1" name="productType_1" [[contentData.data.productType_1=="1"?"checked":""]]>
                <label>商品品牌</label>
                <input type="checkbox"  id="productType_2" value="1" name="productType_2" [[contentData.data.productType_2=="1"?"checked":""]]>
                <label>商品名称</label>
                <input type="checkbox"  id="productType_3" value="1" name="productType_3" [[contentData.data.productType_3=="1"?"checked":""]]>
                <label>商品价格</label>
            </div>
        </div>
    </div>
    <div class="panel-body">
        <div class="row">
            <label class="col-sm-2 control-label"></label>
            <div class="col-sm-8">
                <input type="radio" name="showType" class="showType" value="1" [[contentData.data.showType=="1"?"checked":""]]> 显示1
                <input type="radio" name="showType" class="showType" value="2" [[contentData.data.showType=="2"?"checked":""]]> 显示2 &emsp;
            </div>
        </div>
    </div>

    <div class="panel-body">
        <div class="row">
            <label class="col-sm-2 control-label">默认逻辑</label>
            <div class="col-sm-8">
                <label style="color:#CCC">BLK新品到着默认排序前X个商品数据(110个,220个);
                    1行显示商品数小于4个不显示整个楼层,2行显示少于8个不展示楼层
                </label>
            </div>
        </div>
    </div>

    <div class="panel-body">
        <div class="row">
            <label class="col-sm-2 control-label">干预SKN</label>
            <div class="col-sm-8">
                <input type="text" placeholder="多个SKN用英文逗号隔开,输入的SKN按照顺序排在BLK新品到着默认排序的数据前" class="observe form-control input-form" data-field="skns" value="[[contentData.data.skns]]" style="width:550px;">
            </div>
        </div>
    </div>
    </script>