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

opt

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