|
@@ -8,7 +8,7 @@ import "../../assets/style/CommonBigScreenHome.css";
|
|
|
|
|
|
import Usertrend from "./components/Usertrend";
|
|
import Usertrend from "./components/Usertrend";
|
|
import SelfPlatform from "./components/SelfPlatform";
|
|
import SelfPlatform from "./components/SelfPlatform";
|
|
-import Column from "./components/Column_g2";
|
|
|
|
|
|
+// import Column from "./components/Column_g2";
|
|
import ListeningRate from "./components/ListeningRate_g2";
|
|
import ListeningRate from "./components/ListeningRate_g2";
|
|
import Activity from "./components/Activity";
|
|
import Activity from "./components/Activity";
|
|
import Map from "./components/Map-l7";
|
|
import Map from "./components/Map-l7";
|
|
@@ -33,20 +33,7 @@ function setTQ(TQ) {
|
|
|
|
|
|
function BigScreenHome() {
|
|
function BigScreenHome() {
|
|
const [HeadTitle, setHeadTitle] = createSignal();
|
|
const [HeadTitle, setHeadTitle] = createSignal();
|
|
- const [proTv, setproTv] = createSignal([
|
|
|
|
- {
|
|
|
|
- text: "陕台频道收视率",
|
|
|
|
- value: 0
|
|
|
|
- },
|
|
|
|
- {
|
|
|
|
- text: "陕台频道忠诚度",
|
|
|
|
- value: 0
|
|
|
|
- },
|
|
|
|
- {
|
|
|
|
- text: "陕台频道市场份额",
|
|
|
|
- value: 0
|
|
|
|
- },
|
|
|
|
- ])
|
|
|
|
|
|
+ const [proTv, setproTv] = createSignal([])
|
|
const [oriData, setoriData] = createStore({});
|
|
const [oriData, setoriData] = createStore({});
|
|
let $ele = undefined, mainHeight = document.body.offsetHeight * 0.925 - 124;
|
|
let $ele = undefined, mainHeight = document.body.offsetHeight * 0.925 - 124;
|
|
|
|
|
|
@@ -60,7 +47,8 @@ function BigScreenHome() {
|
|
setoriData(d || {})
|
|
setoriData(d || {})
|
|
setHeadTitle([
|
|
setHeadTitle([
|
|
{
|
|
{
|
|
- title: "覆盖终端",
|
|
|
|
|
|
+ title: "传统媒体-覆盖终端",
|
|
|
|
+ color: "rgb(153,204,255)",
|
|
value: d.media_overview.data.totalUser,
|
|
value: d.media_overview.data.totalUser,
|
|
path: [
|
|
path: [
|
|
{
|
|
{
|
|
@@ -70,7 +58,8 @@ function BigScreenHome() {
|
|
]
|
|
]
|
|
},
|
|
},
|
|
{
|
|
{
|
|
- title: "日活跃用户",
|
|
|
|
|
|
+ title: "传统媒体-日活跃用户",
|
|
|
|
+ color: "rgb(0,255,0)",
|
|
value: d.media_overview.data.activeUser,
|
|
value: d.media_overview.data.activeUser,
|
|
path: [
|
|
path: [
|
|
{
|
|
{
|
|
@@ -104,8 +93,10 @@ function BigScreenHome() {
|
|
]
|
|
]
|
|
},
|
|
},
|
|
{
|
|
{
|
|
- title: "日收视次数",
|
|
|
|
- value: d.media_overview.data.watchCount,
|
|
|
|
|
|
+ title: "传统媒体-日收视次数",
|
|
|
|
+ color: "rgb(153,204,0)",
|
|
|
|
+ value: d.media_overview.data.timeCount,
|
|
|
|
+ key: '次',
|
|
path: [
|
|
path: [
|
|
{
|
|
{
|
|
d: "M682.666667 853.333333H213.333333V213.333333h469.333334v256h170.666666v384h-170.666666z m0-42.666666h128v-298.666667h-128v298.666667z m-42.666667-298.666667V256H256v554.666667h384v-298.666667zM341.333333 384V298.666667h42.666667v85.333333H341.333333z m85.333334 0V298.666667h42.666666v85.333333h-42.666666z m-85.333334 128v-85.333333h42.666667v85.333333H341.333333z m85.333334 0v-85.333333h42.666666v85.333333h-42.666666z m-85.333334 128v-85.333333h42.666667v85.333333H341.333333z m85.333334 0v-85.333333h42.666666v85.333333h-42.666666z m-85.333334 128v-85.333333h42.666667v85.333333H341.333333z m85.333334 0v-85.333333h42.666666v85.333333h-42.666666z m85.333333-384V298.666667h42.666667v85.333333h-42.666667z m0 128v-85.333333h42.666667v85.333333h-42.666667z m0 128v-85.333333h42.666667v85.333333h-42.666667z m0 128v-85.333333h42.666667v85.333333h-42.666667z m213.333333-170.666667v-42.666666h42.666667v42.666666h-42.666667z m0 85.333334v-42.666667h42.666667v42.666667h-42.666667z m0 85.333333v-42.666667h42.666667v42.666667h-42.666667z",
|
|
d: "M682.666667 853.333333H213.333333V213.333333h469.333334v256h170.666666v384h-170.666666z m0-42.666666h128v-298.666667h-128v298.666667z m-42.666667-298.666667V256H256v554.666667h384v-298.666667zM341.333333 384V298.666667h42.666667v85.333333H341.333333z m85.333334 0V298.666667h42.666666v85.333333h-42.666666z m-85.333334 128v-85.333333h42.666667v85.333333H341.333333z m85.333334 0v-85.333333h42.666666v85.333333h-42.666666z m-85.333334 128v-85.333333h42.666667v85.333333H341.333333z m85.333334 0v-85.333333h42.666666v85.333333h-42.666666z m-85.333334 128v-85.333333h42.666667v85.333333H341.333333z m85.333334 0v-85.333333h42.666666v85.333333h-42.666666z m85.333333-384V298.666667h42.666667v85.333333h-42.666667z m0 128v-85.333333h42.666667v85.333333h-42.666667z m0 128v-85.333333h42.666667v85.333333h-42.666667z m0 128v-85.333333h42.666667v85.333333h-42.666667z m213.333333-170.666667v-42.666666h42.666667v42.666666h-42.666667z m0 85.333334v-42.666667h42.666667v42.666667h-42.666667z m0 85.333333v-42.666667h42.666667v42.666667h-42.666667z",
|
|
@@ -114,8 +105,10 @@ function BigScreenHome() {
|
|
]
|
|
]
|
|
},
|
|
},
|
|
{
|
|
{
|
|
- title: "昨日收视时长",
|
|
|
|
- value: (d.media_overview.data.timeCount / 60).toFixed(0),
|
|
|
|
|
|
+ title: "传统媒体-日收视时长",
|
|
|
|
+ color: "rgb(0,153,255)",
|
|
|
|
+ value: (d.media_overview.data.watchCount).toFixed(0),
|
|
|
|
+ key: '小时',
|
|
path: [
|
|
path: [
|
|
{
|
|
{
|
|
d: 'M920.900621 803.267543 112.32753 803.267543c-49.059901 0-88.982874-39.921757-88.982874-88.982874L23.344655 172.240573c0-49.07328 39.922973-88.996254 88.982874-88.996254l808.573091 0c49.061117 0 88.981658 39.922973 88.981658 88.996254l0 542.044096C1009.882279 763.345786 969.961738 803.267543 920.900621 803.267543zM112.32753 104.039587c-37.593738 0-68.188823 30.595085-68.188823 68.202202l0 542.044096c0 37.594954 30.595085 68.190039 68.188823 68.190039l808.573091 0c37.592522 0 68.190039-30.593869 68.190039-68.190039L989.09066 172.240573c0-37.605901-30.596301-68.202202-68.190039-68.202202L112.32753 104.038371z',
|
|
d: 'M920.900621 803.267543 112.32753 803.267543c-49.059901 0-88.982874-39.921757-88.982874-88.982874L23.344655 172.240573c0-49.07328 39.922973-88.996254 88.982874-88.996254l808.573091 0c49.061117 0 88.981658 39.922973 88.981658 88.996254l0 542.044096C1009.882279 763.345786 969.961738 803.267543 920.900621 803.267543zM112.32753 104.039587c-37.593738 0-68.188823 30.595085-68.188823 68.202202l0 542.044096c0 37.594954 30.595085 68.190039 68.188823 68.190039l808.573091 0c37.592522 0 68.190039-30.593869 68.190039-68.190039L989.09066 172.240573c0-37.605901-30.596301-68.202202-68.190039-68.202202L112.32753 104.038371z',
|
|
@@ -173,6 +166,7 @@ function BigScreenHome() {
|
|
},
|
|
},
|
|
{
|
|
{
|
|
title: "新媒体月度传播力",
|
|
title: "新媒体月度传播力",
|
|
|
|
+ color: "rgb(255,153,0)",
|
|
value: d.media_month_play.data,
|
|
value: d.media_month_play.data,
|
|
path: [
|
|
path: [
|
|
{
|
|
{
|
|
@@ -187,6 +181,7 @@ function BigScreenHome() {
|
|
},
|
|
},
|
|
{
|
|
{
|
|
title: "重大活动传播总量",
|
|
title: "重大活动传播总量",
|
|
|
|
+ color: "rgb(0,204,255)",
|
|
value: d.activity_total.data,
|
|
value: d.activity_total.data,
|
|
path: [
|
|
path: [
|
|
{
|
|
{
|
|
@@ -199,19 +194,25 @@ function BigScreenHome() {
|
|
setproTv([
|
|
setproTv([
|
|
{
|
|
{
|
|
text: "陕台频道收视率",
|
|
text: "陕台频道收视率",
|
|
|
|
+ color: "rgb(0,153,255)",
|
|
value: d.cm_tv_overview.data.watchRate
|
|
value: d.cm_tv_overview.data.watchRate
|
|
},
|
|
},
|
|
{
|
|
{
|
|
text: "陕台频道忠诚度",
|
|
text: "陕台频道忠诚度",
|
|
|
|
+ color: "rgb(41,242,178)",
|
|
value: d.cm_tv_overview.data.occRate
|
|
value: d.cm_tv_overview.data.occRate
|
|
},
|
|
},
|
|
{
|
|
{
|
|
text: "陕台频道市场份额",
|
|
text: "陕台频道市场份额",
|
|
|
|
+ color: "rgb(96,117,255)",
|
|
value: d.cm_tv_overview.data.loyalty
|
|
value: d.cm_tv_overview.data.loyalty
|
|
},
|
|
},
|
|
])
|
|
])
|
|
})
|
|
})
|
|
})
|
|
})
|
|
|
|
+
|
|
|
|
+ document.title = "集团大数据平台";
|
|
|
|
+
|
|
return (
|
|
return (
|
|
<div class="home">
|
|
<div class="home">
|
|
<div class="homeHeader">
|
|
<div class="homeHeader">
|
|
@@ -251,7 +252,7 @@ function BigScreenHome() {
|
|
</svg>
|
|
</svg>
|
|
</div>
|
|
</div>
|
|
<div class="text">
|
|
<div class="text">
|
|
- <span class="textNum">{utils.formatNumber(title.value, 2)}</span>
|
|
|
|
|
|
+ <span class="textNum" style={{color: title.color}}>{utils.formatNumber(title.value, 2) + (title.key || "")}</span>
|
|
<br />
|
|
<br />
|
|
{title.title}
|
|
{title.title}
|
|
</div>
|
|
</div>
|
|
@@ -270,7 +271,7 @@ function BigScreenHome() {
|
|
height={(mainHeight - 54) / 3}
|
|
height={(mainHeight - 54) / 3}
|
|
/>
|
|
/>
|
|
</Show>
|
|
</Show>
|
|
- <Show when={eHeight() > 0 && oriData.schedule_rank && oriData.schedule_rank.name} >
|
|
|
|
|
|
+ {/* <Show when={eHeight() > 0 && oriData.schedule_rank && oriData.schedule_rank.name} >
|
|
<div style={{ "margin-bottom": "6px", "margin-top": "6px" }}>
|
|
<div style={{ "margin-bottom": "6px", "margin-top": "6px" }}>
|
|
<Column
|
|
<Column
|
|
title={oriData.schedule_rank.name}
|
|
title={oriData.schedule_rank.name}
|
|
@@ -279,13 +280,24 @@ function BigScreenHome() {
|
|
height={(mainHeight - 54) / 3}
|
|
height={(mainHeight - 54) / 3}
|
|
/>
|
|
/>
|
|
</div>
|
|
</div>
|
|
- </Show>
|
|
|
|
|
|
+ </Show> */}
|
|
<Show when={eHeight() > 0 && oriData.user_trend && oriData.user_trend.name} >
|
|
<Show when={eHeight() > 0 && oriData.user_trend && oriData.user_trend.name} >
|
|
- <Usertrend
|
|
|
|
- title={oriData.user_trend.name}
|
|
|
|
- list={oriData.user_trend.data}
|
|
|
|
|
|
+ <div style={{ "margin-bottom": "6px", "margin-top": "6px" }}>
|
|
|
|
+ <Usertrend
|
|
|
|
+ title={oriData.user_trend.name}
|
|
|
|
+ list={oriData.user_trend.data}
|
|
|
|
+ width={Math.floor($ele.offsetWidth)}
|
|
|
|
+ height={(mainHeight - 54) / 3}
|
|
|
|
+ />
|
|
|
|
+ </div>
|
|
|
|
+ </Show>
|
|
|
|
+ <Show when={eHeight() > 0 && oriData.activity_spread && oriData.activity_spread.name}>
|
|
|
|
+ <Activity
|
|
|
|
+ styleCss={{ marginLeft: '6px' }}
|
|
|
|
+ title={oriData.activity_spread.name}
|
|
|
|
+ list={oriData.activity_spread.data}
|
|
width={Math.floor($ele.offsetWidth)}
|
|
width={Math.floor($ele.offsetWidth)}
|
|
- height={(mainHeight - 54) / 3}
|
|
|
|
|
|
+ height={(mainHeight - 104) / 3 + 20}
|
|
/>
|
|
/>
|
|
</Show>
|
|
</Show>
|
|
</div>
|
|
</div>
|
|
@@ -304,42 +316,33 @@ function BigScreenHome() {
|
|
</div>
|
|
</div>
|
|
<div class="flex">
|
|
<div class="flex">
|
|
<For each={proTv()} >{item => <div class="flexItem">
|
|
<For each={proTv()} >{item => <div class="flexItem">
|
|
- <p class="textNum">{utils.formatNumber(item.value, 2)}%</p>
|
|
|
|
|
|
+ <p class="textNum" style={{ color: item.color }}>{utils.formatNumber(item.value, 2)}%</p>
|
|
{item.text}
|
|
{item.text}
|
|
</div>
|
|
</div>
|
|
}</For>
|
|
}</For>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="mainbody right">
|
|
<div class="mainbody right">
|
|
- <Show when={eHeight() > 0 && oriData.activity_spread && oriData.activity_spread.name}>
|
|
|
|
- <Activity
|
|
|
|
- styleCss={{ marginLeft: '6px' }}
|
|
|
|
- title={oriData.activity_spread.name}
|
|
|
|
- list={oriData.activity_spread.data}
|
|
|
|
- width={Math.floor($ele.offsetWidth / 2 - 20)}
|
|
|
|
- height={(mainHeight - 104) / 3 * 2 + 12}
|
|
|
|
- />
|
|
|
|
- </Show>
|
|
|
|
- <div style={{ display: "inline-block", width: "50%" }}>
|
|
|
|
- <Show when={eHeight() > 0 && oriData.media_spread_trend && oriData.media_spread_trend.name}>
|
|
|
|
- <NewMediaTrend
|
|
|
|
- styleCss={{ marginBottom: '6px' }}
|
|
|
|
- title={oriData.media_spread_trend.name}
|
|
|
|
- list={oriData.media_spread_trend.data}
|
|
|
|
- width={Math.floor($ele.offsetWidth / 2 - 10)}
|
|
|
|
- height={(mainHeight - 104) / 3}
|
|
|
|
- />
|
|
|
|
- </Show>
|
|
|
|
- <Show when={eHeight() > 0 && oriData.media_read_trend && oriData.media_read_trend.name}>
|
|
|
|
|
|
+ <Show when={eHeight() > 0 && oriData.media_read_trend && oriData.media_read_trend.name}>
|
|
|
|
+ <div style={{ "margin-bottom": "6px", "margin-top": "6px" }}>
|
|
<SelfPlatform
|
|
<SelfPlatform
|
|
styleCss={{ marginBottom: '6px' }}
|
|
styleCss={{ marginBottom: '6px' }}
|
|
title={oriData.media_read_trend.name}
|
|
title={oriData.media_read_trend.name}
|
|
list={oriData.media_read_trend.data}
|
|
list={oriData.media_read_trend.data}
|
|
- width={Math.floor($ele.offsetWidth / 2 - 10)}
|
|
|
|
|
|
+ width={Math.floor($ele.offsetWidth - 20)}
|
|
height={(mainHeight - 104) / 3}
|
|
height={(mainHeight - 104) / 3}
|
|
/>
|
|
/>
|
|
- </Show>
|
|
|
|
- </div>
|
|
|
|
|
|
+ </div>
|
|
|
|
+ </Show>
|
|
|
|
+ <Show when={eHeight() > 0 && oriData.media_spread_trend && oriData.media_spread_trend.name}>
|
|
|
|
+ <NewMediaTrend
|
|
|
|
+ styleCss={{ marginBottom: '6px' }}
|
|
|
|
+ title={oriData.media_spread_trend.name}
|
|
|
|
+ list={oriData.media_spread_trend.data}
|
|
|
|
+ width={Math.floor($ele.offsetWidth - 20)}
|
|
|
|
+ height={(mainHeight - 104) / 3}
|
|
|
|
+ />
|
|
|
|
+ </Show>
|
|
<Show when={eHeight() > 0 && oriData.media_spread && oriData.media_spread.name}>
|
|
<Show when={eHeight() > 0 && oriData.media_spread && oriData.media_spread.name}>
|
|
<NewMedia
|
|
<NewMedia
|
|
title={oriData.media_spread.name}
|
|
title={oriData.media_spread.name}
|