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
ec34f1e4
Commit
ec34f1e4
authored
Apr 25, 2021
by
王波
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1.增加提交loading
2.降级奖品选择后库存限制默认为不限制
parent
880f9e36
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
3 deletions
+13
-3
prize-dialog.js
client/components/dialog/prize-dialog/prize-dialog.js
+5
-1
add.js
client/pages/activity/add/add.js
+8
-2
No files found.
client/components/dialog/prize-dialog/prize-dialog.js
View file @
ec34f1e4
...
...
@@ -283,7 +283,11 @@ Component({
this
.
setData
({
prizeInitData
:
{
...
this
.
data
.
prizeInitData
,
isBackUp
:
e
.
detail
.
value
isBackUp
:
e
.
detail
.
value
,
probability
:
""
,
switchStock
:
STOCK_NO_LIMIT
,
useStock
:
0
,
stock
:
""
}
})
},
...
...
client/pages/activity/add/add.js
View file @
ec34f1e4
...
...
@@ -123,11 +123,15 @@ Component({
},
// 提交信息
async
onSubmit
()
{
my
.
showLoading
();
console
.
log
(
this
.
data
,
'this.data'
)
const
isValidForm
=
await
this
.
validateForm
(
this
.
data
);
if
(
!
isValidForm
)
return
;
if
(
!
isValidForm
){
my
.
hideLoading
();
return
;
}
console
.
log
(
'表演校验通过'
)
const
params
=
this
.
formatActivityParams
(
this
.
data
)
...
...
@@ -142,12 +146,14 @@ Component({
})
},
2000
);
const
{
success
,
message
}
=
await
saveActivityInfo
(
params
);
my
.
hideLoading
();
if
(
success
)
{
this
.
backList
();
}
else
{
this
.
showFailToast
(
message
);
}
}
my
.
hideLoading
();
},
showFailToast
(
text
)
{
my
.
showToast
({
...
...
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