修改信息

This commit is contained in:
闫晓茹 2023-10-16 14:19:19 +08:00
parent f250d0438b
commit 1408a11a3f
3 changed files with 14 additions and 14 deletions

View File

@ -148,7 +148,7 @@
_value.splice(_value.indexOf('0'),1)
}
if(_value.indexOf(val) == '-1'){
_value.push(val)
_value.push(val)
}else{
_value.splice(_value.indexOf(val),1)
}
@ -242,6 +242,9 @@
border: none;
}
::v-deep .select-modal.show.data-v-2ee6bce8 {
margin-bottom: -24px;}
.main{
font-size: 28rpx;
}

View File

@ -15,7 +15,7 @@
</view>
<view class="item">
<span>性别</span>
<u-radio-group v-model="appPersonallist.sex" size='44'>
<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">
{{item.name}}
@ -36,7 +36,7 @@
<view class="item">
<span>身份证号</span>
<u-input :clearable='false' v-model="appPersonallist.cardNo" placeholder="请输入身份证号" type="text"
maxlength='18' />
maxlength='18' disabled/>
</view>
<view class="item" @tap='showPicker'>
<span>所属区域</span>
@ -185,13 +185,13 @@
birthDate: '',
locationName: '',
sex: '',
sexname: '',
cityCode: '1',
},
addresslength: null,
}
},
onLoad(options) {
console.log(options, '555')
this.areaInfo();
this.baseurl = baseurl
var that = this
@ -201,9 +201,9 @@
appPersonal(patientid).then(Response => {
if (Response.code == 200) {
if (Response.data.sex == 'MALE') {
that.appPersonallist.sex = '男';
that.appPersonallist.sexname = '男';
} else if (Response.data.sex == 'FEMALE') {
that.appPersonallist.sex = '女';
that.appPersonallist.sexname = '女';
}
that.appPersonallist = Response.data
that.value2=Response.data.diseaseList.map(String)
@ -214,7 +214,6 @@
if (that.appPersonallist.headPictureUrl) {
that.img = baseurl + that.appPersonallist.headPictureUrl
}
console.log(Response)
if (that.appPersonallist.areaName) {
that.address = that.appPersonallist.areaName
@ -233,7 +232,6 @@
},
//
selectChange(val) {
console.log(val);
},
cancel() {},
//
@ -277,9 +275,9 @@
data() {
var that = this
that.appPersonallist.openid = uni.getStorageSync('openid');
if (that.appPersonallist.sex == '男') {
if (that.appPersonallist.sexname == '男') {
that.appPersonallist.sex = 'MALE';
} else if (that.appPersonallist.sex == '女') {
} else if (that.appPersonallist.sexname == '女') {
that.appPersonallist.sex = 'FEMALE';
}
if (that.radio == 1) {
@ -300,7 +298,6 @@
success(res) {
that.appPersonallist.headPictureUrl = JSON.parse(res.data).imgUrl
that.appPersonallist.cityCode = '1'
console.log(that.appPersonallist.sex,'4')
registerdata(that.appPersonallist).then(res => {
if (res.code == 200) {
that.$refs.uToast.show({
@ -455,4 +452,4 @@
<style lang="scss">
@import "./modify.scss"
</style>
</style>

View File

@ -3,7 +3,7 @@
<u-navbar :is-back="false" :background="background" class="u-navbar">
<image src="@/static/pagesB/fanhui.png" mode="" @tap="goprevious"></image>
<view class="title" @tap="goprevious">
商品订单
服务预约
</view>
<view class="inputs">
<i class="icon"></i>
@ -82,4 +82,4 @@
<style lang="scss">
@import './ServiceAppointment.scss'
</style>
</style>