NurseStationApp/pages/user/user.vue
2022-11-01 14:54:09 +08:00

104 lines
2.3 KiB
Vue
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<template>
<view class="app">
<view class="user">
<view class="img">
<image src="../../static/users.png" mode=""></image>
</view>
<view class="phone">
电话{{appPersonallist.phone}}
</view>
<view class="nickname">
点此设置昵称
</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.patientName}}
</view>
<view class="item">
电话{{appPersonallist.phone}}
</view>
<view class="item" style="height:100%">
<view class="" style="display: inline-block;">
地址:
</view>
<view class="address">
{{appPersonallist.address}}
</view>
</view>
<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>
</view>
</view>
<view class="External" style="margin: 200rpx auto 0;">
<view class="lefttext">
积分:
</view>
<view class="righttext">
{{appPersonallist.integral}}
</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>
import {
appPersonal,
} from '@/api/user/user.js';
import baseurl from '@/api/baseurl.js'
export default {
data() {
return {
patientId: 46,
appPersonallist: [], //获取个人信息
}
},
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)}`
})
}
}
}
</script>
<style lang="scss">
@import "./user.scss";
</style>