打卡样式更改
This commit is contained in:
@@ -1,5 +1,12 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="AppSignIn">
|
<div class="AppSignIn">
|
||||||
|
<div class="avatar_box">
|
||||||
|
<div class="avatar_img"><img :src="user.avatar" alt=""></div>
|
||||||
|
<div class="avatar_info">
|
||||||
|
<div class="avatar_name">{{ user.name }}</div>
|
||||||
|
<div class="avatar_time">{{ today }}</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
<div class="title">打卡记录</div>
|
<div class="title">打卡记录</div>
|
||||||
<div class="sign_list">
|
<div class="sign_list">
|
||||||
<scroll-view scroll-y style="height: 100%;">
|
<scroll-view scroll-y style="height: 100%;">
|
||||||
@@ -30,10 +37,10 @@ export default {
|
|||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
time: '',
|
time: '',
|
||||||
|
today: '',
|
||||||
status: 0, // 打卡状态:0、未打卡;1、已打卡
|
status: 0, // 打卡状态:0、未打卡;1、已打卡
|
||||||
signlist: [],
|
signlist: [],
|
||||||
current: 1,
|
current: 1,
|
||||||
screenHeight: '',
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
@@ -80,17 +87,56 @@ export default {
|
|||||||
this.getToday()
|
this.getToday()
|
||||||
this.getList()
|
this.getList()
|
||||||
setInterval(() => {
|
setInterval(() => {
|
||||||
this.time = dayjs(new Date()).format('HH:mm:ss')
|
this.time = dayjs().format('HH:mm:ss')
|
||||||
}, 1000)
|
}, 1000)
|
||||||
|
this.today = dayjs().format('YYYY-MM-DD')
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style lang="scss" scoped>
|
<style lang="scss" scoped>
|
||||||
.AppSignIn {
|
.AppSignIn {
|
||||||
padding: 0px 32px;
|
background: url('./img/bg.png') no-repeat;
|
||||||
|
background-size: contain;
|
||||||
|
padding: 32px 32px;
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
|
height: 100vh;
|
||||||
|
width: 100vw;
|
||||||
|
|
||||||
|
.avatar_box {
|
||||||
|
width: 100%;
|
||||||
|
display: flex;
|
||||||
|
background-image: linear-gradient(270deg, rgba(255,255,255,0.00) 12%, #FFFFFF 100%);
|
||||||
|
border-radius: 16px;
|
||||||
|
padding: 32px 24px;
|
||||||
|
box-sizing: border-box;
|
||||||
|
.avatar_img {
|
||||||
|
width: 96px;
|
||||||
|
height: 96px;
|
||||||
|
|
||||||
|
img {
|
||||||
|
width: 100%;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
|
border-radius: 50%;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.avatar_info {
|
||||||
|
margin-left: 24px;
|
||||||
|
.avatar_name {
|
||||||
|
font-weight: 500;
|
||||||
|
font-size: 34px;
|
||||||
|
color: #333333;
|
||||||
|
}
|
||||||
|
.avatar_time {
|
||||||
|
font-weight: 400;
|
||||||
|
font-size: 28px;
|
||||||
|
color: #666666;
|
||||||
|
margin-top: 16px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
.title {
|
.title {
|
||||||
font-weight: 600;
|
font-weight: 600;
|
||||||
@@ -101,13 +147,12 @@ export default {
|
|||||||
line-height: 6vh;
|
line-height: 6vh;
|
||||||
padding-left: 32px;
|
padding-left: 32px;
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
background: #F5F5F5;
|
|
||||||
overflow-y: none;
|
overflow-y: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
.sign_list {
|
.sign_list {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: 69vh;
|
height: 54vh;
|
||||||
.sign_card {
|
.sign_card {
|
||||||
display: flex;
|
display: flex;
|
||||||
background: #FFFFFF;
|
background: #FFFFFF;
|
||||||
|
|||||||
BIN
src/project/qianxinan/AppSignIn/img/bg.png
Normal file
BIN
src/project/qianxinan/AppSignIn/img/bg.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 44 KiB |
Reference in New Issue
Block a user