2022-11-03 18:16:30 +08:00
|
|
|
|
<template>
|
|
|
|
|
|
<view class="app">
|
|
|
|
|
|
<view class="user">
|
2022-11-09 10:57:02 +08:00
|
|
|
|
<view class="img" v-if="appPersonallist.avatar==''||!appPersonallist.avatar">
|
|
|
|
|
|
<image style="height: 110rpx;" src="../../static/person.png" mode=""></image>
|
2022-11-03 18:16:30 +08:00
|
|
|
|
</view>
|
2022-11-09 10:57:02 +08:00
|
|
|
|
<view class="img" v-else>
|
|
|
|
|
|
<image :src="baseurl+appPersonallist.avatar" mode=""></image>
|
2022-11-03 18:16:30 +08:00
|
|
|
|
</view>
|
2022-11-09 10:57:02 +08:00
|
|
|
|
<!-- <view class="phone">
|
|
|
|
|
|
{{appPersonallist.phonenumber}}
|
|
|
|
|
|
</view> -->
|
|
|
|
|
|
<view class="nickname">
|
|
|
|
|
|
{{appPersonallist.userName}}
|
2022-11-03 18:16:30 +08:00
|
|
|
|
</view>
|
|
|
|
|
|
<view class="modify" @tap='updatainfo()'>
|
|
|
|
|
|
修改信息
|
|
|
|
|
|
<u-icon name="arrow-right" color="#ffffff" size="32"></u-icon>
|
|
|
|
|
|
</view>
|
|
|
|
|
|
</view>
|
|
|
|
|
|
<view class="information">
|
|
|
|
|
|
<view class="item">
|
|
|
|
|
|
姓名:{{appPersonallist.nickName}}
|
|
|
|
|
|
</view>
|
|
|
|
|
|
<view class="item">
|
|
|
|
|
|
电话:{{appPersonallist.phonenumber }}
|
|
|
|
|
|
</view>
|
|
|
|
|
|
<view class="item" style="height:100%">
|
|
|
|
|
|
|
|
|
|
|
|
</view>
|
|
|
|
|
|
<view class="item" style="border:none;" v-if="appPersonallist.nurseStationSysUserVOList">
|
|
|
|
|
|
护理站: {{appPersonallist.nurseStationSysUserVOList[0].nurseStationName}}
|
|
|
|
|
|
</view>
|
|
|
|
|
|
</view>
|
|
|
|
|
|
<view class="External" style="margin: 100rpx auto 0;">
|
|
|
|
|
|
<view class="lefttext">
|
|
|
|
|
|
我的设备
|
|
|
|
|
|
</view>
|
|
|
|
|
|
<image src="../../static/jiantou.png" mode=""></image>
|
|
|
|
|
|
</view>
|
2022-11-10 10:51:44 +08:00
|
|
|
|
<!-- <view class="External">
|
2022-11-03 18:16:30 +08:00
|
|
|
|
<view class="lefttext">
|
|
|
|
|
|
修改密码
|
|
|
|
|
|
</view>
|
|
|
|
|
|
<image src="../../static/jiantou.png" mode=""></image>
|
2022-11-10 10:51:44 +08:00
|
|
|
|
</view> -->
|
2022-11-03 18:16:30 +08:00
|
|
|
|
</view>
|
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
|
|
<script>
|
|
|
|
|
|
import {
|
|
|
|
|
|
nursePerson,
|
|
|
|
|
|
} from '@/api/personnal/personal.js';
|
|
|
|
|
|
import baseurl from '@/api/baseurl.js'
|
|
|
|
|
|
export default {
|
|
|
|
|
|
data() {
|
|
|
|
|
|
return {
|
|
|
|
|
|
baseurl: '', //url
|
|
|
|
|
|
phonenumber: '',
|
2022-11-09 10:57:02 +08:00
|
|
|
|
avatar: '',
|
2022-11-03 18:16:30 +08:00
|
|
|
|
password: '',
|
2022-11-09 10:57:02 +08:00
|
|
|
|
userId: '',
|
2022-11-03 18:16:30 +08:00
|
|
|
|
appPersonallist: [], //获取个人信息
|
|
|
|
|
|
nurseStationSysUserVOList: [],
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
},
|
2022-11-10 16:40:52 +08:00
|
|
|
|
onShow() {
|
2022-11-09 10:57:02 +08:00
|
|
|
|
this.baseurl = baseurl;
|
|
|
|
|
|
let that = this
|
|
|
|
|
|
try {
|
|
|
|
|
|
const value = uni.getStorageSync('phonenumber');
|
|
|
|
|
|
if (value) {
|
|
|
|
|
|
that.phonenumber = value
|
|
|
|
|
|
}
|
|
|
|
|
|
} catch (e) {}
|
|
|
|
|
|
try {
|
|
|
|
|
|
const value = uni.getStorageSync('password');
|
|
|
|
|
|
if (value) {
|
|
|
|
|
|
that.password = value
|
|
|
|
|
|
}
|
|
|
|
|
|
} catch (e) {}
|
|
|
|
|
|
this.myInfo()
|
|
|
|
|
|
},
|
2022-11-10 16:40:52 +08:00
|
|
|
|
onLoad(options) {},
|
2022-11-03 18:16:30 +08:00
|
|
|
|
methods: {
|
|
|
|
|
|
myInfo() {
|
|
|
|
|
|
nursePerson(this.phonenumber, this.password).then(res => {
|
|
|
|
|
|
this.appPersonallist = res.data
|
|
|
|
|
|
})
|
|
|
|
|
|
},
|
|
|
|
|
|
updatainfo() {
|
|
|
|
|
|
console.log()
|
|
|
|
|
|
uni.navigateTo({
|
|
|
|
|
|
url: `/pages/Modifyinformation/Modifyinformation`
|
|
|
|
|
|
})
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
|
|
<style lang="scss">
|
|
|
|
|
|
.app {
|
|
|
|
|
|
padding: 0;
|
|
|
|
|
|
font-size: 35rpx;
|
|
|
|
|
|
height: 100vh;
|
|
|
|
|
|
|
|
|
|
|
|
.External {
|
|
|
|
|
|
width: 94%;
|
|
|
|
|
|
height: 100rpx;
|
|
|
|
|
|
line-height: 100rpx;
|
|
|
|
|
|
margin: 20rpx auto;
|
|
|
|
|
|
padding-left: 5%;
|
|
|
|
|
|
background: #FFFFFF;
|
|
|
|
|
|
box-shadow: 0px 9rpx 31rpx 9rpx rgba(0, 0, 0, 0.03);
|
|
|
|
|
|
border-radius: 20rpx;
|
|
|
|
|
|
position: relative;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
image {
|
|
|
|
|
|
width: 18rpx;
|
|
|
|
|
|
height: 27rpx;
|
|
|
|
|
|
position: absolute;
|
|
|
|
|
|
right: 5%;
|
|
|
|
|
|
top: 50%;
|
|
|
|
|
|
transform: translateY(-50%);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
2022-11-10 10:51:44 +08:00
|
|
|
|
.lefttext {
|
2022-11-03 18:16:30 +08:00
|
|
|
|
display: inline-block;
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.information {
|
|
|
|
|
|
width: 94%;
|
|
|
|
|
|
background: #FFFFFF;
|
|
|
|
|
|
box-shadow: 0px 9rpx 31rpx 9rpx rgba(0, 0, 0, 0.03);
|
|
|
|
|
|
border-radius: 20rpx;
|
|
|
|
|
|
position: absolute;
|
|
|
|
|
|
top: 18%;
|
|
|
|
|
|
left: 3%;
|
|
|
|
|
|
color: #000000;
|
|
|
|
|
|
padding-left: 5%;
|
|
|
|
|
|
overflow: hidden;
|
|
|
|
|
|
font-size: 35rpx;
|
|
|
|
|
|
|
|
|
|
|
|
.item {
|
|
|
|
|
|
// height: 110rpx;
|
|
|
|
|
|
line-height: 110rpx;
|
|
|
|
|
|
border-bottom: 1rpx solid #D8D4D4;
|
|
|
|
|
|
|
|
|
|
|
|
.address {
|
|
|
|
|
|
height: 40rpx;
|
|
|
|
|
|
// font-size: 30rpx;
|
|
|
|
|
|
line-height: 40rpx;
|
|
|
|
|
|
display: inline-block;
|
|
|
|
|
|
width: 80%;
|
|
|
|
|
|
margin-left: 30rpx;
|
|
|
|
|
|
margin-top: 30rpx;
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.user {
|
|
|
|
|
|
width: 100%;
|
|
|
|
|
|
height: 500rpx;
|
|
|
|
|
|
background: #4C7BC9;
|
|
|
|
|
|
position: relative;
|
|
|
|
|
|
color: #FFFFFF;
|
|
|
|
|
|
|
|
|
|
|
|
.modify {
|
|
|
|
|
|
font-size: 32rpx;
|
|
|
|
|
|
position: absolute;
|
|
|
|
|
|
right: 3%;
|
2022-11-09 10:57:02 +08:00
|
|
|
|
top: 18%;
|
2022-11-03 18:16:30 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.nickname {
|
|
|
|
|
|
position: absolute;
|
2022-11-09 10:57:02 +08:00
|
|
|
|
top: 18%;
|
|
|
|
|
|
left: 28%;
|
2022-11-03 18:16:30 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.phone {
|
|
|
|
|
|
position: absolute;
|
|
|
|
|
|
top: 13%;
|
2022-11-09 10:57:02 +08:00
|
|
|
|
left: 28%;
|
2022-11-03 18:16:30 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.img {
|
2022-11-09 10:57:02 +08:00
|
|
|
|
width: 120rpx;
|
|
|
|
|
|
height: 120rpx;
|
2022-11-03 18:16:30 +08:00
|
|
|
|
position: absolute;
|
|
|
|
|
|
top: 10%;
|
2022-11-09 10:57:02 +08:00
|
|
|
|
left: 5%;
|
2022-11-03 18:16:30 +08:00
|
|
|
|
|
|
|
|
|
|
image {
|
|
|
|
|
|
border-radius: 50%;
|
2022-11-09 10:57:02 +08:00
|
|
|
|
width: 120rpx;
|
2022-11-03 18:16:30 +08:00
|
|
|
|
margin-left: 50%;
|
|
|
|
|
|
margin-top: 50%;
|
|
|
|
|
|
transform: translate(-50%, -50%);
|
2022-11-09 10:57:02 +08:00
|
|
|
|
height: 120rpx;
|
2022-11-03 18:16:30 +08:00
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
</style>
|