|
|
@ -83,11 +83,11 @@ |
|
|
</div> |
|
|
</div> |
|
|
<div class="form-group"> |
|
|
<div class="form-group"> |
|
|
<label class="col-sm-2 control-label is-required">功能设置:</label> |
|
|
<label class="col-sm-2 control-label is-required">功能设置:</label> |
|
|
<div class="col-sm-5"> |
|
|
<div class="col-sm-10"> |
|
|
<input class="form-control" type="text" name="title" id="title" placeholder="名称设置"> |
|
|
<input type="button" onclick="removeImg('home-banner-1')" value="删除图1" class="listbutton"/> |
|
|
</div> |
|
|
<input type="button" onclick="removeImg('home-banner-2')" value="删除图2" class="listbutton"/> |
|
|
<div class="col-sm-5"> |
|
|
<input type="button" onclick="removeImg('home-banner-3')" value="删除图3" class="listbutton"/> |
|
|
<input class="form-control" type="text" name="title" id="title" placeholder="图片设置"> |
|
|
<input type="button" onclick="removeImg('home-banner-4')" value="删除图4" class="listbutton"/> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
<hr/> |
|
|
<hr/> |
|
|
@ -428,6 +428,24 @@ |
|
|
}); |
|
|
}); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
|
* 删除图片 |
|
|
|
|
|
*/ |
|
|
|
|
|
function removeImg(key) { |
|
|
|
|
|
$.ajax({ |
|
|
|
|
|
url: prefix+'/removeByTitle', //后台url |
|
|
|
|
|
data: {"title": key}, |
|
|
|
|
|
type: "POST", |
|
|
|
|
|
dataType: 'json', |
|
|
|
|
|
success: function (data) { //成功,回调函数 |
|
|
|
|
|
$.modal.alertSuccess("删除成功"); |
|
|
|
|
|
}, |
|
|
|
|
|
error: function (er) { //失败,回调函数 |
|
|
|
|
|
$.modal.alertError(er); |
|
|
|
|
|
} |
|
|
|
|
|
}); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
</script> |
|
|
</script> |
|
|
</body> |
|
|
</body> |
|
|
</html> |
|
|
</html> |