|
|
|
@ -7,68 +7,105 @@
|
|
|
|
|
* @FilePath: /data-show/src/views/WeiboDetails/index.vue
|
|
|
|
|
-->
|
|
|
|
|
<template>
|
|
|
|
|
<div class="d-container">
|
|
|
|
|
<div class="wd-outter">
|
|
|
|
|
<div class="wd-d1">
|
|
|
|
|
<v-label-div title="微博洞察详情">
|
|
|
|
|
<v-btn @click="goback">返回洞察详情</v-btn>
|
|
|
|
|
</v-label-div>
|
|
|
|
|
<div class="wd-d1-bd">
|
|
|
|
|
<div class="d1">
|
|
|
|
|
奥迪
|
|
|
|
|
</div>
|
|
|
|
|
<div class="d2" style="margin-left: 114px">
|
|
|
|
|
<img class="dd1" src="../../assets/images/BrandInsight/ic_xxzl.png" />
|
|
|
|
|
<div class="dd2">
|
|
|
|
|
<span class="s1">74,073,195</span>
|
|
|
|
|
<span class="s2">信息总量</span>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="d2">
|
|
|
|
|
<img class="dd1" src="../../assets/images/BrandInsight/ic_dvsl.png" />
|
|
|
|
|
<div class="dd2">
|
|
|
|
|
<span class="s1">16578</span>
|
|
|
|
|
<span class="s2">参与大V数量</span>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="d2">
|
|
|
|
|
<img class="dd1" src="../../assets/images/BrandInsight/ic_yhs.png" />
|
|
|
|
|
<div class="dd2">
|
|
|
|
|
<span class="s1">13200</span>
|
|
|
|
|
<span class="s2">参与用户数</span>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="d2">
|
|
|
|
|
<img class="dd1" src="../../assets/images/BrandInsight/ic_yqdx.png" />
|
|
|
|
|
<div class="dd3">
|
|
|
|
|
<span class="s3" style="background: #3373CC"></span>
|
|
|
|
|
<span class="s3" style="background: #54BF93;width: 69px"></span>
|
|
|
|
|
<span class="s3" style="background: #CC9D12;width: 96px"></span>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="d-container">
|
|
|
|
|
<div class="wd-outter">
|
|
|
|
|
<div class="wd-d1">
|
|
|
|
|
<v-label-div title="微博洞察详情">
|
|
|
|
|
<v-btn @click="goback">返回洞察详情</v-btn>
|
|
|
|
|
</v-label-div>
|
|
|
|
|
<div class="wd-d1-bd">
|
|
|
|
|
<div class="d1">
|
|
|
|
|
{{ form.sBrand }}
|
|
|
|
|
</div>
|
|
|
|
|
<div class="d2" style="margin-left: 114px">
|
|
|
|
|
<img
|
|
|
|
|
class="dd1"
|
|
|
|
|
src="../../assets/images/BrandInsight/ic_xxzl.png"
|
|
|
|
|
/>
|
|
|
|
|
<div class="dd2">
|
|
|
|
|
<span class="s1">{{ countObj.count }}</span>
|
|
|
|
|
<span class="s2">信息总量</span>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="wd-d2">
|
|
|
|
|
<weibo-communication-trend></weibo-communication-trend>
|
|
|
|
|
<weiboContentType></weiboContentType>
|
|
|
|
|
<weiboCharacters></weiboCharacters>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="d2">
|
|
|
|
|
<img
|
|
|
|
|
class="dd1"
|
|
|
|
|
src="../../assets/images/BrandInsight/ic_dvsl.png"
|
|
|
|
|
/>
|
|
|
|
|
<div class="dd2">
|
|
|
|
|
<span class="s1">{{ countObj.vCount }}</span>
|
|
|
|
|
<span class="s2">参与大V数量</span>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="wd-d3">
|
|
|
|
|
<weiboUserActiveArea></weiboUserActiveArea>
|
|
|
|
|
<weiboContentTOPVolume></weiboContentTOPVolume>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="wd-d4">
|
|
|
|
|
<modelPopularity></modelPopularity>
|
|
|
|
|
<weiboWordCloud></weiboWordCloud>
|
|
|
|
|
<weiboSpreadFission></weiboSpreadFission>
|
|
|
|
|
<weiboTonalDistribution></weiboTonalDistribution>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="wd-d5">
|
|
|
|
|
<positiveViewKOL></positiveViewKOL>
|
|
|
|
|
<negativeOpinionKOL></negativeOpinionKOL>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="d2">
|
|
|
|
|
<img
|
|
|
|
|
class="dd1"
|
|
|
|
|
src="../../assets/images/BrandInsight/ic_yhs.png"
|
|
|
|
|
/>
|
|
|
|
|
<div class="dd2">
|
|
|
|
|
<span class="s1">{{ countObj.userCount }}</span>
|
|
|
|
|
<span class="s2">参与用户数</span>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="d2">
|
|
|
|
|
<img
|
|
|
|
|
class="dd1"
|
|
|
|
|
src="../../assets/images/BrandInsight/ic_yqdx.png"
|
|
|
|
|
/>
|
|
|
|
|
<a-popover title="舆情调性">
|
|
|
|
|
<template slot="content">
|
|
|
|
|
<template v-for="(item, key) in countObj2">
|
|
|
|
|
<div class="pd-item" :key="key">
|
|
|
|
|
<span >{{key}}</span>
|
|
|
|
|
<span>{{item}}</span>
|
|
|
|
|
</div>
|
|
|
|
|
</template>
|
|
|
|
|
</template>
|
|
|
|
|
<div class="dd3">
|
|
|
|
|
<span
|
|
|
|
|
class="s3"
|
|
|
|
|
:style="{ width: (countObj2['正面'] / total) * width + 'px' }"
|
|
|
|
|
></span>
|
|
|
|
|
<span
|
|
|
|
|
class="s3"
|
|
|
|
|
:style="{
|
|
|
|
|
width: (countObj2['中性'] / total) * width + 'px',
|
|
|
|
|
background: '#54BF93',
|
|
|
|
|
}"
|
|
|
|
|
></span>
|
|
|
|
|
<span
|
|
|
|
|
class="s3"
|
|
|
|
|
:style="{
|
|
|
|
|
width: (countObj2['负面'] / total) * width + 'px',
|
|
|
|
|
background: '#CC9D12',
|
|
|
|
|
}"
|
|
|
|
|
></span>
|
|
|
|
|
</div>
|
|
|
|
|
</a-popover>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="wd-d2">
|
|
|
|
|
<weibo-communication-trend></weibo-communication-trend>
|
|
|
|
|
<weiboContentType></weiboContentType>
|
|
|
|
|
<weiboCharacters></weiboCharacters>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="wd-d3">
|
|
|
|
|
<weiboUserActiveArea></weiboUserActiveArea>
|
|
|
|
|
<weiboContentTOPVolume></weiboContentTOPVolume>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="wd-d4">
|
|
|
|
|
<modelPopularity></modelPopularity>
|
|
|
|
|
<weiboWordCloud></weiboWordCloud>
|
|
|
|
|
<weiboSpreadFission></weiboSpreadFission>
|
|
|
|
|
<weiboTonalDistribution></weiboTonalDistribution>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="wd-d5">
|
|
|
|
|
<positiveViewKOL></positiveViewKOL>
|
|
|
|
|
<negativeOpinionKOL></negativeOpinionKOL>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
<script>
|
|
|
|
@ -82,122 +119,174 @@ import weiboWordCloud from "./weiboWordCloud";
|
|
|
|
|
import weiboSpreadFission from "./weiboSpreadFission";
|
|
|
|
|
import weiboTonalDistribution from "./weiboTonalDistribution";
|
|
|
|
|
import positiveViewKOL from "./positiveViewKOL";
|
|
|
|
|
import negativeOpinionKOL from "./negativeOpinionKOL"
|
|
|
|
|
import negativeOpinionKOL from "./negativeOpinionKOL";
|
|
|
|
|
import { getBrandWeiBoCount0528 } from "@/api/WeiboDetails/index.js";
|
|
|
|
|
import { getAffections } from "@/api/WeiboDetails/index.js";
|
|
|
|
|
export default {
|
|
|
|
|
name: "WeiboDetails",
|
|
|
|
|
components: {
|
|
|
|
|
weiboCommunicationTrend, // 微博传播趋势
|
|
|
|
|
weiboContentType, // 微博内容类型
|
|
|
|
|
weiboCharacters, // 微博人物画像
|
|
|
|
|
weiboUserActiveArea, // 微博用户活跃地区
|
|
|
|
|
weiboContentTOPVolume, // 微博内容TOP声量
|
|
|
|
|
modelPopularity, // 车型热度
|
|
|
|
|
weiboWordCloud, // 词云分布
|
|
|
|
|
weiboSpreadFission, // 微博传播裂变
|
|
|
|
|
weiboTonalDistribution, // 调性分布
|
|
|
|
|
positiveViewKOL, // 正面观点KOL
|
|
|
|
|
negativeOpinionKOL // 负面观点KOL
|
|
|
|
|
name: "WeiboDetails",
|
|
|
|
|
components: {
|
|
|
|
|
weiboCommunicationTrend, // 微博传播趋势
|
|
|
|
|
weiboContentType, // 微博内容类型
|
|
|
|
|
weiboCharacters, // 微博人物画像
|
|
|
|
|
weiboUserActiveArea, // 微博用户活跃地区
|
|
|
|
|
weiboContentTOPVolume, // 微博内容TOP声量
|
|
|
|
|
modelPopularity, // 车型热度
|
|
|
|
|
weiboWordCloud, // 词云分布
|
|
|
|
|
weiboSpreadFission, // 微博传播裂变
|
|
|
|
|
weiboTonalDistribution, // 调性分布
|
|
|
|
|
positiveViewKOL, // 正面观点KOL
|
|
|
|
|
negativeOpinionKOL, // 负面观点KOL
|
|
|
|
|
},
|
|
|
|
|
data() {
|
|
|
|
|
return {
|
|
|
|
|
width: 200,
|
|
|
|
|
form: {
|
|
|
|
|
token: "",
|
|
|
|
|
sBrand: "",
|
|
|
|
|
},
|
|
|
|
|
countObj: {
|
|
|
|
|
carseriesCount: 0,
|
|
|
|
|
count: 0,
|
|
|
|
|
userCount: 0,
|
|
|
|
|
vCount: 0,
|
|
|
|
|
},
|
|
|
|
|
countObj2: {
|
|
|
|
|
正面: 0,
|
|
|
|
|
中性: 0,
|
|
|
|
|
负面: 0,
|
|
|
|
|
},
|
|
|
|
|
total: 0,
|
|
|
|
|
};
|
|
|
|
|
},
|
|
|
|
|
created() {
|
|
|
|
|
this.form.token = this.getToken;
|
|
|
|
|
this.form.sBrand = this.getBrand.brandname || "奥迪";
|
|
|
|
|
this.getData();
|
|
|
|
|
},
|
|
|
|
|
methods: {
|
|
|
|
|
goback() {
|
|
|
|
|
this.$router.go(-1);
|
|
|
|
|
},
|
|
|
|
|
methods: {
|
|
|
|
|
goback() {
|
|
|
|
|
this.$router.go(-1);
|
|
|
|
|
},
|
|
|
|
|
getData() {
|
|
|
|
|
let obj = Object.assign({}, this.getCtime2, this.form);
|
|
|
|
|
getBrandWeiBoCount0528(obj).then((res) => {
|
|
|
|
|
let data = res.data;
|
|
|
|
|
this.countObj = Object.assign(this.countObj, data);
|
|
|
|
|
});
|
|
|
|
|
getAffections(obj).then((res) => {
|
|
|
|
|
let data = res.data || {};
|
|
|
|
|
let total = 0;
|
|
|
|
|
for (let key in data) {
|
|
|
|
|
total += data[key] * 1;
|
|
|
|
|
}
|
|
|
|
|
this.countObj2 = Object.assign(this.countObj2, data);
|
|
|
|
|
this.total = total;
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
};
|
|
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
<style lang="less" scoped>
|
|
|
|
|
.wd-outter {
|
|
|
|
|
padding: 0px 16px 16px 16px;
|
|
|
|
|
padding: 0px 16px 16px 16px;
|
|
|
|
|
}
|
|
|
|
|
.wd-d1 {
|
|
|
|
|
width: 100%;
|
|
|
|
|
height: 222px;
|
|
|
|
|
border: 2px solid #0f2a4d;
|
|
|
|
|
.wd-d1-bd {
|
|
|
|
|
width: 100%;
|
|
|
|
|
height: 222px;
|
|
|
|
|
border: 2px solid #0f2a4d;
|
|
|
|
|
.wd-d1-bd {
|
|
|
|
|
width: 100%;
|
|
|
|
|
height: calc(100% - 48px);
|
|
|
|
|
height: calc(100% - 48px);
|
|
|
|
|
display: flex;
|
|
|
|
|
justify-content: flex-start;
|
|
|
|
|
align-items: center;
|
|
|
|
|
.d1 {
|
|
|
|
|
width: 150px;
|
|
|
|
|
height: 150px;
|
|
|
|
|
background-image: url("../../assets/images/BrandInsight/img_lq.png");
|
|
|
|
|
background-repeat: no-repeat;
|
|
|
|
|
background-size: cover;
|
|
|
|
|
margin-left: 114px;
|
|
|
|
|
text-align: center;
|
|
|
|
|
line-height: 150px;
|
|
|
|
|
font-size: 24px;
|
|
|
|
|
color: #b2daf7;
|
|
|
|
|
}
|
|
|
|
|
.d2 {
|
|
|
|
|
width: 378px;
|
|
|
|
|
height: 82px;
|
|
|
|
|
display: flex;
|
|
|
|
|
justify-content: flex-start;
|
|
|
|
|
.dd1 {
|
|
|
|
|
width: 80px;
|
|
|
|
|
height: 80px;
|
|
|
|
|
}
|
|
|
|
|
.dd2 {
|
|
|
|
|
margin-left: 20px;
|
|
|
|
|
height: 100%;
|
|
|
|
|
.s1 {
|
|
|
|
|
display: block;
|
|
|
|
|
font-size: 34px;
|
|
|
|
|
font-family: Bebas;
|
|
|
|
|
color: #ffffff;
|
|
|
|
|
}
|
|
|
|
|
.s2 {
|
|
|
|
|
display: block;
|
|
|
|
|
font-size: 20px;
|
|
|
|
|
color: #8f969c;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
.dd3 {
|
|
|
|
|
margin-left: 20px;
|
|
|
|
|
height: 100%;
|
|
|
|
|
display: flex;
|
|
|
|
|
justify-content: flex-start;
|
|
|
|
|
align-items: center;
|
|
|
|
|
.d1 {
|
|
|
|
|
width: 150px;
|
|
|
|
|
height: 150px;
|
|
|
|
|
background-image: url("../../assets/images/BrandInsight/img_lq.png");
|
|
|
|
|
background-repeat: no-repeat;
|
|
|
|
|
background-size: cover;
|
|
|
|
|
margin-left: 114px;
|
|
|
|
|
text-align: center;
|
|
|
|
|
line-height: 150px;
|
|
|
|
|
font-size: 24px;
|
|
|
|
|
color: #b2daf7;
|
|
|
|
|
}
|
|
|
|
|
.d2 {
|
|
|
|
|
width: 378px;
|
|
|
|
|
height: 82px;
|
|
|
|
|
display: flex;
|
|
|
|
|
justify-content: flex-start;
|
|
|
|
|
.dd1 {
|
|
|
|
|
width: 80px;
|
|
|
|
|
height: 80px;
|
|
|
|
|
}
|
|
|
|
|
.dd2 {
|
|
|
|
|
margin-left: 20px;
|
|
|
|
|
height: 100%;
|
|
|
|
|
.s1 {
|
|
|
|
|
display: block;
|
|
|
|
|
font-size: 34px;
|
|
|
|
|
font-family: Bebas;
|
|
|
|
|
color: #ffffff;
|
|
|
|
|
}
|
|
|
|
|
.s2 {
|
|
|
|
|
display: block;
|
|
|
|
|
font-size: 20px;
|
|
|
|
|
color: #8f969c;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
.dd3 {
|
|
|
|
|
margin-left: 20px;
|
|
|
|
|
height: 100%;
|
|
|
|
|
display: flex;
|
|
|
|
|
justify-content: flex-start;
|
|
|
|
|
align-items: center;
|
|
|
|
|
.s3 {
|
|
|
|
|
width: 87px;
|
|
|
|
|
height: 33px;
|
|
|
|
|
display: inline-block;
|
|
|
|
|
margin-right: 2px;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
.s3 {
|
|
|
|
|
width: 87px;
|
|
|
|
|
height: 33px;
|
|
|
|
|
display: inline-block;
|
|
|
|
|
margin-right: 2px;
|
|
|
|
|
background: #3373cc;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
.wd-d2 {
|
|
|
|
|
width: 100%;
|
|
|
|
|
height: auto;
|
|
|
|
|
display: flex;
|
|
|
|
|
justify-content: flex-start;
|
|
|
|
|
margin-top: 16px;
|
|
|
|
|
width: 100%;
|
|
|
|
|
height: auto;
|
|
|
|
|
display: flex;
|
|
|
|
|
justify-content: flex-start;
|
|
|
|
|
margin-top: 16px;
|
|
|
|
|
}
|
|
|
|
|
.wd-d3 {
|
|
|
|
|
width: 100%;
|
|
|
|
|
height: auto;
|
|
|
|
|
display: flex;
|
|
|
|
|
justify-content: flex-start;
|
|
|
|
|
margin-top: 16px;
|
|
|
|
|
width: 100%;
|
|
|
|
|
height: auto;
|
|
|
|
|
display: flex;
|
|
|
|
|
justify-content: flex-start;
|
|
|
|
|
margin-top: 16px;
|
|
|
|
|
}
|
|
|
|
|
.wd-d4 {
|
|
|
|
|
width: 100%;
|
|
|
|
|
height: auto;
|
|
|
|
|
display: flex;
|
|
|
|
|
justify-content: flex-start;
|
|
|
|
|
margin-top: 16px;
|
|
|
|
|
width: 100%;
|
|
|
|
|
height: auto;
|
|
|
|
|
display: flex;
|
|
|
|
|
justify-content: flex-start;
|
|
|
|
|
margin-top: 16px;
|
|
|
|
|
}
|
|
|
|
|
.wd-d5 {
|
|
|
|
|
width: 100%;
|
|
|
|
|
height: auto;
|
|
|
|
|
width: 100%;
|
|
|
|
|
height: auto;
|
|
|
|
|
display: flex;
|
|
|
|
|
justify-content: flex-start;
|
|
|
|
|
margin-top: 16px;
|
|
|
|
|
}
|
|
|
|
|
.pd-item {
|
|
|
|
|
display: flex;
|
|
|
|
|
justify-content: flex-start;
|
|
|
|
|
margin-top: 16px;
|
|
|
|
|
justify-content: space-between;
|
|
|
|
|
color: #fff;
|
|
|
|
|
border-bottom: 1px solid #173b6d;
|
|
|
|
|
padding: 10px;
|
|
|
|
|
}
|
|
|
|
|
</style>
|
|
|
|
|