|
|
<!--领券楼层-->
|
|
|
|
|
|
<!-- 标题图片 -->
|
|
|
<script type="text/template" id="titleImage-template">
|
|
|
<div class="panel-body" id="titleImage-baseFrom">
|
...
|
...
|
@@ -215,7 +217,8 @@ |
|
|
<input type="text" class="form-control observe" value="[[contentData.data.title.title]]" required="required" data-field="title.title">
|
|
|
</div>
|
|
|
<label class="col-sm-4 control-label">是否显示
|
|
|
<input type="checkbox" value="[[contentData.data.title.is_show]]" checked="[[contentData.data.title.is_show?'checked':'']]" class="observe" data-field="title.is_show">
|
|
|
<input type="checkbox" name="is_show" value="1" id="recommendContentFive-is_show">
|
|
|
<input type="hidden" id="is_show" for="checkbox" value="[[contentData.data.title.is_show]]" />
|
|
|
</label>
|
|
|
</div>
|
|
|
[[/if]]
|
...
|
...
|
@@ -250,7 +253,11 @@ |
|
|
[[/if]]
|
|
|
[[each contentData.data.list as item index]]
|
|
|
<tr>
|
|
|
[[if contentData.data.big_image]]
|
|
|
<td>[[index+2]]</td>
|
|
|
[[else]]
|
|
|
<td>[[index+1]]</td>
|
|
|
[[/if]]
|
|
|
<td><input type="file" name="file" value="[[item.src]]" class="observe" data-field="list.[[index]].src"/></td>
|
|
|
<td>
|
|
|
<div class="col-sm-12">
|
...
|
...
|
@@ -419,7 +426,7 @@ |
|
|
<script type="text/template" id="debrisSlider-template">
|
|
|
<div class="panel-body" id="debrisSlider-baseFrom">
|
|
|
<div class="debris_slider">
|
|
|
<p><input type="button" name="select-pic" class="btn btn-info btn-xs" value="添加左图" style="margin:10px;" id="select-left-pic"></p>
|
|
|
<p><input type="button" name="select-pic" class="btn btn-info btn-xs" value="添加左图" style="margin:10px;" id="debrisSlider-addLeft"></p>
|
|
|
<table class="table table-hover table-bordered responsive dataTable no-footer">
|
|
|
<thead>
|
|
|
<tr>
|
...
|
...
|
@@ -435,57 +442,53 @@ |
|
|
<td><input type="file" name="file" value="[[item.src]]" class="observe" data-field="left.[[index]].src"/></td>
|
|
|
<td>
|
|
|
<div class="col-sm-12">
|
|
|
<select name="goTo" class="observe" value="[[url.action]]" data-field="left.[[index]].action">
|
|
|
<select name="goTo" class="observe form-control" value="[[item.url.action]]" data-field="left.[[index]].url.action">
|
|
|
[[layout action_template]]
|
|
|
</select>
|
|
|
</div>
|
|
|
<div class="col-sm-12">
|
|
|
<input value="[[item.url.url]]" class="observe" required="required" data-field="left.[[index]].url.url"/>
|
|
|
<input placeholder="url" value="[[item.url.url]]" class="observe form-control" required="required" data-field="left.[[index]].url.url"/>
|
|
|
</div>
|
|
|
<div class="col-sm-12">
|
|
|
<input placeholder="图片描述" value="[[item.title]]" class="observe" required="required" data-field="left.[[index]].title"/>
|
|
|
<input placeholder="图片描述" value="[[item.title]]" class="observe form-control" required="required" data-field="left.[[index]].title"/>
|
|
|
</div>
|
|
|
</td>
|
|
|
</tr>
|
|
|
[[/each]]
|
|
|
</tbody>
|
|
|
</table>
|
|
|
<p><input type="button" name="select-pic" class="btn btn-info btn-xs" value="添加中间图" style="margin:10px;" id="select-big-pic"></p>
|
|
|
<div class="image-info">
|
|
|
<ul class="sortable" style="width:100%;">
|
|
|
<table class="table table-hover table-bordered responsive dataTable no-footer">
|
|
|
<thead>
|
|
|
<tr>
|
|
|
<th>序号</th>
|
|
|
<th>资源位</th>
|
|
|
<th>选项</th>
|
|
|
</tr>
|
|
|
</thead>
|
|
|
<tbody>
|
|
|
[[each contentData.data.big_image as item index]]
|
|
|
<tr>
|
|
|
<td>[[index+1]]</td>
|
|
|
<td><input type="file" name="file" value="[[item.src]]" class="observe" data-field="big_image.[[index]].src"/></td>
|
|
|
<td>
|
|
|
<div class="col-sm-12">
|
|
|
<select name="goTo" class="observe" value="[[url.action]]" data-field="big_image.[[index]].action">
|
|
|
[[layout action_template]]
|
|
|
</select>
|
|
|
</div>
|
|
|
<div class="col-sm-12">
|
|
|
<input value="[[item.url.url]]" class="observe" required="required" data-field="big_image.[[index]].url.url"/>
|
|
|
</div>
|
|
|
<div class="col-sm-12">
|
|
|
<input placeholder="图片描述" value="[[item.title]]" class="observe" required="required" data-field="big_image.[[index]].title"/>
|
|
|
</div>
|
|
|
</td>
|
|
|
</tr>
|
|
|
[[/each]]
|
|
|
</tbody>
|
|
|
</table>
|
|
|
</ul>
|
|
|
</div>
|
|
|
<p><input type="button" name="select-pic" class="btn btn-info btn-xs" value="添加右图" style="margin:10px;" id="select-right-pic"></p>
|
|
|
<p><input type="button" name="select-pic" class="btn btn-info btn-xs" value="添加中间图" style="margin:10px;" id="debrisSlider-addCenter"></p>
|
|
|
<table class="table table-hover table-bordered responsive dataTable no-footer">
|
|
|
<thead>
|
|
|
<tr>
|
|
|
<th>序号</th>
|
|
|
<th>资源位</th>
|
|
|
<th>选项</th>
|
|
|
</tr>
|
|
|
</thead>
|
|
|
<tbody>
|
|
|
[[each contentData.data.big_image as item index]]
|
|
|
<tr>
|
|
|
<td>[[index+1]]</td>
|
|
|
<td><input type="file" name="file" value="[[item.src]]" class="observe" data-field="big_image.[[index]].src"/></td>
|
|
|
<td>
|
|
|
<div class="col-sm-12">
|
|
|
<select name="goTo" class="observe form-control" value="[[item.url.action]]" data-field="big_image.[[index]].url.action">
|
|
|
[[layout action_template]]
|
|
|
</select>
|
|
|
</div>
|
|
|
<div class="col-sm-12">
|
|
|
<input placeholder="url" value="[[item.url.url]]" class="observe form-control" required="required" data-field="big_image.[[index]].url.url"/>
|
|
|
</div>
|
|
|
<div class="col-sm-12">
|
|
|
<input placeholder="图片描述" value="[[item.title]]" class="observe form-control" required="required" data-field="big_image.[[index]].title"/>
|
|
|
</div>
|
|
|
</td>
|
|
|
</tr>
|
|
|
[[/each]]
|
|
|
</tbody>
|
|
|
</table>
|
|
|
<p><input type="button" name="select-pic" class="btn btn-info btn-xs" value="添加右图" style="margin:10px;" id="debrisSlider-addRight"></p>
|
|
|
<table class="table table-hover table-bordered responsive dataTable no-footer">
|
|
|
<thead>
|
|
|
<tr>
|
...
|
...
|
@@ -501,15 +504,15 @@ |
|
|
<td><input type="file" name="file" value="[[item.src]]" class="observe" data-field="right.[[index]].src"/></td>
|
|
|
<td>
|
|
|
<div class="col-sm-12">
|
|
|
<select name="goTo" class="observe" value="[[url.action]]" data-field="right.[[index]].action">
|
|
|
<select name="goTo" class="observe form-control" value="[[item.url.action]]" data-field="right.[[index]].url.action">
|
|
|
[[layout action_template]]
|
|
|
</select>
|
|
|
</div>
|
|
|
<div class="col-sm-12">
|
|
|
<input value="[[item.url.url]]" class="observe" required="required" data-field="right.[[index]].url.url"/>
|
|
|
<input placeholder="url" value="[[item.url.url]]" class="observe form-control" required="required" data-field="right.[[index]].url.url"/>
|
|
|
</div>
|
|
|
<div class="col-sm-12">
|
|
|
<input placeholder="图片描述" value="[[item.title]]" class="observe" required="required" data-field="right.[[index]].title"/>
|
|
|
<input placeholder="图片描述" value="[[item.title]]" class="observe form-control" required="required" data-field="right.[[index]].title"/>
|
|
|
</div>
|
|
|
</td>
|
|
|
</tr>
|
...
|
...
|
@@ -519,6 +522,264 @@ |
|
|
</div>
|
|
|
</div>
|
|
|
</script>
|
|
|
<!--热门品类-->
|
|
|
<script type="text/template" id="hotCategory-template">
|
|
|
<div class="hotCategory">
|
|
|
<p>
|
|
|
标题 : <input type="text" class="observe" data-field="title.name" value="[[contentData.data.title.name]]" required> 更多名称 : <input type="text" class="observe" data-field="title.more_name" value="[[contentData.data.title.more_name]]" style="width:50px;"><br>
|
|
|
跳转目的 : <select name="goTo" class="observe" value="[[contentData.data.title.more_url.action]]" data-field="title.more_url.action">
|
|
|
[[layout action_template]]
|
|
|
</select>
|
|
|
跳转url : <input value="[[contentData.data.title.more_url.url]]" class="observe" required="required" data-field="title.more_url.url"/>
|
|
|
</p>
|
|
|
<p><input type="button" name="select-pic" class="btn btn-info btn-xs" value="添加左上图片" style="margin:10px;" id="hotCategory-addLeft"></p>
|
|
|
[[if contentData.data.blocks.length]]
|
|
|
<table class="table table-hover table-bordered responsive dataTable no-footer">
|
|
|
<thead>
|
|
|
<tr>
|
|
|
<th>序号</th>
|
|
|
<th>资源位</th>
|
|
|
<th>选项</th>
|
|
|
<th>操作</th>
|
|
|
</tr>
|
|
|
</thead>
|
|
|
<tbody>
|
|
|
[[each contentData.data.blocks as item index]]
|
|
|
<tr>
|
|
|
<td>[[index+1]]</td>
|
|
|
<td><input type="file" name="file" value="[[item.src]]" class="observe" data-field="blocks.[[index]].src"/></td>
|
|
|
<td>
|
|
|
<div class="col-sm-12">
|
|
|
<select name="goTo" class="observe form-control" value="[[item.url.action]]" data-field="blocks.[[index]].url.action">
|
|
|
[[layout action_template]]
|
|
|
</select>
|
|
|
</div>
|
|
|
<div class="col-sm-12">
|
|
|
<input placeholder="url" value="[[item.url.url]]" class="observe form-control" required="required" data-field="blocks.[[index]].url.url"/>
|
|
|
</div>
|
|
|
<div class="col-sm-12">
|
|
|
<input placeholder="图片描述" value="[[item.title]]" class="observe form-control" required="required" data-field="blocks.[[index]].title"/>
|
|
|
</div>
|
|
|
</td>
|
|
|
<td><button class="btn btn-danger btn-sm hotCategory-delLeft" type="button" data-index="[[index]]">删除</button></td>
|
|
|
</tr>
|
|
|
[[/each]]
|
|
|
</tbody>
|
|
|
</table>
|
|
|
[[/if]]
|
|
|
<p>添加左下导航:</p>
|
|
|
[[each contentData.data.list as item index]]
|
|
|
<p>
|
|
|
导航名称:<input type="text" class="observe" value="[[item.name]]" data-field="list.[[index]].name">
|
|
|
<select name="goTo" class="observe" value="[[item.url.action]]" data-field="list.[[index]].url.action">
|
|
|
[[layout action_template]]
|
|
|
</select>
|
|
|
<input value="[[item.url.url]]" class="observe" required="required" data-field="list.[[index]].url.url"/>
|
|
|
</p>
|
|
|
[[/each]]
|
|
|
<p>
|
|
|
<input type="button" name="select-pic" class="btn btn-info btn-xs" value="添加右侧图片" style="margin:10px;" id="hotCategory-addRight">
|
|
|
</p>
|
|
|
[[if contentData.data.imgs.length]]
|
|
|
<table class="table table-hover table-bordered responsive dataTable no-footer">
|
|
|
<thead>
|
|
|
<tr>
|
|
|
<th>序号</th>
|
|
|
<th>资源位</th>
|
|
|
<th>选项</th>
|
|
|
<th>操作</th>
|
|
|
</tr>
|
|
|
</thead>
|
|
|
<tbody>
|
|
|
[[each contentData.data.imgs as item index]]
|
|
|
<tr>
|
|
|
<td>[[index+1]]</td>
|
|
|
<td><input type="file" name="file" value="[[item.src]]" class="observe" data-field="imgs.[[index]].src"/></td>
|
|
|
<td>
|
|
|
<div class="col-sm-12">
|
|
|
<select name="goTo" class="observe form-control" value="[[item.url.action]]" data-field="imgs.[[index]].url.action">
|
|
|
[[layout action_template]]
|
|
|
</select>
|
|
|
</div>
|
|
|
<div class="col-sm-12">
|
|
|
<input placeholder="url" value="[[item.url.url]]" class="observe form-control" required="required" data-field="imgs.[[index]].url.url"/>
|
|
|
</div>
|
|
|
<div class="col-sm-12">
|
|
|
<input placeholder="图片描述" value="[[item.title]]" class="observe form-control" required="required" data-field="imgs.[[index]].title"/>
|
|
|
</div>
|
|
|
</td>
|
|
|
<td><button class="btn btn-danger btn-sm hotCategory-delRight" type="button" data-index="[[index]]">删除</button></td>
|
|
|
</tr>
|
|
|
[[/each]]
|
|
|
</tbody>
|
|
|
</table>
|
|
|
[[/if]]
|
|
|
</div>
|
|
|
</script>
|
|
|
<!--图片列表-->
|
|
|
<script type="text/template" id="imageList-template">
|
|
|
<p>
|
|
|
标题:<input type="text" class="observe" data-field="title.title" value="[[contentData.data.title.title]]" style="width:100px;">
|
|
|
显示名称: <input type="radio" name="is_show_name" id="imageList_Y" value="Y"> 是 <input type="radio" name="is_show_name" id="imageList_N" value="N"> 否
|
|
|
<input type="hidden" id="is_show_name" for="radio" value="[[contentData.data.title.is_show_name]]" />
|
|
|
每行显示:<input style="width:60px;" type="number" data-field="title.column_num" class="observe" value="[[contentData.data.title.column_num]]"> 张图片
|
|
|
</p>
|
|
|
<p><input type="button" name="select-pic" class="btn btn-info btn-xs" value="添加图片" style="margin:10px;" id="imageList-addOne"></p>
|
|
|
[[if contentData.data.list.length]]
|
|
|
<table class="table table-hover table-bordered responsive dataTable no-footer">
|
|
|
<thead>
|
|
|
<tr>
|
|
|
<th>序号</th>
|
|
|
<th>资源位</th>
|
|
|
<th>选项</th>
|
|
|
<th>操作</th>
|
|
|
</tr>
|
|
|
</thead>
|
|
|
<tbody>
|
|
|
[[each contentData.data.list as item index]]
|
|
|
<tr>
|
|
|
<td>[[index+1]]</td>
|
|
|
<td><input type="file" name="file" value="[[item.src]]" class="observe" data-field="list.[[index]].src"/></td>
|
|
|
<td>
|
|
|
<div class="col-sm-12">
|
|
|
<select name="goTo" class="observe form-control" value="[[item.url.action]]" data-field="list.[[index]].url.action">
|
|
|
[[layout action_template]]
|
|
|
</select>
|
|
|
</div>
|
|
|
<div class="col-sm-12">
|
|
|
<input placeholder="url" value="[[item.url.url]]" class="observe form-control" required="required" data-field="list.[[index]].url.url"/>
|
|
|
</div>
|
|
|
<div class="col-sm-12">
|
|
|
<input placeholder="图片描述" value="[[item.title]]" class="observe form-control" required="required" data-field="list.[[index]].title"/>
|
|
|
</div>
|
|
|
</td>
|
|
|
<td><button class="btn btn-danger btn-sm imageList-del" type="button" data-index="[[index]]">删除</button></td>
|
|
|
</tr>
|
|
|
[[/each]]
|
|
|
</tbody>
|
|
|
</table>
|
|
|
[[/if]]
|
|
|
</script>
|
|
|
<!--文本导航-->
|
|
|
<script type="text/template" id="textNav-template">
|
|
|
<div class="textNav-baseForm">
|
|
|
<p><input type="button" name="select-pic" class="btn btn-info btn-xs" value="添加一个" style="margin:10px;" id="textNav-addOne"></p>
|
|
|
[[each contentData.data as item index]]
|
|
|
<p>
|
|
|
导航名称:<input type="text" value="[[item.name]]" class="observe" data-field="[[index]].name" required>
|
|
|
<select name="goTo" class="observe" value="[[item.url.action]]" data-field="[[index]].url.action">
|
|
|
[[layout action_template]]
|
|
|
</select>
|
|
|
<input value="[[item.url.url]]" data-field="[[index]].url.url" class="observe" required="required"/>
|
|
|
<a type="button" class="btn btn-danger btn-xs textNav-delOne" data-index="[[index]]">删除</a>
|
|
|
</p>
|
|
|
[[/each]]
|
|
|
</div>
|
|
|
</script>
|
|
|
<!--轮播banner-->
|
|
|
<script type="text/template" id="carouselBanner-template">
|
|
|
<input type="button" name="select-pic" value="添加图片" class="btn btn-info btn-xs" style="margin:10px;" id="carouselBanner-addOne">
|
|
|
轮播速度:<input type="text" class="observe" data-field="speed" value="[[contentData.data.speed]]">秒<br>
|
|
|
<table class="table table-hover table-bordered responsive dataTable no-footer">
|
|
|
<thead>
|
|
|
<tr>
|
|
|
<th>序号</th>
|
|
|
<th>资源位</th>
|
|
|
<th>操作</th>
|
|
|
</tr>
|
|
|
</thead>
|
|
|
<tbody>
|
|
|
[[each contentData.data.list as item index]]
|
|
|
<tr>
|
|
|
<td>[[index+1]]</td>
|
|
|
<td><input type="file" name="file" value="[[item.src]]" class="observe" data-field="list.[[index]].src"/></td>
|
|
|
<td><button class="btn btn-danger btn-sm carouselBanner-del" type="button" data-index="[[index]]">删除</button></td>
|
|
|
</tr>
|
|
|
[[/each]]
|
|
|
</tbody>
|
|
|
</table>
|
|
|
</script>
|
|
|
<!--添加促销-->
|
|
|
<script type="text/template" id="promotion-template">
|
|
|
<p> 添加促销id:<input type="text" class="observe" value="[[contentData.data.promotionId]]" data-field="promotionId"></p>
|
|
|
</script>
|
|
|
<!--标题广告-->
|
|
|
<script type="text/template" id="singleNameImage-template">
|
|
|
<p style="margin:10px;">添加标题: <input type="text" class="observe" value="[[contentData.data.title]]" data-field="title"></p>
|
|
|
<table class="table table-hover table-bordered responsive dataTable no-footer">
|
|
|
<thead>
|
|
|
<tr>
|
|
|
<th>序号</th>
|
|
|
<th>资源位</th>
|
|
|
<th>选项</th>
|
|
|
</tr>
|
|
|
</thead>
|
|
|
<tbody>
|
|
|
<tr>
|
|
|
<td>1</td>
|
|
|
<td><input type="file" name="file" value="[[contentData.data.src]]" class="observe" data-field="src" required/></td>
|
|
|
<td>
|
|
|
<div class="col-sm-12">
|
|
|
<select name="goTo" class="observe form-control" value="[[contentData.data.url.action]]" data-field="url.action">
|
|
|
[[layout action_template]]
|
|
|
</select>
|
|
|
</div>
|
|
|
<div class="col-sm-12">
|
|
|
<input placeholder="url" value="[[contentData.data.url.url]]" class="observe form-control" required="required" data-field="url.url"/>
|
|
|
</div>
|
|
|
<div class="col-sm-12">
|
|
|
<input placeholder="图片描述" value="[[contentData.data.alt]]" class="observe form-control" data-field="alt"/>
|
|
|
</div>
|
|
|
</td>
|
|
|
</tr>
|
|
|
</tbody>
|
|
|
</table>
|
|
|
</script>
|
|
|
<!--焦点图-->
|
|
|
<script type="text/template" id="focus-template">
|
|
|
<input type="button" class="btn btn-info btn-xs" id="focus-addOne" value="添加图片" style="margin:10px;"><br>
|
|
|
焦点图类型:
|
|
|
<select id="focus-select" value="[[contentData.focus_type]]">
|
|
|
<option value="1">通栏</option>
|
|
|
<option value="2">左右滑动</option>
|
|
|
<option value="3">手风琴</option>
|
|
|
</select>
|
|
|
<table class="table table-hover table-bordered responsive dataTable no-footer">
|
|
|
<thead>
|
|
|
<tr>
|
|
|
<th>序号</th>
|
|
|
<th>资源位</th>
|
|
|
<th>选项</th>
|
|
|
<th>操作</th>
|
|
|
</tr>
|
|
|
</thead>
|
|
|
<tbody>
|
|
|
[[each contentData.data as item index]]
|
|
|
<tr>
|
|
|
<td>[[index+1]]</td>
|
|
|
<td><input type="file" name="file" value="[[item.src]]" class="observe" data-field="[[index]].src" required/></td>
|
|
|
<td>
|
|
|
<div class="col-sm-12">
|
|
|
<select name="goTo" class="observe form-control" value="[[item.url.action]]" data-field="[[index]].url.action">
|
|
|
[[layout action_template]]
|
|
|
</select>
|
|
|
</div>
|
|
|
<div class="col-sm-12">
|
|
|
<input placeholder="url" value="[[item.url.url]]" class="observe form-control" required="required" data-field="[[index]].url.url"/>
|
|
|
</div>
|
|
|
<div class="col-sm-12">
|
|
|
<input placeholder="图片描述" value="[[item.alt]]" class="observe form-control" data-field="[[index]].alt"/>
|
|
|
</div>
|
|
|
<div class="col-sm-12">
|
|
|
<input placeholder="通栏背景色" value="[[item.bgColor]]" class="observe form-control" data-field="[[index]].bgColor"/>
|
|
|
</div>
|
|
|
</td>
|
|
|
<td><button class="btn btn-danger btn-sm focus-del" type="button" data-index="[[index]]">删除</button></td>
|
|
|
</tr>
|
|
|
[[/each]]
|
|
|
</tbody>
|
|
|
</table>
|
|
|
</script>
|
|
|
<!--select选项-->
|
|
|
<script type="text/template" id="action_template">
|
|
|
<option value="">选择跳转目标</option>
|
...
|
...
|
|