Showing
2 changed files
with
17 additions
and
0 deletions
@@ -120,6 +120,9 @@ | @@ -120,6 +120,9 @@ | ||
120 | <td><input type="file" id="iosSmallImageFirst" name="iosSmallImageFirst" value="[[iosSmallImageFirst]]"></td> | 120 | <td><input type="file" id="iosSmallImageFirst" name="iosSmallImageFirst" value="[[iosSmallImageFirst]]"></td> |
121 | <td><input type="file" id="iosBigImageFirst" name="iosBigImageFirst" value="[[iosSmallImageFirst]]"></td> | 121 | <td><input type="file" id="iosBigImageFirst" name="iosBigImageFirst" value="[[iosSmallImageFirst]]"></td> |
122 | <td><input type="file" id="androidImageFirst" name="androidImageFirst" value="[[androidImageFirst]]"></td> | 122 | <td><input type="file" id="androidImageFirst" name="androidImageFirst" value="[[androidImageFirst]]"></td> |
123 | + <td> | ||
124 | + <button class="btn btn-danger btn-sm del-btn" data-event="template-content" type="button" data-key="first">删除图片</button> | ||
125 | + </td> | ||
123 | </tr> | 126 | </tr> |
124 | </table> | 127 | </table> |
125 | 128 |
@@ -233,6 +233,20 @@ function appEntranceIconOP( url, item) { | @@ -233,6 +233,20 @@ function appEntranceIconOP( url, item) { | ||
233 | }); | 233 | }); |
234 | }); | 234 | }); |
235 | $(".modal-dialog").css("width","800px"); | 235 | $(".modal-dialog").css("width","800px"); |
236 | + /** | ||
237 | + * 删除图片 | ||
238 | + */ | ||
239 | + $(document).on("click", ".del-btn", function () { | ||
240 | + var key = $(this).data('key'); | ||
241 | + | ||
242 | + var $parent = $(this).parent().parent(); | ||
243 | + | ||
244 | + $parent.find("input[type=file]").each(function(){ | ||
245 | + $(this).attr("value", ""); | ||
246 | + }); | ||
247 | + | ||
248 | + $parent.find(".upload-image-list .fileinput-button-icon").html('+'); | ||
249 | + }); | ||
236 | 250 | ||
237 | a.init(); | 251 | a.init(); |
238 | 252 |
-
Please register or login to post a comment