修改
@ -82,3 +82,14 @@ export function savehr(data) {
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
//最后一次记录
|
||||
export function recordlast(identity) {
|
||||
return request({
|
||||
url: `/fd/ps/record/last/${identity}`,
|
||||
method: 'get',
|
||||
header: {
|
||||
Authorization: 'Bearer' + ' ' + uni.getStorageSync('token')
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
@ -26,9 +26,17 @@
|
||||
</view>
|
||||
<view class="text">
|
||||
<view class="p">
|
||||
肥胖
|
||||
过重
|
||||
</view>
|
||||
<view class="ptwo">
|
||||
24~27.9
|
||||
</view>
|
||||
</view>
|
||||
<view class="text">
|
||||
<view class="p">
|
||||
肥胖
|
||||
</view>
|
||||
<view class="ptwo" style="color:#FFA115">
|
||||
≥28
|
||||
</view>
|
||||
</view>
|
||||
@ -401,7 +409,7 @@
|
||||
flex-wrap: wrap;
|
||||
|
||||
.text {
|
||||
width: 33%;
|
||||
width: 25%;
|
||||
margin-bottom: 40rpx;
|
||||
|
||||
.p {
|
||||
@ -445,4 +453,4 @@
|
||||
}
|
||||
}
|
||||
}
|
||||
</style>
|
||||
</style>
|
||||
|
||||
@ -4,9 +4,9 @@
|
||||
<view class="title">
|
||||
— 正常范围 —
|
||||
</view>
|
||||
<view class="add" @click="addBloodFat">
|
||||
<!-- <view class="add" @click="addBloodFat">
|
||||
+ 添加数据
|
||||
</view>
|
||||
</view> -->
|
||||
<view class="texts">
|
||||
<view class="text">
|
||||
<view class="p">
|
||||
@ -405,4 +405,4 @@
|
||||
}
|
||||
}
|
||||
}
|
||||
</style>
|
||||
</style>
|
||||
|
||||
@ -81,7 +81,88 @@
|
||||
left: 49%;
|
||||
top: 50%;
|
||||
}
|
||||
|
||||
.titletexts{
|
||||
.bloodpressure{
|
||||
width: 100%;
|
||||
position: absolute;
|
||||
left:6%;
|
||||
top:50%;
|
||||
.bloodpressureitem{
|
||||
.colorone,.colortwo,.colorthree{
|
||||
font-size: 21rpx;
|
||||
font-weight: 400;
|
||||
color: #595959;
|
||||
.dot{
|
||||
width: 17rpx;
|
||||
height: 17rpx;
|
||||
background: #26A888;
|
||||
border-radius: 50%;
|
||||
margin-right: 10rpx;
|
||||
}
|
||||
}
|
||||
.colortwo{
|
||||
.dot{
|
||||
background: #FFA115;
|
||||
}
|
||||
}
|
||||
.colorthree{
|
||||
.dot{
|
||||
background: #FF756D;
|
||||
}
|
||||
}
|
||||
view{
|
||||
display: inline-block;
|
||||
}
|
||||
.mmHg{
|
||||
font-size: 21rpx;
|
||||
color: #595959;
|
||||
padding:0 20rpx 0 10rpx;
|
||||
}
|
||||
.bloodpressuretitle{
|
||||
font-size: 41rpx;
|
||||
font-weight: 500;
|
||||
color: #000000;
|
||||
}
|
||||
}
|
||||
}
|
||||
.time{
|
||||
position: absolute;
|
||||
top:22%;
|
||||
left:6%;
|
||||
font-size: 24rpx;
|
||||
color: #595959;
|
||||
}
|
||||
image{
|
||||
width: 250rpx;
|
||||
height: 70rpx;
|
||||
position: absolute;
|
||||
left:50%;
|
||||
transform: translateX(-50%);
|
||||
}
|
||||
.bmi{
|
||||
image{
|
||||
width: 260rpx !important;
|
||||
}
|
||||
}
|
||||
.title{
|
||||
position: absolute;
|
||||
bottom:20rpx;
|
||||
padding-left: 30rpx;
|
||||
text:nth-child(1) {
|
||||
font-size: 56rpx;
|
||||
font-weight: 500;
|
||||
color: #000000;
|
||||
vertical-align: baseline;
|
||||
}
|
||||
text:nth-child(2) {
|
||||
padding-left: 10rpx;
|
||||
font-size: 24rpx;
|
||||
font-weight: 400;
|
||||
color: #595959;
|
||||
vertical-align: baseline;
|
||||
}
|
||||
}
|
||||
}
|
||||
.itemtitle {
|
||||
position: absolute;
|
||||
font-size: 28rpx;
|
||||
@ -107,4 +188,4 @@
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
<template>
|
||||
<view class="app">
|
||||
<view class="top">
|
||||
<view class="device">
|
||||
<view class="device" @tap='goaddequipment'>
|
||||
<image src="../../static/pageC/device.png" mode=""></image>
|
||||
<span class="deviceitem">智能设备</span>
|
||||
<view class="itemdata">
|
||||
@ -21,101 +21,375 @@
|
||||
<view class="itemtitle">
|
||||
血糖
|
||||
</view>
|
||||
<view class="itemtext">
|
||||
您30天未测量
|
||||
<view class="" v-if="!dataone">
|
||||
<view class="itemtext">
|
||||
快来测量吧~
|
||||
</view>
|
||||
<view class="itemtext two">
|
||||
您30天未测量
|
||||
</view>
|
||||
<image src="../../static/pageC/sugar.png" mode=""></image>
|
||||
</view>
|
||||
<view class="itemtext two">
|
||||
快来测量吧~
|
||||
<view class="titletexts" v-else>
|
||||
<view class="time">
|
||||
{{dataone.date}}
|
||||
</view>
|
||||
<view class="" v-if="dataone.bucket=='4'">
|
||||
<image src="../../static/pageC/oneimage.png" mode="" v-if="Number(dataone.val)<4.4"></image>
|
||||
<image src="../../static/pageC/twoimage.png" mode=""
|
||||
v-if="Number(dataone.val)>=4.4&&Number(dataone.val)<=7"></image>
|
||||
<image src="../../static/pageC/threeimage.png" mode="" v-if="Number(dataone.val)>7"></image>
|
||||
</view>
|
||||
<view class="" v-else>
|
||||
<image src="../../static/pageC/oneimage.png" mode="" v-if="Number(dataone.val)<4.4"></image>
|
||||
<image src="../../static/pageC/twoimage.png" mode=""
|
||||
v-if="Number(dataone.val)>4.4&&Number(dataone.val)<=10"></image>
|
||||
<image src="../../static/pageC/threeimage.png" mode="" v-if="Number(dataone.val)>10"></image>
|
||||
</view>
|
||||
<view class="title">
|
||||
<text>{{dataone.val}}</text>
|
||||
<text>mmol/L</text>
|
||||
</view>
|
||||
</view>
|
||||
<image src="../../static/pageC/sugar.png" mode=""></image>
|
||||
</view>
|
||||
<view class="item" @tap='gohealthdata(1)'>
|
||||
<view class="itemtitle">
|
||||
血压
|
||||
</view>
|
||||
<view class="itemtext">
|
||||
您30天未测量
|
||||
<view class="" v-if="!datatwo">
|
||||
<view class="itemtext">
|
||||
快来测量吧~
|
||||
</view>
|
||||
<view class="itemtext two">
|
||||
您30天未测量
|
||||
</view>
|
||||
<image src="../../static/pageC/bloodpressure.png" mode=""></image>
|
||||
</view>
|
||||
<view class="itemtext two">
|
||||
快来测量吧~
|
||||
<view class="titletexts" v-else>
|
||||
<view class="time">
|
||||
{{datatwo.date}}
|
||||
</view>
|
||||
<view class="bloodpressure">
|
||||
<view class="bloodpressureitem">
|
||||
<view class="bloodpressuretitle">
|
||||
{{datatwo.ssy}}
|
||||
</view>
|
||||
<view class="mmHg">
|
||||
mmHg
|
||||
</view>
|
||||
<view class="colorone" v-if="datatwo.ssy<90">
|
||||
<view class="dot">
|
||||
</view>
|
||||
过低
|
||||
</view>
|
||||
<view class="colortwo" v-if="datatwo.ssy>=90&&datatwo.ssy<=140">
|
||||
<view class="dot">
|
||||
</view>
|
||||
正常
|
||||
</view>
|
||||
<view class="colorthree" v-if="datatwo.ssy>=140">
|
||||
<view class="dot">
|
||||
</view>
|
||||
过高
|
||||
</view>
|
||||
</view>
|
||||
<view class="bloodpressureitem">
|
||||
<view class="bloodpressuretitle">
|
||||
{{datatwo.szy}}
|
||||
</view>
|
||||
<view class="mmHg">
|
||||
mmHg
|
||||
</view>
|
||||
<view class="colorone" v-if="datatwo.szy<60">
|
||||
<view class="dot">
|
||||
</view>
|
||||
过低
|
||||
</view>
|
||||
<view class="colortwo" v-if="datatwo.szy>=60&&datatwo.szy<=90">
|
||||
<view class="dot">
|
||||
</view>
|
||||
正常
|
||||
</view>
|
||||
<view class="colorthree" v-if="datatwo.szy>90">
|
||||
<view class="dot">
|
||||
</view>
|
||||
过高
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<image src="../../static/pageC/bloodpressure.png" mode=""></image>
|
||||
</view>
|
||||
<view class="item" @tap='gohealthdata(2)'>
|
||||
<view class="itemtitle">
|
||||
血脂
|
||||
</view>
|
||||
<view class="itemtext">
|
||||
您30天未测量
|
||||
<view class="" v-if="!datathree">
|
||||
<view class="itemtext">
|
||||
快来测量吧~
|
||||
</view>
|
||||
<view class="itemtext two">
|
||||
您30天未测量
|
||||
</view>
|
||||
<image src="../../static/pageC/bloodfat.png" mode=""></image>
|
||||
</view>
|
||||
<view class="itemtext two">
|
||||
快来测量吧~
|
||||
<view class="titletexts" v-else>
|
||||
<view class="time">
|
||||
{{datathree.date}}
|
||||
</view>
|
||||
<view class="bloodpressure" style="top:40%">
|
||||
<view class="bloodpressureitem">
|
||||
<view class="bloodpressuretitle">
|
||||
{{datathree.tc}}
|
||||
</view>
|
||||
<view class="mmHg">
|
||||
mmol/L
|
||||
</view>
|
||||
<view class="colorone" v-if="datathree.tc<3.0">
|
||||
<view class="dot">
|
||||
</view>
|
||||
过低
|
||||
</view>
|
||||
<view class="colortwo" v-if="datathree.tc>=3.0&&datathree.tc<=5.7">
|
||||
<view class="dot">
|
||||
</view>
|
||||
正常
|
||||
</view>
|
||||
<view class="colorthree" v-if="datathree.tc>5.7">
|
||||
<view class="dot">
|
||||
</view>
|
||||
过高
|
||||
</view>
|
||||
</view>
|
||||
<view class="bloodpressureitem">
|
||||
<view class="bloodpressuretitle">
|
||||
{{datathree.tg}}
|
||||
</view>
|
||||
<view class="mmHg">
|
||||
mmol/L
|
||||
</view>
|
||||
<view class="colorone" v-if="datathree.tg<0.5">
|
||||
<view class="dot">
|
||||
</view>
|
||||
过低
|
||||
</view>
|
||||
<view class="colortwo" v-if="datathree.tg>=0.5&&datathree.tg<=1.7">
|
||||
<view class="dot">
|
||||
</view>
|
||||
正常
|
||||
</view>
|
||||
<view class="colorthree" v-if="datathree.tg>1.7">
|
||||
<view class="dot">
|
||||
</view>
|
||||
过高
|
||||
</view>
|
||||
</view>
|
||||
<view class="bloodpressureitem">
|
||||
<view class="bloodpressuretitle">
|
||||
{{datathree.hdl}}
|
||||
</view>
|
||||
<view class="mmHg">
|
||||
mmol/L
|
||||
</view>
|
||||
<view class="colorone" v-if="datathree.hdl<0.9">
|
||||
<view class="dot">
|
||||
</view>
|
||||
过低
|
||||
</view>
|
||||
<view class="colortwo" v-if="datathree.hdl>=0.9&&datathree.hdl<=1.8">
|
||||
<view class="dot">
|
||||
</view>
|
||||
正常
|
||||
</view>
|
||||
<view class="colorthree" v-if="datathree.hdl>1.8">
|
||||
<view class="dot">
|
||||
</view>
|
||||
过高
|
||||
</view>
|
||||
</view>
|
||||
<view class="bloodpressureitem">
|
||||
<view class="bloodpressuretitle">
|
||||
{{datathree.ldl}}
|
||||
</view>
|
||||
<view class="mmHg">
|
||||
mmol/L
|
||||
</view>
|
||||
<view class="colorone" v-if="datathree.ldl<2.1">
|
||||
<view class="dot">
|
||||
</view>
|
||||
过低
|
||||
</view>
|
||||
<view class="colortwo" v-if="datathree.ldl>=2.1&&datathree.ldl<=3.1">
|
||||
<view class="dot">
|
||||
</view>
|
||||
正常
|
||||
</view>
|
||||
<view class="colorthree" v-if="datathree.ldl>3.1">
|
||||
<view class="dot">
|
||||
</view>
|
||||
过高
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<image src="../../static/pageC/bloodfat.png" mode=""></image>
|
||||
</view>
|
||||
<view class="item" @tap='gohealthdata(3)'>
|
||||
<view class="itemtitle">
|
||||
BMI
|
||||
</view>
|
||||
<view class="itemtext">
|
||||
您30天未测量
|
||||
<view class="" v-if="!datafour">
|
||||
<view class="itemtext">
|
||||
快来测量吧~
|
||||
</view>
|
||||
<view class="itemtext two">
|
||||
您30天未测量
|
||||
</view>
|
||||
<image src="../../static/pageC/dkw.png" mode=""></image>
|
||||
</view>
|
||||
<view class="itemtext two">
|
||||
快来测量吧~
|
||||
<view class="titletexts" v-else>
|
||||
<view class="time">
|
||||
{{dataone.date}}
|
||||
</view>
|
||||
<view class="bmi">
|
||||
<image src="../../static/pageC/bmi1.png" mode="" v-if="Number(datafour.val)<18.5"></image>
|
||||
<image src="../../static/pageC/bmi2.png" mode=""
|
||||
v-if="Number(datafour.val)>=18.5&&Number(datafour.val)<=23.9"></image>
|
||||
<image src="../../static/pageC/bmi3.png" mode=""
|
||||
v-if="Number(datafour.val)>23.9&&Number(datafour.val)<=27.9"></image>
|
||||
<image src="../../static/pageC/bmi4.png" mode="" v-if="Number(datafour.val)>=27.9"></image>
|
||||
</view>
|
||||
<view class="title">
|
||||
<text>{{datafour.val}}</text>
|
||||
<text>kg/m^2</text>
|
||||
</view>
|
||||
</view>
|
||||
<image src="../../static/pageC/dkw.png" mode=""></image>
|
||||
</view>
|
||||
<view class="item" @tap='gohealthdata(4)'>
|
||||
<view class="itemtitle">
|
||||
血氧
|
||||
</view>
|
||||
<view class="itemtext">
|
||||
您30天未测量
|
||||
<view class="" v-if="!datafive">
|
||||
<view class="itemtext">
|
||||
快来测量吧~
|
||||
</view>
|
||||
<view class="itemtext two">
|
||||
您30天未测量
|
||||
</view>
|
||||
<image src="../../static/pageC/oxygen.png" mode=""></image>
|
||||
</view>
|
||||
<view class="itemtext two">
|
||||
快来测量吧~
|
||||
<view class="titletexts" v-else>
|
||||
<view class="time">
|
||||
{{dataone.date}}
|
||||
</view>
|
||||
<image src="../../static/pageC/xueyangone.png" mode="" v-if="Number(datafive.val)<95"></image>
|
||||
<image src="../../static/pageC/xueyangtwo.png" mode="" v-if="Number(datafive.val)>=95"></image>
|
||||
<view class="title">
|
||||
<text>{{datafive.val}}</text>
|
||||
<text>%</text>
|
||||
</view>
|
||||
</view>
|
||||
<image src="../../static/pageC/oxygen.png" mode=""></image>
|
||||
</view>
|
||||
<view class="item" @tap='gohealthdata(5)'>
|
||||
<view class="itemtitle">
|
||||
心率
|
||||
</view>
|
||||
<view class="itemtext">
|
||||
您30天未测量
|
||||
<view class="" v-if="!datasix">
|
||||
<view class="itemtext">
|
||||
快来测量吧~
|
||||
</view>
|
||||
<view class="itemtext two">
|
||||
您30天未测量
|
||||
</view>
|
||||
<image src="../../static/pageC/heartrate.png" mode=""></image>
|
||||
</view>
|
||||
<view class="itemtext two">
|
||||
快来测量吧~
|
||||
<view class="titletexts" v-else>
|
||||
<view class="time">
|
||||
{{dataone.date}}
|
||||
</view>
|
||||
<image src="../../static/pageC/oneimage.png" mode="" v-if="Number(datasix.val)<60"></image>
|
||||
<image src="../../static/pageC/twoimage.png" mode=""
|
||||
v-if="Number(datasix.val)>=60&&Number(datasix.val)<=100"></image>
|
||||
<image src="../../static/pageC/threeimage.png" mode="" v-if="Number(datasix.val)>100"></image>
|
||||
<view class="title">
|
||||
<text>{{datasix.val}}</text>
|
||||
<text>次/分</text>
|
||||
</view>
|
||||
</view>
|
||||
<image src="../../static/pageC/heartrate.png" mode=""></image>
|
||||
</view>
|
||||
<view class="item" @tap='gohealthdata(6)'>
|
||||
<view class="itemtitle">
|
||||
体温
|
||||
</view>
|
||||
<view class="itemtext">
|
||||
您30天未测量
|
||||
<view class="" v-if="!dataseven">
|
||||
<view class="itemtext">
|
||||
快来测量吧~
|
||||
</view>
|
||||
<view class="itemtext two">
|
||||
您30天未测量
|
||||
</view>
|
||||
<image src="../../static/pageC/temperature.png" mode=""></image>
|
||||
</view>
|
||||
<view class="itemtext two">
|
||||
快来测量吧~
|
||||
<view class="titletexts" v-else>
|
||||
<view class="time">
|
||||
{{dataone.date}}
|
||||
</view>
|
||||
<image src="../../static/pageC/oneimage.png" mode="" v-if="Number(dataseven.val)<36"></image>
|
||||
<image src="../../static/pageC/twoimage.png" mode=""
|
||||
v-if="Number(dataseven.val)>=36&&Number(dataseven.val)<=37"></image>
|
||||
<image src="../../static/pageC/threeimage.png" mode="" v-if="Number(dataseven.val)>37"></image>
|
||||
<view class="title">
|
||||
<text>{{dataseven.val}}</text>
|
||||
<text>℃</text>
|
||||
</view>
|
||||
</view>
|
||||
<image src="../../static/pageC/temperature.png" mode=""></image>
|
||||
</view>
|
||||
|
||||
|
||||
|
||||
|
||||
</view>
|
||||
</view>
|
||||
</template>
|
||||
<script>
|
||||
import {
|
||||
recordlast
|
||||
} from '@/api/examinationapi/add.js'
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
|
||||
dataone: null,
|
||||
datatwo: null,
|
||||
datathree: null,
|
||||
datafour: null,
|
||||
datafive: null,
|
||||
datasix: null,
|
||||
dataseven: null,
|
||||
}
|
||||
},
|
||||
onShow() {
|
||||
this.info();
|
||||
},
|
||||
methods: {
|
||||
info() {
|
||||
// userinfo.cardNo,
|
||||
recordlast('370882199909092123').then(res => {
|
||||
res.data.forEach(e => {
|
||||
e.type == '1' ? this.dataone = e : ''
|
||||
e.type == '2' ? this.datatwo = e : ''
|
||||
e.type == '3' ? this.datathree = e : ''
|
||||
e.type == '4' ? this.datafour = e : ''
|
||||
e.type == '5' ? this.datafive = e : ''
|
||||
e.type == '6' ? this.datasix = e : ''
|
||||
e.type == '7' ? this.dataseven = e : ''
|
||||
})
|
||||
this.datatwo.szy = this.datatwo.val.split('/')[1]
|
||||
this.datatwo.ssy = this.datatwo.val.split('/')[0]
|
||||
this.datathree.tc = this.datathree.val.split('/')[0]
|
||||
this.datathree.tg = this.datathree.val.split('/')[1]
|
||||
this.datathree.hdl = this.datathree.val.split('/')[2]
|
||||
this.datathree.ldl = this.datathree.val.split('/')[3]
|
||||
})
|
||||
},
|
||||
goaddequipment() {
|
||||
uni.navigateTo({
|
||||
url: "/pagesC/addequipment/addequipment"
|
||||
})
|
||||
},
|
||||
gohealthdata(index) {
|
||||
uni.navigateTo({
|
||||
url: `/pagesC/healthdata/healthdata?index=${index}`
|
||||
|
||||
@ -1,14 +1,5 @@
|
||||
<template>
|
||||
<view class="app">
|
||||
<view class="uptext">
|
||||
<view class="pressureg">
|
||||
舒张压
|
||||
</view>
|
||||
<input placeholder="请输入数值" border="bottom" v-model="dbp" fontSize='50rpx' inputAlign='center'></input>
|
||||
<view class="text">
|
||||
mmHg
|
||||
</view>
|
||||
</view>
|
||||
<view class="uptext">
|
||||
<view class="pressured">
|
||||
收缩压
|
||||
@ -18,6 +9,15 @@
|
||||
mmHg
|
||||
</view>
|
||||
</view>
|
||||
<view class="uptext">
|
||||
<view class="pressureg">
|
||||
舒张压
|
||||
</view>
|
||||
<input placeholder="请输入数值" border="bottom" v-model="dbp" fontSize='50rpx' inputAlign='center'></input>
|
||||
<view class="text">
|
||||
mmHg
|
||||
</view>
|
||||
</view>
|
||||
<view class="uptext">
|
||||
<view class="heart">
|
||||
心率
|
||||
|
||||
BIN
static/pageC/bmi1.png
Normal file
|
After Width: | Height: | Size: 1.8 KiB |
BIN
static/pageC/bmi2.png
Normal file
|
After Width: | Height: | Size: 1.4 KiB |
BIN
static/pageC/bmi3.png
Normal file
|
After Width: | Height: | Size: 1.6 KiB |
BIN
static/pageC/bmi4.png
Normal file
|
After Width: | Height: | Size: 1.7 KiB |
BIN
static/pageC/oneimage.png
Normal file
|
After Width: | Height: | Size: 1.9 KiB |
BIN
static/pageC/threeimage.png
Normal file
|
After Width: | Height: | Size: 1.6 KiB |
BIN
static/pageC/twoimage.png
Normal file
|
After Width: | Height: | Size: 1.4 KiB |
BIN
static/pageC/xueyangone.png
Normal file
|
After Width: | Height: | Size: 1.9 KiB |
BIN
static/pageC/xueyangtwo.png
Normal file
|
After Width: | Height: | Size: 1.4 KiB |