|
|
|
@ -10,11 +10,11 @@
|
|
|
|
|
<div class="wct-outter" v-loading="load">
|
|
|
|
|
<v-label-div title="内容TOP声量"> </v-label-div>
|
|
|
|
|
<div class="wct-inner">
|
|
|
|
|
<div class="wct-d1" v-for="(item,index) in list" :key="index">
|
|
|
|
|
<div class="wct-d1" v-for="(item, index) in list" :key="index">
|
|
|
|
|
<v-echarts :opt="item.opt"></v-echarts>
|
|
|
|
|
<div class="wct-d1-dd1">
|
|
|
|
|
<span>排名:<span class="ss1">0{{index+1}}</span></span>
|
|
|
|
|
<span>声量:<span class="ss1">{{item.value}}</span></span>
|
|
|
|
|
<span>排名:<span class="ss1">0{{ index + 1 }}</span></span>
|
|
|
|
|
<span>声量:<span class="ss1">{{ item.value }}</span></span>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
@ -22,52 +22,52 @@
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
<script>
|
|
|
|
|
import {comparePig} from "@/utils/gol/dataTool"
|
|
|
|
|
import { comparePig } from "@/utils/gol/dataTool"
|
|
|
|
|
import createOpt from "./opt"
|
|
|
|
|
import {getHomeDirectWeiBo0528} from "@/api/KeyMediaHome/index.js"
|
|
|
|
|
import { getHomeDirectWeiBo0528 } from "@/api/KeyMediaHome/index.js"
|
|
|
|
|
export default {
|
|
|
|
|
name: "weiboContentTOPVolume",
|
|
|
|
|
data() {
|
|
|
|
|
return {
|
|
|
|
|
load: false,
|
|
|
|
|
form: {
|
|
|
|
|
sSource: '',
|
|
|
|
|
ilimitType: 0,
|
|
|
|
|
},
|
|
|
|
|
list: [],
|
|
|
|
|
colors: ['#3373CC', '#63AECC', '#54BF93', '#CC9D12', '#3373CC', '#63AECC', '#54BF93', '#CC9D12']
|
|
|
|
|
};
|
|
|
|
|
},
|
|
|
|
|
created() {
|
|
|
|
|
this.form.sSource = this.$route.query.source || "抖音";
|
|
|
|
|
if(this.form.sSource == '汽车之家') {
|
|
|
|
|
this.form.ilimitType = 1;
|
|
|
|
|
} else if (this.form.sSource == '懂车帝' && this.getCarCircle == 1) {
|
|
|
|
|
this.form.ilimitType = 2;
|
|
|
|
|
}
|
|
|
|
|
this.getData();
|
|
|
|
|
},
|
|
|
|
|
methods: {
|
|
|
|
|
getData() {
|
|
|
|
|
// this.load = true;
|
|
|
|
|
let obj = Object.assign({}, this.getCtime2, this.form);
|
|
|
|
|
getHomeDirectWeiBo0528(obj).then(res => {
|
|
|
|
|
let data = res.data || [];
|
|
|
|
|
let arr = [];
|
|
|
|
|
data.sort(comparePig('value'));
|
|
|
|
|
let maxVal = data[0].value
|
|
|
|
|
data.forEach((ele,index) => {
|
|
|
|
|
let obj = {
|
|
|
|
|
value: ele.value,
|
|
|
|
|
opt: createOpt(ele.key,this.colors[index],ele.value, maxVal)
|
|
|
|
|
}
|
|
|
|
|
arr.push(obj)
|
|
|
|
|
})
|
|
|
|
|
this.list = arr;
|
|
|
|
|
this.load = false;
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
name: "weiboContentTOPVolume",
|
|
|
|
|
data() {
|
|
|
|
|
return {
|
|
|
|
|
load: false,
|
|
|
|
|
form: {
|
|
|
|
|
sSource: '',
|
|
|
|
|
ilimitType: 0,
|
|
|
|
|
},
|
|
|
|
|
list: [],
|
|
|
|
|
colors: ['#3373CC', '#63AECC', '#54BF93', '#CC9D12', '#3373CC', '#63AECC', '#54BF93', '#CC9D12']
|
|
|
|
|
};
|
|
|
|
|
},
|
|
|
|
|
created() {
|
|
|
|
|
this.form.sSource = this.$route.query.source || "抖音";
|
|
|
|
|
if (this.form.sSource == '汽车之家' && this.getCarCircle == 1) {
|
|
|
|
|
this.form.ilimitType = 1;
|
|
|
|
|
} else if (this.form.sSource == '懂车帝' && this.getCarCircle == 1) {
|
|
|
|
|
this.form.ilimitType = 2;
|
|
|
|
|
}
|
|
|
|
|
this.getData();
|
|
|
|
|
},
|
|
|
|
|
methods: {
|
|
|
|
|
getData() {
|
|
|
|
|
// this.load = true;
|
|
|
|
|
let obj = Object.assign({}, this.getCtime2, this.form);
|
|
|
|
|
getHomeDirectWeiBo0528(obj).then(res => {
|
|
|
|
|
let data = res.data || [];
|
|
|
|
|
let arr = [];
|
|
|
|
|
data.sort(comparePig('value'));
|
|
|
|
|
let maxVal = data[0].value
|
|
|
|
|
data.forEach((ele, index) => {
|
|
|
|
|
let obj = {
|
|
|
|
|
value: ele.value,
|
|
|
|
|
opt: createOpt(ele.key, this.colors[index], ele.value, maxVal)
|
|
|
|
|
}
|
|
|
|
|
arr.push(obj)
|
|
|
|
|
})
|
|
|
|
|
this.list = arr;
|
|
|
|
|
this.load = false;
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
</script>
|
|
|
|
|
|
|
|
|
@ -79,15 +79,18 @@ export default {
|
|
|
|
|
margin-left: 16px;
|
|
|
|
|
overflow: hidden;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.wct-inner {
|
|
|
|
|
width: 100%;
|
|
|
|
|
margin-top: 16px;
|
|
|
|
|
height: calc(100% - 48px);
|
|
|
|
|
|
|
|
|
|
.wct-d1 {
|
|
|
|
|
position: relative;
|
|
|
|
|
width: 233px;
|
|
|
|
|
height: 206px;
|
|
|
|
|
display: inline-block;
|
|
|
|
|
|
|
|
|
|
.wct-d1-dd1 {
|
|
|
|
|
position: absolute;
|
|
|
|
|
padding: 0px 16px;
|
|
|
|
@ -97,9 +100,11 @@ export default {
|
|
|
|
|
justify-content: space-between;
|
|
|
|
|
top: 140px;
|
|
|
|
|
left: 0px;
|
|
|
|
|
|
|
|
|
|
span {
|
|
|
|
|
color: #d8d8d8;
|
|
|
|
|
font-size: 12px;
|
|
|
|
|
|
|
|
|
|
.ss1 {
|
|
|
|
|
font-family: Bebas;
|
|
|
|
|
font-size: 16px;
|
|
|
|
|