Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
mallapp
Project
Project
Details
Activity
Releases
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
viitto
mallapp
Commits
59f29e86
Commit
59f29e86
authored
Jan 15, 2021
by
Mac
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
5ac19883
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
41 additions
and
32 deletions
+41
-32
u-upload.vue
node_modules/uview-ui/components/u-upload/u-upload.vue
+40
-32
release.vue
pages/friendcircle/release.vue
+1
-0
No files found.
node_modules/uview-ui/components/u-upload/u-upload.vue
View file @
59f29e86
...
...
@@ -307,9 +307,14 @@
this
.
lists
[
index
].
error
=
false
;
this
.
uploading
=
true
;
// 创建上传对象
uni
.
compressImage
({
src
:
this
.
lists
[
index
].
url
,
quality
:
80
,
success
:
res
=>
{
console
.
log
(
res
.
tempFilePath
)
const
task
=
uni
.
uploadFile
({
url
:
this
.
action
,
filePath
:
this
.
lists
[
index
].
url
,
filePath
:
res
.
tempFilePath
,
name
:
this
.
name
,
formData
:
this
.
formData
,
header
:
this
.
header
,
...
...
@@ -340,6 +345,9 @@
this
.
$emit
(
'on-progress'
,
res
,
index
,
this
.
lists
);
}
});
}
})
},
// 上传失败
uploadError
(
index
,
err
)
{
...
...
pages/friendcircle/release.vue
View file @
59f29e86
...
...
@@ -418,6 +418,7 @@
},
uploadSuccessHandler
(
data
,
index
,
lists
)
{
let
r
=
JSON
.
parse
(
data
);
console
.
log
(
r
)
this
.
addMsg
.
FileList
.
push
(
r
.
data
);
},
onRemove1
(
index
)
{
...
...
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