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
e581abda
Commit
e581abda
authored
Jul 24, 2020
by
秦海涛
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update
parent
f26cce70
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
57 deletions
+10
-57
add.js
client/pages/activity/add/add.js
+10
-57
No files found.
client/pages/activity/add/add.js
View file @
e581abda
...
...
@@ -17,62 +17,6 @@ const THANKS_TYPE = 5
var
validator
=
new
schema
(
descriptor
)
// {
// type: "beMembership",//会员
// value: 20,//完成任务获得值
// },
// {
// type: "attentionStore",
// value: 20,
// },
// {
// type: "sign",
// value: 20,
// },
// {
// type: "exchangeCredits",
// value: 20,
// times: 1,
// },
// {
// type: "inviteFriends",
// title: "标题",//任务标题
// taskRateType: 1,//任务频率类型
// times: 3,//任务为每日限次次数值
// value: 30,
// },
// {
// type: "orderGoods",
// title: "标题",
// taskRateType: 2,
// times: 3,
// value: 90,
// itemIds: "111,222,333",//商品类型任务商品id
// },
// {
// type: "browseGoods",
// title: "标题",
// taskRateType: 3,
// times: 3,
// value: 90,
// itemIds: "111,222,333",
// },
// {
// type: "jumpLink",
// title: "标题",
// taskRateType: 3,
// link: "http://www.taobao.com",//跳转链接
// times: 3,
// value: 90,
// },
// {
// type: "collectGoods",
// title: "标题",
// taskRateType: 1,
// times: 3,
// value: 90,
// itemIds: "111,222,333",
// }
Component
({
mixins
:
[
methods
],
data
:
{
...
...
@@ -83,25 +27,31 @@ Component({
<%
for
(
var
i
=
0
;
i
<
configList
.
length
;
++
i
)
{
%>
<%-
!
taskKeys
.
includes
(
configList
[
i
].
key
)
&&
configList
[
i
].
key
!==
'label'
?
`
${
configList
[
i
].
key
}
:
${
configList
[
i
].
defaultValue
||
"''"
}
,`
:
''
%><%
}
%>
tasks
:
{
// 关注店铺
attentionStore
:
{
value
:
''
,
},
// 成为会员
beMembership
:
{
value
:
''
,
},
// 签到
sign
:
{
value
:
''
},
// 兑换积分
exchangeCredits
:
{
value
:
''
,
times
:
''
,
},
// 邀请好友
inviteFriends
:
{
title
:
''
,
// 任务标题
taskRateType
:
1
,
// 任务频率类型
times
:
3
,
// 任务为每日限次次数值
value
:
''
,
// 任务奖励
},
// 浏览商品
browseGoods
:
{
title
:
''
,
taskRateType
:
1
,
...
...
@@ -110,6 +60,7 @@ Component({
link
:
''
,
itemIds
:
''
,
},
// 下单商品
orderGoods
:
{
title
:
''
,
taskRateType
:
1
,
...
...
@@ -118,6 +69,7 @@ Component({
link
:
''
,
itemIds
:
''
,
},
// 收藏商品
collectGoods
:
{
title
:
''
,
taskRateType
:
1
,
...
...
@@ -125,6 +77,7 @@ Component({
value
:
''
,
itemIds
:
""
,
},
// 跳转链接
jumpLink
:
{
title
:
''
,
taskRateType
:
1
,
...
...
@@ -158,7 +111,7 @@ Component({
originalStartTime
:
+
data
.
startTime
,
isStart
:
+
data
.
startTime
<
Date
.
now
(),
isEnd
:
+
data
.
endTime
<
Date
.
now
(),
tasks
tasks
:
data
.
tasks
})
}
catch
(
error
)
{
...
...
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