Commit 4937e1c1 authored by qinhaitao's avatar qinhaitao

fix: 🐛 任务类型

parent 6f12e2dc
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: '',
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment