Browse Source

Merge branch 'main' of https://git.sxidc.com/kingdee_large_screen/pc_kingdee_large_screen

unknown 1 year ago
parent
commit
3e31c60dd3
3 changed files with 108 additions and 122 deletions
  1. 37 91
      investment/investHome2.html
  2. 57 26
      investment/js/investHome2.js
  3. 14 5
      investment/styles/investHome2.css

+ 37 - 91
investment/investHome2.html

@@ -36,98 +36,44 @@
       <div class="main">
         <div class="left">
           <dv-border-box-8 :dur="10" style="flex: 1; margin-bottom: 10px;">
-            <div style="height:100%">
-              <div class="title">
-                <!-- <span class="title-left">山西焦煤</span> -->
-                <span class="text">投资额度分析</span>
-                <!-- <span class="tip-window">2023年</span> -->
-              </div>
-              <div class="content">
-                <div class="content-left" style="flex-wrap: wrap;">
-                  <div id="swiper" class="swiper" style="height:100%">
-                    <div class="swiper-wrapper">
-                      <div class="swiper-slide">
-                        <div class="swiperChange">
-                          <div class="topChange0">
-                            <div>山西焦煤</div>
-                          </div>
-                          <div class="topChange1">
-                            <div class="item2">
-                              <div class="item2-title" style="color: #15FFA2;">574.12<span>亿</span></div>
-                              <div class="item2-img">
-                                <img style="width: 100%; height: 100%;" src="./images/icon-4-home2.png" alt="">
-                              </div>
-                              <div class="item2-text">上年度经营利润</div>
-                            </div>
-                            <div class="item2">
-                              <div class="item2-title" style="color: #DD9CFF;">212.21<span>亿</span></div>
-                              <div class="item2-img">
-                                <img style="width: 100%; height: 100%;" src="./images/icon-5-home2.png" alt="">
-                              </div>
-                              <div class="item2-text">固定资产折旧</div>
-                            </div>
-                            <div class="item2">
-                              <div class="item2-title" style="color: #EBC805;">222.31<span>亿</span></div>
-                              <div class="item2-img">
-                                <img style="width: 100%; height: 100%;" src="./images/icon-6-home2.png" alt="">
-                              </div>
-                              <div class="item2-text">无形资产摊销</div>
-                            </div>
-                            <div class="item2">
-                              <div class="item2-title" style="color: #08E4FA;">523.32<span>亿</span></div>
-                              <div class="item2-img">
-                                <img style="width: 100%; height: 100%;" src="./images/icon-7-home2.png" alt="">
-                              </div>
-                              <div class="item2-text">带息负债压降指标</div>
-                            </div>
-                          </div>
-                        </div>
-                      </div>
-                      <div class="swiper-slide">
-                        <div class="swiperChange">
-                          <div class="topChange0">
-                            <div>山西焦煤</div>
-                          </div>
-                          <div class="topChange1">
-                            <div class="item2">
-                              <div class="item2-title" style="color: #15FFA2;">574.12<span>亿</span></div>
-                              <div class="item2-img">
-                                <img style="width: 100%; height: 100%;" src="./images/icon-4-home2.png" alt="">
-                              </div>
-                              <div class="item2-text">上年度经营利润</div>
-                            </div>
-                            <div class="item2">
-                              <div class="item2-title" style="color: #DD9CFF;">212.21<span>亿</span></div>
-                              <div class="item2-img">
-                                <img style="width: 100%; height: 100%;" src="./images/icon-5-home2.png" alt="">
-                              </div>
-                              <div class="item2-text">固定资产折旧</div>
-                            </div>
-                            <div class="item2">
-                              <div class="item2-title" style="color: #EBC805;">222.31<span>亿</span></div>
-                              <div class="item2-img">
-                                <img style="width: 100%; height: 100%;" src="./images/icon-6-home2.png" alt="">
-                              </div>
-                              <div class="item2-text">无形资产摊销</div>
-                            </div>
-                            <div class="item2">
-                              <div class="item2-title" style="color: #08E4FA;">523.32<span>亿</span></div>
-                              <div class="item2-img">
-                                <img style="width: 100%; height: 100%;" src="./images/icon-7-home2.png" alt="">
-                              </div>
-                              <div class="item2-text">带息负债压降指标</div>
-                            </div>
-                          </div>
-                        </div>
-                      </div>
-                    </div>
+            <div class="title">
+              <span class="text">投资额度分析</span>
+              <!-- <span class="tip-window">2023年</span> -->
+            </div>
+            <div class="content">
+              <div class="content-left" style="flex-wrap: wrap;">
+                <div class="item2">
+                  <div class="item2-title" style="color: #15FFA2;">574.12<span>亿</span></div>
+                  <div class="item2-img">
+                    <img style="width: 100%; height: 100%;" src="./images/icon-4-home2.png" alt="">
+                  </div>
+                  <div class="item2-text">上一年度经营业绩</div>
+                </div>
+                <div class="item2">
+                  <div class="item2-title" style="color: #DD9CFF;">212.21<span>亿</span></div>
+                  <div class="item2-img">
+                    <img style="width: 100%; height: 100%;" src="./images/icon-5-home2.png" alt="">
+                  </div>
+                  <div class="item2-text">上一年度经营业绩</div>
+                </div>
+                <div class="item2">
+                  <div class="item2-title" style="color: #EBC805;">222.31<span>亿</span></div>
+                  <div class="item2-img">
+                    <img style="width: 100%; height: 100%;" src="./images/icon-6-home2.png" alt="">
                   </div>
+                  <div class="item2-text">上一年度经营业绩</div>
                 </div>
-                <div class="content-right">
-                  <div ref="echartL2" class="topChange2" style="width: 100%; height: 100%;"></div>
-                  <img src="./images/left-arrow.png" alt="" class="jt">
+                <div class="item2">
+                  <div class="item2-title" style="color: #08E4FA;">523.32<span>亿</span></div>
+                  <div class="item2-img">
+                    <img style="width: 100%; height: 100%;" src="./images/icon-7-home2.png" alt="">
+                  </div>
+                  <div class="item2-text">上一年度经营业绩</div>
                 </div>
               </div>
+              <div class="content-right">
+                <div ref="echartL2" style="width: 100%; height: 100%;"></div>
+              </div>
             </div>
           </dv-border-box-8>
           <dv-border-box-8 :dur="10" style="flex: 1; margin-bottom: 10px;">
@@ -167,7 +113,7 @@
                     <div class="item3-img">
                       <img style="width: 100%; height: 100%;" src="./images/icon-8-home2.png" alt="">
                     </div>
-                    <div class="item4-text" style="color:#ffffff99">
+                    <div class="item4-text">
                       年度投资计划总额
                     </div>
                   </div>
@@ -217,7 +163,7 @@
           </dv-border-box-8>
           <dv-border-box-8 :dur="10" style="flex: 1;margin-bottom: 10px;">
             <div class="title">
-              <span class="text">产业类别分析</span>
+              <span class="text">企业后评价分析</span>
             </div>
             <div class="content">
               <div class="fourPie">
@@ -238,7 +184,7 @@
           </dv-border-box-8>
           <dv-border-box-8 :dur="10" style="flex: 1;">
             <div class="title">
-              <span class="text">项目阶段分析</span>
+              <span class="text">投前项目阶段分析</span>
               <!-- <span class="tip-window">省重点项目</span> -->
             </div>
             <div class="content" style="flex-direction: column;">

+ 57 - 26
investment/js/investHome2.js

@@ -97,7 +97,7 @@ let app = new Vue({
       swiper.el.onmouseout = function () {
         swiper.autoplay.start();
       }
-    }, 500)
+    })
   },
   methods: {
     convertData (data) {
@@ -589,7 +589,7 @@ let app = new Vue({
           },
         },
         yAxis: {
-          // name: '亿元',
+          name: '亿元',
           nameTextStyle: {//y轴上方单位的颜色
             color: '#fff',
           },
@@ -932,10 +932,10 @@ let app = new Vue({
         ],
       }
       myChart.setOption(option)
-      tools.loopShowTooltip(myChart, option, {
-        nterval: 2000,
-        loopSeries: true,
-      })
+      // tools.loopShowTooltip(myChart, option, {
+      //   nterval: 2000,
+      //   loopSeries: true,
+      // })
     },
     initChartL4 () {
       let myChart = echarts.init(this.$refs['echartL4'])
@@ -951,16 +951,20 @@ let app = new Vue({
         },
         tooltip: {
           trigger: 'item',
+          formatter: '{b}' + ':' + '{c}' + '<br/>' + '占比:' + '{d}%',
+          // position: ['30%', '87%'],
         },
         color: ['#6682f5', '#8ba2ff', '#69c0ff', '#43ede3'],
         legend: {
-          show: false,
+          orient: 'horizontal',
+          show: true,
           icon: 'circle',
           top: 'bottom',
           orient: 'vertical',
-          right: '1%',
+          right: '-3%',
           textStyle: {
             color: '#9DB9EB',
+            fontSize: '10px'
           },
         },
         series: [
@@ -968,10 +972,12 @@ let app = new Vue({
             name: '',
             type: 'pie',
             // radius: ['0%', '70%'],
-            radius: ['50%', '75%'],
-            center: ['50%', '60%'],
+            radius: ['40%', '55%'],
+            center: ['45%', '55%'],
             itemStyle: {
               normal: {
+                borderColor: 'rgba(1,31,64,0.7)',
+                borderWidth: 6,
                 label: {
                   show: false,
                 },
@@ -1009,16 +1015,19 @@ let app = new Vue({
         },
         tooltip: {
           trigger: 'item',
+          formatter: '{b}' + ':' + '{c}' + '<br/>' + '占比:' + '{d}%',
+          // position: ['30%', '87%'],
         },
         color: ['#6682f5', '#8ba2ff', '#69c0ff', '#43ede3'],
         legend: {
-          show: false,
+          show: true,
           icon: 'circle',
           top: 'bottom',
           orient: 'vertical',
-          right: '1%',
+          right: '-3%',
           textStyle: {
             color: '#9DB9EB',
+            fontSize: '10px'
           },
         },
         series: [
@@ -1026,10 +1035,12 @@ let app = new Vue({
             name: '',
             type: 'pie',
             // radius: ['0%', '70%'],
-            radius: ['50%', '75%'],
-            center: ['50%', '60%'],
+            radius: ['40%', '55%'],
+            center: ['45%', '55%'],
             itemStyle: {
               normal: {
+                borderColor: 'rgba(1,31,64,0.7)',
+                borderWidth: 6,
                 label: {
                   show: false,
                 },
@@ -1066,16 +1077,19 @@ let app = new Vue({
         },
         tooltip: {
           trigger: 'item',
+          formatter: '{b}' + ':' + '{c}' + '<br/>' + '占比:' + '{d}%',
+          // position: ['30%', '87%'],
         },
         color: ['#6682f5', '#8ba2ff', '#69c0ff', '#43ede3'],
         legend: {
-          show: false,
+          show: true,
           icon: 'circle',
           top: 'bottom',
           orient: 'vertical',
-          right: '1%',
+          right: '-3%',
           textStyle: {
             color: '#9DB9EB',
+            fontSize: '10px'
           },
         },
         series: [
@@ -1083,10 +1097,12 @@ let app = new Vue({
             name: '',
             type: 'pie',
             // radius: ['0%', '70%'],
-            radius: ['50%', '75%'],
-            center: ['50%', '60%'],
+            radius: ['40%', '55%'],
+            center: ['45%', '55%'],
             itemStyle: {
               normal: {
+                borderColor: 'rgba(1,31,64,0.7)',
+                borderWidth: 6,
                 label: {
                   show: false,
                 },
@@ -1123,16 +1139,19 @@ let app = new Vue({
         },
         tooltip: {
           trigger: 'item',
+          formatter: '{b}' + ':' + '{c}' + '<br/>' + '占比:' + '{d}%',
+          // position: ['30%', '87%'],
         },
         color: ['#6682f5', '#8ba2ff', '#69c0ff', '#43ede3'],
         legend: {
-          show: false,
+          show: true,
           icon: 'circle',
           top: 'bottom',
           orient: 'vertical',
-          right: '1%',
+          right: '-3%',
           textStyle: {
             color: '#9DB9EB',
+            fontSize: '10px'
           },
         },
         series: [
@@ -1140,10 +1159,12 @@ let app = new Vue({
             name: '',
             type: 'pie',
             // radius: ['0%', '70%'],
-            radius: ['50%', '75%'],
-            center: ['50%', '60%'],
+            radius: ['40%', '55%'],
+            center: ['45%', '55%'],
             itemStyle: {
               normal: {
+                borderColor: 'rgba(1,31,64,0.7)',
+                borderWidth: 6,
                 label: {
                   show: false,
                 },
@@ -1338,16 +1359,19 @@ let app = new Vue({
         },
         tooltip: {
           trigger: 'item',
+          formatter: '{b}' + ':' + '{c}' + '<br/>' + '占比:' + '{d}%',
+          // position: ['-5%', '95%'],
         },
         color: ['#6682f5', '#8ba2ff', '#69c0ff', '#43ede3'],
         legend: {
-          show: false,
+          show: true,
           icon: 'circle',
           top: 'bottom',
           orient: 'vertical',
-          right: '1%',
+          right: '-3%',
           textStyle: {
             color: '#9DB9EB',
+            fontSize: '10px'
           },
         },
         series: [
@@ -1358,6 +1382,8 @@ let app = new Vue({
             center: ['50%', '45%'],
             itemStyle: {
               normal: {
+                borderColor: 'rgba(1,31,64,0.7)',
+                borderWidth: 6,
                 label: {
                   show: false,
                 },
@@ -1395,16 +1421,19 @@ let app = new Vue({
         },
         tooltip: {
           trigger: 'item',
+          formatter: '{b}' + ':' + '{c}' + '<br/>' + '占比:' + '{d}%',
+          // position: ['-5%', '95%'],
         },
         color: ['#6682f5', '#8ba2ff', '#69c0ff', '#43ede3'],
         legend: {
-          show: false,
+          show: true,
           icon: 'circle',
           top: 'bottom',
           orient: 'vertical',
-          right: '1%',
+          right: '-3%',
           textStyle: {
             color: '#9DB9EB',
+            fontSize: '10px'
           },
         },
         series: [
@@ -1415,6 +1444,8 @@ let app = new Vue({
             center: ['50%', '45%'],
             itemStyle: {
               normal: {
+                borderColor: 'rgba(1,31,64,0.7)',
+                borderWidth: 6,
                 label: {
                   show: false,
                 },

+ 14 - 5
investment/styles/investHome2.css

@@ -311,18 +311,23 @@ a {
   background-color: #05183c;
   flex: 1;
 }
+.content-con {
+  background-color: #05183c;
+  margin: 0 10px;
+}
 .topChange1 {
   background-color: #05183c;
 }
-/* .left .content .content-right,
+.left .content .content-right,
 .left .content .content-left {
   flex: 1;
-} */
+  background-color: #05183c;
+}
 .left .content .content-right {
   width: 40%;
 }
 .left .content .content-left {
-  width: 60%;
+  width: 100%;
 }
 .right .title {
   position: relative;
@@ -458,7 +463,7 @@ a {
   width: 16%;
   height: 100%;
   text-align: center;
-  color: #ffffff99;
+  color: #ffffff;
   font-size: 22px;
   display: flex;
   justify-content: center;
@@ -578,7 +583,7 @@ a {
   font-weight: bold;
 }
 .row-item {
-  color: #ffffff99;
+  color: #ffffff;
 }
 .swiper {
   width: 600px;
@@ -596,3 +601,7 @@ a {
   height: 100%;
   align-items: center;
 }
+.mySwiper {
+  /* width: 100%; */
+  overflow: hidden;
+}