Commit 5982e164 authored by zhaofei's avatar zhaofei

s

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