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.
taicangZongzhi/src/views/privateOrder/ecosphere/components/componentCenter.vue

125 lines
2.4 KiB

2 years ago
<!--
* @Author: lough
* @Date: 2021-12-21 14:12:54
* @LastEditors: lough
* @LastEditTime: 2022-09-08 10:26:49
* @Description:
-->
<template>
<div>
<div class="left">
<div class="inner-box">
<div class="title">举报总数</div>
<div>
<span class="num">{{ reportTotalCount }}</span>
<span style="color: #ffffff; font-size: 20px"></span>
</div>
</div>
</div>
<div class="right">
<div class="inner-box">
<div class="title">处置率</div>
<div>
<span class="num">{{ completedPercent }}</span>
<span style="color: #ffffff; font-size: 20px">%</span>
</div>
</div>
</div>
<!-- <div class="camera"></div> -->
</div>
</template>
<script>
import { getreportNum } from '@/api/common'
export default {
data() {
return {
reportTotalCount: 0,
completedPercent: 0
}
},
mounted() {
this.reportTotalCount = 45
this.completedPercent = 100
// getreportNum().then(res => {
// this.reportTotalCount = res.data.reportTotalCount
// this.completedPercent = res.data.completedPercent
// })
}
}
</script>
<style lang='scss' scoped>
.camera {
position: relative;
width: 70px;
height: 70px;
top: -25px;
left: 1605px;
background: url('~@/assets/ecosphere/icon-视频.png');
&:hover {
cursor: pointer;
}
}
.bkLeft {
float: left;
width: 210px;
height: 924px;
top: 198px;
left: 13px;
background: url('~@/assets/ecosphere/左.png') no-repeat;
background-size: 100% 100%;
}
.bkRight {
position: relative;
width: 210px;
height: 924px;
top: 198px;
left: 513px;
background: url('~@/assets/ecosphere/右.png');
}
.left {
position: relative;
width: 398px;
height: 99px;
top: 155px;
left: 550px;
background: url('~@/assets/ecosphere/举报总数.png');
}
.right {
position: relative;
width: 398px;
height: 99px;
top: 56px;
left: 1050px;
background: url('~@/assets/ecosphere/处置率.png');
}
.inner-box {
position: absolute;
top: 20px;
left: 163px;
width: 200px;
height: 99px;
text-align: center;
div:nth-child(1) {
margin-bottom: 7px;
}
}
.title {
font-family: SourceHanSansCN-Regular;
font-size: 28px;
font-weight: normal;
font-stretch: normal;
letter-spacing: 0;
color: #ffffff;
}
.num {
font-family: ConthraxSb-Regular;
font-size: 36px;
font-weight: normal;
font-stretch: normal;
letter-spacing: 0;
color: #fbe84f;
}
</style>