xiaohaizhao 2 лет назад
Родитель
Сommit
101ffd93e4
2 измененных файлов с 5 добавлено и 2 удалено
  1. 2 2
      packageA/salesHourglass/index.js
  2. 3 0
      packageA/salesHourglass/index.scss

+ 2 - 2
packageA/salesHourglass/index.js

@@ -151,11 +151,11 @@ Page({
             "content": this.data.content
         }).then(res => {
             console.log("漏斗数据", res)
-            let full = Math.max(...res.data.map(v => v.sequence1));
+            let full = Math.max(...res.data.map(v => v.wide));
             let statistics = res.data.map((v, i) => {
                 v.action = v.stagename
                 v.zhl = i == 0 ? '' : `转换率:${(v.zhl * 100).toFixed(2)}%`
-                v.percent = v.sequence1 / full;
+                v.percent = v.wide / full;
                 v.totalinvestment = conversion(v.totalinvestment).value
                 v.budgetary = conversion(v.budgetary).value
                 v.signamount_due = conversion(v.signamount_due).value

+ 3 - 0
packageA/salesHourglass/index.scss

@@ -20,6 +20,9 @@
         font-size: 28rpx;
         font-family: PingFang SC-Regular, PingFang SC;
         color: #666666;
+        width: 120rpx;
+        text-align: right;
+        line-height: 60rpx;
     }
 }