Commit 728d7669 by 胡悦

修改运营数据样式

1 parent ae364ff9
......@@ -99,7 +99,13 @@ img {
.inline {
display: inline-block;
}
.icon-title {
display: inline-block;
width:0.94vw;
height: 0.93vh;
background: url(../images/operation//icon-title.png) no-repeat;
background-size: 100%;
}
.title {
font-size: 0.75vw;
font-weight: 400;
......@@ -112,11 +118,14 @@ img {
.title-bg {
display: inline-block;
height: 1.71vh;
padding-left: 0.83vw;
transform: rotate(-360deg);
background-image: linear-gradient(90deg, #003F57 0%, #111056 54%, #07173500 100%);
padding-left: 0.21vw;
// transform: rotate(-360deg);
// background-image: linear-gradient(90deg, #003F57 0%, #111056 54%, #07173500 100%);
}
}
.operational-box {
background-color: #071735;
}
.container {
height: 8.54vh;
......
......@@ -3,7 +3,7 @@
* @Author: huyue
* @Date: 2023-07-06 11:46:13
* @LastEditors: huyue
* @LastEditTime: 2023-07-07 18:01:41
* @LastEditTime: 2024-01-26 17:16:49
-->
<template>
<div class="text-box" :style="{'font-size': fontSize + 'px', 'text-align': textAlign}">{{ title }}</div>
......@@ -43,5 +43,7 @@ export default {
background: linear-gradient(to right, #01A4F9, #6DF5F9); /* 从左到右渐变 */
-webkit-background-clip: text; /* Safari/Chrome支持该属性 */
color: transparent; /* 将文本颜色设置为透明 */
text-align: center;
padding-top: 5px;
}
</style>
......@@ -60,8 +60,8 @@ export default {
&-item {
padding: 0.89vh 0.53vw;
margin-right: 1.11vw;
background: #061422;
box-shadow: inset 0 0 20px 0 #3d57ff69;
background: #071735;
// box-shadow: inset 0 0 20px 0 #3d57ff69;
&:last-child {
margin-right: 0;
}
......
<!--
* @Description:
* @Author: huyue
* @Date: 2024-01-26 11:36:05
* @LastEditors: huyue
* @LastEditTime: 2024-01-26 20:14:25
-->
<template>
<div class="statistics">
<div class="statistics-item" v-for="(item, index) in list" :key="index" :style="{'width': 100 / list.length + '%'}">
<div class="statistics-top">
<div class="statistics-name">{{item.name}}</div>
<div class="statistic-text">{{numAddSymbol(item.value)}}{{ item.unit }}</div>
</div>
</div>
<div class="statistics">
<div class="statistics-item" v-for="(item, index) in list" :key="index" :style="{ width: 100 / list.length + '%' }">
<div class="statistics-top">
<div class="statistics-name">{{ item.name }}</div>
<div class="statistic-text">{{ numAddSymbol(item.value) }}{{ item.unit }}</div>
</div>
</template>
<script>
export default {
name: 'StatisticsBox',
props: {
list: {
type: Array
}
// bottomType: {
// type: String,
// default: 'default'
// }
},
data() {
return {
}
},
mounted() {},
methods: {}
}
</script>
<style lang="scss" scoped>
.statistics {
display: flex;
height: 8.15vh;
color: #E8E8E8;
&-item {
width: 10.26vw;
padding: 1.48vh 1.04vw;
margin-right: 0.42vw;
background-image: url(../../../assets/images/statistic-bg.png);
background-size: 100% 100%;
&:last-child {
margin-right: 0;
}
</div>
</div>
</template>
<script>
export default {
name: 'StatisticsBox',
props: {
list: {
type: Array
}
// bottomType: {
// type: String,
// default: 'default'
// }
},
data() {
return {}
},
mounted() {},
methods: {}
}
</script>
<style lang="scss" scoped>
.statistics {
display: flex;
height: 8.15vh;
color: #e8e8e8;
&-item {
width: 10.26vw;
padding: 1.48vh 1.04vw;
margin-right: 0.42vw;
background-image: url(../../../assets/images/statistic-bg.png);
background-size: 100% 100%;
&:last-child {
margin-right: 0;
}
}
</style>
\ No newline at end of file
}
</style>
......@@ -3,11 +3,11 @@
* @Author: huyue
* @Date: 2023-02-27 11:29:02
* @LastEditors: huyue
* @LastEditTime: 2023-08-17 14:14:50
* @LastEditTime: 2024-01-26 20:08:52
-->
<template>
<div class="left">
<div class="top box">
<div class="top">
<box-title title="企业客户总览"></box-title>
<view-tabs />
<view-surface />
......@@ -17,7 +17,7 @@
<div slot="3"><Store :height="defaultHeight"></Store></div>
</view-pie-group>
</div>
<div class="bottom box">
<div class="bottom">
<box-title title="客户数字化业务"></box-title>
<OverSize></OverSize>
</div>
......@@ -67,15 +67,19 @@ export default {
overflow: hidden;
.top {
height: 52.2vh;
height: 52.4vh;
width: 100%;
// padding: 0 16px;
box-sizing: border-box;
background: url(../../assets/images/operation/bg-1.png) no-repeat;
background-size: 100%;
}
.bottom {
height: 34.15vh;
margin-top: 1.95vh;
box-sizing: content-box;
background: url(../../assets/images/operation/bg-3.png) no-repeat;
background-size: 100%;
}
}
</style>
......@@ -3,11 +3,11 @@
* @Author: huyue
* @Date: 2022-06-23 10:52:23
* @LastEditors: huyue
* @LastEditTime: 2023-08-17 18:02:44
* @LastEditTime: 2024-01-26 20:08:16
-->
<template>
<div class="right">
<div class="top box">
<div class="top">
<box-title title="营销增值服务业务"></box-title>
<Business></Business>
<Project></Project>
......@@ -87,14 +87,17 @@ export default {
display: flex;
flex-direction: column;
.top {
height: 32.68vh;
height: 34.15vh;
box-sizing: border-box;
background: url(../../assets/images/operation/bg-2.png) no-repeat;
background-size: 100% 100%;
}
.bottom {
height: 53.66vh;
margin-top: 1.95vh;
box-shadow: inset 0 0 20px 0 #3d57ff69;
box-sizing: border-box;
background: url(../../assets/images/operation/bg-4.png) no-repeat;
background-size: 100% 100%;
&-content {
padding: 0 0.83vw;
}
......
......@@ -2,14 +2,14 @@
* @Author: 前端 qianduan01@didihu.com.cn
* @Date: 2022-10-25 10:12:26
* @LastEditors: huyue
* @LastEditTime: 2023-08-22 16:49:20
* @LastEditTime: 2024-01-26 20:59:02
* @FilePath: \dj-data-view\src\views\user\analyse.vue
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
-->
<template>
<div class="analyse">
<div class="title title-icon">
<!-- <span class="icon"></span> -->
<span class="icon"></span>
<div class="title-h3">客户价值分析</div>
<div class="go" @click="goAnalyse">
<img src="@/assets/images/go.png" />
......@@ -35,7 +35,7 @@ export default {
return {
analysisList: {},
isShow: true,
colorList: ['#5C56FF', '#22D8FF'],
colorList: ['#00C8FF', '#0069F2'],
dialogShow: false
}
},
......@@ -68,7 +68,12 @@ export default {
}
.icon {
display: inline-block;
width:0.94vw;
height: 0.93vh;
transform: rotate(90deg);
background: url(../../../assets/images/operation//icon-title.png) no-repeat;
background-size: 100%;
margin-top: 7px;
}
.title {
display: block;
......@@ -78,12 +83,13 @@ export default {
// margin: 4px 4px;
// height:10.98vh;
font-size: 10px;
background-image: linear-gradient(180deg, #003F57 0%, #111056 54%, #071735 100%);
margin-left: 5px;
// transform: rotate(90deg);
}
.go {
width: 0.65vw;
height: 0.65vw;
margin: 3px 0;
margin: 3px 5px;
cursor: pointer;
}
}
......
......@@ -3,13 +3,13 @@
* @Author: huyue
* @Date: 2023-08-16 14:34:58
* @LastEditors: huyue
* @LastEditTime: 2023-08-22 10:53:20
* @LastEditTime: 2024-01-26 20:39:48
-->
<template>
<div>
<div class="operational-box">
<div class="title title-icon">
<span class="icon"></span>
<span class="icon-title"></span>
<span class="title-bg">区域分布</span>
</div>
<div class="container flex">
......@@ -31,7 +31,7 @@ export default {
chart: {
id: 'area',
keys: ['name', 'num'],
colors: ['#FF6E76', '#16E193', '#FDF006', '#EB6001', '#34AFFF', '#BF98FF'],
colors: ['#16E193', '#EB6001', '#FFE73C', '#56FEFE', '#E588FF', '#747DFF'],
formatter: 'rate'
},
areaData: []
......@@ -44,3 +44,7 @@ export default {
}
}
</script>
<style lang="scss" scoped>
</style>
<template>
<div class="area">
<div class="title-icon">
<div class="title title-icon">
<span class="icon-title"></span>
<span class="title-bg">区域分布</span>
</div>
<div class="container">
......@@ -17,7 +18,7 @@ export default {
},
data() {
return {
colorList: ['#22D8FF', '#223FA9', '#071735']
colorList: ['#01A4F9', '#36cbfa', '#6DF5F9']
}
},
props: {
......@@ -35,10 +36,10 @@ export default {
font-weight: 500;
font-size: 10px;
color: #ffffff;
.title-bg {
background-image: linear-gradient(90deg, #003f57 0%, #111056 54%, #071735 100%);
padding-left: 0.83vw;
}
// .title-bg {
// background-image: linear-gradient(90deg, #003f57 0%, #111056 54%, #071735 100%);
// padding-left: 0.83vw;
// }
}
}
</style>
......@@ -7,9 +7,9 @@
-->
<template>
<div>
<div class="operational-box">
<div class="title title-icon">
<span class="icon"></span>
<span class="icon-title"></span>
<span class="title-bg">品牌分布</span>
</div>
<div class="container flex">
......@@ -31,7 +31,7 @@ export default {
chart: {
id: 'brand',
keys: ['name', 'num'],
colors: ['#FF6E76', '#16E193', '#FDF006', '#EB6001', '#34AFFF', '#BF98FF'],
colors: ['#16E193', '#EB6001', '#FFE73C', '#56FEFE', '#E588FF', '#747DFF'],
formatter: 'rate'
},
brandData: []
......
<!--
* @Description:
* @Author: huyue
* @Date: 2024-01-25 16:52:03
* @LastEditors: huyue
* @LastEditTime: 2024-01-26 21:00:45
-->
<template>
<div class="brand">
<div class="title-icon">
<div class="title title-icon">
<span class="icon-title"></span>
<span class="title-bg">品牌分布</span>
</div>
<div class="container">
......@@ -17,7 +25,7 @@ export default {
},
data() {
return {
colorList: ['#2AD191', '#0E958D', '#071735']
colorList: ['#01A4F9', '#36cbfa', '#6DF5F9']
}
},
props: {
......@@ -35,10 +43,10 @@ export default {
font-weight: 500;
font-size: 10px;
color: #ffffff;
.title-bg {
background-image: linear-gradient(90deg, #003f57 0%, #111056 54%, #071735 100%);
padding-left: 0.83vw;
}
// .title-bg {
// background-image: linear-gradient(90deg, #003f57 0%, #111056 54%, #071735 100%);
// padding-left: 0.83vw;
// }
}
}
</style>
......@@ -2,7 +2,7 @@
* @Author: 前端 qianduan01@didihu.com.cn
* @Date: 2022-10-25 10:12:26
* @LastEditors: huyue
* @LastEditTime: 2023-08-28 10:37:35
* @LastEditTime: 2024-01-26 20:10:23
* @FilePath: \dj-data-view\src\views\saas\business.vue
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
-->
......@@ -96,7 +96,7 @@ export default {
<style lang="scss" scoped>
.business-wrap {
height: 14.15vh;
margin: 0.98vh 0.83vw;
margin: 2.98vh 0.83vw 0.98vh;
// margin-bottom: 0.98vh;
// margin-top: 0.98vh;
justify-content: space-between;
......
<!--
* @Description:
* @Author: huyue
* @Date: 2024-01-25 16:52:03
* @LastEditors: huyue
* @LastEditTime: 2024-01-26 21:05:08
-->
<template>
<div class="category-box box">
<div class="title-icon">
<div class="category-box">
<div class="title title-icon">
<span class="icon-title"></span>
<span class="title-bg">品类业务</span>
</div>
<div class="category-container flex">
......@@ -21,7 +29,7 @@ export default {
return {
chart: {
id: 'category',
colors: ['#EB6001', '#34AFFF', '#16E193', '#BF98FF'],
colors: ['#6578FF', '#34AFFF', '#EB6001', '#16E193', '#BF98FF'],
formatter: 'rate'
}
}
......@@ -39,14 +47,15 @@ export default {
.category-box {
overflow: hidden;
height: 13.9vh;
background-color: #071735;
.title-icon {
font-weight: 500;
font-size: 14px;
color: #ffffff;
.title-bg {
background-image: linear-gradient(90deg, #003f57 0%, #111056 54%, #06142200 100%);
padding-left: 0.83vw;
}
// .title-bg {
// background-image: linear-gradient(90deg, #003f57 0%, #111056 54%, #06142200 100%);
// padding-left: 0.83vw;
// }
}
.category-container {
height: 11.34vh;
......
<!--
* @Description:
* @Author: huyue
* @Date: 2024-01-25 16:52:03
* @LastEditors: huyue
* @LastEditTime: 2024-01-26 17:52:55
-->
<template>
<div class="legend">
<div class="legend-item flex" :style="{width: width,height: height}" v-for="(item, index) in dataList" :key="index">
......@@ -50,7 +57,7 @@ export default {
height: 8.54vh;
margin-left: 0.42vw;
.legend-item {
background: #0A214D;
// background: #0A214D;
align-items: center;
font-size: 7px;
color: #FFFFFF;
......
......@@ -153,7 +153,7 @@ export default {
}
.headline {
height: 5.61vh;
background: #0A214D;
background: #092A46;
font-weight: 600;
font-size: 10px;
color: #e8e8e8;
......@@ -173,6 +173,9 @@ export default {
height: 6.34vh;
margin-bottom: 0;
}
&:nth-child(2) {
background-color: rgba(11, 101, 142, 0.28);
}
}
&-title {
width: 2.78vw;
......@@ -229,7 +232,7 @@ export default {
}
}
.bg-1 {
background: #072A23;
background: rgba(11, 101, 142, 0.28);
.clew-line-text {
border-bottom: 1px solid #0a2d26;
height: 4.88vh;
......@@ -239,9 +242,9 @@ export default {
// }
}
.bg-2 {
background: #280935;
background: #071735;
.clew-line-text {
border-bottom: 1px solid #390b4b;
// border-bottom: 1px solid #390b4b;
height: 3.17vh;
}
}
......
......@@ -2,7 +2,7 @@
* @Author: 前端 qianduan01@didihu.com.cn
* @Date: 2022-10-25 10:12:26
* @LastEditors: huyue
* @LastEditTime: 2023-08-22 17:18:53
* @LastEditTime: 2024-01-26 20:22:00
* @FilePath: \dj-data-view\src\views\saas\project.vue
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
-->
......@@ -76,7 +76,7 @@ export default {
justify-content: space-between;
.project-item {
width: 49.6%;
background: #071735;
background: #0E2141;
.project-left {
width: 2.8vw;
padding: 0px 0.4vw;
......
......@@ -3,12 +3,12 @@
* @Author: huyue
* @Date: 2023-08-16 14:35:35
* @LastEditors: huyue
* @LastEditTime: 2023-08-22 10:56:30
* @LastEditTime: 2024-01-26 20:40:20
-->
<template>
<div>
<div class="operational-box">
<div class="title title-icon">
<span class="icon"></span>
<span class="icon-title"></span>
<span class="title-bg">门店类型</span>
</div>
<div class="container flex">
......@@ -30,7 +30,7 @@ export default {
chart: {
id: 'store',
keys: ['name', 'num'],
colors: ['#34AFFF', '#16E193', '#FDF006', '#EB6001'],
colors: ['#FFE73C', '#56FEFE', '#E588FF', '#747DFF'],
formatter: 'rate'
},
storeData: []
......
......@@ -161,7 +161,7 @@ export default {
.user-tab {
width: 100%;
height: 9.02vh;
margin: 1.22vh 0 0.98vh 0;
margin: 2.22vh 0 0.98vh 0;
.statistics {
display: flex;
color: #fff;
......@@ -169,8 +169,8 @@ export default {
&-item {
padding: 0.49vh 0.53vw;
margin-right: 0.56vw;
background: #061422;
box-shadow: inset 0 0 20px 0 #3d57ff69;
background: #071735;
// box-shadow: inset 0 0 20px 0 #3d57ff69;
&:last-child {
margin-right: 0;
}
......
......@@ -2,7 +2,7 @@
* @Author: 前端 qianduan01@didihu.com.cn
* @Date: 2022-10-26 10:22:41
* @LastEditors: huyue
* @LastEditTime: 2023-08-16 16:28:43
* @LastEditTime: 2024-01-26 20:37:51
* @FilePath: \dj-data-view\src\components\ViewChart.vue
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
-->
......@@ -61,7 +61,7 @@ export default {
.line-chart {
width: 25.14vw;
height: 100%;
background: #071735;
// background: #071735;
margin-right: 0.56vw;
}
.pie-chart {
......@@ -70,6 +70,19 @@ export default {
align-items: center;
justify-content: space-between;
flex-wrap: wrap;
/deep/ {
.user-box {
width: 13.12vw;
}
.user-box:nth-child(1),
.user-box:nth-child(3) {
margin-right: 0.21vw;
}
.user-box:nth-child(1),
.user-box:nth-child(2) {
margin-bottom: 0.46vh;
}
}
}
}
</style>
......@@ -3,12 +3,12 @@
* @Author: huyue
* @Date: 2022-06-23 11:28:03
* @LastEditors: huyue
* @LastEditTime: 2023-08-16 16:44:38
* @LastEditTime: 2024-01-26 20:54:33
-->
<template>
<div class="line-group">
<template v-for="(i, index) in items">
<div class="box" :key="index" :style="[{ height: height }, { 'margin-bottom': hideMargin ? 0 : '1vh' }]">
<div class="chat-box" :key="index" :style="[{ height: height }, { 'margin-bottom': hideMargin ? 0 : '1vh' }]">
<slot :name="i"></slot>
</div>
</template>
......@@ -41,4 +41,7 @@ export default {
display: flex;
justify-content: space-between;
}
.chat-box {
background-color: #071735;
}
</style>
......@@ -3,12 +3,12 @@
* @Author: huyue
* @Date: 2023-08-16 14:46:00
* @LastEditors: huyue
* @LastEditTime: 2023-08-22 10:49:36
* @LastEditTime: 2024-01-26 17:49:50
-->
<template>
<div class="pie-group">
<template v-for="(i, index) in items">
<div class="box" :key="index">
<div :key="index">
<slot :name="i"></slot>
</div>
</template>
......
......@@ -2,13 +2,13 @@
* @Author: 前端 qianduan01@didihu.com.cn
* @Date: 2022-10-25 10:12:26
* @LastEditors: huyue
* @LastEditTime: 2023-08-28 10:50:59
* @LastEditTime: 2024-01-26 20:57:07
* @FilePath: \dj-data-view\src\components\ViewSurface.vue
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
-->
<template>
<div class="surface">
<LineBar ref="lineBarCharts" domId="surfaceChart" boxHeight="23.5vh" :dataList="dataList"></LineBar>
<LineBar ref="lineBarCharts" domId="surfaceChart" boxHeight="22.78vh" :dataList="dataList"></LineBar>
</div>
</template>
<script type="text/ecmascript-6">
......
......@@ -3,14 +3,14 @@
* @Author: huyue
* @Date: 2023-08-16 14:44:03
* @LastEditors: huyue
* @LastEditTime: 2023-08-18 17:04:54
* @LastEditTime: 2024-01-26 17:40:27
-->
<template>
<div class="tabs flex">
<div class="tab" :style="{width: `calc((100% - ${(tabs.length - 1) * 0.56 + 0.83 * 2}vw) / ${tabs.length})`}" v-for="item in tabs" :key="item.key">
<div v-if="item.key != 'retention'" class="tab-text">{{ numAddSymbol(dataList[item.key]) }}</div>
<div v-else class="tab-text">{{ toFixNum(dataList[item.key]) }}</div>
<div class="tab-title">{{ item.title }}</div>
<div v-if="item.key != 'retention'" class="tab-text text-linear">{{ numAddSymbol(dataList[item.key]) }}</div>
<div v-else class="tab-text text-linear">{{ toFixNum(dataList[item.key]) }}</div>
</div>
</div>
</template>
......@@ -61,18 +61,22 @@ export default {
<style scoped lang="scss">
.tabs {
padding: 1.22vh 0.83vw 0.98vh;
padding: 1.22vh 0.83vw 0;
// padding: 20px 1.67vw;
height: 8.05vh;
height: 7.78vh;
width: 100%;
// box-sizing: border-box;
// justify-content: space-between;
.tab {
box-sizing: border-box;
padding: 0.98vh 0.56vw;
background: #061422;
box-shadow: inset 0 0 10.42px 0 #3d57ff69;
padding: 1.98vh 0.56vw 0;
height: 100%;
// background: #061422;
// box-shadow: inset 0 0 10.42px 0 #3d57ff69;
margin-right: 0.56vw;
background: url(../../../assets/images/operation/tab-bg.png) no-repeat;
background-size: 100%;
text-align: center;
&:last-child {
margin-right: 0;
}
......@@ -87,6 +91,7 @@ export default {
font-weight: 700;
font-size: 24px;
line-height: 30px;
color: #fff;
}
}
}
......
......@@ -2,7 +2,7 @@
* @Author: 前端 qianduan01@didihu.com.cn
* @Date: 2022-10-25 10:46:24
* @LastEditors: huyue
* @LastEditTime: 2023-08-28 15:28:28
* @LastEditTime: 2024-01-26 20:59:35
* @FilePath: \dj-data-view\src\components\barOptions.js
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
*/
......@@ -56,9 +56,9 @@ function getBarOptions(obj, colorList) {
{
type: 'bar',
symbol: 'circle',
// backgroundStyle: {
// color: '#6578FF'
// },
backgroundStyle: {
color: 'rgba(36, 74, 243, 0.39)'
},
itemStyle: {
barBorderRadius: [2, 2, 0, 0], // 柱体圆角
color: function (params) {
......@@ -265,7 +265,7 @@ function getLineOptions(obj) {
type: 'line',
symbol: 'circle',
itemStyle: {
color: '#F5AA01'
color: '#56FEFE'
},
// 平滑曲线
smooth: true,
......@@ -281,11 +281,11 @@ function getLineOptions(obj) {
colorStops: [
{
offset: 0,
color: 'rgba(254, 84, 0, 0.3)'
color: 'rgba(86, 254, 254, .24)'
},
{
offset: 1,
color: 'rgba(254, 84, 0, 0.01)'
color: 'rgba(86, 254, 254, 0.01)'
}
]
}
......@@ -320,7 +320,7 @@ function lineAndBarOptions(list) {
// },
formatter: function(item) {
const items = list[item[0].dataIndex]
return `<div style="backdrop-filter: blur(4px);background-color: #051526;border: 2px solid;border-image: linear-gradient(90deg, #074989, #30DCFF, #074989) 1;padding: 10px;"><div style="display:flex;"><div style="color: #fff">当月总门店数:${utils.numAddSymbol(item[0].value)}<br>当月新增:${utils.numAddSymbol(item[1].value)}<br>上月总门店数:${utils.numAddSymbol(items.yesterdaytotalNum)}<br>上月月新增:${utils.numAddSymbol(items.yesterdayincreNum)}</div></div>`
return `<div style="backdrop-filter: blur(4px);background-color: rgba(0, 0, 3, 0.85);border: 2px solid;border-image: linear-gradient(90deg, #01A4F9, #6DF5F9, #43dfe3) 1;padding: 10px; border-radius: 4px;"><div style="display:flex;"><div style="color: #fff">当月总门店数:${utils.numAddSymbol(item[0].value)}<br>当月新增:${utils.numAddSymbol(item[1].value)}<br>上月总门店数:${utils.numAddSymbol(items.yesterdaytotalNum)}<br>上月月新增:${utils.numAddSymbol(items.yesterdayincreNum)}</div></div>`
}
},
xAxis: [
......@@ -390,13 +390,33 @@ function lineAndBarOptions(list) {
name: 'line',
type: 'line',
symbol: 'circle',
itemStyle: {
color: '#F5AA01'
},
// 平滑曲线
smooth: true,
showSymbol: false,
data: totalNum
data: totalNum,
itemStyle: {
color: '#56FEFE'
},
// 折线背景色
areaStyle: {
color: {
type: 'linear',
x: 0,
y: 0,
x2: 0,
y2: 1,
colorStops: [
{
offset: 0,
color: 'rgba(86, 254, 254, .24)'
},
{
offset: 1,
color: 'rgba(86, 254, 254, 0.01)'
}
]
}
}
},
{
name: 'bar',
......@@ -412,8 +432,9 @@ function lineAndBarOptions(list) {
barBorderRadius: [2, 2, 0, 0], // 柱体圆角
color: function(params) {
const colorList = [
['#2AD191', '#00A89E', '#061422'],
['#22D8FF', '#223FA9', '#061422']
// ['#2AD191', '#00A89E', '#061422'],
['#00c7ff', '#009cf8', '#006af2'],
['#00c7ff', '#009cf8', '#006af2']
]
var colorItem = []
colorItem = params.dataIndex % 2 === 0 ? colorList[0] : colorList[1]
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!