Jelajahi Sumber

修改球有小数 修改排序

zhbyyy 1 tahun lalu
induk
melakukan
c86ecefda1
2 mengubah file dengan 10 tambahan dan 7 penghapusan
  1. 7 7
      investment/investHome2.html
  2. 3 0
      investment/js/investHome2.js

+ 7 - 7
investment/investHome2.html

@@ -52,6 +52,13 @@
                   </div>
                   <div class="item2-text">上年度净利润</div>
                 </div>
+                <div class="item2">
+                  <div class="item2-title" style="color: #08E4FA;">179.39<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 class="item2">
                   <div class="item2-title" style="color: #DD9CFF;">386.29<span>亿</span></div>
                   <div class="item2-img">
@@ -66,13 +73,6 @@
                   </div>
                   <div class="item2-text">无形资产摊销</div>
                 </div>
-                <div class="item2">
-                  <div class="item2-title" style="color: #08E4FA;">179.39<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" style="position:relative">
                 <div class="total">总额度<span style="font-size: 25px;">1,123.85亿</span></div>

+ 3 - 0
investment/js/investHome2.js

@@ -887,6 +887,9 @@ let app = new Vue({
             },
             label: {
               normal: {
+                formatter: function (data) {
+                  return (data.value * 100).toFixed(2) +'%'
+                },
                 textStyle: {
                   fontSize: 30,
                   color: '#fff',