This commit is contained in:
2023-10-27 14:28:57 +08:00
parent 5d5dbdbdac
commit f3c29015c1

View File

@ -33,7 +33,7 @@
</view> </view>
<span>手机号</span> <span>手机号</span>
<u-form-item prop="phone" :border-bottom="false"> <u-form-item prop="phone" :border-bottom="false">
<u-input v-model="query.phone" placeholder="请输入手机号" :disabled="true"/> <u-input v-model="query.phone" placeholder="请输入手机号" :disabled="true" />
</u-form-item> </u-form-item>
<span>身份证号</span> <span>身份证号</span>
<u-form-item prop="cardNo" :border-bottom="false"> <u-form-item prop="cardNo" :border-bottom="false">
@ -107,7 +107,6 @@
提交 提交
</view> </view>
</view> </view>
<u-toast ref="uToast" />
<u-mask :show="maskshow" class='mask' @click='maskshow=false'> <u-mask :show="maskshow" class='mask' @click='maskshow=false'>
<view class="Agreement"> <view class="Agreement">
<view class="title"> <view class="title">
@ -132,6 +131,7 @@
</m-city> </m-city>
</view> </view>
<u-select v-model="showNation" :list="actions" @confirm="nationSelect"></u-select> <u-select v-model="showNation" :list="actions" @confirm="nationSelect"></u-select>
<u-toast ref="uToast" />
</view> </view>
</template> </template>
@ -181,39 +181,37 @@
{ {
value: '3', value: '3',
label: '子女' label: '子女'
},{ }, {
value: '4', value: '4',
label: '(外)孙子女' label: '(外)孙子女'
} ,{ }, {
value: '5', value: '5',
label: '父母' label: '父母'
} ,{ }, {
value: '6', value: '6',
label: '(外)祖父母' label: '(外)祖父母'
} ,{ }, {
value: '7', value: '7',
label: '兄弟姐妹' label: '兄弟姐妹'
} ,{ }, {
value: '8', value: '8',
label: '儿媳' label: '儿媳'
} ,{ }, {
value: '9', value: '9',
label: '女婿' label: '女婿'
} ,{ }, {
value: '10', value: '10',
label: '孙子女' label: '孙子女'
} ,{ }, {
value: '11', value: '11',
label: '侄子女' label: '侄子女'
} ,{ }, {
value: '12', value: '12',
label: '曾孙子女' label: '曾孙子女'
}, }, , {
,{
value: '13', value: '13',
label: '祖父母' label: '祖父母'
}, }, , {
,{
value: '99', value: '99',
label: '其他' label: '其他'
}, },
@ -286,10 +284,10 @@
sexname: '', sexname: '',
birthDate: '', birthDate: '',
cityCode: '', cityCode: '',
householdCardNo:'', householdCardNo: '',
householdRelationship:'', householdRelationship: '',
}, },
householdRelationship:'', householdRelationship: '',
timer: null, timer: null,
addresslength: null, addresslength: null,
patientDiseaseInfoList: [], // patientDiseaseInfoList: [], //
@ -409,7 +407,7 @@
} 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)
@ -417,11 +415,8 @@
that.$refs.uToast.show({ that.$refs.uToast.show({
title: '注册成功', title: '注册成功',
type: 'success', type: 'success',
duration: '1000', back: 2,
}) })
uni.switchTab({
url: '/pages/homepage/homepage',
});
} else { } else {
that.$refs.uToast.show({ that.$refs.uToast.show({
title: res.msg, title: res.msg,
@ -571,7 +566,7 @@
that.query.source = 'REGISTER_YOURSELF' that.query.source = 'REGISTER_YOURSELF'
that.query.invitationPatientId = null that.query.invitationPatientId = null
} }
this.query.phone=uni.getStorageSync("phone") this.query.phone = uni.getStorageSync("phone")
// const chooseLocation = requirePlugin('chooseLocation'); // const chooseLocation = requirePlugin('chooseLocation');
// const location = chooseLocation.getLocation(); // null // const location = chooseLocation.getLocation(); // null
// if (location) { // if (location) {