...
|
...
|
@@ -994,46 +994,40 @@ |
|
|
<p>
|
|
|
<input type="button" name="select-pic" class="btn btn-info btn-xs addBtn" value="添加右侧图片" style="margin:10px;" data-event="hotCategory.imgs">
|
|
|
</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>
|
|
|
<ul class="draggable" data-array="data.imgs">
|
|
|
[[each contentData.data.imgs as item index]]
|
|
|
<tr>
|
|
|
<td align="center">[[index+1]]</td>
|
|
|
<td align="center"><input type="file" name="file" value="[[item.src]]" class="observe" data-field="imgs.[[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="imgs.[[index]].url.action">
|
|
|
[[layout action_template]]
|
|
|
</select>
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="form-group">
|
|
|
<div class="col-sm-10">
|
|
|
<input type="text" placeholder="url" value="[[item.url.url]]" class="observe form-control" required="required" data-field="imgs.[[index]].url.url"/>
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="form-group">
|
|
|
<div class="col-sm-10">
|
|
|
<input type="text" placeholder="图片描述" value="[[item.title]]" class="observe form-control" data-field="imgs.[[index]].title"/>
|
|
|
</div>
|
|
|
</div>
|
|
|
</td>
|
|
|
<td><button class="btn btn-danger btn-sm delBtn" data-event="hotCategory.imgs" type="button" data-index="[[index]]">删除</button></td>
|
|
|
</tr>
|
|
|
<li>
|
|
|
<table class="table table-hover table-bordered responsive dataTable no-footer">
|
|
|
<tbody>
|
|
|
<tr>
|
|
|
<td align="center">[[index+1]]</td>
|
|
|
<td align="center"><input type="file" name="file" value="[[item.src]]" class="observe" data-field="imgs.[[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="imgs.[[index]].url.action">
|
|
|
[[layout action_template]]
|
|
|
</select>
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="form-group">
|
|
|
<div class="col-sm-10">
|
|
|
<input type="text" placeholder="url" value="[[item.url.url]]" class="observe form-control" required="required" data-field="imgs.[[index]].url.url"/>
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="form-group">
|
|
|
<div class="col-sm-10">
|
|
|
<input type="text" placeholder="图片描述" value="[[item.title]]" class="observe form-control" data-field="imgs.[[index]].title"/>
|
|
|
</div>
|
|
|
</div>
|
|
|
</td>
|
|
|
<td><button class="btn btn-danger btn-sm delBtn" data-event="hotCategory.imgs" type="button" data-index="[[index]]">删除</button></td>
|
|
|
</tr>
|
|
|
</tbody>
|
|
|
</table>
|
|
|
</li>
|
|
|
[[/each]]
|
|
|
</tbody>
|
|
|
</table>
|
|
|
[[/if]]
|
|
|
</ul>
|
|
|
</div>
|
|
|
</script>
|
|
|
<!--图片列表-->
|
...
|
...
|
|