修改
This commit is contained in:
parent
daedd957df
commit
ceec734c7e
@ -1,9 +1,9 @@
|
|||||||
import request from "@/api/request.js"
|
import request from "@/api/request.js"
|
||||||
|
|
||||||
//获取健康档案Key
|
//获取健康档案Key
|
||||||
export function getHealthKey(cardNo) {
|
export function getHealthKey(cardNo, openid) {
|
||||||
return request({
|
return request({
|
||||||
url: `/applet/signinfo/getHealthKey/${cardNo}`,
|
url: `/applet/signinfo/getHealthKey/${cardNo}/${openid}`,
|
||||||
method: 'get',
|
method: 'get',
|
||||||
header: {
|
header: {
|
||||||
region: uni.getStorageSync('region'),
|
region: uni.getStorageSync('region'),
|
||||||
|
|||||||
@ -109,6 +109,11 @@
|
|||||||
url: `/pagesB/orderlist/orderlist?userinfo=${userinfo}`
|
url: `/pagesB/orderlist/orderlist?userinfo=${userinfo}`
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
} else {
|
||||||
|
this.$refs.uToast.show({
|
||||||
|
title: res.msg,
|
||||||
|
type: 'error',
|
||||||
|
})
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|||||||
@ -2,13 +2,13 @@
|
|||||||
<view class="app">
|
<view class="app">
|
||||||
<view class="health" v-if="healthdata">
|
<view class="health" v-if="healthdata">
|
||||||
<view class="health_top">
|
<view class="health_top">
|
||||||
<image image v-if="healthdata.hiEva<650" :src="require('../images/red.png')">
|
<image v-if="healthdata.hiEva<650" :src="require('../images/red.png')" />
|
||||||
<image image v-if="healthdata.hiEva>=850" :src="require('../images/green.png')" image>
|
<image v-else-if="850>healthdata.hiEva >= 650" :src="require('../images/yellow.png')" />
|
||||||
<image v-if="850>healthdata.hiEva >= 650" :src="require('../images/yellow.png')" image>
|
<image v-else-if="healthdata.hiEva>=850" :src="require('../images/green.png')" />
|
||||||
<view class="count">
|
<view class="count">
|
||||||
<view class="numbers">{{healthdata.hiEva}}</view>
|
<view class="numbers">{{healthdata.hiEva}}</view>
|
||||||
<view class="healths">健康指数</view>
|
<view class="healths">健康指数</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="health_body">
|
<view class="health_body">
|
||||||
<view class="healthitem">
|
<view class="healthitem">
|
||||||
@ -139,20 +139,16 @@
|
|||||||
let resbloodsugar = {
|
let resbloodsugar = {
|
||||||
categories: [],
|
categories: [],
|
||||||
series: [{
|
series: [{
|
||||||
name: "空腹血糖",
|
name: "空腹血糖",
|
||||||
data: []
|
data: []
|
||||||
},
|
}, ]
|
||||||
|
|
||||||
]
|
|
||||||
}
|
}
|
||||||
let resBMI = {
|
let resBMI = {
|
||||||
categories: [],
|
categories: [],
|
||||||
series: [{
|
series: [{
|
||||||
name: "体质指数",
|
name: "体质指数",
|
||||||
data: []
|
data: []
|
||||||
},
|
}, ]
|
||||||
|
|
||||||
]
|
|
||||||
}
|
}
|
||||||
let resbloodpressure = {
|
let resbloodpressure = {
|
||||||
categories: [],
|
categories: [],
|
||||||
@ -164,23 +160,32 @@
|
|||||||
name: "舒张压",
|
name: "舒张压",
|
||||||
data: []
|
data: []
|
||||||
},
|
},
|
||||||
|
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
// bf血脂变化趋势
|
// bf血脂变化趋势
|
||||||
res.series[0].data = this.healthdata.evaAnalysis.bf.series[0].data
|
this.healthdata.evaAnalysis.bf && this.healthdata.evaAnalysis.bf.series.length > 0 ? res
|
||||||
res.series[1].data = this.healthdata.evaAnalysis.bf.series[1].data
|
.series[0].data = this.healthdata.evaAnalysis.bf.series[0].data : ''
|
||||||
res.categories = this.healthdata.evaAnalysis.bf.xValue
|
this.healthdata.evaAnalysis.bf && this.healthdata.evaAnalysis.bf.series.length > 1 ? res
|
||||||
|
.series[1].data = this.healthdata.evaAnalysis.bf.series[1].data : ''
|
||||||
|
this.healthdata.evaAnalysis.bf.xValue.length > 0 ? res.categories = this.healthdata.evaAnalysis
|
||||||
|
.bf.xValue : ''
|
||||||
//bg血糖
|
//bg血糖
|
||||||
resbloodsugar.series[0].data = this.healthdata.evaAnalysis.bg.series[0].data
|
this.healthdata.evaAnalysis.bg && this.healthdata.evaAnalysis.bg.series.length > 0 ?
|
||||||
resbloodsugar.categories = this.healthdata.evaAnalysis.bg.xValue
|
resbloodsugar.series[0].data = this.healthdata.evaAnalysis.bg.series[0].data : ''
|
||||||
|
this.healthdata.evaAnalysis.bg.xValue.length > 0 ? resbloodsugar.categories = this.healthdata
|
||||||
|
.evaAnalysis.bg.xValue : ''
|
||||||
//bmi体脂
|
//bmi体脂
|
||||||
resBMI.series[0].data = this.healthdata.evaAnalysis.bmi.series[0].data
|
this.healthdata.evaAnalysis.bmi && this.healthdata.evaAnalysis.bmi.series.length > 0 ?
|
||||||
resBMI.categories = this.healthdata.evaAnalysis.bmi.xValue
|
resBMI.series[0].data = this.healthdata.evaAnalysis.bmi.series[0].data : ''
|
||||||
|
this.healthdata.evaAnalysis.bmi.xValue.length > 0 ? resBMI.categories = this.healthdata
|
||||||
|
.evaAnalysis.bmi.xValue : ''
|
||||||
//bp血压
|
//bp血压
|
||||||
resbloodpressure.series[0].data = this.healthdata.evaAnalysis.bp.series[0].data
|
this.healthdata.evaAnalysis.bp && this.healthdata.evaAnalysis.bp.series.length > 0 ?
|
||||||
resbloodpressure.series[1].data = this.healthdata.evaAnalysis.bp.series[1].data
|
resbloodpressure.series[0].data = this.healthdata.evaAnalysis.bp.series[0].data : ""
|
||||||
resbloodpressure.categories = this.healthdata.evaAnalysis.bp.xValue
|
this.healthdata.evaAnalysis.bp && this.healthdata.evaAnalysis.bp.series.length > 1 ?
|
||||||
|
resbloodpressure.series[1].data = this.healthdata.evaAnalysis.bp.series[1].data : ""
|
||||||
|
this.healthdata.evaAnalysis.bp.xValue.length > 0 ? resbloodpressure.categories = this
|
||||||
|
.healthdata.evaAnalysis.bp.xValue : ''
|
||||||
this.datalist = res
|
this.datalist = res
|
||||||
this.bloodsugar = resbloodsugar
|
this.bloodsugar = resbloodsugar
|
||||||
this.BMIdata = resBMI
|
this.BMIdata = resBMI
|
||||||
@ -202,13 +207,11 @@
|
|||||||
.health {
|
.health {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
margin: 0 auto;
|
margin: 0 auto;
|
||||||
|
padding-bottom: 40rpx;
|
||||||
|
|
||||||
// background: red;
|
|
||||||
.health_top {
|
.health_top {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
|
|
||||||
// height: 100%;
|
|
||||||
// background: #FBDA81;
|
|
||||||
.right {
|
.right {
|
||||||
position: relative;
|
position: relative;
|
||||||
font-size: 20rpx;
|
font-size: 20rpx;
|
||||||
@ -218,8 +221,6 @@
|
|||||||
top: 30rpx;
|
top: 30rpx;
|
||||||
line-height: 30rpx;
|
line-height: 30rpx;
|
||||||
left: 471rpx;
|
left: 471rpx;
|
||||||
// left: 288rpx;
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
image {
|
image {
|
||||||
@ -250,13 +251,7 @@
|
|||||||
text-align: left;
|
text-align: left;
|
||||||
padding: 0 0 40rpx 62rpx;
|
padding: 0 0 40rpx 62rpx;
|
||||||
font-size: 29rpx;
|
font-size: 29rpx;
|
||||||
|
|
||||||
// padding-bottom: 40rpx;
|
|
||||||
// position: relative;
|
|
||||||
// left: -53rpx;
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.zx {
|
.zx {
|
||||||
@ -270,7 +265,6 @@
|
|||||||
margin-left: 30rpx;
|
margin-left: 30rpx;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
@ -1,13 +1,14 @@
|
|||||||
<template>
|
<template>
|
||||||
<view class="app">
|
<view class="app">
|
||||||
<view class="prescription">
|
<view class="prescription" v-if="lastrecodedata.ptList">
|
||||||
<view class="record" @tap="recorddata()">
|
<!-- <view class="record" @tap="recorddata()">
|
||||||
处方记录
|
处方记录
|
||||||
</view>
|
</view> -->
|
||||||
<view class="recorditem">
|
<view class="recorditem">
|
||||||
<u-collapse :item-style="itemStyle" :accordion='false' :arrow="false">
|
<u-collapse :item-style="itemStyle" :accordion='false' :arrow="false">
|
||||||
<u-collapse-item :title="item.tempName" v-for="(item, index) in lastrecodedata.ptList" :key="index"
|
<u-collapse-item :title="item.tempName" :open="item.open"
|
||||||
@change='tapcollapse(item)' :class="item.check?'headcollapse':''">
|
v-for="(item, index) in lastrecodedata.ptList" :key="index" @change='tapcollapse(item)'
|
||||||
|
:class="item.check?'headcollapse':''">
|
||||||
<view class="itemtext">
|
<view class="itemtext">
|
||||||
<view class="collapse_top" v-for="uitem in item.ptValList">
|
<view class="collapse_top" v-for="uitem in item.ptValList">
|
||||||
<u-icon name="star-fill" color="#000" size="28"
|
<u-icon name="star-fill" color="#000" size="28"
|
||||||
@ -17,19 +18,21 @@
|
|||||||
<span style="margin-left: 10rpx;" v-if="uitem.itemType=='3'">急症处理</span>
|
<span style="margin-left: 10rpx;" v-if="uitem.itemType=='3'">急症处理</span>
|
||||||
<view class="itemsdata">
|
<view class="itemsdata">
|
||||||
<view class="itemword" v-if="uitem.val=='true'">
|
<view class="itemword" v-if="uitem.val=='true'">
|
||||||
<u-checkbox active-color="#26A888" v-model="checked"> {{uitem.content}}</u-checkbox>
|
<u-checkbox active-color="#26A888" v-model="checked">
|
||||||
|
{{uitem.content}}</u-checkbox>
|
||||||
</view>
|
</view>
|
||||||
<view class="itemword" v-if="uitem.val==null || uitem.val=='false'">
|
<view class="itemword" v-if="uitem.val==null || uitem.val=='false'">
|
||||||
<u-checkbox active-color="#26A888" v-model="checkedfalse">{{uitem.content}}</u-checkbox>
|
<u-checkbox active-color="#26A888"
|
||||||
|
v-model="checkedfalse">{{uitem.content}}</u-checkbox>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
</view>
|
</view>
|
||||||
</u-collapse-item>
|
</u-collapse-item>
|
||||||
</u-collapse>
|
</u-collapse>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
<u-empty v-else text="暂无"></u-empty>
|
||||||
<u-loading :show="show" mode="flower" size="40"></u-loading>
|
<u-loading :show="show" mode="flower" size="40"></u-loading>
|
||||||
</view>
|
</view>
|
||||||
</template>
|
</template>
|
||||||
@ -46,22 +49,20 @@
|
|||||||
lastrecodedata: null,
|
lastrecodedata: null,
|
||||||
cardNo: '',
|
cardNo: '',
|
||||||
itemList: [],
|
itemList: [],
|
||||||
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
this.lastrecodelist()
|
this.lastrecodelist()
|
||||||
|
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
tapcollapse(item) {
|
tapcollapse(item) {
|
||||||
item.check = !item.check
|
item.check = !item.check
|
||||||
},
|
},
|
||||||
lastrecodelist() {
|
lastrecodelist() {
|
||||||
if (uni.getStorageSync("userinfo").cardNo) {
|
if (uni.getStorageSync("userinfo")) {
|
||||||
this.cardNo=uni.getStorageSync("userinfo").cardNo
|
this.cardNo = uni.getStorageSync("userinfo").cardNo
|
||||||
// this.cardNo = '370522196411282177'
|
|
||||||
lastrecode(this.cardNo).then(res => {
|
lastrecode(this.cardNo).then(res => {
|
||||||
|
res.data && res.data.ptList.length > 0 ? res.data.ptList[0].open = true : ''
|
||||||
this.lastrecodedata = res.data
|
this.lastrecodedata = res.data
|
||||||
this.show = false
|
this.show = false
|
||||||
})
|
})
|
||||||
@ -72,10 +73,7 @@
|
|||||||
uni.navigateTo({
|
uni.navigateTo({
|
||||||
url: "/pagesB/Prescriptionrecords/Prescriptionrecords"
|
url: "/pagesB/Prescriptionrecords/Prescriptionrecords"
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
||||||
},
|
},
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
@ -85,10 +83,8 @@
|
|||||||
.app {
|
.app {
|
||||||
height: 100vh;
|
height: 100vh;
|
||||||
background-color: #fff;
|
background-color: #fff;
|
||||||
// padding: 100rpx 40rpx;
|
|
||||||
text-align: center;
|
text-align: center;
|
||||||
font-size: 36rpx;
|
font-size: 36rpx;
|
||||||
|
|
||||||
|
|
||||||
// 健康处方
|
// 健康处方
|
||||||
.prescription {
|
.prescription {
|
||||||
@ -108,11 +104,11 @@
|
|||||||
color: #26A888;
|
color: #26A888;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
::v-deep .u-icon--right {
|
::v-deep .u-icon--right {
|
||||||
color: #26A888 !important;
|
color: #26A888 !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
::v-deep .u-collapse-head {
|
::v-deep .u-collapse-head {
|
||||||
width: 96%;
|
width: 96%;
|
||||||
margin: 0 auto;
|
margin: 0 auto;
|
||||||
@ -131,14 +127,11 @@
|
|||||||
margin-left: auto;
|
margin-left: auto;
|
||||||
background: #26A888;
|
background: #26A888;
|
||||||
font-size: 27rpx;
|
font-size: 27rpx;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.recorditem {
|
.recorditem {
|
||||||
margin-top: 39rpx;
|
margin-top: 39rpx;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
.itemtext {
|
.itemtext {
|
||||||
.collapse_top {
|
.collapse_top {
|
||||||
font-size: 30rpx;
|
font-size: 30rpx;
|
||||||
@ -154,17 +147,11 @@
|
|||||||
|
|
||||||
.itemword {
|
.itemword {
|
||||||
margin: 15rpx;
|
margin: 15rpx;
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
BIN
pagesB/images/beijing.png
Normal file
BIN
pagesB/images/beijing.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 258 KiB |
@ -14,17 +14,16 @@
|
|||||||
</view>
|
</view>
|
||||||
<!-- 疾病预警 -->
|
<!-- 疾病预警 -->
|
||||||
<view class="disease" v-if="tabscurrent==1">
|
<view class="disease" v-if="tabscurrent==1">
|
||||||
<image :src="baseurl+ '/profile/weChatPicture/360beijing.png'" class="background-image" />
|
<img src="../images/beijing.png" alt="" class="background-image" />
|
||||||
<view class="btnleftalls">
|
<view class="btnleftalls">
|
||||||
<view class="btnright">
|
|
||||||
<image :src="require('../images/renti.png')" mode=""></image>
|
|
||||||
</view>
|
|
||||||
<view class="left">
|
<view class="left">
|
||||||
<view class="btnleftall">
|
<view class="btnleftall">
|
||||||
<view class="btnleft" @tap="diseasecv">
|
<view class="btnleft" @tap="diseasecv">
|
||||||
<img src="../images/zitikuang.png" alt="" />
|
<img src="../images/zitikuang.png" alt="" />
|
||||||
<span class="item">脑血管疾病</span>
|
<span class="item">脑血管疾病</span>
|
||||||
</view>
|
</view>
|
||||||
|
</view>
|
||||||
|
<view class="btnleftall">
|
||||||
<view class="btnleft" @tap="diseaselc">
|
<view class="btnleft" @tap="diseaselc">
|
||||||
<img src="../images/zitikuang.png" alt="" />
|
<img src="../images/zitikuang.png" alt="" />
|
||||||
<span class="item">缺血性心血管疾病风险</span>
|
<span class="item">缺血性心血管疾病风险</span>
|
||||||
@ -34,14 +33,18 @@
|
|||||||
<view class="btnleft" @tap="diseaselu">
|
<view class="btnleft" @tap="diseaselu">
|
||||||
<img src="../images/zitikuang.png" alt="" />
|
<img src="../images/zitikuang.png" alt="" />
|
||||||
<span class="item">肺癌风险</span>
|
<span class="item">肺癌风险</span>
|
||||||
|
|
||||||
</view>
|
</view>
|
||||||
|
</view>
|
||||||
|
<view class="btnleftall">
|
||||||
<view class="btnleft" @tap="diseaseck">
|
<view class="btnleft" @tap="diseaseck">
|
||||||
<img src="../images/zitikuang.png" alt="" />
|
<img src="../images/zitikuang.png" alt="" />
|
||||||
<span class="item">肾功能不全风险</span>
|
<span class="item">肾功能不全风险</span>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
<view class="btnright">
|
||||||
|
<image :src="require('../images/renti.png')" mode=""></image>
|
||||||
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<!-- 心血管 -->
|
<!-- 心血管 -->
|
||||||
@ -300,8 +303,7 @@
|
|||||||
</u-tr>
|
</u-tr>
|
||||||
</u-table>
|
</u-table>
|
||||||
</u-popup>
|
</u-popup>
|
||||||
|
<u-toast ref="uToast" />
|
||||||
|
|
||||||
</view>
|
</view>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
@ -435,7 +437,7 @@
|
|||||||
|
|
||||||
.app {
|
.app {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: 110vh;
|
height: 100vh;
|
||||||
background-repeat: no-repeat;
|
background-repeat: no-repeat;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
font-size: 36rpx;
|
font-size: 36rpx;
|
||||||
@ -492,13 +494,14 @@
|
|||||||
.disease {
|
.disease {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
position: relative;
|
position: relative;
|
||||||
height: 110vh;
|
height: calc(100vh - 100rpx);
|
||||||
z-index: 999;
|
z-index: 999;
|
||||||
|
padding-top: 40rpx;
|
||||||
color: #fff !important;
|
color: #fff !important;
|
||||||
|
|
||||||
.background-image {
|
.background-image {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: 120vh;
|
height: calc(100vh - 100rpx);
|
||||||
position: absolute;
|
position: absolute;
|
||||||
top: 0;
|
top: 0;
|
||||||
left: 0;
|
left: 0;
|
||||||
@ -506,13 +509,15 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.btnleftalls {
|
.btnleftalls {
|
||||||
// display: flex;
|
display: flex;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
.left {
|
.left {
|
||||||
height: 30vh;
|
display: flex;
|
||||||
transform: translateY(5%);
|
flex-wrap: wrap;
|
||||||
|
width: 30%;
|
||||||
|
height: 70vh;
|
||||||
}
|
}
|
||||||
|
|
||||||
.btnleftall {
|
.btnleftall {
|
||||||
@ -523,12 +528,11 @@
|
|||||||
|
|
||||||
.btnleft {
|
.btnleft {
|
||||||
position: relative;
|
position: relative;
|
||||||
width: 42%;
|
width: 100%;
|
||||||
/* margin-left: 2%; */
|
|
||||||
line-height: 50px;
|
line-height: 50px;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
height: 160rpx;
|
height: 160rpx;
|
||||||
font-size: 22rpx;
|
font-size: 20rpx;
|
||||||
margin: 0 auto;
|
margin: 0 auto;
|
||||||
line-height: 160rpx;
|
line-height: 160rpx;
|
||||||
|
|
||||||
@ -548,13 +552,9 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.btnright {
|
.btnright {
|
||||||
height: 75vh;
|
height: 70vh;
|
||||||
|
width: 70%;
|
||||||
|
|
||||||
// position: absolute;
|
|
||||||
// left: 5%;
|
|
||||||
// width: 70%;
|
|
||||||
// height: 100rpx;
|
|
||||||
// background-color: yellow;
|
|
||||||
image {
|
image {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
|
|||||||
@ -19,7 +19,7 @@
|
|||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
info() {
|
info() {
|
||||||
getHealthKey(uni.getStorageSync('userinfo').cardNo).then(res => {
|
getHealthKey(uni.getStorageSync('userinfo').cardNo, uni.getStorageSync('openid')).then(res => {
|
||||||
this.src = 'https://qmjk.jiankangdongying.cn/html/gzd/jkda/expLogin.html?key=' + res.data +
|
this.src = 'https://qmjk.jiankangdongying.cn/html/gzd/jkda/expLogin.html?key=' + res.data +
|
||||||
'&dyfs=14'
|
'&dyfs=14'
|
||||||
})
|
})
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user