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