Authored by dongjunjie

店铺装修pc端banner跟app端banner无关联,且要做校验

... ... @@ -1317,6 +1317,14 @@ $(document).on("click","#saveModule",function(){
})
//提交审核
$(document).on("click","#submitModule",function(){
if(jsonMain.resources.shopTopBanner.data[0].shopSrc == defaultSrc){
common.util.__tip("PC端没有维护顶部banner!");
return;
}
if(jsonMain.resources.shopTopBanner_APP.isUsed == "N"){
common.util.__tip("APP端没有维护顶部banner!");
return;
}
if(jsonMain.templateType == "0"){
common.util.__tip("请选择展示使用模板!");
$("#templateSelect").focus().addClass("error");
... ...
... ... @@ -208,7 +208,10 @@
<li><img src="[[item.src]]"><div class="shadow"><a href="javascript:">[[item.productName]]</a><b>¥[[item.salesPrice]]</b></div></li>
[[/each]]
[[else]]
<li><img src="http://cdn.yoho.cn/yohobuy-portal/assets/images/shop.png"><div class="shadow"><a href="javascript:">商品展示样例</a><b>¥商品价格</b></div></li>
<li>
<img src="http://img01.yohoboys.com/staticimg/2016/05/19/15/01091c21f2317a64f123f1649fbbccf7ba.png">
<div class="shadow"><a href="javascript:">商品展示样例</a><b>¥商品价格</b></div>
</li>
[[/if]]
</ul>
<div class="clear"></div>
... ... @@ -241,13 +244,15 @@
<li><img src="[[item.src]]"><div class="shadow"><a href="javascript:">[[item.productName]]</a><b>¥[[item.salesPrice]]</b></div></li>
[[/each]]
[[else]]
<li><img src="http://cdn.yoho.cn/yohobuy-portal/assets/images/shop.png"><div class="shadow"><a href="javascript:">商品展示样例</a><b>¥商品价格</b></div></li>
<li>
<img src="http://img01.yohoboys.com/staticimg/2016/05/19/15/01091c21f2317a64f123f1649fbbccf7ba.png">
<div class="shadow"><a href="javascript:">商品展示样例</a><b>¥商品价格</b></div>
</li>
[[/if]]
</ul>
<div class="clear"></div>
</div>
</div>
</div>
<div class="clear"></div>
</div>
... ... @@ -267,7 +272,11 @@
<!--nav-->
<div class="model-nav">
<ul>
<li class="active"><a href="javascript:">首页</a></li><li><a href="javascript:">上新</a></li><li><a href="javascript:">人气</a></li><li style="border:0"><a href="javascript:">全部商品</a></li><div class="clear"></div>
<li class="active"><a href="javascript:">首页</a></li>
<li><a href="javascript:">上新</a></li>
<li><a href="javascript:">人气</a></li>
<li style="border:0"><a href="javascript:">全部商品</a>
</li><div class="clear"></div>
</ul>
</div>
... ... @@ -288,15 +297,9 @@
<!--小图-->
<div class="model-smallPic model-editor" data-toggle="editor-smallPic" data-title="资源位小图编辑">
<ul>
[[if resources.oneRowTwoColImages_APP.isUsed == "Y"]]
[[each resources.oneRowTwoColImages_APP.data as item _index]]
<li><img src="[[item.data[0].src]]"></li>
[[/each]]
[[else]]
[[each resources.oneRowTwoColImages.data as item _index]]
<li><img src="[[item.data[0].src]]"></li>
[[/each]]
[[/if]]
[[each resources.oneRowTwoColImages_APP.data as item _index]]
<li><img src="[[item.data[0].src]]"></li>
[[/each]]
</ul>
</div>
<div class="clear"></div>
... ... @@ -323,18 +326,15 @@
</div>
<div class="model-showDetail model-editor" data-toggle="editor-hotProduct" data-title="人气单品商品编辑">
<ul>
[[if resources.hotProducts_APP.isUsed == "Y"]]
[[if resources.hotProducts_APP.data.length > 0]]
[[each resources.hotProducts_APP.data as item _index]]
<li><img src="[[item.src]]"><div class="shadow"><a href="javascript:">[[item.productName]]</a><b>¥[[item.salesPrice]]</b></div></li>
[[/each]]
[[else]]
[[if resources.hotProducts.data.length > 0]]
[[each resources.hotProducts.data as item _index]]
<li><img src="[[item.src]]"><div class="shadow"><a href="javascript:">[[item.productName]]</a><b>¥[[item.salesPrice]]</b></div></li>
[[/each]]
[[else]]
<li><img src="http://cdn.yoho.cn/yohobuy-portal/assets/images/shop.png"><div class="shadow"><a href="javascript:">商品展示样例</a><b>¥商品价格</b></div></li>
[[/if]]
<li>
<img src="http://img01.yohoboys.com/staticimg/2016/05/19/15/01091c21f2317a64f123f1649fbbccf7ba.png">
<div class="shadow"><a href="javascript:">商品展示样例</a><b>¥商品价格</b></div>
</li>
[[/if]]
</ul>
<div class="clear"></div>
... ...