Commit 069917c7 authored by 杨梦雪's avatar 杨梦雪

多形式报名

parent 9ad2103d
......@@ -9,7 +9,6 @@
class="checkForm"
:rules="referInfoRules"
>
<el-form-item v-if="is_multiform == 1"
label="活动形式"
prop="multiform"
......@@ -19,7 +18,6 @@
is_multiform == 1 ? referInfoRules.multiform : [{ required: false }]
"
>
<el-radio-group ref="multiform" v-model="referForm.multiform">
<div v-for="item in multiform" :key="item.id">
<el-radio :label="item.id.toString()">{{item.multiform_name}}</el-radio>
......@@ -88,38 +86,24 @@
,
methods: {
next() {
// console.log(this.checked);
this.$refs["referRef"].validate((valid, object) => {
if (!valid) {
this.scrollView(object);
return false;
}
let _this = this;
let obj = {};
//是否选择活动形式
if (this.is_multiform == 1) {
obj.multiform_id = _this.referForm.multiform;
}
setSignShould(obj).then((res) => {
// console.log(res, "setSignShould");
if (res.data.code !== 200) return this.$message.error(res.data.message);
this.$emit("getstatus", res.data.status);
this.$message.success(res.data.message);
// let code = this.$store.state.indexIdentity;
// this.$router.push("/signUp/invitation?code="+code);
});
})
}
,
if (this.referForm.multiform == 0) {
return this.$message.error('请选择活动形式')
}
let _this = this;
let obj = {};
//是否选择活动形式
obj.multiform_id = _this.referForm.multiform;
setSignShould(obj).then((res) => {
if (res.data.code !== 200) return this.$message.error(res.data.message);
this.$emit("getstatus", res.data.status);
this.$message.success(res.data.message);
});
},
getCams() {
getCam(this.$store.state.indexIdentity).then((res) => {
// console.log(res, "res");
if (res.data.code != 200) {
return this.$message.error(res.data.message);
}
// this.$message.success(res.data.message);
this.info = res.data;
});
}
......
......@@ -56,7 +56,7 @@
<el-form-item
label="年龄"
prop="age"
style="height: 73px"
style="height: 70px"
:rules="
configJson.age == 1 ? referInfoRules.age : [{ required: false }]
"
......@@ -75,7 +75,7 @@
<el-form-item
label="国籍"
prop="country"
style="height: 73px"
style="height: 70px"
:rules="
configJson.country == 1
? referInfoRules.country
......@@ -144,7 +144,7 @@
<el-form-item
label="身份证号"
prop="id_card"
style="height: 73px"
style="height: 70px"
:rules="
configJson.idCard == 1
? referInfoRules.idCard
......@@ -164,7 +164,7 @@
<el-col :span="12" v-show="configJson.phone == 1">
<el-form-item
label="手机号"
style="height: 73px"
style="height: 70px"
:rules="
configJson.phone == 1
? referInfoRules.phone
......
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