|
@@ -1,7 +1,9 @@
|
|
|
<template>
|
|
|
<div style="font-size: 0; background-color: #fff">
|
|
|
<img
|
|
|
- :src="'https://cxzx.smcic.net/zhoubao/assets/tv'+ $route.query.date +'.jpg'"
|
|
|
+ :src="
|
|
|
+ 'https://cxzx.smcic.net/zhoubao/assets/tv' + $route.query.date + '.jpg'
|
|
|
+ "
|
|
|
width="100%"
|
|
|
class="content"
|
|
|
style="margin-bottom: 1em; display: block"
|
|
@@ -135,7 +137,9 @@
|
|
|
</van-cell>
|
|
|
<van-cell-group title="视听收视新指标">
|
|
|
<van-row>
|
|
|
- <van-col span="10" class="td" style="text-align: right;"> 收视总时长: </van-col>
|
|
|
+ <van-col span="10" class="td" style="text-align: right">
|
|
|
+ 收视总时长:
|
|
|
+ </van-col>
|
|
|
<van-col span="14" class="td">
|
|
|
<counto
|
|
|
:startVal="0"
|
|
@@ -148,7 +152,9 @@
|
|
|
ratios.timecountWei
|
|
|
}}
|
|
|
</van-col>
|
|
|
- <van-col span="10" class="td" style="text-align: right;"> 收视总次数: </van-col>
|
|
|
+ <van-col span="10" class="td" style="text-align: right">
|
|
|
+ 收视总次数:
|
|
|
+ </van-col>
|
|
|
<van-col span="14" class="td">
|
|
|
<counto
|
|
|
:startVal="0"
|
|
@@ -162,7 +168,9 @@
|
|
|
}}
|
|
|
</van-col>
|
|
|
|
|
|
- <van-col span="10" class="td" style="text-align: right;"> 周活跃户数: </van-col>
|
|
|
+ <van-col span="10" class="td" style="text-align: right">
|
|
|
+ 周活跃户数:
|
|
|
+ </van-col>
|
|
|
<van-col span="14" class="td">
|
|
|
<counto
|
|
|
:startVal="0"
|
|
@@ -175,6 +183,13 @@
|
|
|
ratios.usrcountWei
|
|
|
}}
|
|
|
</van-col>
|
|
|
+
|
|
|
+ <van-col span="10" class="td" style="text-align: right">
|
|
|
+ 接触频次:
|
|
|
+ </van-col>
|
|
|
+ <van-col span="14" class="td">
|
|
|
+ {{ formatType1(ratios.touchfreq, 0) }}
|
|
|
+ </van-col>
|
|
|
</van-row>
|
|
|
</van-cell-group>
|
|
|
<van-cell-group title="传统指标">
|
|
@@ -199,6 +214,10 @@
|
|
|
<van-col span="5" class="td"
|
|
|
>{{ formatNum(ratios.loyalty, 2) }}%
|
|
|
</van-col>
|
|
|
+ <van-col span="7" class="td"> 接触度: </van-col>
|
|
|
+ <van-col span="7" class="td"
|
|
|
+ >{{ formatType1(ratios.hitcount, 0) }}
|
|
|
+ </van-col>
|
|
|
</van-row>
|
|
|
</van-cell-group>
|
|
|
<div ref="pie"></div>
|
|
@@ -291,7 +310,7 @@ export default {
|
|
|
jsonZhou({
|
|
|
start: firstDay.format("YYYYMMDD"),
|
|
|
end: lasetDay.format("YYYYMMDD"),
|
|
|
- time: Date.now()
|
|
|
+ time: Date.now(),
|
|
|
})
|
|
|
.then(res => {
|
|
|
const title = {
|
|
@@ -331,6 +350,15 @@ export default {
|
|
|
},
|
|
|
computed: {},
|
|
|
methods: {
|
|
|
+ formatType1(num, W) {
|
|
|
+ let N = this.formatNum(num, 2);
|
|
|
+ if (N >= 100000000) {
|
|
|
+ N = (N / 100000000).toFixed(W || 2) + "亿";
|
|
|
+ } else if (N >= 10000) {
|
|
|
+ N = (N / 10000).toFixed(W || 2) + "万";
|
|
|
+ }
|
|
|
+ return N;
|
|
|
+ },
|
|
|
formatNum(num, w) {
|
|
|
if (isNaN(num)) return 0;
|
|
|
return Number(num).toFixed(w || 4) - 0;
|