Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
T
taobao-mini-template
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
2
Issues
2
List
Board
Labels
Milestones
Merge Requests
1
Merge Requests
1
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
qinhaitao
taobao-mini-template
Commits
a4ac5e12
Commit
a4ac5e12
authored
May 20, 2021
by
gongguan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
奖品图片上传图片操作较快时图片无法保存的bug
parent
f6f20e7f
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
0 deletions
+12
-0
prize-dialog.js
client/components/dialog/prize-dialog/prize-dialog.js
+12
-0
No files found.
client/components/dialog/prize-dialog/prize-dialog.js
View file @
a4ac5e12
...
@@ -41,6 +41,7 @@ Component({
...
@@ -41,6 +41,7 @@ Component({
OBJECT_TYPE
,
OBJECT_TYPE
,
LOWER_TYPE
,
LOWER_TYPE
,
showDialogMask
:
true
,
showDialogMask
:
true
,
canSavePrize
:
true
,
dialogTop
:
""
,
dialogTop
:
""
,
rankTips
:
{
rankTips
:
{
status
:
"success"
,
status
:
"success"
,
...
@@ -292,9 +293,11 @@ Component({
...
@@ -292,9 +293,11 @@ Component({
})
})
},
},
uploadImage
:
throttleHandle
(
async
function
()
{
uploadImage
:
throttleHandle
(
async
function
()
{
if
(
!
this
.
data
.
showDialogMask
)
return
;
try
{
try
{
this
.
setData
({
this
.
setData
({
showDialogMask
:
false
,
showDialogMask
:
false
,
canSavePrize
:
false
});
});
const
res
=
await
chooseImage
();
const
res
=
await
chooseImage
();
this
.
setData
({
this
.
setData
({
...
@@ -334,10 +337,12 @@ Component({
...
@@ -334,10 +337,12 @@ Component({
image
:
url
,
image
:
url
,
},
},
showDialogMask
:
true
,
showDialogMask
:
true
,
canSavePrize
:
true
});
});
}
catch
(
error
)
{
}
catch
(
error
)
{
this
.
setData
({
this
.
setData
({
showDialogMask
:
true
,
showDialogMask
:
true
,
canSavePrize
:
true
});
});
console
.
error
(
error
);
console
.
error
(
error
);
}
}
...
@@ -361,6 +366,13 @@ Component({
...
@@ -361,6 +366,13 @@ Component({
});
});
},
},
updatePrize
()
{
updatePrize
()
{
if
(
!
this
.
data
.
canSavePrize
)
{
my
.
showToast
({
type
:
"fail"
,
content
:
"请等待图片上传完毕"
,
});
return
}
const
{
const
{
name
,
name
,
ename
,
ename
,
...
...
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