You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
127 lines
3.3 KiB
127 lines
3.3 KiB
<template>
|
|
<div class="card">
|
|
<div class="title">
|
|
<div class="title__icon">
|
|
<svg viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg"><path d="M883.2 192L601.6 467.2h-6.4l-96-96v-6.4L806.4 57.6c6.4-6.4 0-12.8-6.4-12.8H224c-51.2 0-96 44.8-96 96v748.8c0 51.2 44.8 96 96 96h569.6c51.2 0 96-44.8 96-96V198.4c0-6.4-6.4-12.8-6.4-6.4z m-416 217.6c0-6.4 6.4-6.4 12.8-6.4l83.2 83.2c6.4 6.4 0 12.8-6.4 12.8l-96 12.8c-6.4 0-6.4 0-6.4-6.4l12.8-96z m38.4 428.8h-256c-19.2 0-32-12.8-32-32s12.8-32 32-32h256c19.2 0 32 12.8 32 32 0 12.8-19.2 32-32 32z m224-153.6H243.2c-19.2 0-32-12.8-32-32s12.8-32 32-32h486.4c19.2 0 32 12.8 32 32s-12.8 32-32 32z" fill="#fff"></path></svg>
|
|
</div>
|
|
<div class="title__text">
|
|
<div class="title__text--name">填报量</div>
|
|
<div class="title__text--sub">填报量</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="title__data">
|
|
<div class="title__data-item">
|
|
<div class="title__data-item--num">{{ myData.todayFillCount | resolveData }}</div>
|
|
<div class="title__data-item--text">今日填报</div>
|
|
</div>
|
|
<div class="title__data-item">
|
|
<div class="title__data-item--num">{{ myData.totalFillCount | resolveData }}</div>
|
|
<div class="title__data-item--text">总计填报</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</template>
|
|
|
|
<script>
|
|
export default {
|
|
inject: ['statictis'],
|
|
data() {
|
|
return {}
|
|
},
|
|
methods: {},
|
|
filters: {
|
|
resolveData(val) {
|
|
return val ?? 0
|
|
}
|
|
},
|
|
computed: {
|
|
myData() {
|
|
return this.statictis() ?? {}
|
|
}
|
|
},
|
|
}
|
|
</script>
|
|
|
|
<style scoped lang="scss">
|
|
@import "../index.scss";
|
|
.card {
|
|
border-radius: px2vw(7);
|
|
filter: drop-shadow(0 0 7.5px rgba(211,215,221,0.4));
|
|
background-color: #ffffff;
|
|
border: 1px solid #d8e2f0;
|
|
padding: px2vw(29) px2vw(52) px2vw(32) px2vw(52);
|
|
|
|
.title {
|
|
display: flex;
|
|
align-items: center;
|
|
|
|
&__icon {
|
|
width: px2vw(83);
|
|
height: px2vw(83);
|
|
background: linear-gradient(90deg, #f7a764 0%, #f7a764 1%, #e77816 97%, #e77816 100%);
|
|
padding: px2vw(20);
|
|
border-radius: px2vw(30);
|
|
}
|
|
|
|
&__text {
|
|
padding-left: px2vw(28);
|
|
|
|
&--name {
|
|
font-size: px2vw(20);
|
|
letter-spacing: px2vw(1);
|
|
color: #1c1a1d;
|
|
font-weight: 500;
|
|
padding-bottom: px2vw(12);
|
|
}
|
|
&--sub {
|
|
font-size: px2vw(16);
|
|
letter-spacing: px2vw(1);
|
|
color: #838383;
|
|
}
|
|
}
|
|
|
|
&__data {
|
|
margin-top: px2vw(32);
|
|
display: flex;
|
|
justify-content: space-between;
|
|
position: relative;
|
|
|
|
&::after {
|
|
content: "";
|
|
width: 2px;
|
|
background-color: #eaeaea;
|
|
position: absolute;
|
|
top: 0;
|
|
left: calc(50% - 1px);
|
|
bottom: 0;
|
|
}
|
|
|
|
|
|
&-item {
|
|
display: inline-block;
|
|
padding: 0 px2vw(60);
|
|
|
|
&--num {
|
|
font-weight: 500;
|
|
color: #e49a57;
|
|
font-size: px2vw(50);
|
|
letter-spacing: px2vw(3);
|
|
@supports (background-clip: text) {
|
|
background: linear-gradient(to bottom, #eeb580, #d97e35);
|
|
color: transparent;
|
|
background-clip: text;
|
|
}
|
|
}
|
|
&--text {
|
|
padding-top: px2vw(16);
|
|
font-size: px2vw(16);
|
|
letter-spacing: px2vw(1);
|
|
color: #1c1a1d;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
</style>
|