<template>
|
<div class="record">
|
<van-nav-bar
|
title=""
|
left-text="返回"
|
left-arrow
|
@click="fanhui"
|
/>
|
<div>
|
<van-calendar
|
color="#769AFF"
|
:poppable="false"
|
:show-confirm="false"
|
@select="selectData"
|
:formatter="formatter"
|
:show-title="false"
|
:style="{ height: '400px' }"
|
/>
|
</div>
|
<div class="listdiv">
|
<div class="listrow">
|
<van-row>
|
<van-row class="lable">
|
<van-col span="8">
|
<span style="color: #777777;">状态:</span>
|
<span style="color: #769AFF;">透析完成</span>
|
</van-col>
|
<van-col span="8">
|
<span style="color: #777777;">上机:</span>
|
<span style="color: #769AFF;">8:00</span>
|
</van-col>
|
<van-col span="8">
|
<span style="color: #777777;">下机:</span>
|
<span style="color: #769AFF;">12:00</span>
|
</van-col>
|
</van-row>
|
<van-row class="lable">
|
<van-col span="8">
|
<span style="color: #777777;">班次:</span>
|
<span style="color: #769AFF;">上午</span>
|
</van-col>
|
<van-col span="8">
|
<span style="color: #777777;">机号:</span>
|
<span style="color: #769AFF;">12</span>
|
</van-col>
|
<van-col span="8">
|
<span style="color: #777777;">模式:</span>
|
<span style="color: #769AFF;">HD</span>
|
</van-col>
|
</van-row>
|
<van-row class="lable2">
|
<van-col span="8">
|
<span style="color: #777777;">次数:</span>
|
<span style="color: #769AFF;">65</span>
|
</van-col>
|
<van-col span="8">
|
<span style="color: #777777;">本次费用:</span>
|
<span style="color: #769AFF;">---</span>
|
</van-col>
|
</van-row>
|
</van-row>
|
<van-row class="item">
|
<van-col span="12">干体重:</van-col>
|
<van-col span="12" style="text-align: right; color: #769AFF ;">78.6(kg)</van-col>
|
</van-row>
|
<van-row class="item">
|
<van-col span="12">衣物重:</van-col>
|
<van-col span="12" style="text-align: right; color: #769AFF ;">0.6(kg)</van-col>
|
</van-row>
|
</div>
|
</div>
|
</div>
|
</template>
|
<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
|
const date = day.date.getDate()
|
if (month === 9) {
|
if (date === 24) {
|
day.bottomInfo='8:30'
|
day.className='recordclass'
|
} else if (date === 27) {
|
day.bottomInfo='13:00'
|
day.className='recordclass'
|
}
|
}
|
return day
|
}
|
</script>
|
<style lang="scss">
|
.recordclass{
|
// background: rgb(228, 231, 225);
|
color: blue;
|
}
|
.record{
|
background-color: #F6FAFF;
|
padding: 0;
|
}
|
.listdiv{
|
margin-top: 20px;
|
.listrow{
|
margin-top: 10px;
|
width: 94%;
|
margin-left: 3%;
|
height: 129px;
|
background: #FFFFFF;
|
box-shadow: 0px 2px 4px 0px rgba(70,150,249,0.1);
|
border-radius: 8px;
|
.lable{
|
width: 90%;
|
margin-left: 5%;
|
height: 40px;
|
font-size: 13px;
|
font-family: PingFangSC-Regular, PingFang SC;
|
font-weight: 400;
|
color: #AAAAAA;
|
line-height: 40px;
|
border-bottom:#F1F1F2 solid 1px;
|
}
|
.lable2{
|
width: 90%;
|
margin-left: 5%;
|
height: 40px;
|
font-size: 13px;
|
font-family: PingFangSC-Regular, PingFang SC;
|
font-weight: 400;
|
color: #AAAAAA;
|
line-height: 40px;
|
}
|
.item{
|
margin-top: 20px;
|
width: 90%;
|
margin-left: 5%;
|
height: 40px;
|
font-size: 13px;
|
font-family: PingFangSC-Medium, PingFang SC;
|
font-weight: 500;
|
color: #333333;
|
line-height: 40px;
|
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>
|