Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
schedule
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
fengzhaoyu
schedule
Commits
b1647ea3
Commit
b1647ea3
authored
May 25, 2020
by
fengzhaoyu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix:去掉打印 加loading
parent
aee956fc
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
1 deletions
+6
-1
uploadFile.js
pages/meetingDetail/uploadFile.js
+6
-1
No files found.
pages/meetingDetail/uploadFile.js
View file @
b1647ea3
...
...
@@ -9,7 +9,6 @@ function getImg() {
dd
.
chooseImage
({
count
:
1
,
success
:
(
res
)
=>
{
console
.
log
(
JSON
.
stringify
())
if
(
res
.
files
[
0
].
size
>
20
*
1024
*
1024
)
{
rejects
({
code
:
-
1
,
msg
:
'文件小一点'
,
...
res
})
}
else
{
...
...
@@ -61,9 +60,14 @@ async function uploadImg(imgInfo) {
export
async
function
getFileInfoFromOss
()
{
try
{
const
imgInfo
=
await
getImg
();
dd
.
showLoading
({
content
:
'正在上传...'
,
});
const
fileInfo
=
await
uploadImg
(
imgInfo
);
dd
.
hideLoading
()
return
{
code
:
0
,
msg
:
'success'
,
data
:
fileInfo
}
}
catch
(
err
)
{
dd
.
hideLoading
()
return
err
}
}
\ No newline at end of file
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