注册
This commit is contained in:
parent
b3b997736a
commit
de1dc12dac
@ -369,8 +369,10 @@
|
||||
console.log(e, '打印e')
|
||||
},
|
||||
submit() {
|
||||
console.log(this.query)
|
||||
|
||||
var that = this
|
||||
// console.log(that.query)
|
||||
// console.log(that.query.diseaseList.length,'000')
|
||||
that.query.openid = uni.getStorageSync('openid');
|
||||
that.query.cityCode = uni.getStorageSync('region');
|
||||
|
||||
@ -378,33 +380,41 @@
|
||||
that.query.sex = 'MALE';
|
||||
} else if (that.query.sexname == '女') {
|
||||
that.query.sex = 'FEMALE';
|
||||
}
|
||||
if (that.query.sex == "") {
|
||||
that.$refs.uToast.show({
|
||||
title: '请选择性别',
|
||||
type: 'error'
|
||||
})
|
||||
}
|
||||
if (!that.query.locationName) {
|
||||
that.$refs.uToast.show({
|
||||
title: '请选择所在位置',
|
||||
type: 'error'
|
||||
})
|
||||
}
|
||||
if (!that.query.birthDate) {
|
||||
that.$refs.uToast.show({
|
||||
title: '请选择出生日期',
|
||||
type: 'error'
|
||||
})
|
||||
}
|
||||
}s
|
||||
that.$refs.uForm.validate(valid => {
|
||||
if (valid) {
|
||||
|
||||
if (that.selected == 1) {
|
||||
that.$refs.uToast.show({
|
||||
title: '请审核并同意用户协议',
|
||||
type: 'error'
|
||||
})
|
||||
} else {
|
||||
}
|
||||
else if (that.query.sex == "") {
|
||||
that.$refs.uToast.show({
|
||||
title: '请选择性别',
|
||||
type: 'error'
|
||||
})
|
||||
}
|
||||
else if (!that.query.locationName) {
|
||||
that.$refs.uToast.show({
|
||||
title: '请选择所在位置',
|
||||
type: 'error'
|
||||
})
|
||||
}
|
||||
else if (!that.query.birthDate) {
|
||||
that.$refs.uToast.show({
|
||||
title: '请选择出生日期',
|
||||
type: 'error'
|
||||
})
|
||||
}
|
||||
else if (that.query.diseaseList.length==0) {
|
||||
that.$refs.uToast.show({
|
||||
title: '请选择基础疾病',
|
||||
type: 'error'
|
||||
})
|
||||
}
|
||||
else {
|
||||
registerdata(that.query).then(res => {
|
||||
if (res.code == 200) {
|
||||
getCurrentUser(that.query.openid, that.query.cityCode).then(res => {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user