From 43af31998b7251ab5819bfb7f889d73b8a5c1e3d Mon Sep 17 00:00:00 2001
From: chenyc <501753378@qq.com>
Date: 星期五, 21 十月 2022 15:25:44 +0800
Subject: [PATCH] 56

---
 src/views/record/index.vue |   28 +++++++++++++++++++++++++---
 1 files changed, 25 insertions(+), 3 deletions(-)

diff --git a/src/views/record/index.vue b/src/views/record/index.vue
index a7996b7..a968ca3 100644
--- a/src/views/record/index.vue
+++ b/src/views/record/index.vue
@@ -1,5 +1,11 @@
 <template>
     <div class="record">
+        <van-nav-bar
+            title=""
+            left-text="返回"
+            left-arrow
+            @click="fanhui"
+        />
         <div>
             <van-calendar
                 color="#769AFF"
@@ -68,8 +74,13 @@
 <script lang="ts" setup>
     // import {ref,reactive,watchEffect,watch} from 'vue'
     import { Calendar as vanCalendar } from 'vant'
+    import {useRouter} from 'vue-router'
+    const router=useRouter()
     const selectData=(data:any)=>{
         console.log(data)
+    }
+    const fanhui=()=>{
+        router.go(-1)
     }
     const formatter=(day:any)=>{
         const month = day.date.getMonth() + 1
@@ -125,20 +136,31 @@
                 font-weight: 400;
                 color: #AAAAAA;
                 line-height: 40px;
+                margin-bottom: 10px;
             }
             .item{
-                margin-top: 20px;
+                // margin-top: 10px;
                 width: 90%;
                 margin-left: 5%;
-                height: 40px;
+                height: 30px;
                 font-size: 13px;
                 font-family: PingFangSC-Medium, PingFang SC;
                 font-weight: 500;
                 color: #333333;
-                line-height: 40px;
+                line-height: 30px;
                 background: #FFFFFF;
                 border-bottom:#F1F1F2 solid 1px;
             }
         }
     }
+    .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

--
Gitblit v1.8.0