Authored by dongjunjie

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

@@ -1317,6 +1317,14 @@ $(document).on("click","#saveModule",function(){ @@ -1317,6 +1317,14 @@ $(document).on("click","#saveModule",function(){
1317 }) 1317 })
1318 //提交审核 1318 //提交审核
1319 $(document).on("click","#submitModule",function(){ 1319 $(document).on("click","#submitModule",function(){
  1320 + if(jsonMain.resources.shopTopBanner.data[0].shopSrc == defaultSrc){
  1321 + common.util.__tip("PC端没有维护顶部banner!");
  1322 + return;
  1323 + }
  1324 + if(jsonMain.resources.shopTopBanner_APP.isUsed == "N"){
  1325 + common.util.__tip("APP端没有维护顶部banner!");
  1326 + return;
  1327 + }
1320 if(jsonMain.templateType == "0"){ 1328 if(jsonMain.templateType == "0"){
1321 common.util.__tip("请选择展示使用模板!"); 1329 common.util.__tip("请选择展示使用模板!");
1322 $("#templateSelect").focus().addClass("error"); 1330 $("#templateSelect").focus().addClass("error");
@@ -208,7 +208,10 @@ @@ -208,7 +208,10 @@
208 <li><img src="[[item.src]]"><div class="shadow"><a href="javascript:">[[item.productName]]</a><b>¥[[item.salesPrice]]</b></div></li> 208 <li><img src="[[item.src]]"><div class="shadow"><a href="javascript:">[[item.productName]]</a><b>¥[[item.salesPrice]]</b></div></li>
209 [[/each]] 209 [[/each]]
210 [[else]] 210 [[else]]
211 - <li><img src="http://cdn.yoho.cn/yohobuy-portal/assets/images/shop.png"><div class="shadow"><a href="javascript:">商品展示样例</a><b>¥商品价格</b></div></li> 211 + <li>
  212 + <img src="http://img01.yohoboys.com/staticimg/2016/05/19/15/01091c21f2317a64f123f1649fbbccf7ba.png">
  213 + <div class="shadow"><a href="javascript:">商品展示样例</a><b>¥商品价格</b></div>
  214 + </li>
212 [[/if]] 215 [[/if]]
213 </ul> 216 </ul>
214 <div class="clear"></div> 217 <div class="clear"></div>
@@ -241,13 +244,15 @@ @@ -241,13 +244,15 @@
241 <li><img src="[[item.src]]"><div class="shadow"><a href="javascript:">[[item.productName]]</a><b>¥[[item.salesPrice]]</b></div></li> 244 <li><img src="[[item.src]]"><div class="shadow"><a href="javascript:">[[item.productName]]</a><b>¥[[item.salesPrice]]</b></div></li>
242 [[/each]] 245 [[/each]]
243 [[else]] 246 [[else]]
244 - <li><img src="http://cdn.yoho.cn/yohobuy-portal/assets/images/shop.png"><div class="shadow"><a href="javascript:">商品展示样例</a><b>¥商品价格</b></div></li> 247 + <li>
  248 + <img src="http://img01.yohoboys.com/staticimg/2016/05/19/15/01091c21f2317a64f123f1649fbbccf7ba.png">
  249 + <div class="shadow"><a href="javascript:">商品展示样例</a><b>¥商品价格</b></div>
  250 + </li>
245 [[/if]] 251 [[/if]]
246 </ul> 252 </ul>
247 <div class="clear"></div> 253 <div class="clear"></div>
248 </div> 254 </div>
249 </div> 255 </div>
250 -  
251 </div> 256 </div>
252 <div class="clear"></div> 257 <div class="clear"></div>
253 </div> 258 </div>
@@ -267,7 +272,11 @@ @@ -267,7 +272,11 @@
267 <!--nav--> 272 <!--nav-->
268 <div class="model-nav"> 273 <div class="model-nav">
269 <ul> 274 <ul>
270 - <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> 275 + <li class="active"><a href="javascript:">首页</a></li>
  276 + <li><a href="javascript:">上新</a></li>
  277 + <li><a href="javascript:">人气</a></li>
  278 + <li style="border:0"><a href="javascript:">全部商品</a>
  279 + </li><div class="clear"></div>
271 </ul> 280 </ul>
272 </div> 281 </div>
273 282
@@ -288,15 +297,9 @@ @@ -288,15 +297,9 @@
288 <!--小图--> 297 <!--小图-->
289 <div class="model-smallPic model-editor" data-toggle="editor-smallPic" data-title="资源位小图编辑"> 298 <div class="model-smallPic model-editor" data-toggle="editor-smallPic" data-title="资源位小图编辑">
290 <ul> 299 <ul>
291 - [[if resources.oneRowTwoColImages_APP.isUsed == "Y"]]  
292 - [[each resources.oneRowTwoColImages_APP.data as item _index]]  
293 - <li><img src="[[item.data[0].src]]"></li>  
294 - [[/each]]  
295 - [[else]]  
296 - [[each resources.oneRowTwoColImages.data as item _index]]  
297 - <li><img src="[[item.data[0].src]]"></li>  
298 - [[/each]]  
299 - [[/if]] 300 + [[each resources.oneRowTwoColImages_APP.data as item _index]]
  301 + <li><img src="[[item.data[0].src]]"></li>
  302 + [[/each]]
300 </ul> 303 </ul>
301 </div> 304 </div>
302 <div class="clear"></div> 305 <div class="clear"></div>
@@ -323,18 +326,15 @@ @@ -323,18 +326,15 @@
323 </div> 326 </div>
324 <div class="model-showDetail model-editor" data-toggle="editor-hotProduct" data-title="人气单品商品编辑"> 327 <div class="model-showDetail model-editor" data-toggle="editor-hotProduct" data-title="人气单品商品编辑">
325 <ul> 328 <ul>
326 - [[if resources.hotProducts_APP.isUsed == "Y"]] 329 + [[if resources.hotProducts_APP.data.length > 0]]
327 [[each resources.hotProducts_APP.data as item _index]] 330 [[each resources.hotProducts_APP.data as item _index]]
328 <li><img src="[[item.src]]"><div class="shadow"><a href="javascript:">[[item.productName]]</a><b>¥[[item.salesPrice]]</b></div></li> 331 <li><img src="[[item.src]]"><div class="shadow"><a href="javascript:">[[item.productName]]</a><b>¥[[item.salesPrice]]</b></div></li>
329 [[/each]] 332 [[/each]]
330 [[else]] 333 [[else]]
331 - [[if resources.hotProducts.data.length > 0]]  
332 - [[each resources.hotProducts.data as item _index]]  
333 - <li><img src="[[item.src]]"><div class="shadow"><a href="javascript:">[[item.productName]]</a><b>¥[[item.salesPrice]]</b></div></li>  
334 - [[/each]]  
335 - [[else]]  
336 - <li><img src="http://cdn.yoho.cn/yohobuy-portal/assets/images/shop.png"><div class="shadow"><a href="javascript:">商品展示样例</a><b>¥商品价格</b></div></li>  
337 - [[/if]] 334 + <li>
  335 + <img src="http://img01.yohoboys.com/staticimg/2016/05/19/15/01091c21f2317a64f123f1649fbbccf7ba.png">
  336 + <div class="shadow"><a href="javascript:">商品展示样例</a><b>¥商品价格</b></div>
  337 + </li>
338 [[/if]] 338 [[/if]]
339 </ul> 339 </ul>
340 <div class="clear"></div> 340 <div class="clear"></div>