45
chenyc
2022-10-21 251b58150984896c86cd306cd3a4db77f14b7e1a
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>