注册
This commit is contained in:
parent
d499c9967f
commit
1b8d333ba4
@ -248,10 +248,7 @@
|
|||||||
}, {
|
}, {
|
||||||
value: '3',
|
value: '3',
|
||||||
label: '高血脂'
|
label: '高血脂'
|
||||||
}, {
|
},],
|
||||||
value: '0',
|
|
||||||
label: '无'
|
|
||||||
}],
|
|
||||||
arealist: [], //区街道list
|
arealist: [], //区街道list
|
||||||
list: [{
|
list: [{
|
||||||
id: "",
|
id: "",
|
||||||
@ -274,7 +271,6 @@
|
|||||||
homeLatitude: null,
|
homeLatitude: null,
|
||||||
nurseTypeIdList: [],
|
nurseTypeIdList: [],
|
||||||
diseaseInfoList: [],
|
diseaseInfoList: [],
|
||||||
diseaseList: [],
|
|
||||||
patientId: '',
|
patientId: '',
|
||||||
locationName: '',
|
locationName: '',
|
||||||
sex: '',
|
sex: '',
|
||||||
@ -372,7 +368,6 @@
|
|||||||
// console.log(that.query.diseaseList.length,'000')
|
// 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');
|
||||||
|
|
||||||
if (that.query.sexname == '男') {
|
if (that.query.sexname == '男') {
|
||||||
that.query.sex = 'MALE';
|
that.query.sex = 'MALE';
|
||||||
} else if (that.query.sexname == '女') {
|
} else if (that.query.sexname == '女') {
|
||||||
@ -401,23 +396,26 @@
|
|||||||
title: '请选择出生日期',
|
title: '请选择出生日期',
|
||||||
type: 'error'
|
type: 'error'
|
||||||
})
|
})
|
||||||
} else if (that.query.diseaseList.length == 0) {
|
}
|
||||||
that.$refs.uToast.show({
|
// else if (that.query.diseaseList.length == 0) {
|
||||||
title: '请选择基础疾病',
|
// that.$refs.uToast.show({
|
||||||
type: 'error'
|
// title: '请选择基础疾病',
|
||||||
})
|
// type: 'error'
|
||||||
} else {
|
// })
|
||||||
|
// }
|
||||||
|
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 => {
|
||||||
uni.setStorageSync('patientId', res.data.id);
|
uni.setStorageSync('patientId', res.data.id);
|
||||||
uni.setStorageSync('patientName', res.data.patientName);
|
uni.setStorageSync('patientName', res.data.patientName);
|
||||||
uni.setStorageSync("userinfo", res.data)
|
uni.setStorageSync("userinfo", res.data)
|
||||||
})
|
that.$refs.uToast.show({
|
||||||
that.$refs.uToast.show({
|
title: '注册成功',
|
||||||
title: '注册成功',
|
type: 'success',
|
||||||
type: 'success',
|
duration: '1000',
|
||||||
back: 1,
|
back: 1,
|
||||||
|
})
|
||||||
})
|
})
|
||||||
} else {
|
} else {
|
||||||
that.$refs.uToast.show({
|
that.$refs.uToast.show({
|
||||||
@ -576,6 +574,10 @@
|
|||||||
justify-content: center;
|
justify-content: center;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
background: #fff;
|
background: #fff;
|
||||||
|
::v-deep .select-modal .select-dialog{
|
||||||
|
height: 370rpx !important;
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
.Agreement {
|
.Agreement {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user