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
f0e1ad2c
Commit
f0e1ad2c
authored
Sep 08, 2020
by
李硕
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
导出奖品信息的奖池字段和奖品字段,以及保存时的防连点
parent
54f9315e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
9 deletions
+17
-9
rank-dialog.js
client/components/dialog/rank-dialog/rank-dialog.js
+2
-2
add.js
client/pages/activity/add/add.js
+15
-7
No files found.
client/components/dialog/rank-dialog/rank-dialog.js
View file @
f0e1ad2c
...
@@ -52,9 +52,9 @@ Component({
...
@@ -52,9 +52,9 @@ Component({
{
title
:
'发奖时间'
,
prop
:
'createTime'
},
{
title
:
'发奖时间'
,
prop
:
'createTime'
},
{
title
:
'填地址时间'
,
prop
:
'receiveTime'
},
{
title
:
'填地址时间'
,
prop
:
'receiveTime'
},
{
title
:
'用户昵称'
,
prop
:
'userNick'
},
{
title
:
'用户昵称'
,
prop
:
'userNick'
},
{
title
:
'奖池类型'
,
prop
:
'
awards
Type'
},
{
title
:
'奖池类型'
,
prop
:
'
prizeData
Type'
},
{
title
:
'奖品类型'
,
prop
:
'type'
},
{
title
:
'奖品类型'
,
prop
:
'type'
},
{
title
:
'奖品名'
,
prop
:
'
n
ame'
},
{
title
:
'奖品名'
,
prop
:
'
prizeN
ame'
},
{
title
:
'收货人'
,
prop
:
'receiveName'
},
{
title
:
'收货人'
,
prop
:
'receiveName'
},
{
title
:
'联系方式'
,
prop
:
'phone'
},
{
title
:
'联系方式'
,
prop
:
'phone'
},
/* 注:需要在接口里将 省+市+区+详细 拼写起来*/
/* 注:需要在接口里将 省+市+区+详细 拼写起来*/
...
...
client/pages/activity/add/add.js
View file @
f0e1ad2c
...
@@ -89,7 +89,8 @@ Component({
...
@@ -89,7 +89,8 @@ Component({
isEnd
:
false
,
isEnd
:
false
,
isStart
:
false
,
isStart
:
false
,
originalStartTime
:
''
,
originalStartTime
:
''
,
formState
:
formatValidator
(
descriptor
)
formState
:
formatValidator
(
descriptor
),
isPostParams
:
true
},
},
didMount
()
{
didMount
()
{
const
{
id
}
=
this
.
$page
.
$router
.
params
const
{
id
}
=
this
.
$page
.
$router
.
params
...
@@ -170,12 +171,19 @@ Component({
...
@@ -170,12 +171,19 @@ Component({
const
params
=
this
.
formatActivityParams
(
this
.
data
)
const
params
=
this
.
formatActivityParams
(
this
.
data
)
console
.
log
(
params
,
'params'
)
console
.
log
(
params
,
'params'
)
const
{
success
,
message
}
=
await
saveActivityInfo
(
params
)
if
(
this
.
data
.
isPostParams
)
{
this
.
setData
({
if
(
success
)
{
isPostParams
:
false
this
.
backList
()
})
}
else
{
const
{
success
,
message
}
=
await
saveActivityInfo
(
params
);
this
.
showFailToast
(
message
)
if
(
success
)
{
this
.
backList
();
this
.
setData
({
isPostParams
:
true
})
}
else
{
this
.
showFailToast
(
message
);
}
}
}
},
},
showFailToast
(
text
)
{
showFailToast
(
text
)
{
...
...
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