Authored by 陶雨

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

... ... @@ -994,18 +994,11 @@
<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]]
<ul class="draggable" data-array="data.imgs">
[[each contentData.data.imgs as item index]]
<li>
<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 align="center">[[index+1]]</td>
<td align="center"><input type="file" name="file" value="[[item.src]]" class="observe" data-field="imgs.[[index]].src"/></td>
... ... @@ -1030,10 +1023,11 @@
</td>
<td><button class="btn btn-danger btn-sm delBtn" data-event="hotCategory.imgs" type="button" data-index="[[index]]">删除</button></td>
</tr>
[[/each]]
</tbody>
</table>
[[/if]]
</li>
[[/each]]
</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]]
... ...