<wxs module="format" src="../../wxs/until.wxs"></wxs>
<view class="browse">
  <van-row>
    <van-col span="12">传播量：{{format.formatNumber(getData.total.play_count)}}</van-col>
    <van-col span="12">发稿量：{{format.formatNumber(getData.total.all)}}条</van-col>
  </van-row>
  <van-row>
    <van-col span="12">点赞量：{{format.formatNumber(getData.total.digg_count)}}</van-col>
    <van-col span="12">评论量：{{format.formatNumber(getData.total.comment_count)}}条</van-col>
  </van-row>
</view>
<van-cell wx:if="{{eclook.show}}" title="发稿平台" />
<view wx:if="{{eclook.show}}" class="f2-chart">
  <ec-canvas id="bar" width="{{width}}" height="{{height[0]}}" canvas-id="mychart-bar" ec="{{ eclook }}"></ec-canvas>
</view>
<van-cell wx:if="{{getData.total}}" title="词云" />
<van-image width="{{cloud.width}}" height="{{cloud.height}}" bind:load="loadimg"
  src="https://djweb.smcic.net/dj/static/cloud.png" />
<van-cell wx:if="{{ec_map.show}}" title="地域分布" />
<view wx:if="{{ec_map.show && height[1]}}" class="f2-chart" style="padding-bottom: 10rpx">
  <ec-canvas width="{{width}}" height="{{height[1]}}" id="map" canvas-id="mychart-map" ec="{{ ec_map }}"></ec-canvas>
</view>
<van-cell wx:if="{{getData.total}}" title="媒体活跃度" />
<view wx:for="{{getData.Activity || []}}" wx:key="id" wx:if="{{getData.total}}" class="pro">
  <van-cell title="{{item.groupValue}}" value="{{format.formatNumber(item.total)}}" />
  <progress color="#1989fa" percent="{{item.total/getData.Activity[0].total*100}}" border-radius="5" active
    stroke-width="6" />
</view>
<van-cell wx:if="{{getData.total}}" title="活跃作者(top10)" />
<view wx:for="{{getData.ActivityAuthor || []}}" wx:key="id" wx:if="{{getData.total}}" class="pro">
  <van-cell title="{{item.groupValue}}" value="{{format.formatNumber(item.total)}}" link-type="navigateTo" is-link
    url="/pages/userList/index?url={{item.detailUrl}}&title={{item.groupValue}}" />
  <progress color="#1989fa" percent="{{item.total/getData.ActivityAuthor[0].total*100}}" border-radius="5" active
    stroke-width="6" />
</view>
<van-cell wx:if="{{getData.total}}" title="人物画像" />
<view wx:if="{{portrait.show}}" class="f2-chart">
  <ec-canvas id="bar" width="{{width}}" height="{{height[3]}}" canvas-id="mychart-bar" ec="{{ portrait }}"></ec-canvas>
</view>
<view wx:if="{{getData.total}}" style="padding: 0 30rpx">
  <van-divider contentPosition="center" fontSize="10">以上数据每周五17:00更新</van-divider>
</view>