|
@@ -24,11 +24,7 @@
|
|
|
<div class="card">
|
|
|
<h4 class="xifenxinxiTitle">
|
|
|
<div class="right"></div>
|
|
|
- <div class="left">
|
|
|
- 电视:
|
|
|
- <span> 2022年8月广告花费环比 </span>
|
|
|
- 上涨 2.2%
|
|
|
- </div>
|
|
|
+ <div class="left">电视 <span v-text="orgin.day_hb.name"> </span></div>
|
|
|
</h4>
|
|
|
<br />
|
|
|
<div ref="adRingRatioCanvas"></div>
|
|
@@ -37,8 +33,7 @@
|
|
|
<h4 class="xifenxinxiTitle">
|
|
|
<div class="right"></div>
|
|
|
<div class="left">
|
|
|
- 电视:
|
|
|
- <span> 广告花费品牌榜单 </span>
|
|
|
+ 电视: <span v-text="orgin.brand_top.name"> </span>
|
|
|
</div>
|
|
|
</h4>
|
|
|
<h4
|
|
@@ -95,8 +90,7 @@
|
|
|
<h4 class="xifenxinxiTitle">
|
|
|
<div class="right"></div>
|
|
|
<div class="left">
|
|
|
- 电视:
|
|
|
- <span> 行业(大类)广告花费变化 </span>
|
|
|
+ 电视: <span v-text="orgin.brand_hb.name"> </span>
|
|
|
</div>
|
|
|
</h4>
|
|
|
<br />
|
|
@@ -104,9 +98,30 @@
|
|
|
<div ref="adTop10Canvas"></div>
|
|
|
</div>
|
|
|
</div>
|
|
|
+ <div class="card">
|
|
|
+ <h4 class="xifenxinxiTitle">
|
|
|
+ <div class="right"></div>
|
|
|
+ <div class="left">
|
|
|
+ 电视:
|
|
|
+ <span v-text="orgin.month_thb.name"> </span>
|
|
|
+ </div>
|
|
|
+ </h4>
|
|
|
+ <br />
|
|
|
+ <div ref="adTop10" class="">
|
|
|
+ <div ref="adFeeCanvas"></div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
</div>
|
|
|
- <div style="text-align: center; height: 1.5em;font-size: 16px ; line-height: 1.5em">
|
|
|
- 技术支持 汪朝涵:17302954998
|
|
|
+ <div class="bottom">
|
|
|
+ <img
|
|
|
+ src="http://bsddata.oss-cn-hangzhou.aliyuncs.com/yuqing_oem/images/202104021135578156.png"
|
|
|
+ width="50%"
|
|
|
+ style="vertical-align: middle;"
|
|
|
+ alt=""
|
|
|
+ />
|
|
|
+ <span style="display: inline-block;width: 45%;vertical-align: middle;padding-left: 5px;font-weight: 600;">
|
|
|
+ 本数据由陕西广电融媒体集团大数据平台提供。技术支持 汪朝涵:17302954998
|
|
|
+ </span>
|
|
|
</div>
|
|
|
</div>
|
|
|
</template>
|
|
@@ -121,7 +136,11 @@ import "vant/lib/row/style/index";
|
|
|
|
|
|
import dayJs from "dayjs";
|
|
|
|
|
|
-import { advertisementSpendInit, advertisementRingRatioInit } from "./Charts";
|
|
|
+import {
|
|
|
+ advertisementSpendInit,
|
|
|
+ advertisementRingRatioInit,
|
|
|
+ advertisementFeeInit,
|
|
|
+} from "./Charts";
|
|
|
import { jsonAdvertisement } from "@/api/index";
|
|
|
|
|
|
export default {
|
|
@@ -137,7 +156,9 @@ export default {
|
|
|
watermark.setWaterMark({
|
|
|
w_texts: ["数据来自大数据平台"],
|
|
|
w_options: {
|
|
|
- w_opacity: "0.3",
|
|
|
+ w_opacity: "0.1",
|
|
|
+ w_width: 360,
|
|
|
+ w_height: 280
|
|
|
},
|
|
|
});
|
|
|
jsonAdvertisement({
|
|
@@ -160,7 +181,7 @@ export default {
|
|
|
watermark.setWaterMark({
|
|
|
w_texts: ["数据来自大数据平台"],
|
|
|
w_options: {
|
|
|
- w_opacity: "0.3",
|
|
|
+ w_opacity: "0.1",
|
|
|
},
|
|
|
});
|
|
|
};
|
|
@@ -193,7 +214,8 @@ export default {
|
|
|
createChart() {
|
|
|
let width = this.$refs.adTop10.offsetWidth,
|
|
|
height = (width / 16) * 9;
|
|
|
- this.$refs.adTop10Canvas.style = `width:${width}px;height:${height}px`;
|
|
|
+ this.$refs.adTop10Canvas.style = `width:${width}px;height:${width}px`;
|
|
|
+ this.$refs.adFeeCanvas.style = `width:${width}px;height:${width}px`;
|
|
|
this.$refs.adRingRatioCanvas.style = `width:${width}px;height:${height}px`;
|
|
|
|
|
|
const ringRatioF = [];
|
|
@@ -230,6 +252,25 @@ export default {
|
|
|
value: v.huanbi * 100,
|
|
|
});
|
|
|
}
|
|
|
+ const line1F = [];
|
|
|
+ const line1L = [];
|
|
|
+ const month_thb = this.orgin.month_thb ? this.orgin.month_thb.list : [];
|
|
|
+ for (let i = 0; i < month_thb.length; i++) {
|
|
|
+ const v = month_thb[i];
|
|
|
+ line1F.push({
|
|
|
+ date: v.name || "",
|
|
|
+ type: "同比" + v.name + " vs " + v.tb_name,
|
|
|
+ t: v.name + '同比' + v.tb_name,
|
|
|
+ value: v.tb * 100,
|
|
|
+ });
|
|
|
+ line1L.push({
|
|
|
+ date: v.name || "",
|
|
|
+ type: "环比" + v.name + " vs " + v.hb_name,
|
|
|
+ t: v.name + '环比' + v.hb_name,
|
|
|
+ value: v.hb * 100,
|
|
|
+ });
|
|
|
+ }
|
|
|
+
|
|
|
lineL.length &&
|
|
|
advertisementSpendInit(this.$refs.adTop10Canvas, {
|
|
|
L: lineL,
|
|
@@ -243,6 +284,13 @@ export default {
|
|
|
F: ringRatioF,
|
|
|
name: this.orgin.day_hb.name,
|
|
|
});
|
|
|
+ line1L.length &&
|
|
|
+ line1F.length &&
|
|
|
+ advertisementFeeInit(this.$refs.adFeeCanvas, {
|
|
|
+ L: line1L,
|
|
|
+ F: line1F,
|
|
|
+ name: this.orgin.month_thb.name,
|
|
|
+ });
|
|
|
},
|
|
|
},
|
|
|
beforeUnmount: function () {},
|
|
@@ -256,6 +304,9 @@ export default {
|
|
|
padding: 22px 5px 12px 5px;
|
|
|
background-color: #fff;
|
|
|
}
|
|
|
+.Advertisement * {
|
|
|
+ font-size: 17px;
|
|
|
+}
|
|
|
.Advertisement .item {
|
|
|
max-width: 677px;
|
|
|
margin: 0 auto;
|
|
@@ -271,7 +322,7 @@ export default {
|
|
|
margin: 0 auto;
|
|
|
}
|
|
|
.Advertisement .title section {
|
|
|
- background-color: rgba(255, 255, 255, 0.5);
|
|
|
+ background-color: rgba(255, 255, 255, 0.1);
|
|
|
color: #fff;
|
|
|
height: 35px;
|
|
|
line-height: 35px;
|
|
@@ -287,13 +338,13 @@ export default {
|
|
|
.xifenxinxiTitle .left {
|
|
|
background-color: #d11e16;
|
|
|
padding-left: 1em;
|
|
|
- width: 80%;
|
|
|
+ width: 90%;
|
|
|
position: relative;
|
|
|
z-index: 1;
|
|
|
}
|
|
|
.xifenxinxiTitle .right {
|
|
|
background-color: #595959;
|
|
|
- width: 20%;
|
|
|
+ width: 10%;
|
|
|
height: 34px;
|
|
|
line-height: 34px;
|
|
|
position: absolute;
|
|
@@ -304,7 +355,7 @@ export default {
|
|
|
|
|
|
.Advertisement .tableHead {
|
|
|
color: #fff;
|
|
|
- background-color: #d11e16;
|
|
|
+ background-color: #cf827f;
|
|
|
}
|
|
|
.tableHead .van-col,
|
|
|
.tableBody .van-col {
|
|
@@ -318,4 +369,13 @@ export default {
|
|
|
margin-top: 1em;
|
|
|
padding: 1em 0;
|
|
|
}
|
|
|
+.bottom {
|
|
|
+ border: 4px solid #0983a8;
|
|
|
+ margin-top: 1em;
|
|
|
+ padding: 10px;
|
|
|
+ font-size: 17px;
|
|
|
+}
|
|
|
+.article {
|
|
|
+ font-size: 17px;
|
|
|
+}
|
|
|
</style>
|