Commit 4937e1c1 authored by qinhaitao's avatar qinhaitao

fix: 🐛 任务类型

parent 6f12e2dc
import moment from 'moment'
import schema from 'async-validator'
import { methods } from './mixins'
import { TASK_RATE_TYPE } from '../const'
import {
descriptor,
formatValidator
......@@ -29,41 +30,46 @@ Component({
tasks: {
// 关注店铺
follow: {
value: '',
value: 0,
taskRateType: TASK_RATE_TYPE.FOREVER,
times: 1
},
// 成为会员
member: {
value: '',
value: 0,
taskRateType: TASK_RATE_TYPE.FOREVER,
times: 1
},
// 签到
sign: {
value: ''
value: 0,
taskRateType: TASK_RATE_TYPE.EVERYDAY,
times: 1
},
// 兑换积分
exchangeCredits: {
value: '',
times: '',
value: 0,
taskRateType: TASK_RATE_TYPE.EVERYDAY,
times: 3
},
// 邀请好友
invites: {
title: '', // 任务标题
taskRateType: 1, // 任务频率类型
taskRateType: TASK_RATE_TYPE.FOREVER, // 任务频率类型
times: 3, // 任务为每日限次次数值
value: '', // 任务奖励
value: 0 // 任务奖励
},
// 浏览商品
browseGoods: {
title: '',
taskRateType: 1,
taskRateType: TASK_RATE_TYPE.EVERYDAY,
times: 3,
value: '',
value: 0,
link: '',
itemIds: '',
},
// 下单商品
orderGoods: {
title: '',
taskRateType: 1,
taskRateType: TASK_RATE_TYPE.EVERYDAY,
times: 3,
value: '',
link: '',
......@@ -72,15 +78,15 @@ Component({
// 收藏商品
collectGoods: {
title: '',
taskRateType: 1,
taskRateType: TASK_RATE_TYPE.EVERYDAY,
times: 3,
value: '',
value: 0,
itemIds: "",
},
// 跳转链接
jumpLink: {
title: '',
taskRateType: 1,
taskRateType: TASK_RATE_TYPE.FOREVER,
link: '', //跳转链接
times: 3,
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