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

update

parent 19d8f20e
import moment from 'moment'
import schema from 'async-validator';
import schema from 'async-validator'
import { methods } from './mixins'
import {
descriptor,
formatValidator
} from './validate';
} from './validate'
import {
getActivityDetail,
saveActivityInfo,
generateRule
} from '/api'
import {
addFloat
} from '/utils/helper'
const THANKS_TYPE = 5
var validator = new schema(descriptor);
var validator = new schema(descriptor)
// {
// type: "beMembership",//会员
......@@ -214,18 +214,11 @@ Component({
console.log(this.data, 'this.data')
const isValidForm = await this.validateForm(this.data);
if (!isValidForm) return;
console.log('成功')
const params = this.formatActivityParams(this.data)
console.log(params, 'params')
const { success, message } = await saveActivityInfo(params)
if(success) {
......
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