Authored by dongjunjie

店铺装修

... ... @@ -804,15 +804,17 @@ function freshJson(id,data,status){
if(status == 1){
data[0].isShowShopName = $("input[name='isShowShopName']:checked").val();
if(curPlatform == "shopWeb-app"){
jsonMain.resources.shopTopBanner_APP.isUsed = "Y";
jsonMain.resources.shopTopBanner_APP.isUsed = "Y"; // 用于提交审核时候校验app端是否维护店招
cloneArr(data,jsonMain.resources.shopTopBanner_APP.data);
}
if(curPlatform == "shopWeb-pc"){
cloneArr(data,jsonMain.resources.shopTopBanner.data);
/* app端与pc端单独配置,不取pc端的大图了
if(jsonMain.resources.shopTopBanner_APP.isUsed == "N"){
cloneArr(data,jsonMain.resources.shopTopBanner_APP.data);
cloneArr(data,jsonClone.resources.shopTopBanner_APP.data);
}
*/
}
}else if(status == 0){
if(curPlatform == "shopWeb-app"){
... ...
... ... @@ -259,16 +259,9 @@
<div class="model-wrap contentpanel-app">
<!--banner-->
<div class="model-banner model-editor" data-toggle="editor-banner" data-title="顶部图片编辑">
[[if resources.shopTopBanner_APP.isUsed == "Y"]]
<img src="[[resources.shopTopBanner_APP.data[0].shopSrc]]">
[[if resources.shopTopBanner_APP.data[0].isShowShopName == "Y"]]
<h1>[[shopName]]</h1>
[[/if]]
[[else]]
<img src="[[resources.shopTopBanner.data[0].shopSrc]]">
[[if resources.shopTopBanner.data[0].isShowShopName == "Y"]]
<h1>[[shopName]]</h1>
[[/if]]
<img src="[[resources.shopTopBanner_APP.data[0].shopSrc]]">
[[if resources.shopTopBanner_APP.data[0].isShowShopName == "Y"]]
<h1>[[shopName]]</h1>
[[/if]]
</div>
<!--nav-->
... ...