Authored by wangwei

好店

... ... @@ -2004,6 +2004,24 @@
<input type="text" class="form-control input-form observe" placeholder="跳转地址" value="[[contentData.data.title.more_url.url]]" data-field="title.more_url.url">
</div>
</div>
<div class="form-group">
<div class="col-sm-6">
<label style="cursor: pointer;"><input type="checkbox" name="isShopRecommend" value="N" [[contentData.data.title.isShopRecommend=='N'?'checked':'']]>固定推荐</label>
<label style="cursor: pointer;"><input type="checkbox" name="isShopRecommend" value="Y" [[contentData.data.title.isShopRecommend=='Y'?'checked':'']]>>个性化推荐</label>
<input type="hidden" id="isShopRecommend" for="checkbox" value="[[contentData.data.isShopRecommend]]" />
</div>
<div class="col-sm-6">
</div>
</div>
<div class="form-group">
<div class="col-sm-6">
<span style="color:red">提示:选择频道后无需手动配置,将根据大数据个性化算法,抓取内容展示给用户。</span>
<span style="color:red" id="isRecommendInfo" style="display: none">提示:此处配置的内容,将按顺序固定展示。</span>
</div>
<div class="col-sm-6">
</div>
</div>
<div>
<p><input type="button" name="select-pic" class="btn btn-info btn-xs addBtn" value="添加店铺" data-limit="12" style="margin:10px;" data-event="shopRecommend.list"></p>
<ul class="draggable" data-array="data.list">
[[each contentData.data.list as item index]]
... ... @@ -2073,6 +2091,18 @@
</li>
[[/each]]
</ul>
</div>
<div class="form-group" style="display: none">
<div class="col-sm-12">
<select name="channelId" class="observe form-control input-form" value="[[contentData.shopChannelId]]">
<option value="0">选择频道</option>
<option value="1">男生</option>
<option value="2">女生</option>
<option value="3">潮童</option>
<option value="4">创意生活</option>
</select>
</div>
</div>
</script>
<!--VIP专享-->
... ...
... ... @@ -76,7 +76,8 @@
<div class="shopRecommend">
<p class="title"><span>[[module.contentData.data.title.name]]</span>
</p>
[[each module.contentData.data.list as item i]]
[[if module.contentData.data.isShopRecommend=='N']]
[[each module.contentData.data.list as item i]]
[[if i == 0]]
<div class="recommend-info">
<p class="big-pic"><img src="[[item.src]]"></p>
... ... @@ -87,7 +88,7 @@
</div>
[[/if]]
[[/each]]
[[/if]]
</div>
<%include 'taoyu2'%>
... ...
... ... @@ -1245,6 +1245,8 @@ var Button = [
"url": ""
}
},
"isShopRecommend":"",
"shopChannelId":"",
"list": [
{
"url": {
... ...
... ... @@ -354,7 +354,9 @@ var addObj = {
"action": "",
"url": ""
}
}
},
"isShopRecommend":"",
"shopChannelId":""
},
vipUse_banner_image: {//新人专享->banner
"src": "",
... ...