This commit is contained in:
liuye
2023-02-08 09:02:55 +08:00

View File

@@ -1,15 +1,16 @@
<template>
<div class="AppSignIn">
<div class="title">打卡记录</div>
<div class="sign_list" style="overflow-y: scroll;">
<div class="sign_card" v-for="item in signlist" :key="item.id">
<div class="sign_left">{{ item.createTime.substring(0,5) }}</div>
<div class="sign_right">
<div class="time">{{ item.createDate }}</div>
<div class="tips">打卡成功</div>
<div class="sign_list">
<scroll-view scroll-y style="height: 100%;">
<div class="sign_card" v-for="item in signlist" :key="item.id">
<div class="sign_left">{{ item.createTime.substring(0,5) }}</div>
<div class="sign_right">
<div class="time">{{ item.createDate }}</div>
<div class="tips">打卡成功</div>
</div>
</div>
</div>
</scroll-view>
</div>
<div class="sign_btn">
@@ -32,6 +33,7 @@ export default {
status: 0, // 打卡状态0、未打卡1、已打卡
signlist: [],
current: 1,
screenHeight: '',
}
},
computed: {
@@ -74,7 +76,7 @@ export default {
setInterval(() => {
this.time = dayjs(new Date()).format('HH:mm:ss')
}, 1000)
}
},
}
</script>
@@ -82,22 +84,24 @@ export default {
.AppSignIn {
padding: 0px 32px;
box-sizing: border-box;
height: 100%;
.title {
font-weight: 600;
font-size: 28px;
color: #333333;
width: 100%;
height: 100px;
line-height: 100px;
height: 6vh;
line-height: 6vh;
padding-left: 32px;
box-sizing: border-box;
background: #F5F5F5;
overflow-y: none;
}
.sign_list {
width: 100%;
height: calc(100% - 500px);
height: 69vh;
.sign_card {
display: flex;
background: #FFFFFF;
@@ -131,7 +135,7 @@ export default {
.sign_btn {
position: relative;
width: 100%;
height: 400px;
height: 25vh;
position: fixed;
bottom: 0;
left: 0;