This commit is contained in:
2024-05-10 08:47:57 +08:00
parent c7029fc2b9
commit daedd957df
3 changed files with 8 additions and 29 deletions

View File

@ -69,7 +69,6 @@
bloodsugar: null, //
BMIdata: null, //
bloodpressure: null, //
checked: true,
cardNo: '',
healthdata: {},
@ -104,12 +103,10 @@
}
}
},
}
},
onShow() {
//
},
mounted() {
this.infohealths()
@ -119,12 +116,10 @@
infohealths() {
if (uni.getStorageSync("userinfo").cardNo) {
this.cardNo = uni.getStorageSync("userinfo").cardNo
// this.cardNo = '370522196411282177'
healthIndexdata(this.cardNo).then(res => {
this.healthdata = res.data
})
}
},
getServerData() {
// if (this.healthdata) {
@ -191,18 +186,14 @@
this.BMIdata = resBMI
this.bloodpressure = resbloodpressure
}, 500)
},
}
}
</script>
<style lang="scss">
.app {
// height: 100vh;
background-color: #fff;
height: 100%;
// padding: 100rpx 40rpx;
text-align: center;
font-size: 36rpx;

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.5 MiB

View File

@ -1,6 +1,5 @@
<template>
<view class="app">
<!-- 功能开发中 -->
<view class="top">
<u-tabs ref="tabs" :scrollable="false" :list="tabslist" bar-height="6" bar-width="60" active-color='#26A888'
:is-scroll="false" :current="tabscurrent" gutter="50" @change="tabschange"></u-tabs>
@ -9,15 +8,13 @@
<view class="health" v-if="tabscurrent==0">
<healthindex></healthindex>
</view>
<!-- 疾病预警 -->
<!-- 健康处方 -->
<view class="" v-if="tabscurrent==2">
<Precords></Precords>
</view>
<!-- 疾病预警 -->
<view class="disease" v-if="tabscurrent==1">
<image :src="require('../images/beijing.png')" class="background-image" />
<image :src="baseurl+ '/profile/weChatPicture/360beijing.png'" class="background-image" />
<view class="btnleftalls">
<view class="btnright">
<image :src="require('../images/renti.png')" mode=""></image>
@ -44,10 +41,8 @@
<span class="item">肾功能不全风险</span>
</view>
</view>
</view>
</view>
</view>
<!-- 心血管 -->
<u-popup v-model="lookopen" mode="center" border-radius="30" :closeable='true'>
@ -316,14 +311,15 @@
} from '@/api/pagesB/threeHundredAndSixty/threeHundredAndSixty.js'
import Precords from '../Precords/Precords.vue'
import Healthindex from '../Healthindex/Healthindex.vue'
import baseurl from '@/api/baseurl.js'
export default {
components: {
Precords,
Healthindex
},
data() {
return {
baseurl: '',
lookopen: false,
open: false,
openfeiai: false,
@ -348,14 +344,14 @@
lucaEvaRecord: {},
};
},
onLoad() {
this.baseurl = baseurl
},
onReady() {},
methods: {
goodsOrderinfo() {
this.identity = uni.getStorageSync('userinfo').cardNo
// console.log(this.identity)
riskWarning(this.identity).then(res => {
console.log(res)
if (res.code == 200) {
this.cvdEvaRecord = res.data.cvdEvaRecord
this.lucaEvaRecord = res.data.lucaEvaRecord
@ -367,13 +363,10 @@
type: 'error'
})
}
})
},
//
diseasecv(item) {
console.log(item)
console.log(this.cvdEvaRecord)
if (this.cvdEvaRecord) {
this.open = true
} else {
@ -393,7 +386,6 @@
type: 'error'
})
}
},
//
diseaselu() {
@ -415,7 +407,6 @@
type: 'error'
})
}
},
//tabs
tabschange(index) {
@ -426,11 +417,7 @@
}
// this.orderTypeList.orderStatus = this.tabslist[index].orderStatus
},
},
}
</script>
@ -562,6 +549,7 @@
.btnright {
height: 75vh;
// position: absolute;
// left: 5%;
// width: 70%;