Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
eduline
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
冷斌
eduline
Commits
71971d03
Commit
71971d03
authored
May 13, 2020
by
陈超
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
T
parent
73a09a88
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
3 deletions
+6
-3
apps/home/Tpl/default/UserShow/index_w3g.html
+6
-3
No files found.
apps/home/Tpl/default/UserShow/index_w3g.html
View file @
71971d03
...
...
@@ -221,7 +221,8 @@
}
},
'json'
);
},
onRead
:
function
(
r
)
{
onRead
:
function
(
r
)
{
let
that
=
this
let
formData
=
new
FormData
()
formData
.
append
(
'file'
,
r
.
file
)
let
url
=
U
(
'widget/Upload/save'
)
+
'&attach_type=avatar&upload_type=image&thumb=1&width=44&height=44&cut=false'
...
...
@@ -231,8 +232,10 @@
data
:
formData
,
contentType
:
false
,
processData
:
false
,
success
:
function
(
data
)
{
console
.
log
(
data
)
success
:
function
(
res
)
{
if
(
res
.
status
==
1
)
{
that
.
currentAvatar
=
res
.
data
.
src
}
},
error
:
function
(
data
)
{
console
.
log
(
data
)
...
...
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