Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
T
token
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wallet
token
Commits
bbe23bec
Commit
bbe23bec
authored
Oct 17, 2018
by
rlgy
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/master'
parents
f0a6b411
8670f2b9
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
10 deletions
+5
-10
UploadForm.php
backend/models/UploadForm.php
+2
-1
image-index.php
backend/views/application/image-index.php
+3
-9
No files found.
backend/models/UploadForm.php
View file @
bbe23bec
...
...
@@ -17,7 +17,8 @@ class UploadForm extends BaseForm
const
IMAGE_SAVE_DIR
=
[
1
=>
"/coin/"
,
//存放logo
2
=>
"/banner/"
//存放banner
2
=>
"/banner/"
,
//存放banner
3
=>
"/application/"
//存放应用详情图片
];
...
...
backend/views/application/image-index.php
View file @
bbe23bec
...
...
@@ -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
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment