From b8ce0e7f0652aab9d9b0df9c5fbaebd924d31cc2 Mon Sep 17 00:00:00 2001
From: chenyc <501753378@qq.com>
Date: 星期日, 04 六月 2023 09:52:24 +0800
Subject: [PATCH] upbug
---
src/views/report/index.vue | 21 ++++++++++++++++++---
1 files changed, 18 insertions(+), 3 deletions(-)
diff --git a/src/views/report/index.vue b/src/views/report/index.vue
index 1475ab6..8189866 100644
--- a/src/views/report/index.vue
+++ b/src/views/report/index.vue
@@ -1,5 +1,11 @@
<template>
<div class="report">
+ <van-nav-bar
+ title=""
+ left-text="返回"
+ left-arrow
+ @click="fanhui"
+ />
<div class="inputdiv">
<van-field left-icon="search" class="input" v-model="inputValue" placeholder="模糊匹配项目、日期检索" />
</div>
@@ -13,7 +19,7 @@
</van-row>
<van-row class="lable">
<van-col span="12">检验值</van-col>
- <van-col span="12" style="text-align: right; color: #769AFF ;">血红蛋白:102</van-col>
+ <van-col span="12" style="text-align: right; color: #769AFF ;" @click="topath('/reportItem')">点击查看详情</van-col>
</van-row>
<van-row class="lable">
<van-col span="12">最新检查日期</van-col>
@@ -26,16 +32,25 @@
</template>
<script lang="ts" setup>
import {ref,reactive,watchEffect,watch} from 'vue'
+ import {useRouter} from 'vue-router'
+ const router=useRouter()
const inputValue=ref('')
+ const topath=(url:string)=>{
+ console.log('sss')
+ router.push(url)
+ }
+ const fanhui=()=>{
+ router.go(-1)
+ }
</script>
-<style lang="scss">
+<style scoped lang="scss">
.report{
background-color: #F6FAFF;
padding: 0;
.inputdiv{
width: 94%;
margin-left: 3%;
- margin-top: 10px;
+ margin-top: 5px;
.input{
width: 100%;
// height: 33px;
--
Gitblit v1.8.0