|
|
@ -123,7 +123,8 @@
|
|
|
|
nickname: userinfo.value.nickname,
|
|
|
|
nickname: userinfo.value.nickname,
|
|
|
|
// avatar: '',
|
|
|
|
// avatar: '',
|
|
|
|
phone: userinfo.value.phone,
|
|
|
|
phone: userinfo.value.phone,
|
|
|
|
hospitalId:choosed_h.value?.ID
|
|
|
|
// hospitalId:choosed_h.value?.ID
|
|
|
|
|
|
|
|
hospitalId:hospitals.value[h_index.value].ID
|
|
|
|
}
|
|
|
|
}
|
|
|
|
const res = await api.userinfoUpdae(obj)
|
|
|
|
const res = await api.userinfoUpdae(obj)
|
|
|
|
// console.log('res is ',res)
|
|
|
|
// console.log('res is ',res)
|
|
|
@ -169,8 +170,8 @@
|
|
|
|
function bindPickerChange(e) {
|
|
|
|
function bindPickerChange(e) {
|
|
|
|
console.log(hospitals.value )
|
|
|
|
console.log(hospitals.value )
|
|
|
|
h_index.value = e.detail.value
|
|
|
|
h_index.value = e.detail.value
|
|
|
|
}
|
|
|
|
}
|
|
|
|
</script>
|
|
|
|
</script>
|
|
|
|
<template>
|
|
|
|
<template>
|
|
|
|
<view class="userInfoBox page-box page-bg-gray">
|
|
|
|
<view class="userInfoBox page-box page-bg-gray">
|
|
|
|
<view class="avatar-box">
|
|
|
|
<view class="avatar-box">
|
|
|
@ -250,8 +251,8 @@
|
|
|
|
</view>
|
|
|
|
</view>
|
|
|
|
</uni-popup>
|
|
|
|
</uni-popup>
|
|
|
|
<view class="pb-item pb-item-btn" style="margin-top: 40rpx;" @tap="sumbmitFunc">确定</view>
|
|
|
|
<view class="pb-item pb-item-btn" style="margin-top: 40rpx;" @tap="sumbmitFunc">确定</view>
|
|
|
|
</view>
|
|
|
|
</view>
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
|
<style scoped lang="scss">
|
|
|
|
<style scoped lang="scss">
|
|
|
|
.avatar-box{
|
|
|
|
.avatar-box{
|
|
|
|
display: flex;
|
|
|
|
display: flex;
|
|
|
@ -379,5 +380,5 @@
|
|
|
|
.uni-popup__wrapper{
|
|
|
|
.uni-popup__wrapper{
|
|
|
|
width: 100%;
|
|
|
|
width: 100%;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
</style>
|
|
|
|
</style>
|