Showing
3 changed files
with
126 additions
and
3 deletions
@@ -91,6 +91,12 @@ | @@ -91,6 +91,12 @@ | ||
91 | <span>新品商品列表</span> | 91 | <span>新品商品列表</span> |
92 | </div> | 92 | </div> |
93 | </div> | 93 | </div> |
94 | + [[else if module.contentData.template_name=='blkNewProductFloor']] | ||
95 | + <div class="col-sm-12"> | ||
96 | + <div class="wordText"> | ||
97 | + <span>BLK新品到着商品列表</span> | ||
98 | + </div> | ||
99 | + </div> | ||
94 | [[else if module.contentData.template_name=='findGoodsListFloor']] | 100 | [[else if module.contentData.template_name=='findGoodsListFloor']] |
95 | <div class="col-sm-12"> | 101 | <div class="col-sm-12"> |
96 | <div class="wordText"> | 102 | <div class="wordText"> |
@@ -1649,4 +1655,78 @@ | @@ -1649,4 +1655,78 @@ | ||
1649 | </li> | 1655 | </li> |
1650 | [[/each]] | 1656 | [[/each]] |
1651 | </ul> | 1657 | </ul> |
1652 | -</script> | ||
1658 | +</script> | ||
1659 | +<script type="text/template" id="blkNewProductFloor-template"> | ||
1660 | + <div class="panel-body"> | ||
1661 | + <div class="row"> | ||
1662 | + <label class="col-sm-2 control-label">楼层名称:</label> | ||
1663 | + <div class="col-sm-8"> | ||
1664 | + <input type="text" placeholder="楼层名称" class="form-control observe input-form" data-field="title" value="[[contentData.data.title]]" style="width:200px;margin-bottom: 20px" > | ||
1665 | + </div> | ||
1666 | + </div> | ||
1667 | + <div class="row"> | ||
1668 | + <label class="col-sm-2 control-label">选择频道</label> | ||
1669 | + <div class="col-sm-8"> | ||
1670 | + <select class="form-control observe input-form" name="channel" value="[[contentData.data.channel]]" data-field="channel"> | ||
1671 | + <option value="-1">选择频道</option> | ||
1672 | + <option value="301">BLK男士</option> | ||
1673 | + <option value="302">BLK女士</option> | ||
1674 | + </select> | ||
1675 | + </div> | ||
1676 | + </div> | ||
1677 | + </div> | ||
1678 | + | ||
1679 | + <div class="panel-body"> | ||
1680 | + <div class="row"> | ||
1681 | + <label class="col-sm-2 control-label">左滑链接</label> | ||
1682 | + <div class="col-sm-8"> | ||
1683 | + <select name="goTo" class="form-control observe input-form" value="[[contentData.data.url.action]]" data-field="url.action"> | ||
1684 | + [[layout action_template]] | ||
1685 | + </select> | ||
1686 | + <input value="[[contentData.data.url.url]]" class="form-control observe input-form" data-field="url.url" placeholder="url"/> | ||
1687 | + </div> | ||
1688 | + </div> | ||
1689 | + </div> | ||
1690 | + <div class="panel-body"> | ||
1691 | + <div class="row"> | ||
1692 | + <label class="col-sm-2 control-label">商品属性</label> | ||
1693 | + <div class="col-sm-8"> | ||
1694 | + <input type="checkbox" id="productType_1" value="1" name="productType_1" [[contentData.data.productType_1=="1"?"checked":""]]> | ||
1695 | + <label>商品品牌</label> | ||
1696 | + <input type="checkbox" id="productType_2" value="1" name="productType_2" [[contentData.data.productType_2=="1"?"checked":""]]> | ||
1697 | + <label>商品名称</label> | ||
1698 | + <input type="checkbox" id="productType_3" value="1" name="productType_3" [[contentData.data.productType_3=="1"?"checked":""]]> | ||
1699 | + <label>商品价格</label> | ||
1700 | + </div> | ||
1701 | + </div> | ||
1702 | + </div> | ||
1703 | + <div class="panel-body"> | ||
1704 | + <div class="row"> | ||
1705 | + <label class="col-sm-2 control-label"></label> | ||
1706 | + <div class="col-sm-8"> | ||
1707 | + <input type="radio" name="showType" class="showType" value="1" [[contentData.data.showType=="1"?"checked":""]]> 显示1行 | ||
1708 | + <input type="radio" name="showType" class="showType" value="2" [[contentData.data.showType=="2"?"checked":""]]> 显示2行   | ||
1709 | + </div> | ||
1710 | + </div> | ||
1711 | + </div> | ||
1712 | + | ||
1713 | + <div class="panel-body"> | ||
1714 | + <div class="row"> | ||
1715 | + <label class="col-sm-2 control-label">默认逻辑</label> | ||
1716 | + <div class="col-sm-8"> | ||
1717 | + <label style="color:#CCC">取BLK新品到着默认排序前X个商品数据(1行10个,2行20个); | ||
1718 | + 1行显示商品数小于4个不显示整个楼层,2行显示少于8个不展示楼层 | ||
1719 | + </label> | ||
1720 | + </div> | ||
1721 | + </div> | ||
1722 | + </div> | ||
1723 | + | ||
1724 | + <div class="panel-body"> | ||
1725 | + <div class="row"> | ||
1726 | + <label class="col-sm-2 control-label">干预SKN</label> | ||
1727 | + <div class="col-sm-8"> | ||
1728 | + <input type="text" placeholder="多个SKN用英文逗号隔开,输入的SKN按照顺序排在BLK新品到着默认排序的数据前" class="observe form-control input-form" data-field="skns" value="[[contentData.data.skns]]" style="width:550px;"> | ||
1729 | + </div> | ||
1730 | + </div> | ||
1731 | + </div> | ||
1732 | + </script> |
@@ -1778,6 +1778,23 @@ var Button = [ | @@ -1778,6 +1778,23 @@ var Button = [ | ||
1778 | "title":"" | 1778 | "title":"" |
1779 | }, | 1779 | }, |
1780 | "isNewFloor":"1" | 1780 | "isNewFloor":"1" |
1781 | + },{ | ||
1782 | + button_name: "BLK新品到着商品列表", | ||
1783 | + template_name: "blkNewProductFloor", | ||
1784 | + template_intro: "BLK新品到着商品列表", | ||
1785 | + __title:"BLK新品到着商品列表", | ||
1786 | + dialog: "blkNewProductFloor-template", | ||
1787 | + data: { | ||
1788 | + "channel":"", | ||
1789 | + "title":"", | ||
1790 | + "url": { | ||
1791 | + "action": "", | ||
1792 | + "url": "" | ||
1793 | + }, | ||
1794 | + "showType":"", | ||
1795 | + "skns":"", | ||
1796 | + }, | ||
1797 | + isNewFloor:"1" | ||
1781 | } | 1798 | } |
1782 | ]; | 1799 | ]; |
1783 | 1800 |
@@ -926,7 +926,30 @@ $(document).on("change", '#recommend-is_show', function () { | @@ -926,7 +926,30 @@ $(document).on("change", '#recommend-is_show', function () { | ||
926 | Bll.module.contentData.data.title.is_show = 1 - Bll.module.contentData.data.title.is_show; | 926 | Bll.module.contentData.data.title.is_show = 1 - Bll.module.contentData.data.title.is_show; |
927 | Bll.renderDialog("editorRecommendFloor-template"); | 927 | Bll.renderDialog("editorRecommendFloor-template"); |
928 | }); | 928 | }); |
929 | - | 929 | +$(document).on("change", '#productType_1', function () { |
930 | + if ($(this).is(':checked')) { | ||
931 | + Bll.module.contentData.data.productType_1 = 1; | ||
932 | + }else{ | ||
933 | + Bll.module.contentData.data.productType_1 = ''; | ||
934 | + } | ||
935 | + Bll.renderDialog("blkNewProductFloor-template"); | ||
936 | +}); | ||
937 | +$(document).on("change", '#productType_2', function () { | ||
938 | + if ($(this).is(':checked')) { | ||
939 | + Bll.module.contentData.data.productType_2 = 1; | ||
940 | + }else{ | ||
941 | + Bll.module.contentData.data.productType_2 = ''; | ||
942 | + } | ||
943 | + Bll.renderDialog("blkNewProductFloor-template"); | ||
944 | +}); | ||
945 | +$(document).on("change", '#productType_3', function () { | ||
946 | + if ($(this).is(':checked')) { | ||
947 | + Bll.module.contentData.data.productType_3 = 1; | ||
948 | + }else{ | ||
949 | + Bll.module.contentData.data.productType_3 = ''; | ||
950 | + } | ||
951 | + Bll.renderDialog("blkNewProductFloor-template"); | ||
952 | +}); | ||
930 | $(document).on("change", '.is_show_secondFloor', function () { | 953 | $(document).on("change", '.is_show_secondFloor', function () { |
931 | Bll.module.contentData.data.is_show_secondFloor = $(this).val(); | 954 | Bll.module.contentData.data.is_show_secondFloor = $(this).val(); |
932 | var beginTime = Bll.module.contentData.begin_show_time; | 955 | var beginTime = Bll.module.contentData.begin_show_time; |
@@ -1109,7 +1132,10 @@ $(document).on("click", '.priceStyle', function () { | @@ -1109,7 +1132,10 @@ $(document).on("click", '.priceStyle', function () { | ||
1109 | Bll.module.contentData.data.priceStyle = $(this).val(); | 1132 | Bll.module.contentData.data.priceStyle = $(this).val(); |
1110 | Bll.renderDialog("tfGoodsList-template"); | 1133 | Bll.renderDialog("tfGoodsList-template"); |
1111 | }); | 1134 | }); |
1112 | - | 1135 | +$(document).on("click", '.showType', function () { |
1136 | + Bll.module.contentData.data.showType = $(this).val(); | ||
1137 | + Bll.renderDialog("blkNewProductFloor-template"); | ||
1138 | +}); | ||
1113 | $(document).on("click", '.jumpType', function () { | 1139 | $(document).on("click", '.jumpType', function () { |
1114 | Bll.module.contentData.data.jumpType = $(this).val(); | 1140 | Bll.module.contentData.data.jumpType = $(this).val(); |
1115 | Bll.renderDialog("tfGoodsList-template"); | 1141 | Bll.renderDialog("tfGoodsList-template"); |
-
Please register or login to post a comment