dev
liuyongli 3 years ago
parent 55dab3add8
commit f31422d9a6

@ -6,9 +6,9 @@ export default function singleLine(dValue = [], dx = []) {
// top: 25,
// height: 130,
// width: 300
top: "5%",
top: "10%",
left: 30,
right: 20,
right: 30,
bottom: 15,
containLabel: true

@ -8,7 +8,7 @@
</view>
<view class="ta-item">
<view class="ta-chart-title">尾翼传播态势</view>
<view class="ta-chart-item" style="width: 100%;margin-left: -40rpx">
<view class="ta-chart-item" style="width: 100%;margin:0 auto;">
<c-echars showChart="{{showChart}}" canvasId="wytrans-canvas" chartId="wytrans" chartOption="{{taTransform}}" height="100%"></c-echars>
</view>
</view>
@ -52,7 +52,7 @@
</van-tabs>
</view>
</view>
<word-cloud-car height="{{300}}" list="{{wordCloudObject}}"></word-cloud-car>
<word-cloud-car height="{{350}}" list="{{wordCloudObject}}"></word-cloud-car>
<!-- <view class="wd-cloud">
<word-cloud wx:if="{{wShow}}" canvasId="ta-wc" list="{{wordCloudData}}" width="100%" height="200" color="#FF1C20" lvl="{{wlvl}}"></word-cloud>
</view> -->

@ -7,7 +7,7 @@
</view>
<view class="tu-item">
<view class="tu-chart-title">论坛传播态势</view>
<view class="tu-chart-item" style="width: 100%;margin-left: -44rpx;">
<view class="tu-chart-item" style="width: 100%;margin:0 auto;">
<c-echars showChart="{{showChart}}" canvasId="ttTrans-canvas" chartId="ttTransLine" chartOption="{{ttTransform}}" height="100%"></c-echars>
</view>
</view>

@ -263,7 +263,8 @@ Page({
let that = this;
let date = d.toISOString().replace(/\D/g, '');
let result = this.data.result.length
if (result == 0) {
let total = this.data.total
if (result == 0 && total>50000) {
wx.showModal({
title: '提示',
content: '全部数据超过50000(万)条,是否要全部导出',

@ -69,13 +69,13 @@
</view>
</view>
</van-checkbox-group>
<view class="tdl-footer" style="display: flex;justify-content: space-between">
<view class="tdl-footer" style="display: flex;justify-content: space-between;">
<view style="width: 40%;margin-top: 3%;margin-left: 64rpx">
<van-checkbox-group value="{{ isSelectAll }}" bind:change="changeSelectAll">
<van-checkbox name="0" shape="square" class="van-checkbox">当前页面全选</van-checkbox>
</van-checkbox-group>
</view>
<view style="padding: 0 32rpx 0 0 ;">
<view style="padding: 0 30px 0 0 ;">
<van-button disabled="{{total == 0}}" bind:click="openReport" color="#0084FF" custom-style="width: 120%" class="theme-add-btn" plain>生成数据</van-button>
</view>
</view>

@ -20,7 +20,7 @@
</view>
<view class="wb-item">
<view class="wb-chart-title">微博传播趋势</view>
<view class="wb-chart-item" style="width: 100%;margin-left: -30rpx;">
<view class="wb-chart-item" style="width: 100%;margin: 0 auto">
<c-echars showChart="{{showChart}}" canvasId="yqTrans-canvas" chartId="yqTransLine" chartOption="{{yqTransform}}" height="100%"></c-echars>
</view>
</view>

@ -262,7 +262,8 @@ Component({
let d = new Date();
let date = d.toISOString().replace(/\D/g, '');
let result = this.data.result.length
if (result == 0) {
let total = this.data.total
if (result == 0 && total>50000) {
wx.showModal({
title: '提示',
content: '全部数据超过50000(万)条,是否要全部导出',

@ -78,7 +78,7 @@
<van-checkbox name="0" shape="square" class="van-checkbox">当前页面全选</van-checkbox>
</van-checkbox-group>
</view>
<view style="padding: 0 32rpx 0 0 ;">
<view style="padding: 0 30px 0 0 ;">
<van-button disabled="{{total == 0}}" bind:click="openReport" color="#0084FF" custom-style="width: 100%" class="theme-add-btn" plain>生成数据</van-button>
</view>
</view>

@ -1,7 +1,7 @@
<view class="evtw-content">
<view class="evtw-item">
<view class="evtw-chart-title">尾翼传播态势</view>
<view class="evtw-chart-item" style="width: 100%;margin-left: -44rpx;">
<view class="evtw-chart-item" style="width: 100%;margin:0 auto;">
<c-echars showChart="{{showChart}}" canvasId="ttrans-canvas" chartId="ttrans" chartOption="{{tailTransChart}}" height="100%"></c-echars>
</view>
</view>

@ -8,7 +8,7 @@
</view>
<view class="ta-item">
<view class="ta-chart-title">尾翼传播态势</view>
<view class="ta-chart-item" style="width: 100%;margin-left: -44rpx;">
<view class="ta-chart-item" style="width: 100%;margin: 0 auto">
<c-echars showChart="{{showChart}}" canvasId="wytrans-canvas" chartId="wytrans" chartOption="{{taTransform}}" height="100%"></c-echars>
</view>
</view>

@ -1,253 +1,255 @@
<view class="tu-content">
<view class="tu-item">
<view class="tu-chart-title">论坛信息</view>
<view class="tu-chart-item" style="padding: 16rpx 0rpx 16rpx 0rpx;height: 385rpx;">
<view class="tu-total-data" style="width: 100%;margin-left: 32rpx">
<view style="width: 40%;margin-top: 90rpx;">
<view class="ttdt">数据总量</view>
<view style="color: #0084FF;">{{detailData.Count}}</view>
</view>
<view style="width: 15%;text-align: center;">
<view class="ttdt">车型千人发帖量</view>
<view style="margin-top: 10rpx;">{{detailData.qrCount}}</view>
<view class="ttdt" style="margin-top: 16rpx;">车型千人评论量</view>
<view style="margin-top: 10rpx;">{{detailData.replyCount}}</view>
</view>
<view style="width: 15%;margin-left: 36rpx;text-align: center;">
<view class="ttdt">行业千人发帖量</view>
<view style="margin-top: 10rpx;">{{detailData.hyqrCount}}</view>
<view class="ttdt" style="margin-top: 16rpx;">行业千人评论量</view>
<view style="margin-top: 10rpx;">{{detailData.hyreplyCount}}</view>
</view>
<view style="width: 15%;margin-left: 36rpx;text-align: center;">
<view class="ttdt">量差</view>
<view bindtap="info1">?⃝</view>
<view>{{ countDifference }}</view>
<view class="ttdt" style="margin-top: 16rpx;">量差</view>
<view bindtap="info2">?⃝</view>
<view>{{detailData.replyCountDifference}}</view>
</view>
</view>
<view class="tu-data">
<view>正面调性</view><view>负面调性</view><view>中性调性</view>
</view>
<view class="tu-data-number">
<view style="color: #0084FF;">{{affData.positive}}%</view>
<view style="color: #FFBF00;">{{affData.negative}}%</view>
<view style="color: #20CC62;">{{affData.middle}}%</view>
</view>
</view>
<view class="tu-item">
<view class="tu-chart-title">论坛信息</view>
<view class="tu-chart-item" style="padding: 16rpx 0rpx 16rpx 0rpx;height: 385rpx;">
<view class="tu-total-data" style="width: 100%;margin-left: 32rpx">
<view style="width: 40%;margin-top: 90rpx;">
<view class="ttdt">数据总量</view>
<view style="color: #0084FF;">{{detailData.Count}}</view>
</view>
<view style="width: 15%;text-align: center;">
<view class="ttdt">车型千人发帖量</view>
<view style="margin-top: 10rpx;">{{detailData.qrCount}}</view>
<view class="ttdt" style="margin-top: 16rpx;">车型千人评论量</view>
<view style="margin-top: 10rpx;">{{detailData.replyCount}}</view>
</view>
<view style="width: 15%;margin-left: 36rpx;text-align: center;">
<view class="ttdt">行业千人发帖量</view>
<view style="margin-top: 10rpx;">{{detailData.hyqrCount}}</view>
<view class="ttdt" style="margin-top: 16rpx;">行业千人评论量</view>
<view style="margin-top: 10rpx;">{{detailData.hyreplyCount}}</view>
</view>
<view style="width: 15%;margin-left: 36rpx;text-align: center;">
<view class="ttdt">量差</view>
<view bindtap="info1">?⃝</view>
<view>{{ countDifference }}</view>
<view class="ttdt" style="margin-top: 16rpx;">量差</view>
<view bindtap="info2">?⃝</view>
<view>{{detailData.replyCountDifference}}</view>
</view>
</view>
<view class="tu-data">
<view>正面调性</view>
<view>负面调性</view>
<view>中性调性</view>
</view>
<view class="tu-data-number">
<view style="color: #0084FF;">{{affData.positive}}%</view>
<view style="color: #FFBF00;">{{affData.negative}}%</view>
<view style="color: #20CC62;">{{affData.middle}}%</view>
</view>
</view>
<view class="tu-item">
<view class="tu-chart-title">论坛传播态势</view>
<view class="tu-chart-item" style="width: 100%;margin-left: -44rpx;">
<c-echars showChart="{{showChart}}" canvasId="ttTrans-canvas" chartId="ttTransLine" chartOption="{{ttTransform}}" height="100%"></c-echars>
</view>
</view>
<view class="tu-item">
<view class="tu-chart-title">论坛传播态势</view>
<view class="tu-chart-item" style="width: 100%;margin:0 auto">
<c-echars showChart="{{showChart}}" canvasId="ttTrans-canvas" chartId="ttTransLine" chartOption="{{ttTransform}}" height="100%"></c-echars>
</view>
<view class="tu-item">
<view class="tu-chart-title">论坛调性分布</view>
<view style="display: flex;justify-content: flex-start;">
<view class="circle-chart" style="margin-right: 48rpx;">
<c-echars showChart="{{showChart}}" canvasId="wytotal-canvas" chartId="wytotal" chartOption="{{tutorAffect}}" height="100%"></c-echars>
</view>
<view class="circle-data">
<view wx:for="{{tutorAffData}}" wx:for-item="item" wx:key="name" style="margin-bottom: 64rpx;display: flex;justify-content: space-between;">
<view class="circle-data-item">
<view class="colorTags" style="{{pieColor[index]}}"></view>
<view class="circle-data-title">{{item.name}}</view>
</view>
<view class="circle-data-item">
<view>数量</view>
<view class="circle-data-title">{{item.value}}</view>
</view>
</view>
</view>
</view>
</view>
<view class="tu-item">
<view class="tu-chart-title">论坛调性分布</view>
<view style="display: flex;justify-content: flex-start;">
<view class="circle-chart" style="margin-right: 48rpx;">
<c-echars showChart="{{showChart}}" canvasId="wytotal-canvas" chartId="wytotal" chartOption="{{tutorAffect}}" height="100%"></c-echars>
</view>
<view class="circle-data">
<view wx:for="{{tutorAffData}}" wx:for-item="item" wx:key="name" style="margin-bottom: 64rpx;display: flex;justify-content: space-between;">
<view class="circle-data-item">
<view class="colorTags" style="{{pieColor[index]}}"></view>
<view class="circle-data-title">{{item.name}}</view>
</view>
<view class="circle-data-item">
<view>数量</view>
<view class="circle-data-title">{{item.value}}</view>
</view>
</view>
</view>
</view>
<view class="tu-item">
<view class="tu-area-title">
<view style="width: 25%;">数据对比</view>
<view style="width: 75%;">
<van-tabs type="card" active="{{ dcActive }}" color="#BBBBBB" bind:change="dcChange">
<van-tab title="阅读量"></van-tab>
<van-tab title="回复量"></van-tab>
<van-tab title="精华率"></van-tab>
<van-tab title="图文"></van-tab>
</van-tabs>
</view>
</view>
<view style="display: flex;justify-content: flex-start;">
<view class="circle-chart" style="margin-right: 48rpx;">
<c-echars showChart="{{showChart}}" canvasId="wytotal-canvas" chartId="wytotal" chartOption="{{dataComp}}" height="100%"></c-echars>
</view>
<view class="circle-data" style="margin-top: 24rpx;height: auto;">
<view wx:for="{{dataCompData}}" wx:for-item="item" wx:key="name" style="margin-bottom: 64rpx;display: flex;justify-content: space-between;">
<view class="circle-data-item" style="width: 60%;">
<view class="colorTags" style="{{pieColor[index]}}"></view>
<view class="circle-data-title">{{item.name}}</view>
</view>
<view class="circle-data-item">
<view>数量</view>
<view class="circle-data-title">{{item.value}}</view>
</view>
</view>
</view>
</view>
</view>
<view class="tu-item">
<view class="tu-area-title">
<view style="width: 25%;">数据对比</view>
<view style="width: 75%;">
<van-tabs type="card" active="{{ dcActive }}" color="#BBBBBB" bind:change="dcChange">
<van-tab title="阅读量"></van-tab>
<van-tab title="回复量"></van-tab>
<van-tab title="精华率"></van-tab>
<van-tab title="图文"></van-tab>
</van-tabs>
</view>
</view>
<view class="tu-item">
<view class="tu-area-title">
<view style="width: 55%;">话题分布</view>
<view style="width: 45%;">
<van-tabs type="card" active="{{ tpActive }}" color="#BBBBBB" bind:change="tpChange">
<van-tab title="正面"></van-tab>
<van-tab title="负面"></van-tab>
</van-tabs>
</view>
</view>
<view class="tu-chart-item" style="height: 425rpx;">
<c-echars showChart="{{showChart}}" canvasId="tfb-canvas" chartId="tfb" chartOption="{{topicData}}" height="100%"></c-echars>
</view>
<view class="tu-chart-title">TOP分发帖用户</view>
<view class="tu-chart-item" style="margin-top: 32rpx;height: auto;">
<view class="kol-content">
<view class="kol-item" wx:for="{{topicUser}}" wx:key="index" wx:if="{{index < 3}}">
<view class="kol-user-name">{{item.name}}</view>
<view style="display: flex;justify-content: space-between;margin: 0 auto;padding: 24rpx 5rpx;">
<view class="kol-value">影响力</view>
<view class="kol-value-number">{{item.value}}</view>
</view>
</view>
</view>
</view>
<view style="display: flex;justify-content: flex-start;">
<view class="circle-chart" style="margin-right: 48rpx;">
<c-echars showChart="{{showChart}}" canvasId="wytotal-canvas" chartId="wytotal" chartOption="{{dataComp}}" height="100%"></c-echars>
</view>
<view class="circle-data" style="margin-top: 24rpx;height: auto;">
<view wx:for="{{dataCompData}}" wx:for-item="item" wx:key="name" style="margin-bottom: 64rpx;display: flex;justify-content: space-between;">
<view class="circle-data-item" style="width: 60%;">
<view class="colorTags" style="{{pieColor[index]}}"></view>
<view class="circle-data-title">{{item.name}}</view>
</view>
<view class="circle-data-item">
<view>数量</view>
<view class="circle-data-title">{{item.value}}</view>
</view>
</view>
</view>
</view>
<view class="tu-item">
<view class="tu-area-title">
<view style="width: 55%;">主贴用户分析</view>
<view style="width: 45%;">
<van-tabs type="card" active="{{ muActive }}" color="#BBBBBB" bind:change="muChange">
<van-tab title="性别"></van-tab>
<van-tab title="认证"></van-tab>
</van-tabs>
</view>
</view>
<view style="display: flex;justify-content: flex-start;">
<view class="circle-chart" style="margin-right: 48rpx;">
<c-echars showChart="{{showChart}}" canvasId="wytotal-canvas" chartId="wytotal" chartOption="{{mainUserChart}}" height="100%"></c-echars>
</view>
<view class="circle-data" style="margin-top: 24rpx;height: auto;">
<view wx:for="{{mainUserData}}" wx:for-item="item" wx:key="name" style="margin-bottom: 64rpx;display: flex;justify-content: space-between;">
<view class="circle-data-item" style="width: 60%;">
<view class="colorTags" style="{{pieColor[index]}}"></view>
<view class="circle-data-title">{{item.name}}</view>
</view>
<view class="circle-data-item">
<view>数量</view>
<view class="circle-data-title">{{item.value}}</view>
</view>
</view>
</view>
</view>
</view>
<view class="tu-item">
<view class="tu-area-title">
<view style="width: 55%;">话题分布</view>
<view style="width: 45%;">
<van-tabs type="card" active="{{ tpActive }}" color="#BBBBBB" bind:change="tpChange">
<van-tab title="正面"></van-tab>
<van-tab title="负面"></van-tab>
</van-tabs>
</view>
</view>
<view class="tu-item">
<view class="tu-area-title">
<view style="width: 55%;">ID车型分析</view>
<view style="width: 45%;">
<van-tabs type="card" active="{{ mcmActive }}" color="#BBBBBB" bind:change="mcmChange">
<van-tab title="主贴ID"></van-tab>
<van-tab title="跟帖ID"></van-tab>
</van-tabs>
</view>
</view>
<view class="ranking">
<view class="title">排名</view>
<view class="title1">车型</view>
<view class="title2">数量</view>
</view>
<view class="rank" wx:for="{{mainIdTypeData}}" wx:key="index" wx:if="{{index < 5}}">
<view style="width: 30%;margin-top: 6rpx;color: #999999;">
<image class="rank_num" wx:if="{{index === 0}}" src="{{imageUrl}}/img_diyi.png"></image>
<image class="rank_num" wx:if="{{index === 1}}" src="{{imageUrl}}/img_dier.png"></image>
<image class="rank_num" wx:if="{{index === 2}}" src="{{imageUrl}}/img_disan.png"></image>
<view class="num" wx:if="{{index !== 0 &&index !== 1 &&index !== 2 }}">{{index >= 9 ? index + 1 : '0' + (index + 1)}}</view>
</view>
<view class="media">{{item.name}}</view>
<view class="volume">{{item.value}}</view>
</view>
<view class="tu-chart-item" style="height: 425rpx;">
<c-echars showChart="{{showChart}}" canvasId="tfb-canvas" chartId="tfb" chartOption="{{topicData}}" height="100%"></c-echars>
</view>
<view class="tu-item">
<view class="tu-chart-title">主贴ID区域分布</view>
<view class="area-item">
<view class="area-item-chart">
<c-echars showChart="{{showChart}}" canvasId="aua-canvas" chartId="aua" chartOption="{{mainIdArea1}}" height="100%"></c-echars>
</view>
<view class="area-item-chart">
<c-echars showChart="{{showChart}}" canvasId="aua-canvas" chartId="aua" chartOption="{{mainIdArea2}}" height="100%"></c-echars>
<view class="tu-chart-title">TOP分发帖用户</view>
<view class="tu-chart-item" style="margin-top: 32rpx;height: auto;">
<view class="kol-content">
<view class="kol-item" wx:for="{{topicUser}}" wx:key="index" wx:if="{{index < 3}}">
<view class="kol-user-name" style="margin-top: 25%">{{item.name}}</view>
<view style="display: flex;justify-content: space-between;margin: 0 auto;padding: 24rpx 5rpx;">
<view class="kol-value">影响力</view>
<view class="kol-value-number">{{item.value}}</view>
</view>
</view>
</view>
</view>
<view class="tu-item">
<view class="tu-area-title">
<view style="width: 55%;">跟帖用户分析</view>
<view style="width: 45%;">
<van-tabs type="card" active="{{ suActive }}" color="#BBBBBB" bind:change="suChange">
<van-tab title="性别"></van-tab>
<van-tab title="认证"></van-tab>
</van-tabs>
</view>
</view>
<view style="display: flex;justify-content: flex-start;">
<view class="circle-chart" style="margin-right: 48rpx;">
<c-echars showChart="{{showChart}}" canvasId="wytotal-canvas" chartId="wytotal" chartOption="{{subUserChart}}" height="100%"></c-echars>
</view>
<view class="circle-data" style="margin-top: 24rpx;height: auto;">
<view wx:for="{{subUserData}}" wx:for-item="item" wx:key="name" style="margin-bottom: 64rpx;display: flex;justify-content: space-between;">
<view class="circle-data-item" style="width: 60%;">
<view class="colorTags" style="{{pieColor[index]}}"></view>
<view class="circle-data-title">{{item.name}}</view>
</view>
<view class="circle-data-item">
<view>数量</view>
<view class="circle-data-title">{{item.value}}</view>
</view>
</view>
</view>
</view>
</view>
<view class="tu-item">
<view class="tu-area-title">
<view style="width: 55%;">主贴用户分析</view>
<view style="width: 45%;">
<van-tabs type="card" active="{{ muActive }}" color="#BBBBBB" bind:change="muChange">
<van-tab title="性别"></van-tab>
<van-tab title="认证"></van-tab>
</van-tabs>
</view>
</view>
<view class="tu-item">
<view class="tu-chart-title">跟帖ID区域分布</view>
<view class="area-item" style="padding-left: 16rpx;">
<view class="area-item-chart">
<c-echars showChart="{{showChart}}" canvasId="sua-canvas" chartId="sua" chartOption="{{subIdArea1}}" height="100%"></c-echars>
</view>
<view class="area-item-chart">
<c-echars showChart="{{showChart}}" canvasId="sua-canvas" chartId="sua" chartOption="{{subIdArea2}}" height="100%"></c-echars>
</view>
</view>
<view style="display: flex;justify-content: flex-start;">
<view class="circle-chart" style="margin-right: 48rpx;">
<c-echars showChart="{{showChart}}" canvasId="wytotal-canvas" chartId="wytotal" chartOption="{{mainUserChart}}" height="100%"></c-echars>
</view>
<view class="circle-data" style="margin-top: 24rpx;height: auto;">
<view wx:for="{{mainUserData}}" wx:for-item="item" wx:key="name" style="margin-bottom: 64rpx;display: flex;justify-content: space-between;">
<view class="circle-data-item" style="width: 60%;">
<view class="colorTags" style="{{pieColor[index]}}"></view>
<view class="circle-data-title">{{item.name}}</view>
</view>
<view class="circle-data-item">
<view>数量</view>
<view class="circle-data-title">{{item.value}}</view>
</view>
</view>
</view>
</view>
<view class="tu-item">
<view class="tu-chart-title">疑似车黑ID</view>
<view class="tu-chart-item">
<c-echars showChart="{{showChart}}" canvasId="chi-canvas" chartId="chiTransBar" chartOption="{{carHaterId}}" height="100%"></c-echars>
</view>
</view>
<view class="tu-item">
<view class="tu-area-title">
<view style="width: 55%;">ID车型分析</view>
<view style="width: 45%;">
<van-tabs type="card" active="{{ mcmActive }}" color="#BBBBBB" bind:change="mcmChange">
<van-tab title="主贴ID"></van-tab>
<van-tab title="跟帖ID"></van-tab>
</van-tabs>
</view>
</view>
<view class="tu-item">
<view class="tu-chart-title">跟帖ID注册时间</view>
<view class="tu-chart-item">
<c-echars showChart="{{showChart}}" canvasId="iec-canvas" chartId="iecBar" chartOption="{{idEventChart}}" height="100%"></c-echars>
</view>
<view class="ranking">
<view class="title">排名</view>
<view class="title1">车型</view>
<view class="title2">数量</view>
</view>
<van-dialog use-slot title="千人发帖量算法" show="{{infoShow1}}">
<view style="margin: 24rpx">
<view>行业千人发帖量=【行业所有车型主贴量×1000÷所有阅读量】÷车型数量</view>
<view>千人发帖量=车型主贴量×1000÷阅读量</view>
<view>千人发帖量量差=品牌千人发帖量-行业千人发帖量</view>
</view>
</van-dialog>
<van-dialog use-slot title="千人评论量算法" show="{{infoShow2}}">
<view style="margin: 24rpx">
<view>行业千人评论量=【行业所有车型评论量×1000÷所有阅读量】÷车型数量</view>
<view>千人评论量=车型评论量×1000÷阅读量</view>
<view>千人评论量量差=品牌千人评论量-行业千人评论量</view>
</view>
</van-dialog>
<view class="rank" wx:for="{{mainIdTypeData}}" wx:key="index" wx:if="{{index < 5}}">
<view style="width: 30%;margin-top: 6rpx;color: #999999;">
<image class="rank_num" wx:if="{{index === 0}}" src="{{imageUrl}}/img_diyi.png"></image>
<image class="rank_num" wx:if="{{index === 1}}" src="{{imageUrl}}/img_dier.png"></image>
<image class="rank_num" wx:if="{{index === 2}}" src="{{imageUrl}}/img_disan.png"></image>
<view class="num" wx:if="{{index !== 0 &&index !== 1 &&index !== 2 }}">{{index >= 9 ? index + 1 : '0' + (index + 1)}}</view>
</view>
<view class="media">{{item.name}}</view>
<view class="volume">{{item.value}}</view>
</view>
</view>
<view class="tu-item">
<view class="tu-chart-title">主贴ID区域分布</view>
<view class="area-item">
<view class="area-item-chart">
<c-echars showChart="{{showChart}}" canvasId="aua-canvas" chartId="aua" chartOption="{{mainIdArea1}}" height="100%"></c-echars>
</view>
<view class="area-item-chart">
<c-echars showChart="{{showChart}}" canvasId="aua-canvas" chartId="aua" chartOption="{{mainIdArea2}}" height="100%"></c-echars>
</view>
</view>
</view>
<view class="tu-item">
<view class="tu-area-title">
<view style="width: 55%;">跟帖用户分析</view>
<view style="width: 45%;">
<van-tabs type="card" active="{{ suActive }}" color="#BBBBBB" bind:change="suChange">
<van-tab title="性别"></van-tab>
<van-tab title="认证"></van-tab>
</van-tabs>
</view>
</view>
<view style="display: flex;justify-content: flex-start;">
<view class="circle-chart" style="margin-right: 48rpx;">
<c-echars showChart="{{showChart}}" canvasId="wytotal-canvas" chartId="wytotal" chartOption="{{subUserChart}}" height="100%"></c-echars>
</view>
<view class="circle-data" style="margin-top: 24rpx;height: auto;">
<view wx:for="{{subUserData}}" wx:for-item="item" wx:key="name" style="margin-bottom: 64rpx;display: flex;justify-content: space-between;">
<view class="circle-data-item" style="width: 60%;">
<view class="colorTags" style="{{pieColor[index]}}"></view>
<view class="circle-data-title">{{item.name}}</view>
</view>
<view class="circle-data-item">
<view>数量</view>
<view class="circle-data-title">{{item.value}}</view>
</view>
</view>
</view>
</view>
</view>
<view class="tu-item">
<view class="tu-chart-title">跟帖ID区域分布</view>
<view class="area-item" style="padding-left: 16rpx;">
<view class="area-item-chart">
<c-echars showChart="{{showChart}}" canvasId="sua-canvas" chartId="sua" chartOption="{{subIdArea1}}" height="100%"></c-echars>
</view>
<view class="area-item-chart">
<c-echars showChart="{{showChart}}" canvasId="sua-canvas" chartId="sua" chartOption="{{subIdArea2}}" height="100%"></c-echars>
</view>
</view>
</view>
<view class="tu-item">
<view class="tu-chart-title">疑似车黑ID</view>
<view class="tu-chart-item">
<c-echars showChart="{{showChart}}" canvasId="chi-canvas" chartId="chiTransBar" chartOption="{{carHaterId}}" height="100%"></c-echars>
</view>
</view>
<view class="tu-item">
<view class="tu-chart-title">跟帖ID注册时间</view>
<view class="tu-chart-item">
<c-echars showChart="{{showChart}}" canvasId="iec-canvas" chartId="iecBar" chartOption="{{idEventChart}}" height="100%"></c-echars>
</view>
</view>
<van-dialog use-slot title="千人发帖量算法" show="{{infoShow1}}">
<view style="margin: 24rpx">
<view>行业千人发帖量=【行业所有车型主贴量×1000÷所有阅读量】÷车型数量</view>
<view>千人发帖量=车型主贴量×1000÷阅读量</view>
<view>千人发帖量量差=品牌千人发帖量-行业千人发帖量</view>
</view>
</van-dialog>
<van-dialog use-slot title="千人评论量算法" show="{{infoShow2}}">
<view style="margin: 24rpx">
<view>行业千人评论量=【行业所有车型评论量×1000÷所有阅读量】÷车型数量</view>
<view>千人评论量=车型评论量×1000÷阅读量</view>
<view>千人评论量量差=品牌千人评论量-行业千人评论量</view>
</view>
</van-dialog>
</view>

@ -262,7 +262,8 @@ Page({
let d = new Date();
let date = d.toISOString().replace(/\D/g, '');
let result = this.data.result.length
if (result == 0) {
let total = this.data.total
if (result == 0 && total>50000) {
wx.showModal({
title: '提示',
content: '全部数据超过50000(万)条,是否要全部导出',

@ -75,7 +75,7 @@
<van-checkbox name="0" shape="square" class="van-checkbox">当前页面全选</van-checkbox>
</van-checkbox-group>
</view>
<view style="padding: 0 32rpx 0 0 ;">
<view style="padding: 0 30px 0 0 ;">
<van-button disabled="{{total == 0}}" bind:click="openReport" color="#0084FF" custom-style="width: 120%" class="theme-add-btn" plain>生成数据</van-button>
</view>
</view>

@ -26,7 +26,7 @@
<view class="tr-item">
<view class="tr-chart-title">销量态势</view>
<view class="tr-chart-subTitle">{{saleRankTitle}}</view>
<view class="tr-chart-item" style="margin-left: -24rpx;">
<view class="tr-chart-item" style="margin: 0 auto">
<c-echars showChart="{{showChart}}" canvasId="salesLine-canvas" chartId="salesBar" chartOption="{{salesOption}}" height="100%"></c-echars>
</view>
</view>

@ -35,8 +35,9 @@
/* display: flex; */
}
.wb-chart-item1 {
width: 95%;
width: 100%;
height: 360rpx;
margin: 0 auto;
/* display: flex; */
}

@ -79,7 +79,7 @@
<view class="kol-item" style="background: #FFF0F1;" wx:for="{{kolDataMedia}}" wx:key="index" wx:if="{{index<3}}">
<!-- <image style="width: 64rpx;height: 64rpx;margin-top: 20rpx;" src="{{item._source.profileimgurl}}" /> -->
<view class="kol-user-name" style="margin-top: 25%">{{item.name}}</view>
<view style="display: flex;justify-content: space-between;padding: 24rpx 24rpx 0rpx 24rpx">
<view style="display: flex;justify-content: space-between;margin: 0 auto;padding: 24rpx 5rpx;">
<view class="kol-value">传播值</view>
<view class="kol-value-number">{{item.value}}</view>
</view>
@ -89,7 +89,7 @@
<view class="kol-item" style="background: #FFF0F1;" wx:for="{{kolDataMedia}}" wx:key="index" wx:if="{{index>=3&&index<6}}">
<!-- <image style="width: 64rpx;height: 64rpx;margin-top: 20rpx;" src="{{item._source.profileimgurl}}" /> -->
<view class="kol-user-name" style="margin-top: 25%">{{item.name}}</view>
<view style="display: flex;justify-content: space-between;padding: 24rpx 24rpx 0rpx 24rpx">
<view style="display: flex;justify-content: space-between;margin: 0 auto;padding: 24rpx 5rpx;">
<view class="kol-value">传播值</view>
<view class="kol-value-number">{{item.value}}</view>
</view>
@ -99,7 +99,7 @@
<view class="kol-item" style="background: #FFF0F1;" wx:for="{{kolDataMedia}}" wx:key="index" wx:if="{{index>=6&&index<9}}">
<!-- <image style="width: 64rpx;height: 64rpx;margin-top: 20rpx;" src="{{item._source.profileimgurl}}" /> -->
<view class="kol-user-name" style="margin-top: 25%">{{item.name}}</view>
<view style="display: flex;justify-content: space-between;padding: 24rpx 24rpx 0rpx 24rpx">
<view style="display: flex;justify-content: space-between;margin: 0 auto;padding: 24rpx 5rpx;">
<view class="kol-value">传播值</view>
<view class="kol-value-number">{{item.value}}</view>
</view>

@ -362,7 +362,8 @@ Page({
let d = new Date();
let date = d.toISOString().replace(/\D/g, '');
let result = this.data.result.length
if (result == 0) {
let total = this.data.total
if (result == 0 && total>50000) {
wx.showModal({
title: '提示',
content: '全部数据超过50000(万)条,是否要全部导出',

Loading…
Cancel
Save