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

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.5 MiB

View File

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