diff --git a/project/dv/apps/AppPdDv.vue b/project/dv/apps/AppPdDv.vue
index 312115ff..ca4101af 100644
--- a/project/dv/apps/AppPdDv.vue
+++ b/project/dv/apps/AppPdDv.vue
@@ -33,7 +33,7 @@
-
单聊统计
-
@@ -216,7 +217,8 @@
data () {
return {
leftIndex: 0,
- rightIndex: 0
+ rightIndex: 0,
+ dlIndex: 0
}
},
@@ -225,8 +227,14 @@
setTimeout(() => {
this.initLineChart('.chart1')
this.initLineChart('.chart2')
- this.initBarChart('.chart3')
- this.initBarChart('.chart4')
+ this.initBarChart('.chart4', [
+ {offset: 0, color: 'rgba(66, 255, 254, 1)'},
+ {offset: 1, color: 'rgba(37, 255, 246, 0.2)'}
+ ])
+ this.initBarChart('.chart3', [
+ {offset: 0, color: 'rgba(66, 187, 255, 1)'},
+ {offset: 1, color: 'rgba(37, 143, 255, 0.2)'}
+ ])
}, 500)
})
},
@@ -314,7 +322,7 @@
option && myChart.setOption(option)
},
- initBarChart (el) {
+ initBarChart (el, color) {
var chartDom = document.querySelector(el)
var myChart = echarts.init(chartDom)
var option
@@ -357,10 +365,7 @@
x2: 0,
y: 0,
y2: 1,
- colorStops: [
- {offset: 0, color: 'rgba(47, 211, 241, 1)'},
- {offset: 1, color: 'rgba(47, 211, 241, 0)'}
- ]
+ colorStops: color
}
],
tooltip: {
@@ -414,7 +419,69 @@
align-items: center;
justify-content: space-between;
height: 84px;
- margin-bottom: 23px;
+ margin-bottom: 20px;
+ }
+
+ .dl {
+ display: flex;
+ align-items: center;
+ justify-content: space-between;
+
+ .item-top__item {
+ display: flex;
+ align-items: center;
+ justify-content: center;
+ flex-direction: column;
+ width: 164px;
+ height: 52px;
+ line-height: 1;
+ cursor: pointer;
+ user-select: none;
+ background: url(https://cdn.cunwuyun.cn/dvcp/dv/pddv/dl3.png);
+ background-size: 100% 100%;
+
+ h2 {
+ margin-bottom: 4px;
+ color: #4488FB;
+ font-size: 12px;
+ }
+
+ &:nth-of-type(2) {
+ background: url(https://cdn.cunwuyun.cn/dvcp/dv/pddv/dl4.png);
+ background-size: 100% 100%;
+
+ h2 {
+ color: #2AB7D1;
+ }
+ }
+
+ p {
+ font-size: 14px;
+ color: #fff;
+ font-weight: bold;
+ font-style: oblique;
+ }
+
+ &.active {
+ &:nth-of-type(1) {
+ background: url(https://cdn.cunwuyun.cn/dvcp/dv/pddv/dl1.png);
+ background-size: 100% 100%;
+
+ h2 {
+ color: #fff;
+ }
+ }
+
+ &:nth-of-type(2) {
+ background: url(https://cdn.cunwuyun.cn/dvcp/dv/pddv/dl2.png);
+ background-size: 100% 100%;
+
+ h2 {
+ color: #fff;
+ }
+ }
+ }
+ }
}
.appPdDv-title {