NurseStationApp/pages/user/user.vue

104 lines
2.3 KiB
Vue
Raw Normal View History

2022-10-24 16:30:14 +08:00
<template>
<view class="app">
<view class="user">
<view class="img">
<image src="../../static/users.png" mode=""></image>
</view>
<view class="phone">
2022-11-01 14:54:09 +08:00
电话{{appPersonallist.phone}}
2022-10-24 16:30:14 +08:00
</view>
<view class="nickname">
点此设置昵称
</view>
2022-11-01 14:54:09 +08:00
<view class="modify" @tap='updatainfo()'>
2022-10-24 16:30:14 +08:00
修改信息
<u-icon name="arrow-right" color="#ffffff" size="32"></u-icon>
</view>
</view>
<view class="information">
<view class="item">
2022-11-01 14:54:09 +08:00
姓名{{appPersonallist.patientName}}
2022-10-24 16:30:14 +08:00
</view>
<view class="item">
2022-11-01 14:54:09 +08:00
电话{{appPersonallist.phone}}
2022-10-24 16:30:14 +08:00
</view>
2022-11-01 14:54:09 +08:00
<view class="item" style="height:100%">
<view class="" style="display: inline-block;">
地址:
</view>
<view class="address">
{{appPersonallist.address}}
</view>
2022-10-24 16:30:14 +08:00
</view>
2022-11-01 14:54:09 +08:00
<view class="item" style="border:none;">
疾病类型:<span style="padding-left: 25rpx;text-overflow: ellipsis;"
v-for="(item,index) in appPersonallist.patientDiseaseInfoList"
:key="index">{{item.diseaseName}}</span>
2022-10-24 16:30:14 +08:00
</view>
</view>
<view class="External" style="margin: 200rpx auto 0;">
<view class="lefttext">
积分:
</view>
<view class="righttext">
2022-11-01 14:54:09 +08:00
{{appPersonallist.integral}}
2022-10-24 16:30:14 +08:00
</view>
<image src="../../static/jiantou.png" mode=""></image>
</view>
<view class="External">
<view class="lefttext">
健康档案
</view>
<view class="righttext">
</view>
<image src="../../static/jiantou.png" mode=""></image>
</view>
<view class="External">
<view class="lefttext">
我的设备
</view>
<view class="righttext">
</view>
<image src="../../static/jiantou.png" mode=""></image>
</view>
</view>
</template>
<script>
2022-11-01 14:54:09 +08:00
import {
appPersonal,
} from '@/api/user/user.js';
import baseurl from '@/api/baseurl.js'
2022-10-24 16:30:14 +08:00
export default {
data() {
return {
2022-11-01 14:54:09 +08:00
patientId: 46,
appPersonallist: [], //获取个人信息
2022-10-24 16:30:14 +08:00
}
2022-11-01 14:54:09 +08:00
},
onLoad(options) {
//获取传值
this.myInfo()
},
methods: {
//获取个人信息
myInfo() {
appPersonal(this.patientId).then(res => {
console.log(res)
this.appPersonallist = res.data
})
},
updatainfo() {
console.log()
uni.navigateTo({
url: `/pages/modify/modify?appPersonallist=${JSON.stringify(this.appPersonallist)}`
})
2022-10-24 16:30:14 +08:00
}
}
}
2022-11-01 14:54:09 +08:00
</script>
<style lang="scss">
@import "./user.scss";
2022-10-24 16:30:14 +08:00
</style>