修改个人信息

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 {
width: 100%;
position: fixed;
top: 200rpx;
// top: 200rpx;
z-index: 999;
background-color: #F7F5F5 !important;
}
@ -25,7 +25,7 @@
.u-navbar {
display: block;
height: 200rpx;
// height: 200rpx;
image {
margin: 0 4% 0 4%;

View File

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