Authored by 陶雨

资源管理热门品类楼层样式修改

... ... @@ -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>
<!--图片列表-->
... ...
... ... @@ -217,7 +217,7 @@
<div style="clear:both;"></div>
<div style="width:150px;float:right;">
[[each module.contentData.data.imgs as item index]]
[[if index>=module.contentData.data.imgs.length - 6]]
[[if (index != 0 && module.contentData.data.imgs.length == 7) || (index % 4 != 0 && module.contentData.data.imgs.length == 8)]]
<img style="width:45px;height:90px;margin-left:5px;margin-bottom:10px;float:left;" src="[[item.src]]">
[[/if]]
[[/each]]
... ... @@ -228,7 +228,7 @@
</div>
<div style="width:100px;height:100%;float:right;">
[[each module.contentData.data.imgs as item index]]
[[if index < module.contentData.data.imgs.length - 6]]
[[if (index == 0 && module.contentData.data.imgs.length == 7) || (index % 4 == 0 && module.contentData.data.imgs.length == 8)]]
<img style="width:100px;height:100%;" src="[[module.contentData.data.imgs[index].src]]">
[[/if]]
[[/each]]
... ...