liyongli 2 years ago
parent
commit
8687e31268
1 changed files with 24 additions and 18 deletions
  1. 24 18
      src/views/report/Mobile/index.vue

+ 24 - 18
src/views/report/Mobile/index.vue

@@ -1,11 +1,14 @@
 <template>
   <div style="font-size: 0; background-color: #fff">
-    <img
-      src="https://cxzx.smcic.net/zhoubao/assets/moblie01.jpg"
-      width="100%"
-      style="margin-bottom: 1em; display: block"
-      alt=""
-    />
+    <div class="content">
+      <img
+        src="https://cxzx.smcic.net/zhoubao/assets/moblie01.jpg"
+        width="100%"
+        class="content"
+        style="margin-bottom: 1em; display: block"
+        alt=""
+      />
+    </div>
     <div class="tv-list" :style="'font-size:' + fontSize + 'px'">
       <div class="content">
         <van-cell-group border title="部门排行">
@@ -18,7 +21,7 @@
               <van-col span="5" class="td"> 发稿量(条) </van-col>
               <van-col span="2" class="td">
                 <img
-                  src="../../../assets/image/shou.gif"
+                  src="../../../assets/image/shou.png"
                   width="26px"
                   alt=""
                   style="vertical-align: middle"
@@ -128,14 +131,14 @@
                     >
                       <template #label>
                         <div style="font-size: 14px; color: #000">
-                          <van-tag type="success" style="margin-right: 3px">
+                          <van-tag size="large" type="success" style="margin-right: 3px">
                             发稿量:{{ timeFormat(v.publish_count) }}
                           </van-tag>
-                          <van-tag type="danger" style="margin-right: 3px">
+                          <van-tag size="large" type="danger" style="margin-right: 3px">
                             阅读量:{{ timeFormat(v.read_count) }}
                           </van-tag>
-                          <van-tag type="warning" style="margin-right: 3px">
-                            阅读量环比:{{ v.huanbi || 0 }}%
+                          <van-tag size="large" type="warning" style="margin-right: 3px">
+                            环比:{{ v.read_huanbi || 0 }}%
                           </van-tag>
                         </div>
                       </template>
@@ -151,7 +154,7 @@
                   :title="v.title"
                 >
                   <template #label>
-                    <van-tag size="large" type="primary"
+                    <van-tag size="large" type="primary"
                       >播放量:{{ timeFormat(v.play_count) }}</van-tag
                     >
                     {{ v.dep_name + "-" + v.nick_name }}
@@ -169,7 +172,7 @@
             :title="v.topic"
           >
             <template #label>
-              <van-tag size="large" type="primary"
+              <van-tag size="large" type="primary"
                 >传播量:{{ timeFormat(v.read_count) }}</van-tag
               >
               {{ v.dep + "-" + v.zhuchiren }}
@@ -184,7 +187,7 @@
             :title="v.title"
           >
             <template #label>
-              <van-tag size="large" type="primary"
+              <van-tag size="large" type="primary"
                 >播放量:{{ timeFormat(v.play_count) }}</van-tag
               >
               {{ v.dep_name + "-" + v.nick_name }}
@@ -194,7 +197,10 @@
       </div>
       <div class="bottom content">
         本数据由“陕西广电融媒体集团大数据平台”提供。
-        <p>技术支持 <span style="white-space: nowrap;">白帆13325452244;</span><span style="white-space: nowrap;">陈科18629350958。</span></p>
+        <p>
+          技术支持 <span style="white-space: nowrap">白帆13325452244;</span
+          ><span style="white-space: nowrap">陈科18629350958。</span>
+        </p>
       </div>
     </div>
   </div>
@@ -258,14 +264,14 @@ export default {
     this.fontSize = (document.body.offsetWidth / 24).toFixed(2) - 0;
     if (document.body.offsetWidth > 677) this.fontSize = 22;
     watermark.setWaterMark({
-      w_texts: ["陕西视听大数据"],
+      w_texts: ["陕西新媒体大数据"],
       w_options: {
         w_opacity: "0.1",
       },
     });
     jsonZhouMobile({
       date: this.$route.params.date,
-      time: Date.now()
+      time: Date.now(),
     }).then(res => {
       this.article = res.article || [];
       this.dep = res.dep || [];
@@ -325,7 +331,7 @@ export default {
       const new_detail = {};
       for (let i = 0; i < detail.length; i++) {
         const v = detail[i];
-        v.huanbi = (v.huanbi * 100).toFixed(2) - 0;
+        v.read_huanbi = (v.read_huanbi * 100).toFixed(2) - 0;
         if (new_detail[v.platform]) new_detail[v.platform].push(v);
         else new_detail[v.platform] = [v];
       }