Commit b96a9596 by 呼呼啦啦

修改

parent b3279462
html,
body,
.wrap {
height: 100%;
}
* {
margin: 0;
padding: 0;
list-style: none;
}
.flex {
display: flex;
align-items: center;
justify-content: center;
}
a {
text-decoration: none;
}
.wrap {
background: url(./assets/list-bg.png) no-repeat;
background-size: 100% 100%;
color: #fff;
}
.top-title {
height: 60px;
padding-bottom: 10px;
background: url(./assets/report-header.png) no-repeat;
background-size: 100% 100%;
font-size: 32px;
}
@media screen and (max-width: 750px) {
.top-title {
font-size: 20px;
background: none;
}
.content {
padding: 0 20px;
flex-wrap: wrap;
justify-content: center !important;
}
.items {
margin: 20px 0;
}
}
.content {
height: calc(100% - 70px);
max-width: 1000px;
overflow-x: auto;
margin: auto;
justify-content: flex-start;
}
.content::-webkit-scrollbar {
width: 10px;
height: 10px;
}
.content::-webkit-scrollbar-thumb {
min-height: 28px;
background-color: rgba(255, 255, 255, 0.2);
-webkit-background-clip: padding-box;
background-clip: padding-box;
border-radius: 2px;
-webkit-box-shadow: inset 1px 1px 0 rgb(0 0 0 / 10%),
inset 0 -1px 0 rgb(0 0 0 / 7%);
}
.content > a {
height: 362px;
}
.items {
position: relative;
background: url(./assets/pic_yb.png) no-repeat;
min-width: 210px;
cursor: pointer;
margin: 0 20px;
height: 100%;
}
.items-type-img {
position: absolute;
top: 10%;
}
.items-body {
padding-top: 80%;
display: flex;
flex-direction: column;
color: #fff;
}
.items-body > * {
text-align: center;
}
.items-title {
font-weight: 700;
font-size: 26px;
}
.items-type {
font-weight: 600;
font-size: 20px;
margin: 12px 0 20px 0;
}
.items-type::before,
.items-type::after {
content: '-';
}
.items-park {
opacity: 0.7;
font-size: 14px;
}
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta
name="viewport"
content="width=device-width, initial-scale=1, maximum-scale=1" />
<title></title>
<script src="https://cdn.bootcss.com/jquery/3.4.1/jquery.js"></script>
<!-- 如果你没有echarts.min.js文件,用下面的语句代替即可
<script src="https://cdn.bootcss.com/echarts/4.6.0/echarts.min.js"></script>
-->
<link
rel="stylesheet"
href="./report-list.css" />
</head>
<body>
<div class="wrap">
<div class="top-title flex">小芦为你推荐</div>
<div class="content flex"></div>
</div>
<script>
const data = [
{
title: '5.12',
type: 'day',
typeName: '日报',
park: '成阿园区',
href: 'report.html',
},
{
title: '5.12~5.18',
type: 'week',
typeName: '周报',
park: '成阿园区',
href: 'report.html',
},
{
title: '5月',
type: 'month',
typeName: '月报',
park: '成阿园区',
href: 'report.html',
},
{
title: 'Q1',
type: 'quarterly',
typeName: '季报',
park: '成阿园区',
href: 'report.html',
},
{
title: '2022年上半年',
type: 'year',
typeName: '年报',
park: '成阿园区',
href: 'report.html',
},
];
const content = document.querySelector('.content');
data.forEach(item => {
const icon = `./assets/icon-${item.type}.png`;
const div = `<a href="${item.href}">
<div class="items flex">
<img
src="${icon}"
class="items-type-img"
alt="" />
<div class="items-body">
<p class="items-title">${item.title}</p>
<p class="items-type">${item.typeName}</p>
<p class="items-park">${item.park}</p>
</div>
</div>
</a>`;
content.innerHTML += div;
});
</script>
</body>
</html>
......@@ -55,6 +55,16 @@ body,
margin-bottom: 10px;
font-weight: 600;
font-size: 20px;
display: flex;
align-items: center;
}
.content-item-title::before {
content: '';
width: 20px;
height: 20px;
background: url(./assets/pic_zs.png) no-repeat;
background-size: contain;
margin-right: 10px;
}
.project-info .content-wrap {
display: flex;
......@@ -95,7 +105,7 @@ body,
display: flex;
align-items: center;
}
.invest-wrapper-content-right > .wrap {
.invest-wrapper-wrap {
padding: 0 10px;
}
.invest-wrapper-bracket-big {
......@@ -164,7 +174,7 @@ body,
font-size: 20px;
margin-top: 4px;
}
.project-right > p:nth-of-type(2) > span {
.project-right > p:nth-of-type(2) > span:nth-of-type(2) {
font-size: 14px;
}
......@@ -234,6 +244,7 @@ body,
align-items: center;
justify-content: center;
height: 100%;
position: relative;
}
.mask :first-child {
display: block;
......@@ -280,13 +291,16 @@ body,
font-size: 14px;
flex: 1;
margin-left: 10px;
display: flex;
flex-direction: column;
justify-content: center;
}
.chart-desc-task {
display: flex;
justify-content: space-between;
align-items: center;
padding: 0 8px;
padding: 0 8px 0 16px;
box-sizing: border-box;
padding-bottom: 6px;
position: relative;
......@@ -348,6 +362,7 @@ body,
height: 80px;
background: url(./assets/repair-require-bg.png) no-repeat;
background-size: 100% 100%;
padding: 6px;
}
.repair-require-chart-wrapper,
.contract-chart-wrapper {
......@@ -358,6 +373,7 @@ body,
height: 80px;
background: url(./assets/contract-bg.png) no-repeat;
background-size: 100% 100%;
padding: 6px;
}
.advise-info .content-wrap {
......
......@@ -28,7 +28,7 @@
</div>
<div class="project-right">
<p>政府投资项目(进行中)</p>
<p>235 <span></span></p>
<p><span>235</span><span></span></p>
</p>
</div>
</div>
......@@ -38,7 +38,7 @@
</div>
<div class="project-right">
<p>政府投资项目(进行中)</p>
<p>235 <span></span></p>
<p><span>235</span><span></span></p>
</p>
</div>
</div>
......@@ -53,7 +53,7 @@
<div class="invest-wrapper-bracket-big">
<img src="./assets/bracket-left-big.png" />
</div>
<div class="wrap">
<div class="invest-wrapper-wrap">
<div class="invest-wrapper-content-first-text">
已完成项目数
<span class="invest-wrapper-content-number">12</span>
......@@ -465,7 +465,8 @@
data: [153, 153, 153],
label: {
show: true,
position: "insideRight",
position: "right",
color: '#fff',
fontSize: 18,
textBorderColor: "rgba(108, 106, 106, 1)",
textBorderWidth: 3,
......@@ -484,7 +485,8 @@
data: [106, 106, 106],
label: {
show: true,
position: "insideRight",
position: "right",
color: '#fff',
fontSize: 18,
textBorderColor: "rgba(108, 106, 106, 1)",
textBorderWidth: 3,
......@@ -574,7 +576,7 @@
{
name: '',
type: 'pie',
radius: ['75%', '88%'],
radius: ['70%', '88%'],
hoverAnimation: false,
itemStyle: {
borderRadius: 10,
......@@ -625,7 +627,7 @@
{
name: '',
type: 'pie',
radius: ['75%', '88%'],
radius: ['70%', '88%'],
hoverAnimation: false,
itemStyle: {
borderRadius: 10,
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论