Commit cdb797a6 authored by 秦海涛's avatar 秦海涛

opt

parent f59315f7
......@@ -103,7 +103,7 @@ Component({
return;
}
if(this.props.hasItems && itemIds) {
if(this.props.hasItems && !itemIds) {
my.showToast({
type: 'fail',
content: '请输入选择商品'
......
......@@ -92,7 +92,6 @@ Component({
},
beMembership: {
value: '',
checked: false
},
sign: {
value: ''
......@@ -106,7 +105,6 @@ Component({
taskRateType: 1, // 任务频率类型
times: 3, // 任务为每日限次次数值
value: '', // 任务奖励
checked: false
},
browseGoods: {
title: "寻宝屋商品",
......@@ -115,7 +113,6 @@ Component({
value: '',
link: '',
itemIds: '',
checked: true
},
collectGoods: {
title: "",
......@@ -130,7 +127,6 @@ Component({
link: "", //跳转链接
times: 3,
value: '',
checked: false
},
},
image: '',
......@@ -320,6 +316,8 @@ Component({
// 提交信息
async onSubmit() {
console.log(this.data)
const isValidForm = await this.validateForm(this.data);
// console.log(this.formatActivityParams(this.data))
......@@ -380,7 +378,6 @@ Component({
formatTaskMapToList(taskMap) {
let list = [];
Object.keys(taskMap).forEach(type => {
if (!taskMap[type].checked) return;
let task = {
...taskMap[type],
type
......
{
"cloud": {
"type": "CLOUDAPP"
},
"miniprogramRoot": "client"
}
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