This commit is contained in:
shidongli 2024-05-08 17:27:34 +08:00
parent 78b7c712e4
commit e7f9bc14b9
3 changed files with 85 additions and 101 deletions

View File

@ -1,6 +1,6 @@
<template>
<view class="app">
<view class="health">
<view class="health" v-if="healthdata">
<view class="health_top">
<image image v-if="healthdata.hiEva<650" :src="require('../images/red.png')">
<image image v-if="healthdata.hiEva>850" :src="require('../images/green.png')" image>

View File

@ -74,7 +74,6 @@
this.itemList = res.data
this.show=false
})
})
}
},

View File

@ -10,6 +10,8 @@
<view class="health" v-if="tabscurrent==0">
<healthindex></healthindex>
</view>
<!-- 疾病预警 -->
<!-- 健康处方 -->
<view class="" v-if="tabscurrent==2">
<Precords></Precords>
@ -17,24 +19,34 @@
<!-- 疾病预警 -->
<view class="disease" v-if="tabscurrent==1">
<view class="btnleftalls">
<view class="btnleftall">
<view class="btnleft" @tap="diseasecv(item)">
脑血管疾病
</view>
<view class="btnleft" @tap="diseaselc">
缺血性心血管疾病风险
</view>
<view class="btnleft" @tap="diseaselu">
肺癌风险
</view>
<view class="btnleft" @tap="diseaseck">
肾功能不全风险
</view>
</view>
<view class="btnright">
<image :src="require('../images/renti.png')" mode=""></image>
</view>
<view class="left">
<view class="btnleftall">
<view class="btnleft" @tap="diseasecv">
<img src="../images/zitikuang.png" alt="" />
<span class="item" style="left: 101rpx;">脑血管疾病</span>
</view>
<view class="btnleft" @tap="diseaselc">
<img src="../images/zitikuang.png" alt="" />
<span class="item" style="left: 52rpx;">缺血性心血管疾病风险</span>
</view>
</view>
<view class="btnleftall">
<view class="btnleft" @tap="diseaselu">
<img src="../images/zitikuang.png" alt="" />
<span class="item" style="left: 101rpx;">肺癌风险</span>
</view>
<view class="btnleft" @tap="diseaseck">
<img src="../images/zitikuang.png" alt="" />
<span class="item" style="left: 80rpx;">肾功能不全风险</span>
</view>
</view>
</view>
</view>
</view>
@ -295,7 +307,7 @@
</u-table>
</u-popup>
<u-toast ref="uToast" />
</view>
</template>
@ -336,7 +348,7 @@
backgroundColor: '#26A888',
},
datalist: null,
identity: '',
identity: '370522196411282177',
cvdEvaRecord: {},
lcdEvaRecord: {},
ckdEvaRecord: {},
@ -401,72 +413,17 @@
})
}
},
diseaseck() {
if (this.ckdEvaRecord) {
this.lookopenck = true
} else {
this.$refs.uToast.show({
title: '暂无内容',
type: 'error'
})
}
diseaseck() {
if (this.ckdEvaRecord) {
this.lookopenck = true
} else {
this.$refs.uToast.show({
title: '暂无内容',
type: 'error'
})
}
},
getServerData() {
//
setTimeout(() => {
//
let res = {
categories: ["2018", "2019", "2020", "2021", "2022", "2023"],
series: [{
name: "成交量A",
data: [35, 8, 25, 37, 4, 20]
},
{
name: "成交量B",
data: [70, 40, 65, 100, 44, 68]
},
{
name: "成交量C",
data: [100, 80, 95, 150, 112, 132]
}
]
};
this.chartData = JSON.parse(JSON.stringify(res));
}, 500);
},
getServerData1() {
if (this.echartData) {
setTimeout(() => {
// let res = {
// categories: [],
// series: [{
// name: "",
// data: []
// }]
// }
res.series[0].data = this.echartData.list.map(e => e.bg)
res.categories = this.echartData.list.map(e => e.timename + e.measureTime)
this.datalist = res
// let restwo = {
// series: [{
// data: [{
// "name": "" + this.echartData.calc.lowerNum + "",
// "value": this.echartData.calc.lowerNum
// }, {
// "name": "" + this.echartData.calc.normalNum + "",
// "value": this.echartData.calc.normalNum
// }, {
// "name": "" + this.echartData.calc.higherNum + "",
// "value": this.echartData.calc.higherNum
// }]
// }]
// };
this.datalisttwo = restwo
}, 500)
}
},
},
//tabs
tabschange(index) {
console.log(index)
@ -488,7 +445,12 @@
page {
background-color: #fff;
}
.app {
height: 100%;
background-image: url('../images/beijing.png');
background-size: 100% 100%;
background-repeat: no-repeat;
text-align: center;
font-size: 36rpx;
@ -545,35 +507,58 @@
width: 100%;
position: relative;
background-color: #fff;
.btnleftalls {
display: flex;
// display: flex;
width: 100%;
}
.left {
height: 30vh;
}
.btnleftall {
width: 30%;
width: 100%;
display: flex;
margin-bottom: 30rpx;
}
.btnleft {
margin-top: 27%;
margin-left: 2%;
line-height: 100rpx;
position: relative;
width: 42%;
/* margin-left: 2%; */
line-height: 50px;
text-align: center;
height: 100rpx;
font-size: 22rpx;
background-color: #F2F2F2;
margin: 0 auto;
img {
position: absolute;
width: 283rpx;
height: 100rpx;
left: 21rpx;
}
.item {
position: absolute;
left: 133rpx;
}
// background-color: #F2F2F2;
}
.btnright {
height: 70vh;
// position: absolute;
// left: 5%;
width: 70%;
// width: 70%;
// height: 100rpx;
// background-color: yellow;
image {
height: 362px;
height: 70vh;
// position: absolute;
display: inline-block;
// left: 21%;