Authored by tanling

头部频道切换

@@ -1715,6 +1715,56 @@ @@ -1715,6 +1715,56 @@
1715 </div> 1715 </div>
1716 </script> 1716 </script>
1717 1717
  1718 +<script type="text/template" id="headChannelSwitch-template">
  1719 + <input type="button" class="btn btn-info btn-xs addBtn" data-event="headChannelSwitch.list" value="添加Tab" style="margin:10px;">
  1720 + <br>
  1721 + <div class="rows">
  1722 + <div>
  1723 + <ul class="draggable" data-array="data">
  1724 + [[each contentData.data.list as item index]]
  1725 + <li>
  1726 + <table class="table table-hover table-bordered responsive dataTable no-footer">
  1727 + <tbody>
  1728 + <tr>
  1729 + <td align="center">[[index+1]]</td>
  1730 + <td align="center">
  1731 + <input class="form-control observe" value="[[item.tabName?item.tabName:'']]" placeholder="Tab中文名称"
  1732 + data-field='list.[[index]].tabName' required/>
  1733 + </td>
  1734 + <td align="center">
  1735 + <input class="form-control observe" value="[[item.tabNameEn?item.tabNameEn:'']]" placeholder="Tab英文名称"
  1736 + data-field='list.[[index]].tabNameEn'/>
  1737 + </td>
  1738 + <td align="center">
  1739 + <select class="form-control observe input-form" value="[[item.channel?item.channnel:'']]" data-field='list.[[index]].channel'>
  1740 + <option value="-1">选择频道</option>
  1741 + <option value="1">男生</option>
  1742 + <option value="2">女生</option>
  1743 + <option value="3">潮童</option>
  1744 + <option value="4">创意生活</option>
  1745 + </select>
  1746 + </td>
  1747 + <td>
  1748 + <div class="form-group">
  1749 + <div class="col-sm-10">
  1750 + <input class="form-control observe" placeholder="code码" data-field="list.[[index]].code"
  1751 + value="[[item.code?item.code:'']]" required/>
  1752 + </div>
  1753 + </div>
  1754 + </td>
  1755 + <td>
  1756 + <a target="_blank" class="btn btn-xs btn-primary goResourceContent" data-index="[[index]]">内容编辑</a>
  1757 + <button class="btn btn-danger btn-sm delBtn" data-event="headChannelSwitch.list" type="button" data-index="[[index]]">删除</button></td>
  1758 + </tr>
  1759 + </tbody>
  1760 + </table>
  1761 + </li>
  1762 + [[/each]]
  1763 + </ul>
  1764 + </div>
  1765 + </div>
  1766 +</script>
  1767 +
1718 <script type="text/template" id="shopFloor-template"> 1768 <script type="text/template" id="shopFloor-template">
1719 <input type="button" class="btn btn-info btn-xs addBtn addShopBtn" data-event="shopFloor.list" value="添加店铺信息" style="margin:10px;"> 1769 <input type="button" class="btn btn-info btn-xs addBtn addShopBtn" data-event="shopFloor.list" value="添加店铺信息" style="margin:10px;">
1720 <br> 1770 <br>
@@ -1707,6 +1707,15 @@ var Button = [ @@ -1707,6 +1707,15 @@ var Button = [
1707 "isNewFloor":"1" 1707 "isNewFloor":"1"
1708 }, 1708 },
1709 { 1709 {
  1710 + template_intro: "头部频道切换",
  1711 + button_name: "头部频道切换",
  1712 + dialog: "headChannelSwitch-template",
  1713 + template_name: "headChannelSwitch",
  1714 + data: {
  1715 + "list":[]
  1716 + }
  1717 + },
  1718 + {
1710 template_intro: "店铺楼层", 1719 template_intro: "店铺楼层",
1711 button_name: "店铺楼层", 1720 button_name: "店铺楼层",
1712 dialog: "shopFloor-template", 1721 dialog: "shopFloor-template",
@@ -2496,7 +2496,7 @@ var BT = []; @@ -2496,7 +2496,7 @@ var BT = [];
2496 BT.push({ 2496 BT.push({
2497 "channel":"app", 2497 "channel":"app",
2498 "buttonNames":['splitJointImg','twoPicture','newSingleImage','imageListFloor','divideImage','focus','newUserFloor', 2498 "buttonNames":['splitJointImg','twoPicture','newSingleImage','imageListFloor','divideImage','focus','newUserFloor',
2499 - 'guessLike','newProductListFloor', 2499 + 'guessLike','newProductListFloor','headChannelSwitch',
2500 'popularListFloor','newProductListMerge','findGoodsListFloor','recommendContentFive','limitSaleListFloor','editorTalk', 2500 'popularListFloor','newProductListMerge','findGoodsListFloor','recommendContentFive','limitSaleListFloor','editorTalk',
2501 'shopActivityListFloor','shopFloor','tabFloor','textNav','tfGoodsList','recommendGoodsGroup','guangRqFloor','guangShowOrderFloor','timeImage'] 2501 'shopActivityListFloor','shopFloor','tabFloor','textNav','tfGoodsList','recommendGoodsGroup','guangRqFloor','guangShowOrderFloor','timeImage']
2502 }); 2502 });