修改
This commit is contained in:
parent
8a128613c1
commit
d670b4d8b7
@ -1,5 +1,6 @@
|
|||||||
<template>
|
<template>
|
||||||
<view class="app">
|
<view class="app">
|
||||||
|
<!-- <img src="../images/beijing.png" alt="" class="background-image" /> -->
|
||||||
<view class="health" v-if="healthdata">
|
<view class="health" v-if="healthdata">
|
||||||
<view class="health_top">
|
<view class="health_top">
|
||||||
<image v-if="healthdata.hiEva < 650" :src="require('../images/red.png')" />
|
<image v-if="healthdata.hiEva < 650" :src="require('../images/red.png')" />
|
||||||
@ -13,19 +14,19 @@
|
|||||||
</view>
|
</view>
|
||||||
<view class="health_body">
|
<view class="health_body">
|
||||||
<view class="healthitem">
|
<view class="healthitem">
|
||||||
血压(mmHg):{{healthdata.physicalSign.bp.sbp?healthdata.physicalSign.bp.sbp:''}}/{{healthdata.physicalSign.bp.dbp?healthdata.physicalSign.bp.dbp:''}}
|
血压(mmHg):{{healthdata.physicalSign.bp.sbp?healthdata.physicalSign.bp.sbp:''}}/{{healthdata.physicalSign.bp.dbp?healthdata.physicalSign.bp.dbp:''}}
|
||||||
</view>
|
</view>
|
||||||
<view class="healthitem">
|
<view class="healthitem">
|
||||||
空腹血糖(mmol/L):{{healthdata.physicalSign.bg.bg?healthdata.physicalSign.bg.bg:''}}
|
空腹血糖(mmol/L):{{healthdata.physicalSign.bg.bg?healthdata.physicalSign.bg.bg:''}}
|
||||||
</view>
|
</view>
|
||||||
<view class="healthitem">
|
<view class="healthitem">
|
||||||
血脂(TC/LDL-C):{{healthdata.physicalSign.bf.tc?healthdata.physicalSign.bf.tc:''}}/{{healthdata.physicalSign.bf.ldlc?healthdata.physicalSign.bf.ldlc:''}}
|
血脂(TC/LDL-C):{{healthdata.physicalSign.bf.tc?healthdata.physicalSign.bf.tc:''}}/{{healthdata.physicalSign.bf.ldlc?healthdata.physicalSign.bf.ldlc:''}}
|
||||||
</view>
|
</view>
|
||||||
<view class="healthitem">
|
<view class="healthitem">
|
||||||
体质指数(BMI):{{healthdata.physicalSign.bmi.bmi?healthdata.physicalSign.bmi.bmi:''}}
|
体质指数(BMI):{{healthdata.physicalSign.bmi.bmi?healthdata.physicalSign.bmi.bmi:''}}
|
||||||
</view>
|
</view>
|
||||||
<view class="healthitem">
|
<view class="healthitem">
|
||||||
腰围(cm):{{healthdata.physicalSign.waist.waist?healthdata.physicalSign.waist.waist:''}}
|
腰围(cm):{{healthdata.physicalSign.waist.waist?healthdata.physicalSign.waist.waist:''}}
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<!-- 折线图 -->
|
<!-- 折线图 -->
|
||||||
@ -43,18 +44,18 @@
|
|||||||
<qiun-data-charts type="line" loadingType="0" :opts="line_opts" :ontouch="true"
|
<qiun-data-charts type="line" loadingType="0" :opts="line_opts" :ontouch="true"
|
||||||
:chartData="bloodsugar" />
|
:chartData="bloodsugar" />
|
||||||
</view>
|
</view>
|
||||||
<view class="zx">
|
|
||||||
<view class="title">
|
|
||||||
体质指数变化趋势
|
|
||||||
</view>
|
|
||||||
<qiun-data-charts type="line" loadingType="0" :opts="line_opts" :ontouch="true" :chartData="BMIdata" />
|
|
||||||
</view>
|
|
||||||
<view class="zx">
|
<view class="zx">
|
||||||
<view class="title">
|
<view class="title">
|
||||||
血脂变化趋势
|
血脂变化趋势
|
||||||
</view>
|
</view>
|
||||||
<qiun-data-charts type="line" loadingType="0" :opts="line_opts" :ontouch="true" :chartData="datalist" />
|
<qiun-data-charts type="line" loadingType="0" :opts="line_opts" :ontouch="true" :chartData="datalist" />
|
||||||
</view>
|
</view>
|
||||||
|
<view class="zx">
|
||||||
|
<view class="title">
|
||||||
|
BMI变化趋势
|
||||||
|
</view>
|
||||||
|
<qiun-data-charts type="line" loadingType="0" :opts="line_opts" :ontouch="true" :chartData="BMIdata" />
|
||||||
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</template>
|
</template>
|
||||||
@ -74,9 +75,11 @@
|
|||||||
cardNo: '',
|
cardNo: '',
|
||||||
healthdata: {},
|
healthdata: {},
|
||||||
line_opts: {
|
line_opts: {
|
||||||
color: ["#1890FF", "#91CB74", "#FAC858", "#EE6666", "#73C0DE", "#3CA272", "#FC8452", "#9A60B4",
|
color: ["#FAC858", "#EE6666", "#73C0DE", "#3CA272", "#FC8452", "#9A60B4",
|
||||||
"#ea7ccc"
|
"#ea7ccc"
|
||||||
],
|
],
|
||||||
|
// fontColor: '#fff',
|
||||||
|
// background: 'rgba(0, 22, 58, 1)',
|
||||||
dataLabel: true,
|
dataLabel: true,
|
||||||
enableScroll: true,
|
enableScroll: true,
|
||||||
touchMoveLimit: 24,
|
touchMoveLimit: 24,
|
||||||
@ -85,16 +88,22 @@
|
|||||||
lineHeight: 40,
|
lineHeight: 40,
|
||||||
disableGrid: true,
|
disableGrid: true,
|
||||||
boundaryGap: "center",
|
boundaryGap: "center",
|
||||||
fontSize: 10,
|
fontSize: 12,
|
||||||
type: 'grid',
|
type: 'grid',
|
||||||
gridType: 'dash',
|
gridType: 'dash',
|
||||||
|
color: '#fff',
|
||||||
itemCount: 3, //x轴单屏显示数据的数量,默认为5个
|
itemCount: 3, //x轴单屏显示数据的数量,默认为5个
|
||||||
scrollShow: true, //新增是否显示滚动条,默认false
|
scrollShow: true, //新增是否显示滚动条,默认false
|
||||||
scrollAlign: 'left', //滚动条初始位置
|
scrollAlign: 'left', //滚动条初始位置
|
||||||
|
// fontColor: '#fff',
|
||||||
|
// background: 'rgba(0, 22, 58, 1)',
|
||||||
},
|
},
|
||||||
yAxis: {
|
yAxis: {
|
||||||
gridType: "dash",
|
gridType: "dash",
|
||||||
dashLength: 2
|
dashLength: 2,
|
||||||
|
fontColor: '#fff',
|
||||||
|
fontSize: 14,
|
||||||
|
// background: 'rgba(0, 22, 58, 1)',
|
||||||
},
|
},
|
||||||
extra: {
|
extra: {
|
||||||
line: {
|
line: {
|
||||||
@ -213,10 +222,22 @@
|
|||||||
|
|
||||||
<style lang="scss">
|
<style lang="scss">
|
||||||
.app {
|
.app {
|
||||||
height: 100%;
|
height: 100vh;
|
||||||
|
overflow: scroll;
|
||||||
// padding: 100rpx 40rpx;
|
// padding: 100rpx 40rpx;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
font-size: 36rpx;
|
font-size: 36rpx;
|
||||||
|
// color: #fff;
|
||||||
|
padding: 0;
|
||||||
|
|
||||||
|
.background-image {
|
||||||
|
width: 100%;
|
||||||
|
height: 100vh;
|
||||||
|
position: absolute;
|
||||||
|
top: 0;
|
||||||
|
left: 0;
|
||||||
|
z-index: -1;
|
||||||
|
}
|
||||||
|
|
||||||
// 健康
|
// 健康
|
||||||
.health {
|
.health {
|
||||||
@ -264,8 +285,11 @@
|
|||||||
|
|
||||||
.healthitem {
|
.healthitem {
|
||||||
text-align: left;
|
text-align: left;
|
||||||
padding: 0 0 40rpx 62rpx;
|
padding: 20rpx 0 20rpx 62rpx;
|
||||||
font-size: 29rpx;
|
font-size: 29rpx;
|
||||||
|
color: #26A888;
|
||||||
|
margin: 10rpx auto;
|
||||||
|
background-color: RGBA(38, 168, 136, 0.1);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -440,11 +440,12 @@
|
|||||||
background-repeat: no-repeat;
|
background-repeat: no-repeat;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
font-size: 36rpx;
|
font-size: 36rpx;
|
||||||
padding-top: 0;
|
padding: 0;
|
||||||
|
|
||||||
.top {
|
.top {
|
||||||
width: 100%;
|
|
||||||
height: 100rpx;
|
height: 100rpx;
|
||||||
|
width: 104%;
|
||||||
|
transform: translateX(-2%);
|
||||||
|
|
||||||
::v-deep .u-tabs {
|
::v-deep .u-tabs {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user