Commit 5982e164 authored by zhaofei's avatar zhaofei

s

parent ef344f4f
......@@ -16,7 +16,7 @@
<radio size="small" value="{{2}}">每天限次</radio>
<radio size="small" value="{{3}}">不限次</radio>
</radio-group> -->
{{frequency}}
<view class="item-txt">{{frequency}}</view>
</form-item>
<form-item label="任务奖励">
<!--<input onChange="onChange" data-name="value" defaultValue="{{value}}" name="value" addonTextAfter="{{unit}}" placeholder="1-999" maxLength="{{3}}"/> -->
......
......@@ -89,13 +89,13 @@ Component({
},
onSaveTask() {
const { title, link, value, taskRateType, times, itemIds } = this.data;
if(!title.trim()) {
my.showToast({
type: 'fail',
content: '请输入任务标题'
})
return;
}
// if(!title.trim()) {
// my.showToast({
// type: 'fail',
// content: '请输入任务标题'
// })
// return;
// }
if(this.props.hasLink && !this.validateLink(link)) {
my.showToast({
......@@ -113,13 +113,13 @@ Component({
return;
}
if(!value || !validateRangeNumber(value, [1, 999])) {
my.showToast({
type: 'fail',
content: '请输入正确的任务奖励'
})
return;
}
// if(!value || !validateRangeNumber(value, [1, 999])) {
// my.showToast({
// type: 'fail',
// content: '请输入正确的任务奖励'
// })
// return;
// }
let taskData = { ...this.props.taskData, title, link, value, taskRateType, times, itemIds, type: this.props.type };
......
......@@ -181,10 +181,10 @@ Component({
const isValidForm = await this.validateForm(this.data);
if (!isValidForm) return;
console.log('成功')
console.log('表演校验通过')
const params = this.formatActivityParams(this.data)
console.log(params, 'params')
console.log('最后提交的数据', params)
if (this.data.isPostParams) {
this.setData({
isPostParams: false
......
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