Commit bbe23bec authored by rlgy's avatar rlgy

Merge remote-tracking branch 'origin/master'

parents f0a6b411 8670f2b9
......@@ -16,8 +16,9 @@ class UploadForm extends BaseForm
const IMAGE_SAVE_DIR = [
1 => "/coin/", //存放logo
2 => "/banner/" //存放banner
1 => "/coin/", //存放logo
2 => "/banner/", //存放banner
3 => "/application/" //存放应用详情图片
];
......
......@@ -87,9 +87,7 @@
$.get('/admin/application/delete-image', {id: data.id,applicate_id:applicate_id}, function (rev) {
layer.msg(rev.msg);
if (0==rev.code) {
table.reload('table1',{
page:{curr:1}
});
table.reload('table1');
}
});
});
......@@ -112,11 +110,7 @@
if (0 == rev.code) {
layer.close(index);
$("#_form").css('display', 'none');
table.reload('table1', {
page: {
curr: 1
}
});
table.reload('table1');
}
});
},
......@@ -138,7 +132,7 @@
uploader.render({
elem: "#upload1",
url: '/admin/image/upload',
data: {_csrf: $_csrf},
data: {_csrf: $_csrf,image_type:3},
done: function (res) {
if(res.code == 0){
$("input[name='image']").val(res.data.image_id);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment