Commit 98dc0c49 by 胡悦

修复样式

1 parent 9882df18
<!--
* @Description:
* @Author: huyue
* @Date: 2023-07-06 11:46:13
* @LastEditors: huyue
* @LastEditTime: 2023-07-07 18:01:41
-->
<template>
<div class="main-box">
<div class="trapezoid"><div class="point">....</div></div>
<div class="right-box">
<div class="trangle"></div>
<div class="text-box">{{title}}</div>
</div>
<div class="trapezoid"> <div class="text-box">{{title}}</div></div>
</div>
</template>
......@@ -32,46 +35,22 @@ export default {
<style lang="scss" scoped>
.main-box {
position: relative;
background-image: url('../assets/images/title-bg.png');
background-repeat: no-repeat;
background-size: 9.04vw 3.33vh;
}
.trapezoid {
width: 0;
height: 0;
border-top: 30px solid #0085CD;
border-right: 8px solid transparent;
border-left: 10px solid #0085CD;
.point {
position: absolute;
top: 1px;
left: 1px;
font-size: 19px;
color: #fff;
transform: rotate(90deg);
}
}
.right-box {
position: absolute;
top: 0;
left: 15px;
display: flex;
.trangle {
width: 0;
height: 0;
border: #0085CD;
border-style: solid;
border-width: 20px 8px 0 0;
border-top: 30px solid transparent;
}
.text-box {
width: 126px;
height: 30px;
font-family: PingFangSC-Medium;
font-weight: 500;
font-size: 14px;
color: #FFFFFF;
line-height: 30px;
padding-left: 2px;
background-image: linear-gradient(270deg, #6578ff00 0%, #5542ff87 53%, #0085CD 100%);
height: 3.33vh;
.text-box {
// width: 126px;
height: 3.33vh;
font-family: PingFangSC-Medium;
font-weight: 500;
font-size: 14px;
color: #FFFFFF;
line-height: 3.33vh;
margin-left: 1.67vw;
}
}
</style>
......@@ -46,6 +46,7 @@ export default {
.statistics {
display: flex;
color: #fff;
height: 11.78vh;
&-item {
padding: 0.89vh 0.53vw;
margin-right: 1.11vw;
......@@ -56,13 +57,13 @@ export default {
}
}
&-top {
padding-bottom: 0.89vh;
padding-left: 0.3vw;
}
&-name {
font-weight: 500;
font-size: 14px;
margin-bottom: 0.89vh;
height: 2.22vh;
}
&-price {
display: flex;
......@@ -70,6 +71,7 @@ export default {
color: #25D6FF;
font-weight: 600;
font-size: 14px;
height: 3.11vh;
&-number {
padding-left: 0.56vw;
font-size: 20px;
......@@ -86,6 +88,7 @@ export default {
color: #95ACD9;
border-top: 1px solid #2A3D72;
padding: 0.89vh 0.3vw 0;
margin-top: 0.89vh;
}
}
</style>
......@@ -3,7 +3,7 @@
* @Author: huyue
* @Date: 2023-07-05 10:35:43
* @LastEditors: huyue
* @LastEditTime: 2023-07-07 14:38:42
* @LastEditTime: 2023-07-07 14:19:28
-->
<template>
<div class="left">
......
......@@ -3,12 +3,12 @@
* @Author: huyue
* @Date: 2023-07-06 16:19:15
* @LastEditors: huyue
* @LastEditTime: 2023-07-07 15:34:39
* @LastEditTime: 2023-07-07 18:08:57
-->
<template>
<div class="purchase-box">
<box-title title="采购额排名"></box-title>
<BarLineChart ref="purchaseRef" height="28.48vh" domId="purchase" :dataList.sync="dataList" :tooltipFormatterObj="tooltipFormatterObj"></BarLineChart>
<BarLineChart ref="purchaseRef" height="30.23vh" domId="purchase" :dataList.sync="dataList" :tooltipFormatterObj="tooltipFormatterObj"></BarLineChart>
<div class="legend">
<div class="legend-item shop">
<span class="legend-even">双</span>
......
......@@ -11,7 +11,22 @@
<!-- 采购趋势 -->
<div class="tendency-box">
<box-title title="近一年采购额趋势"></box-title>
<BarLineChart ref="purchaseTrend" height="31.78vh" domId="purchaseTrend" :dataList.sync="dataList" :tooltipFormatterObj="tooltipFormatterObj"></BarLineChart>
<div class="legend">
<div class="legend-item shop">
<span class="legend-even">双</span>
<span class="legend-odd">单</span>
<span>商城</span>
</div>
<div class="legend-item self">
<span class="legend-even">双</span>
<span class="legend-odd">单</span>
自采
</div>
<div class="legend-item">
<img class="icon-line" src="@/assets/images/icon-line.png" alt="">商城采购占比
</div>
</div>
<BarLineChart ref="purchaseTrend" height="36.45vh" domId="purchaseTrend" :dataList.sync="dataList" :tooltipFormatterObj="tooltipFormatterObj"></BarLineChart>
</div>
<!-- 商品占比 -->
<div class="propotion-box flex">
......@@ -250,6 +265,7 @@ export default {
margin-top: 1.78vh;
}
.tendency-box {
position: relative;
width: 96.67vw;
height: 39.78vh;
box-shadow: inset 0 0 20px 0 #3d57ff69;
......@@ -269,4 +285,53 @@ export default {
}
}
}
.legend {
display: flex;
position: absolute;
right: 1.39vw;
top: 2.22vh;
&-item {
display: flex;
align-items: center;
color: #fff;
margin-right: 1.67vw;
&:last-child {
margin-right: 0;
}
img {
width: 1.32vw;
height: 1vh;
margin-right: 0.28vw;
}
.icon-line {
width: 0.98vw;
height: 0.56vh;
}
.legend-even,
.legend-odd {
display: inline-block;
width: 0.83vw;
height: 1.33vh;
margin-right: 0.28vw;
font-size: 8px;
text-align: center;
}
}
}
.shop {
.legend-even {
background-image: linear-gradient(180deg, #2AD190 1%, #00B7DF 100%);
}
.legend-odd {
background-image: linear-gradient(180deg, #22D8FF 0%, #5C56FF 100%);
}
}
.self {
.legend-even {
background-image: linear-gradient(180deg, #145F4E 1%, #035972 100%);
}
.legend-odd {
background-image: linear-gradient(180deg, #11627A 0%, #282F7A 100%);
}
}
</style>
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!