管理后台上传图片修改

master
zhengyongxing 5 years ago
parent a074b4a319
commit 4df0f91f43

@ -1790,10 +1790,7 @@
imgListIconData.push(Number(response.id));
setIconVal();
console.log(response)
if (response.status==1001) {
alert('图片大小不得超过50k');
$('#icon_thelist').children().last().remove();
} else {
$( '#'+file.id ).find('p.state').text('已上传').fadeOut(800);
//alert(JSON.stringify(response));
$('#'+file.id).find('h4.info').append('<a href="javascript:;" class="jsdelzip table_click" style="float:none;display:inline-block;margin-left:10px;">删除</a>');
@ -1811,6 +1808,11 @@
return false;
});
if (response.status==1001) {
alert('图片大小不得超过50k');
$('#icon_thelist').children().last().remove();
location.reload()
}
});

Loading…
Cancel
Save