|
@@ -994,46 +994,40 @@ |
|
@@ -994,46 +994,40 @@ |
994
|
<p>
|
994
|
<p>
|
995
|
<input type="button" name="select-pic" class="btn btn-info btn-xs addBtn" value="添加右侧图片" style="margin:10px;" data-event="hotCategory.imgs">
|
995
|
<input type="button" name="select-pic" class="btn btn-info btn-xs addBtn" value="添加右侧图片" style="margin:10px;" data-event="hotCategory.imgs">
|
996
|
</p>
|
996
|
</p>
|
997
|
- [[if contentData.data.imgs.length]]
|
|
|
998
|
- <table class="table table-hover table-bordered responsive dataTable no-footer">
|
|
|
999
|
- <thead>
|
|
|
1000
|
- <tr>
|
|
|
1001
|
- <th>序号</th>
|
|
|
1002
|
- <th>资源位</th>
|
|
|
1003
|
- <th>选项</th>
|
|
|
1004
|
- <th>操作</th>
|
|
|
1005
|
- </tr>
|
|
|
1006
|
- </thead>
|
|
|
1007
|
- <tbody>
|
997
|
+ <ul class="draggable" data-array="data.imgs">
|
1008
|
[[each contentData.data.imgs as item index]]
|
998
|
[[each contentData.data.imgs as item index]]
|
1009
|
- <tr>
|
|
|
1010
|
- <td align="center">[[index+1]]</td>
|
|
|
1011
|
- <td align="center"><input type="file" name="file" value="[[item.src]]" class="observe" data-field="imgs.[[index]].src"/></td>
|
|
|
1012
|
- <td>
|
|
|
1013
|
- <div class="form-group">
|
|
|
1014
|
- <div class="col-sm-10">
|
|
|
1015
|
- <select name="goTo" class="observe form-control" value="[[item.url.action]]" data-field="imgs.[[index]].url.action">
|
|
|
1016
|
- [[layout action_template]]
|
|
|
1017
|
- </select>
|
|
|
1018
|
- </div>
|
|
|
1019
|
- </div>
|
|
|
1020
|
- <div class="form-group">
|
|
|
1021
|
- <div class="col-sm-10">
|
|
|
1022
|
- <input type="text" placeholder="url" value="[[item.url.url]]" class="observe form-control" required="required" data-field="imgs.[[index]].url.url"/>
|
|
|
1023
|
- </div>
|
|
|
1024
|
- </div>
|
|
|
1025
|
- <div class="form-group">
|
|
|
1026
|
- <div class="col-sm-10">
|
|
|
1027
|
- <input type="text" placeholder="图片描述" value="[[item.title]]" class="observe form-control" data-field="imgs.[[index]].title"/>
|
|
|
1028
|
- </div>
|
|
|
1029
|
- </div>
|
|
|
1030
|
- </td>
|
|
|
1031
|
- <td><button class="btn btn-danger btn-sm delBtn" data-event="hotCategory.imgs" type="button" data-index="[[index]]">删除</button></td>
|
|
|
1032
|
- </tr>
|
999
|
+ <li>
|
|
|
1000
|
+ <table class="table table-hover table-bordered responsive dataTable no-footer">
|
|
|
1001
|
+ <tbody>
|
|
|
1002
|
+ <tr>
|
|
|
1003
|
+ <td align="center">[[index+1]]</td>
|
|
|
1004
|
+ <td align="center"><input type="file" name="file" value="[[item.src]]" class="observe" data-field="imgs.[[index]].src"/></td>
|
|
|
1005
|
+ <td>
|
|
|
1006
|
+ <div class="form-group">
|
|
|
1007
|
+ <div class="col-sm-10">
|
|
|
1008
|
+ <select name="goTo" class="observe form-control" value="[[item.url.action]]" data-field="imgs.[[index]].url.action">
|
|
|
1009
|
+ [[layout action_template]]
|
|
|
1010
|
+ </select>
|
|
|
1011
|
+ </div>
|
|
|
1012
|
+ </div>
|
|
|
1013
|
+ <div class="form-group">
|
|
|
1014
|
+ <div class="col-sm-10">
|
|
|
1015
|
+ <input type="text" placeholder="url" value="[[item.url.url]]" class="observe form-control" required="required" data-field="imgs.[[index]].url.url"/>
|
|
|
1016
|
+ </div>
|
|
|
1017
|
+ </div>
|
|
|
1018
|
+ <div class="form-group">
|
|
|
1019
|
+ <div class="col-sm-10">
|
|
|
1020
|
+ <input type="text" placeholder="图片描述" value="[[item.title]]" class="observe form-control" data-field="imgs.[[index]].title"/>
|
|
|
1021
|
+ </div>
|
|
|
1022
|
+ </div>
|
|
|
1023
|
+ </td>
|
|
|
1024
|
+ <td><button class="btn btn-danger btn-sm delBtn" data-event="hotCategory.imgs" type="button" data-index="[[index]]">删除</button></td>
|
|
|
1025
|
+ </tr>
|
|
|
1026
|
+ </tbody>
|
|
|
1027
|
+ </table>
|
|
|
1028
|
+ </li>
|
1033
|
[[/each]]
|
1029
|
[[/each]]
|
1034
|
- </tbody>
|
|
|
1035
|
- </table>
|
|
|
1036
|
- [[/if]]
|
1030
|
+ </ul>
|
1037
|
</div>
|
1031
|
</div>
|
1038
|
</script>
|
1032
|
</script>
|
1039
|
<!--图片列表-->
|
1033
|
<!--图片列表-->
|