Commit 0e524a18 authored by ZhuChunYang's avatar ZhuChunYang

update

parent ba053328
...@@ -16,8 +16,9 @@ class UploadForm extends BaseForm ...@@ -16,8 +16,9 @@ class UploadForm extends BaseForm
const IMAGE_SAVE_DIR = [ const IMAGE_SAVE_DIR = [
1 => "/coin/", //存放logo 1 => "/coin/", //存放logo
2 => "/banner/" //存放banner 2 => "/banner/", //存放banner
3 => "/application/" //存放应用详情图片
]; ];
......
...@@ -138,7 +138,7 @@ ...@@ -138,7 +138,7 @@
uploader.render({ uploader.render({
elem: "#upload1", elem: "#upload1",
url: '/admin/image/upload', url: '/admin/image/upload',
data: {_csrf: $_csrf}, data: {_csrf: $_csrf,image_type:3},
done: function (res) { done: function (res) {
if(res.code == 0){ if(res.code == 0){
$("input[name='image']").val(res.data.image_id); $("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