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
4937e1c1
Commit
4937e1c1
authored
Oct 22, 2020
by
qinhaitao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix:
🐛
任务类型
parent
6f12e2dc
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
15 deletions
+21
-15
add.js
client/pages/activity/add/add.js
+21
-15
No files found.
client/pages/activity/add/add.js
View file @
4937e1c1
import
moment
from
'moment'
import
moment
from
'moment'
import
schema
from
'async-validator'
import
schema
from
'async-validator'
import
{
methods
}
from
'./mixins'
import
{
methods
}
from
'./mixins'
import
{
TASK_RATE_TYPE
}
from
'../const'
import
{
import
{
descriptor
,
descriptor
,
formatValidator
formatValidator
...
@@ -29,41 +30,46 @@ Component({
...
@@ -29,41 +30,46 @@ Component({
tasks
:
{
tasks
:
{
// 关注店铺
// 关注店铺
follow
:
{
follow
:
{
value
:
''
,
value
:
0
,
taskRateType
:
TASK_RATE_TYPE
.
FOREVER
,
times
:
1
},
},
// 成为会员
// 成为会员
member
:
{
member
:
{
value
:
''
,
value
:
0
,
taskRateType
:
TASK_RATE_TYPE
.
FOREVER
,
times
:
1
},
},
// 签到
// 签到
sign
:
{
sign
:
{
value
:
''
value
:
0
,
taskRateType
:
TASK_RATE_TYPE
.
EVERYDAY
,
times
:
1
},
},
// 兑换积分
// 兑换积分
exchangeCredits
:
{
exchangeCredits
:
{
value
:
''
,
value
:
0
,
times
:
''
,
taskRateType
:
TASK_RATE_TYPE
.
EVERYDAY
,
times
:
3
},
},
// 邀请好友
// 邀请好友
invites
:
{
invites
:
{
title
:
''
,
// 任务标题
taskRateType
:
TASK_RATE_TYPE
.
FOREVER
,
// 任务频率类型
taskRateType
:
1
,
// 任务频率类型
times
:
3
,
// 任务为每日限次次数值
times
:
3
,
// 任务为每日限次次数值
value
:
''
,
// 任务奖励
value
:
0
// 任务奖励
},
},
// 浏览商品
// 浏览商品
browseGoods
:
{
browseGoods
:
{
title
:
''
,
taskRateType
:
TASK_RATE_TYPE
.
EVERYDAY
,
taskRateType
:
1
,
times
:
3
,
times
:
3
,
value
:
''
,
value
:
0
,
link
:
''
,
link
:
''
,
itemIds
:
''
,
itemIds
:
''
,
},
},
// 下单商品
// 下单商品
orderGoods
:
{
orderGoods
:
{
title
:
''
,
title
:
''
,
taskRateType
:
1
,
taskRateType
:
TASK_RATE_TYPE
.
EVERYDAY
,
times
:
3
,
times
:
3
,
value
:
''
,
value
:
''
,
link
:
''
,
link
:
''
,
...
@@ -72,15 +78,15 @@ Component({
...
@@ -72,15 +78,15 @@ Component({
// 收藏商品
// 收藏商品
collectGoods
:
{
collectGoods
:
{
title
:
''
,
title
:
''
,
taskRateType
:
1
,
taskRateType
:
TASK_RATE_TYPE
.
EVERYDAY
,
times
:
3
,
times
:
3
,
value
:
''
,
value
:
0
,
itemIds
:
""
,
itemIds
:
""
,
},
},
// 跳转链接
// 跳转链接
jumpLink
:
{
jumpLink
:
{
title
:
''
,
title
:
''
,
taskRateType
:
1
,
taskRateType
:
TASK_RATE_TYPE
.
FOREVER
,
link
:
''
,
//跳转链接
link
:
''
,
//跳转链接
times
:
3
,
times
:
3
,
value
:
''
,
value
:
''
,
...
...
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