修改个人信息

This commit is contained in:
闫晓茹 2023-10-16 15:18:40 +08:00
parent 224e1dc7dc
commit aae97adee4
2 changed files with 14 additions and 14 deletions

View File

@ -14,7 +14,7 @@
::v-deep .u-tabs { ::v-deep .u-tabs {
width: 100%; width: 100%;
position: fixed; position: fixed;
top: 200rpx; // top: 200rpx;
z-index: 999; z-index: 999;
background-color: #F7F5F5 !important; background-color: #F7F5F5 !important;
} }
@ -25,7 +25,7 @@
.u-navbar { .u-navbar {
display: block; display: block;
height: 200rpx; // height: 200rpx;
image { image {
margin: 0 4% 0 4%; margin: 0 4% 0 4%;

View File

@ -15,9 +15,9 @@
</view> </view>
<view class="item"> <view class="item">
<span>性别</span> <span>性别</span>
<u-radio-group v-model="appPersonallist.sexname" size='44'> <u-radio-group v-model="sex" size='44'>
<u-radio @change='sexchange' v-for="(item, index) in sexlist" :key="index" :name="item.name" <u-radio @change='sexchange' v-for="(item, index) in sexlist" :key="index"
:disabled="item.disabled"> :name="item.name" :disabled="item.disabled">
{{item.name}} {{item.name}}
</u-radio> </u-radio>
</u-radio-group> </u-radio-group>
@ -36,7 +36,7 @@
<view class="item"> <view class="item">
<span>身份证号</span> <span>身份证号</span>
<u-input :clearable='false' v-model="appPersonallist.cardNo" placeholder="请输入身份证号" type="text" <u-input :clearable='false' v-model="appPersonallist.cardNo" placeholder="请输入身份证号" type="text"
maxlength='18' disabled/> maxlength='18' disabled />
</view> </view>
<view class="item" @tap='showPicker'> <view class="item" @tap='showPicker'>
<span>所属区域</span> <span>所属区域</span>
@ -188,6 +188,7 @@
sexname: '', sexname: '',
cityCode: '1', cityCode: '1',
}, },
sex: '',
addresslength: null, addresslength: null,
} }
}, },
@ -201,12 +202,12 @@
appPersonal(patientid).then(Response => { appPersonal(patientid).then(Response => {
if (Response.code == 200) { if (Response.code == 200) {
if (Response.data.sex == 'MALE') { if (Response.data.sex == 'MALE') {
that.appPersonallist.sexname = '男'; that.sex = '男';
} else if (Response.data.sex == 'FEMALE') { } else if (Response.data.sex == 'FEMALE') {
that.appPersonallist.sexname = '女'; that.sex = '女';
} }
that.appPersonallist = Response.data that.appPersonallist = Response.data
that.value2=Response.data.diseaseList.map(String) that.value2 = Response.data.diseaseList.map(String)
Number(that.appPersonallist.homeLatitude) > 0 ? that.appPersonallist.homeLatitude = Number( Number(that.appPersonallist.homeLatitude) > 0 ? that.appPersonallist.homeLatitude = Number(
that.appPersonallist.homeLatitude) : that.appPersonallist.homeLatitude = null that.appPersonallist.homeLatitude) : that.appPersonallist.homeLatitude = null
Number(that.appPersonallist.homeLongitude) > 0 ? that.appPersonallist.homeLongitude = Number(that.appPersonallist.homeLongitude) > 0 ? that.appPersonallist.homeLongitude =
@ -231,8 +232,7 @@
this.appPersonallist.diseaseList = e.map(Number) this.appPersonallist.diseaseList = e.map(Number)
}, },
// //
selectChange(val) { selectChange(val) {},
},
cancel() {}, cancel() {},
// //
sexchange(e) { sexchange(e) {
@ -275,9 +275,9 @@
data() { data() {
var that = this var that = this
that.appPersonallist.openid = uni.getStorageSync('openid'); that.appPersonallist.openid = uni.getStorageSync('openid');
if (that.appPersonallist.sexname == '男') { if (that.sex == '男') {
that.appPersonallist.sex = 'MALE'; that.appPersonallist.sex = 'MALE';
} else if (that.appPersonallist.sexname == '女') { } else if (that.sex == '女') {
that.appPersonallist.sex = 'FEMALE'; that.appPersonallist.sex = 'FEMALE';
} }
if (that.radio == 1) { if (that.radio == 1) {