...
|
...
|
@@ -60,13 +60,13 @@ |
|
|
<div class="form-group">
|
|
|
[[each contentData.data.label as item index]]
|
|
|
<label class="control-label">标签[[index+1]]:</label>
|
|
|
<input type="text" class="observe" value="[[item.title]]" data-field="label_list.[[index]].title" required="required" style="width: 100px">
|
|
|
<input type="text" class="observe" value="[[item.title]]" data-field="label.[[index]].title" required="required" style="width: 100px">
|
|
|
<label class="control-label">跳转目的</label>
|
|
|
<select name="goTo" class="observe" value="[[item.url.action]]" data-field="label_list.[[index]].url.action" style="width: 120px" >
|
|
|
<select name="goTo" class="observe" value="[[item.url.action]]" data-field="label.[[index]].url.action" style="width: 120px" >
|
|
|
[[layout action_template]]
|
|
|
</select>
|
|
|
<label>跳转地址</label>
|
|
|
<input type="text" class="observe" value="[[item.url.url]]" data-field="label_list.[[index]].url.url" required="required" style="width: 120px" /><br>
|
|
|
<input type="text" class="observe" value="[[item.url.url]]" data-field="label.[[index]].url.url" required="required" style="width: 120px" /><br>
|
|
|
[[/each]]
|
|
|
</div>
|
|
|
<a href="JavaScript:;" id="multiLabelImage-addOne" class="btn btn-primary btn-xs">添加标签</a>
|
...
|
...
|
@@ -323,6 +323,200 @@ |
|
|
</tbody>
|
|
|
</table>
|
|
|
</div>
|
|
|
<a href="JavaScript:;" id="imageGroup-addOne" class="btn btn-primary btn-xs">添加图片</a>
|
|
|
</div>
|
|
|
</script>
|
|
|
<!--自定义参数-->
|
|
|
<script type="text/template" id="paramsGroup-template">
|
|
|
<div class="panel-body" id="paramsGroup-baseFrom">
|
|
|
<div class="form-group">
|
|
|
<label class="col-sm-2 control-label">标题设置:</label>
|
|
|
<div class="col-sm-4">
|
|
|
<input type="text" class="form-control observe" value="[[contentData.data.title]]" required="required" data-field="title">
|
|
|
</div>
|
|
|
<label class="col-sm-2 control-label">更多设置:</label>
|
|
|
<div class="col-sm-4">
|
|
|
<input type="text" value="[[contentData.data.more]]" class="form-control observe" data-field="more">
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="form-group">
|
|
|
<label class="col-sm-2 control-label">跳转地址</label>
|
|
|
<div class="col-sm-4">
|
|
|
<input value="[[contentData.data.more_url.url]]" class="form-control observe" required="required" data-field="more_url.url"/>
|
|
|
<p style="color:#999;margin-top: 5px;">注:链接中不能有英文单引号</p>
|
|
|
</div>
|
|
|
</div>
|
|
|
<div id="paramsGroup-bottom">
|
|
|
<ul id="sortable" class="sortable" style="margin:10px;width:100%;">
|
|
|
[[each contentData.data.list as item index]]
|
|
|
<li>
|
|
|
<table style="width:100%;z-index:-1;">
|
|
|
<tbody>
|
|
|
<tr>
|
|
|
<td width="100px">标题:<input type="text" required style="width: 60px;" class="observe" value="[[item.title]]" data-field="list.[[index]].title"></td>
|
|
|
<td>参数:<input type="text" style="width:300px;" class="observe" value="[[item.params]]" data-field="list.[[index]].params"></td>
|
|
|
<td><button class="btn btn-danger btn-sm paramsGroupDel" type="button" data-index="[[index]]">删除</button></td>
|
|
|
</tr>
|
|
|
</tbody>
|
|
|
</table>
|
|
|
<p style="color:#999">如:http://list.yohobuy.com/?gender=1,3&msort=1,3 参数为:gender=1,3&msort=1,3</p>
|
|
|
</li>
|
|
|
[[/each]]
|
|
|
</ul>
|
|
|
<button type="button" class="btn btn-sm" id="paramsGroup-addOne">添加一个</button>
|
|
|
</div>
|
|
|
</div>
|
|
|
</script>
|
|
|
<!--新人专享-->
|
|
|
<script type="text/template" id="newUserFloor-template">
|
|
|
<div class="panel-body" id="newUserFloor-baseFrom">
|
|
|
<div class="new_user_floor">
|
|
|
<p>标题 : <input type="text" value="[[contentData.data.title.name]]" class="observe" data-field="title.name"> 更多名称 : <input type="text" value="[[contentData.data.title.more_name]]" style="width:50px;" class="observe" data-field="title.more_name"> </p>
|
|
|
<p>
|
|
|
更多链接 : <select name="goTo" class="observe" value="[[contentData.data.title.more_url.action]]" data-field="title.more_url.action">
|
|
|
[[layout action_template]]
|
|
|
</select>
|
|
|
<input value="[[contentData.data.title.more_url.url]]" class="observe" required="required" data-field="title.more_url.url"/>
|
|
|
</p>
|
|
|
<p>活动 ID : <input type="text" class="observe" value="[[contentData.data.title.active_id]]" data-field="title.active_id"></p>
|
|
|
<p><input type="button" class="btn btn-info btn-xs" value="添加banner" style="margin:10px;" id="newUserFloor-addBanner"></p>
|
|
|
</div>
|
|
|
<div id="newUserFloor-bottom">
|
|
|
<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.banner_image as item index]]
|
|
|
<tr>
|
|
|
<td>[[index+1]]</td>
|
|
|
<td><input type="file" name="file" value="[[item.src]]" class="observe" data-field="banner_image.[[index]].src"/></td>
|
|
|
<td>
|
|
|
<div class="col-sm-12">
|
|
|
<select name="goTo" class="form-control observe" value="[[item.url.action]]" data-field="banner_image.[[index]].url.action">
|
|
|
[[layout action_template]]
|
|
|
</select>
|
|
|
</div>
|
|
|
<div class="col-sm-12">
|
|
|
<input value="[[item.url.url]]" class="form-control observe" required="required" data-field="banner_image.[[index]].url.url"/>
|
|
|
</div>
|
|
|
<div class="col-sm-12">
|
|
|
<input placeholder="图片描述" value="[[item.title]]" class="form-control observe" required="required" data-field="banner_image.[[index]].title"/>
|
|
|
</div>
|
|
|
</td>
|
|
|
</tr>
|
|
|
[[/each]]
|
|
|
</tbody>
|
|
|
</table>
|
|
|
</div>
|
|
|
</div>
|
|
|
</script>
|
|
|
<!--有序焦点-->
|
|
|
<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>
|
|
|
<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.left as item index]]
|
|
|
<tr>
|
|
|
<td>[[index+1]]</td>
|
|
|
<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">
|
|
|
[[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"/>
|
|
|
</div>
|
|
|
<div class="col-sm-12">
|
|
|
<input placeholder="图片描述" value="[[item.title]]" class="observe" 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>
|
|
|
<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.right as item index]]
|
|
|
<tr>
|
|
|
<td>[[index+1]]</td>
|
|
|
<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">
|
|
|
[[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"/>
|
|
|
</div>
|
|
|
<div class="col-sm-12">
|
|
|
<input placeholder="图片描述" value="[[item.title]]" class="observe" required="required" data-field="right.[[index]].title"/>
|
|
|
</div>
|
|
|
</td>
|
|
|
</tr>
|
|
|
[[/each]]
|
|
|
</tbody>
|
|
|
</table>
|
|
|
</div>
|
|
|
</div>
|
|
|
</script>
|
|
|
<!--select选项-->
|
...
|
...
|
@@ -364,4 +558,31 @@ |
|
|
|
|
|
<script type="text/template" id="noEdit-template">
|
|
|
<div>固定内容,暂时无法编辑!</div>
|
|
|
</script>
|
|
|
|
|
|
<!--有序焦点-->
|
|
|
<script type="text/template" id="debrisSlider-grid">
|
|
|
<li>
|
|
|
<table style="width:100%;z-index:-1;" id="tableImageBox">
|
|
|
<tbody>
|
|
|
<tr>
|
|
|
<td style="width:100px;"><img class="bImgBox" src="[[src]]"></td>
|
|
|
<td>
|
|
|
<div class="col-sm-12">
|
|
|
<select name="goTo" class="recommendContent-observe" value="[[url.action]]" data-rows="[[__index]]" data-index="[[index]]" data-observe="list-action" >
|
|
|
[[layout action_template]]
|
|
|
</select>
|
|
|
</div>
|
|
|
<div class="col-sm-12">
|
|
|
<input value="[[url.url]]" class="recommendContent-observe" required="required" data-rows="[[__index]]" data-index="[[index]]" data-observe="list-url" />
|
|
|
</div>
|
|
|
<div class="col-sm-12">
|
|
|
<input placeholder="图片描述" value="[[url.title]]" class="recommendContent-observe" required="required" data-rows="[[__index]]" data-index="[[index]]" data-observe="list-url" />
|
|
|
</div>
|
|
|
</td>
|
|
|
<td><input type="button" value="更换图片" class="btn btn-info btn-xs change-big-pic" data-id=""> <input class="btn btn-danger btn-xs del-pic" type="button" value="删除" data-id=""></td>
|
|
|
</tr>
|
|
|
</tbody>
|
|
|
</table>
|
|
|
</li>
|
|
|
</script> |
|
|
\ No newline at end of file |
...
|
...
|
|