From a9d053785b297a0df6ebdd2eaea842c0784c7d3b Mon Sep 17 00:00:00 2001
From: chenyc <501753378@qq.com>
Date: 星期二, 26 八月 2025 10:45:03 +0800
Subject: [PATCH] gx
---
src/views/home/index.vue | 19 +++++++++++++------
1 files changed, 13 insertions(+), 6 deletions(-)
diff --git a/src/views/home/index.vue b/src/views/home/index.vue
index 2d3e440..acfddc2 100644
--- a/src/views/home/index.vue
+++ b/src/views/home/index.vue
@@ -64,14 +64,18 @@
<div class="viewInfo">
<div class="box">
<div class="crainfo">
- <div class="tizhong">{{patientInfo.weight}}</div>
+ <div class="tizhong">{{最近体重血压.体重}}</div>
</div>
<div class="hanzhi">体重(kg)</div>
<div class="yinyu">Patient weight data</div>
</div>
<div class="box">
<div class="crainfo">
- <div class="xueya">{{patientInfo.pressure}}</div>
+ <div class="xueya">
+ <div v-if="最近体重血压.血压">{{最近体重血压.血压.split('/')[0]}}</div>
+ <div style="height: 1px;background-color: #909399;"></div>
+ <div v-if="最近体重血压.血压">{{最近体重血压.血压.split('/')[1]}}</div>
+ </div>
</div>
<div class="hanzhi">血压(mmHg)</div>
<div class="yinyu">Patient blood pressure data</div>
@@ -117,7 +121,7 @@
</div>
<van-tabbar v-model="active" @change="tabChang">
<van-tabbar-item name="home" icon="like">首页</van-tabbar-item>
- <van-tabbar-item name="jifen" icon="cart-circle-o">积分商城</van-tabbar-item>
+ <van-tabbar-item name="xuanjiao" icon="smile-o">宣教</van-tabbar-item>
<van-tabbar-item name="my" icon="manager">我的</van-tabbar-item>
</van-tabbar>
</div>
@@ -139,15 +143,15 @@
const tabChang=(index:any)=>{
if (index==='home'){
router.push('/')
- } else if (index==='jifen') {
- router.push('jifenShangCheng')
+ } else if (index==='xuanjiao') {
+ router.push('xuanjiao')
} else if (index==='my') {
router.push('my')
}
}
const topath=(url:string)=>{
console.log('sss')
- if (url==='/report'){
+ if (url==='/report222'){
Toast('此功能暂未开通')
} else {
router.push(url)
@@ -156,6 +160,9 @@
const patientInfo=computed(() => {
return userInfo.patient
})
+ const 最近体重血压=computed(() => {
+ return userInfo.最近体重血压
+ })
const Info=computed(() => {
return userInfo.info
})
--
Gitblit v1.8.0