...
|
...
|
@@ -2006,102 +2006,103 @@ |
|
|
</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]]" />
|
|
|
<input type="radio" class="isShopRecommend" name="isShopRecommend" value="N" [[contentData.isShopRecommend=="N"?"checked":""]]> 固定推荐
|
|
|
<input type="radio" class="isShopRecommend" name="isShopRecommend" value="Y" [[contentData.isShopRecommend=="Y"?"checked":""]]> 个性化推荐 
|
|
|
<input type="hidden" id="isShopRecommend" for="radio" value="[[contentData.isShopRecommend]]" />
|
|
|
</div>
|
|
|
<div class="col-sm-6">
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="form-group">
|
|
|
<div class="col-sm-6">
|
|
|
<div class="col-sm-10" id="shopRecommendTip" style="display: none">
|
|
|
<span style="color:red">提示:选择频道后无需手动配置,将根据大数据个性化算法,抓取内容展示给用户。</span>
|
|
|
<span style="color:red" id="isRecommendInfo" style="display: none">提示:此处配置的内容,将按顺序固定展示。</span>
|
|
|
</div>
|
|
|
<div class="col-sm-6">
|
|
|
<div class="col-sm-10" id="shopBaseTip">
|
|
|
<span style="color:red" style="display: none">提示:此处配置的内容,将按顺序固定展示。</span>
|
|
|
</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]]
|
|
|
<li>
|
|
|
<table class="table table-hover table-bordered responsive dataTable no-footer">
|
|
|
<tbody>
|
|
|
<tr>
|
|
|
<td align="center">[[index+1]]<br/>店铺</td>
|
|
|
<td align="center"><input type="file" name="file" value="[[item.src]]" class="observe" data-field="list.[[index]].src" required/></td>
|
|
|
<td>
|
|
|
<div class="form-group">
|
|
|
<div class="col-sm-10">
|
|
|
<select name="goTo" class="observe form-control" value="[[item.url.action]]" data-field="list.[[index]].url.action">
|
|
|
[[layout action_template]]
|
|
|
</select>
|
|
|
<div class="form-group" id="shopRecommendDiv" style="display: none">
|
|
|
<div class="col-sm-12">
|
|
|
<select name="shopChannelId" class="shopChannelId observe form-control input-form" value="[[contentData.shopChannelId]]" data-field="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>
|
|
|
|
|
|
<div id="shopBaseDiv">
|
|
|
<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]]
|
|
|
<li>
|
|
|
<table class="table table-hover table-bordered responsive dataTable no-footer">
|
|
|
<tbody>
|
|
|
<tr>
|
|
|
<td align="center">[[index+1]]<br/>店铺</td>
|
|
|
<td align="center"><input type="file" name="file" value="[[item.src]]" class="shopRecommendRequired observe" data-field="list.[[index]].src" /></td>
|
|
|
<td>
|
|
|
<div class="form-group">
|
|
|
<div class="col-sm-10">
|
|
|
<select name="goTo" class="observe form-control" value="[[item.url.action]]" data-field="list.[[index]].url.action">
|
|
|
[[layout action_template]]
|
|
|
</select>
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="form-group">
|
|
|
<div class="col-sm-10">
|
|
|
<input type="text" placeholder="url" value="[[item.url.url]]" class="observe form-control" data-field="list.[[index]].url.url"/>
|
|
|
<div class="form-group">
|
|
|
<div class="col-sm-10">
|
|
|
<input type="text" placeholder="url" value="[[item.url.url]]" class="observe form-control" data-field="list.[[index]].url.url"/>
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
</td>
|
|
|
<td align="center">
|
|
|
<input type="text" placeholder="店铺id" value="[[item.shopId]]" class="observe number form-control input-form" data-field="list.[[index]].shopId" required/>
|
|
|
</td>
|
|
|
</tr>
|
|
|
<tr>
|
|
|
<td align="center">商品</td>
|
|
|
<td align="center"><input type="file" name="file" value="[[item.goods0.src]]" class="observe" data-field="list.[[index]].goods0.src" required/></td>
|
|
|
<td>
|
|
|
<div class="form-group">
|
|
|
<div class="col-sm-10">
|
|
|
<select name="goTo" class="observe form-control" value="[[item.goods0.url.action]]" data-field="list.[[index]].goods0.url.action">
|
|
|
[[layout action_template]]
|
|
|
</select>
|
|
|
</td>
|
|
|
<td align="center">
|
|
|
<input type="text" placeholder="店铺id" value="[[item.shopId]]" class="shopRecommendRequired observe number form-control input-form" data-field="list.[[index]].shopId"/>
|
|
|
</td>
|
|
|
</tr>
|
|
|
<tr>
|
|
|
<td align="center">商品</td>
|
|
|
<td align="center"><input type="file" name="file" value="[[item.goods0.src]]" class="shopRecommendRequired observe" data-field="list.[[index]].goods0.src" /></td>
|
|
|
<td>
|
|
|
<div class="form-group">
|
|
|
<div class="col-sm-10">
|
|
|
<select name="goTo" class="observe form-control" value="[[item.goods0.url.action]]" data-field="list.[[index]].goods0.url.action">
|
|
|
[[layout action_template]]
|
|
|
</select>
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="form-group">
|
|
|
<div class="col-sm-10">
|
|
|
<input type="text" placeholder="url" value="[[item.goods0.url.url]]" class="observe form-control" data-field="list.[[index]].goods0.url.url"/>
|
|
|
<div class="form-group">
|
|
|
<div class="col-sm-10">
|
|
|
<input type="text" placeholder="url" value="[[item.goods0.url.url]]" class="observe form-control" data-field="list.[[index]].goods0.url.url"/>
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
</td>
|
|
|
</tr>
|
|
|
<tr>
|
|
|
<td align="center">商品</td>
|
|
|
<td align="center"><input type="file" name="file" value="[[item.goods1.src]]" class="observe" data-field="list.[[index]].goods1.src" required/></td>
|
|
|
<td>
|
|
|
<div class="form-group">
|
|
|
<div class="col-sm-10">
|
|
|
<select name="goTo" class="observe form-control" value="[[item.goods1.url.action]]" data-field="list.[[index]].goods1.url.action">
|
|
|
[[layout action_template]]
|
|
|
</select>
|
|
|
</td>
|
|
|
</tr>
|
|
|
<tr>
|
|
|
<td align="center">商品</td>
|
|
|
<td align="center"><input type="file" name="file" value="[[item.goods1.src]]" class="shopRecommendRequired observe" data-field="list.[[index]].goods1.src" /></td>
|
|
|
<td>
|
|
|
<div class="form-group">
|
|
|
<div class="col-sm-10">
|
|
|
<select name="goTo" class="observe form-control" value="[[item.goods1.url.action]]" data-field="list.[[index]].goods1.url.action">
|
|
|
[[layout action_template]]
|
|
|
</select>
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="form-group">
|
|
|
<div class="col-sm-10">
|
|
|
<input type="text" placeholder="url" value="[[item.goods1.url.url]]" class="observe form-control" data-field="list.[[index]].goods1.url.url"/>
|
|
|
<div class="form-group">
|
|
|
<div class="col-sm-10">
|
|
|
<input type="text" placeholder="url" value="[[item.goods1.url.url]]" class="observe form-control" data-field="list.[[index]].goods1.url.url"/>
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
</td>
|
|
|
<td align="center"><button class="btn btn-danger btn-sm delBtn" data-event="shopRecommend.list" type="button" data-index="[[index]]">删除</button></td>
|
|
|
</tr>
|
|
|
</tbody>
|
|
|
</table>
|
|
|
</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>
|
|
|
</td>
|
|
|
<td align="center"><button class="btn btn-danger btn-sm delBtn" data-event="shopRecommend.list" type="button" data-index="[[index]]">删除</button></td>
|
|
|
</tr>
|
|
|
</tbody>
|
|
|
</table>
|
|
|
</li>
|
|
|
[[/each]]
|
|
|
</ul>
|
|
|
</div>
|
|
|
</script>
|
|
|
|
...
|
...
|
|