liyongli 2 年之前
父節點
當前提交
13cc25cef3

+ 8 - 5
src/assets/style/CommonBigScreenHome.css

@@ -240,7 +240,10 @@
 }
 
 .btn {
-  float: right;
+  right: 0;
+  top: 0;
+  z-index: 1;
+  position: absolute;
   background-color: #1a62eb;
   border-radius: 5px;
   padding: 8px 15px;
@@ -249,10 +252,10 @@
   font-weight: 500;
 }
 
-.ismore{
-    width: 1em;
+.ismore {
+  width: 1em;
 }
 
-.selfSwiper{
-    width: 438px;
+.selfSwiper {
+  width: 438px;
 }

+ 0 - 1
src/pages/CommonBigScreen/Home.jsx

@@ -45,7 +45,6 @@ function BigScreenHome() {
             if (r.code != 0) return
             const d = r.data || {};
             setoriData(d || {})
-            console.log(d)
             setHeadTitle([
                 {
                     title: "传统媒体-覆盖终端",

+ 0 - 1
src/pages/bigScreen/components/Column_g2.jsx

@@ -119,7 +119,6 @@ function Column(prop) {
                 formatter: n => {
                     const nl = n.split(""), len = nl.length > 6 ? 5 : nl.length, out = [];
                     for (let i = 0; i < len; i++) {
-                        console.log(len)
                         if (len === 4 && i % 2 !== 1) {
                             out.push(nl[i]);
                             continue

+ 0 - 1
src/pages/bigScreen/components/Map-l7.jsx

@@ -75,7 +75,6 @@ function Map(prop) {
                 minZoom: 5.4,
             })
         });
-        console.log("---")
         scene.setMapStatus({ dragEnable: false });
         scene.on('loaded', () => {
 

+ 16 - 3
src/pages/bigScreen/components/SelfPlatform.jsx

@@ -29,8 +29,8 @@ function Usertrend(prop) {
             height,
             width,
             padding: [
-                10,
-                40,
+                20,
+                60,
                 30,
                 70,
             ]
@@ -91,7 +91,20 @@ function Usertrend(prop) {
             grid: null
         });
         chart.tooltip(false);
-        chart.line().shape('smooth').color('#3ae8ef').position('Data*sales');
+        chart.line().shape('smooth').color('#3ae8ef').position('Data*sales').label('sales', val => {
+            return {
+                content: utils.formatNum(val, 0) + '次',
+                offsetX: 20,
+                style: {
+                    fill: "#ffffff",
+                },
+                transform: [
+                    {
+                        type: 'overlapHide',
+                    },
+                ],
+            }
+        });
         chart.area().shape('smooth').color('l(90) 0:#3ae8ef 1:rgba(0,0,0,0)').position('Data*sales');
         chart.render();
     }

+ 15 - 2
src/pages/bigScreen/components/Usertrend.jsx

@@ -29,7 +29,7 @@ function Usertrend(prop) {
             width,
             padding: [
                 10,
-                40,
+                60,
                 30,
                 70,
             ]
@@ -87,7 +87,20 @@ function Usertrend(prop) {
         });
         chart.tooltip(false);
 
-        chart.line().shape('smooth').color('#3ae8ef').position('Data*sales');
+        chart.line().shape('smooth').color('#3ae8ef').position('Data*sales').label('sales', val => {
+            return {
+                content: utils.formatNum(val, 0) + '次',
+                offsetX: 20,
+                style: {
+                    fill: "#ffffff",
+                },
+                transform: [
+                    {
+                        type: 'overlapHide',
+                    },
+                ],
+            }
+        });
         chart.area().shape('smooth').color('l(90) 0:#3ae8ef 1:rgba(0,0,0,0)').position('Data*sales');
         chart.render();
     }