Commit ac52410c authored by LiZongLin's avatar LiZongLin

报名身份证校验

parent 0fb211ef
...@@ -78,6 +78,7 @@ ...@@ -78,6 +78,7 @@
import { import {
mapState mapState
} from 'vuex' } from 'vuex'
import { resolve } from 'path';
// import { info } from 'console'; // import { info } from 'console';
export default { export default {
data() { data() {
...@@ -286,12 +287,15 @@ ...@@ -286,12 +287,15 @@
}, },
//获取当前报名此活动者 //获取当前报名此活动者
getPerson() { getPerson() {
getPeople(this.info.activityId).then(res => { // return new Promise((resolve,reject)=>{
console.log("报名信息", res); getPeople(this.info.activityId).then(res => {
if (res.length > 0) { console.log("报名信息", res);
this.peopleList = res if (res.length > 0) {
} this.peopleList = res
}) }
})
resolve()
// })
}, },
//活动详情 //活动详情
getActivityDetial(id) { getActivityDetial(id) {
...@@ -358,6 +362,26 @@ ...@@ -358,6 +362,26 @@
} }
addTjtActivitySignupExams(this.info).then(res => { addTjtActivitySignupExams(this.info).then(res => {
console.log(res); console.log(res);
this.cityIndex = this.cityList.length - 1
this.cityCode = ''
this.info.cityId = ''
this.areaIndex = 16
this.areaDisable = true
this.areaCode = ''
this.info.cityAreaId = ''
this.schoolIndex = -1
this.schoolCode = ''
this.info.schoolId = ''
this.schoolDisable = true
this.info.idFlag = false
this.info.areaId = 1
this.info.parentName = ''
this.info.name = ''
this.info.phone = ''
this.info.idCard = ''
this.info.cityId = ''
this.info.cityAreaId = ''
this.info.schoolId = ''
if (res >= 0 && res !== '') { if (res >= 0 && res !== '') {
if (Date.parse(this.activityInfo.activityStart) > new Date()) { if (Date.parse(this.activityInfo.activityStart) > new Date()) {
this.cityCancel() this.cityCancel()
......
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