Merge remote-tracking branch 'origin/dev' into dev
This commit is contained in:
commit
7a965e6486
@ -369,8 +369,10 @@
|
|||||||
console.log(e, '打印e')
|
console.log(e, '打印e')
|
||||||
},
|
},
|
||||||
submit() {
|
submit() {
|
||||||
console.log(this.query)
|
|
||||||
var that = this
|
var that = this
|
||||||
|
// console.log(that.query)
|
||||||
|
// console.log(that.query.diseaseList.length,'000')
|
||||||
that.query.openid = uni.getStorageSync('openid');
|
that.query.openid = uni.getStorageSync('openid');
|
||||||
that.query.cityCode = uni.getStorageSync('region');
|
that.query.cityCode = uni.getStorageSync('region');
|
||||||
|
|
||||||
@ -378,33 +380,41 @@
|
|||||||
that.query.sex = 'MALE';
|
that.query.sex = 'MALE';
|
||||||
} else if (that.query.sexname == '女') {
|
} else if (that.query.sexname == '女') {
|
||||||
that.query.sex = 'FEMALE';
|
that.query.sex = 'FEMALE';
|
||||||
}
|
}s
|
||||||
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'
|
|
||||||
})
|
|
||||||
}
|
|
||||||
that.$refs.uForm.validate(valid => {
|
that.$refs.uForm.validate(valid => {
|
||||||
if (valid) {
|
if (valid) {
|
||||||
|
|
||||||
if (that.selected == 1) {
|
if (that.selected == 1) {
|
||||||
that.$refs.uToast.show({
|
that.$refs.uToast.show({
|
||||||
title: '请审核并同意用户协议',
|
title: '请审核并同意用户协议',
|
||||||
type: 'error'
|
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 => {
|
registerdata(that.query).then(res => {
|
||||||
if (res.code == 200) {
|
if (res.code == 200) {
|
||||||
getCurrentUser(that.query.openid, that.query.cityCode).then(res => {
|
getCurrentUser(that.query.openid, that.query.cityCode).then(res => {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user