liyongli 3 жил өмнө
parent
commit
fac3df8c09

+ 16 - 24
src/pages/aiChannel/Index.vue

@@ -71,6 +71,12 @@
           </div>
         </div>
 
+        <!-- <div class="title">
+          <div class="icon"></div>
+          平台分布
+        </div>
+        <Interval id="interval2" :list="propagation(platform.data, 'total')" /> -->
+
         <van-notice-bar
           v-if="platform.auto_reason || platform.human_reason"
           color="#1989fa"
@@ -78,7 +84,10 @@
           wrapable
           :scrollable="false"
         >
-          <div v-html="platform.auto_reason + platform.human_reason"></div>
+          <div
+            style="text-indent: 2em;"
+            v-html="platform.auto_reason + platform.human_reason"
+          ></div>
         </van-notice-bar>
       </div>
       <van-cell size="large" title="详细数据"> </van-cell>
@@ -103,18 +112,13 @@
           <div class="icon"></div>
           发稿趋势
         </div>
-        <Area id="area4" :list="propagationMore(platform.history, 'total')" />
-        <div class="title">
+        <Area id="area4" :list="propagationMore(platform.history, 'total')" /> -->
+        <!-- <div class="title">
           <div class="icon"></div>
           传播量
         </div>
-        <Ring id="ring1" :list="propagation(platform.data, 'play_count')" />
-        <div class="title">
-          <div class="icon"></div>
-          平台分布
-        </div>
-        <Interval id="interval2" :list="propagation(platform.data, 'total')" />
-        <div class="title">
+        <Ring id="ring1" :list="propagation(platform.data, 'play_count')" /> -->
+        <!-- <div class="title">
           <div class="icon"></div>
           新增粉丝数
         </div>
@@ -221,18 +225,6 @@ export default {
     getAiData(Date.now()).then(r => {
       this.load = false;
       const res = r || {};
-      if (res.cm) {
-        if (res.cm.auto_reason)
-          res.cm.auto_reason = "<p>" + res.cm.auto_reason + "</p>";
-        if (res.cm.human_reason)
-          res.cm.human_reason = "<p>" + res.cm.human_reason + "</p>";
-      }
-      if (res.xmt) {
-        if (res.xmt.auto_reason)
-          res.xmt.auto_reason = "<p>" + res.xmt.auto_reason + "</p>";
-        if (res.xmt.human_reason)
-          res.xmt.human_reason = "<p>" + res.xmt.human_reason + "</p>";
-      }
       this.cm = res.cm || {
         auto_reason: "",
         human_reason: "",
@@ -253,7 +245,7 @@ export default {
           this.totalApp.play_count += v.play_count || 0;
           this.totalApp.new_fans += v.new_fans || 0;
         });
-      this.channelName = this.cm.table.find(v => v.select).channelname;
+      this.channelName = res.name;
     });
   },
   beforeDestroy: function() {},
@@ -267,7 +259,7 @@ export default {
     vanNoticeBar,
     // Ring,
     Area
-    // Interval,
+    // Interval
     // Bar
     // Radar
     // WordCloud