From d664ad16afcee39e2e3e6438f93e7261bcffcd11 Mon Sep 17 00:00:00 2001
From: chenyc <501753378@qq.com>
Date: 星期二, 27 九月 2022 16:17:20 +0800
Subject: [PATCH] up
---
src/views/paiban/index.vue | 20 +++++++++
src/views/home/index.vue | 12 +++---
src/views/report/item/index.vue | 7 +++
src/views/record/index.vue | 15 +++++++
src/views/report/index.vue | 9 +++-
src/router/index.ts | 4 +-
src/App.vue | 5 ++
src/views/prescriptionDrug/index.vue | 5 ++
src/main.ts | 3 +
9 files changed, 67 insertions(+), 13 deletions(-)
diff --git a/src/App.vue b/src/App.vue
index 6f12690..92e5641 100644
--- a/src/App.vue
+++ b/src/App.vue
@@ -13,5 +13,10 @@
display: grid;
background-color:#F6FAFF;
}
+.fanhui{
+ padding-top: 20px;
+ width: 100%;
+ background: red;
+}
</style>
diff --git a/src/main.ts b/src/main.ts
index 63f4fe4..b1fede2 100644
--- a/src/main.ts
+++ b/src/main.ts
@@ -5,7 +5,7 @@
// import 'vant/es/toast/style'
// 引入全局样式
import 'vant/lib/index.css'
-import { Col, Row,Icon,Button,Field } from 'vant'
+import { Col, Row,Icon,Button,Field,NavBar } from 'vant'
import { createPinia } from 'pinia'
// mock数据
// import './utils/mock'
@@ -16,6 +16,7 @@
app.use(Icon)
app.use(Button)
app.use(Field)
+app.use(NavBar)
app.use(router)
app.use(createPinia())
app.mount('#app')
diff --git a/src/router/index.ts b/src/router/index.ts
index 4de68e0..ae0f7ba 100644
--- a/src/router/index.ts
+++ b/src/router/index.ts
@@ -8,7 +8,7 @@
{ path: '/my', name: 'myMine', component: () => import('views/myMine/index.vue'),meta:{title:'我的'}},
{ path: '/paiban', name: 'paiban', component: () => import('views/paiban/index.vue'),meta:{title:'透析排班'}},
{ path: '/report', name: 'report', component: () => import('views/report/index.vue'),meta:{title:'检查报告'}},
- { path: '/report/item', name: 'reportItem', component: () => import('views/report/item/index.vue'),meta:{title:'报告查看'}},
+ { path: '/reportItem', name: 'reportItem', component: () => import('views/report/item/index.vue'),meta:{title:'报告查看'}},
{ path: '/prescriptionDrug', name: 'prescriptionDrug', component: () => import('views/prescriptionDrug/index.vue'),meta:{title:'透析医嘱'}},
{ path: '/record', name: 'record', component: () => import('views/record/index.vue'),meta:{title:'透析记录'}},
{ path: '/test', name: 'Test', component: () => import('views/test.vue')}
@@ -16,7 +16,7 @@
const router = createRouter({
history: createWebHistory(),
- base:'http://wechat.ihemodialysis.com/',
+ base:'',
routes,
})
diff --git a/src/views/home/index.vue b/src/views/home/index.vue
index 8633b2d..cba1bf2 100644
--- a/src/views/home/index.vue
+++ b/src/views/home/index.vue
@@ -79,36 +79,36 @@
</div>
<div class="listInfos">
<div class="listrow">
- <div class="rowioc" contenteditable>
+ <div class="rowioc">
<van-image
width="24px"
height="24px"
:src="List1"
/>
</div>
- <div class="rowtext" contenteditable>
+ <div class="rowtext">
<div class="rowb">健康趋势</div>
<div class="rowc">Health trends</div>
</div>
- <div class="rowiocback" contenteditable>
+ <div class="rowiocback">
<van-image
:src="Black"
/>
</div>
</div>
<div class="listrow">
- <div class="rowioc" contenteditable>
+ <div class="rowioc">
<van-image
width="24px"
height="24px"
:src="List1"
/>
</div>
- <div class="rowtext" contenteditable>
+ <div class="rowtext">
<div class="rowb">健康趋势</div>
<div class="rowc">Health trends</div>
</div>
- <div class="rowiocback" contenteditable>
+ <div class="rowiocback">
<van-image
:src="Black"
/>
diff --git a/src/views/paiban/index.vue b/src/views/paiban/index.vue
index c11a730..fbc6eb0 100644
--- a/src/views/paiban/index.vue
+++ b/src/views/paiban/index.vue
@@ -1,5 +1,13 @@
<template>
<div class="paiban">
+ <van-nav-bar
+ title=""
+ left-text="返回"
+ left-arrow
+ />
+ <!-- <div class="fanhui">
+ 返回上一页
+ </div> -->
<div>
<van-calendar
color="#769AFF"
@@ -86,7 +94,7 @@
return day
}
</script>
-<style lang="scss">
+<style scoped lang="scss">
.paibanclass{
// background: rgb(228, 231, 225);
color: blue;
@@ -155,4 +163,14 @@
}
}
}
+ .fanhui{
+ // padding-top: 20px;
+ width: 100%;
+ background: #4696F9;
+ text-align: center;
+ border-radius: 5px;
+ color:#FFFFFF;
+ height: 36px;
+ line-height: 36px;
+}
</style>
\ No newline at end of file
diff --git a/src/views/prescriptionDrug/index.vue b/src/views/prescriptionDrug/index.vue
index 4a4c04f..020791d 100644
--- a/src/views/prescriptionDrug/index.vue
+++ b/src/views/prescriptionDrug/index.vue
@@ -1,5 +1,10 @@
<template>
<div class="report">
+ <van-nav-bar
+ title=""
+ left-text="返回"
+ left-arrow
+ />
<div class="inputdiv">
<van-field left-icon="search" class="input" v-model="inputValue" placeholder="模糊匹配项目、日期检索" />
</div>
diff --git a/src/views/record/index.vue b/src/views/record/index.vue
index a7996b7..35d4d8e 100644
--- a/src/views/record/index.vue
+++ b/src/views/record/index.vue
@@ -1,5 +1,10 @@
<template>
<div class="record">
+ <van-nav-bar
+ title=""
+ left-text="返回"
+ left-arrow
+ />
<div>
<van-calendar
color="#769AFF"
@@ -141,4 +146,14 @@
}
}
}
+ .fanhui{
+ // padding-top: 20px;
+ width: 100%;
+ background: #4696F9;
+ text-align: center;
+ border-radius: 5px;
+ color:#FFFFFF;
+ height: 36px;
+ line-height: 36px;
+}
</style>
\ No newline at end of file
diff --git a/src/views/report/index.vue b/src/views/report/index.vue
index 5bd2d25..9f9b563 100644
--- a/src/views/report/index.vue
+++ b/src/views/report/index.vue
@@ -1,5 +1,10 @@
<template>
<div class="report">
+ <van-nav-bar
+ title=""
+ left-text="返回"
+ left-arrow
+ />
<div class="inputdiv">
<van-field left-icon="search" class="input" v-model="inputValue" placeholder="模糊匹配项目、日期检索" />
</div>
@@ -13,7 +18,7 @@
</van-row>
<van-row class="lable">
<van-col span="12">检验值</van-col>
- <van-col span="12" style="text-align: right; color: #769AFF ;" @click="topath('/report/item')">点击查看详情</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>
@@ -34,7 +39,7 @@
router.push(url)
}
</script>
-<style lang="scss">
+<style scoped lang="scss">
.report{
background-color: #F6FAFF;
padding: 0;
diff --git a/src/views/report/item/index.vue b/src/views/report/item/index.vue
index 24d98ba..4f65d15 100644
--- a/src/views/report/item/index.vue
+++ b/src/views/report/item/index.vue
@@ -1,5 +1,10 @@
<template>
<div class="reportItem">
+ <van-nav-bar
+ title=""
+ left-text="返回"
+ left-arrow
+ />
<div class="tou">
<van-row>
<van-col span="10">
@@ -76,7 +81,7 @@
router.push(url)
}
</script>
-<style lang="scss">
+<style scoped lang="scss">
.reportItem{
background-color: #F6FAFF;
padding: 0 0 10 0;
--
Gitblit v1.8.0