<wxs module="format" src="../../wxs/until.wxs"></wxs>
<view class="browse">
  <van-row>
    <van-col span="12" data-title="传播量" bindtap="showDetail">
      传播量：{{format.formatNumber(getData.total.play_count)}}
      <van-icon color="#1AB6FF" name="warning-o" />
    </van-col>
    <van-col span="12">
      <!-- <van-col span="12" data-title="发稿量" bindtap="showDetail"> -->
      发稿量：{{format.formatNumber(getData.total.all)}}条
      <!-- <van-icon color="#1AB6FF" name="warning-o" /> -->
    </van-col>
  </van-row>
  <van-row>
    <van-col span="12">
      <!-- <van-col span="12" data-title="点赞量" bindtap="showDetail"> -->
      点赞量：{{format.formatNumber(getData.total.digg_count)}}
      <!-- <van-icon color="#1AB6FF" name="warning-o" /> -->
    </van-col>
    <van-col span="12">
      <!-- <van-col span="12" data-title="评论量" bindtap="showDetail"> -->
      评论量：{{format.formatNumber(getData.total.comment_count)}}条
      <!-- <van-icon color="#1AB6FF" name="warning-o" /> -->
    </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>

<cover-view wx:if="{{diglogTitle}}" class="modolBg">
  <cover-view class="local_dialog">
    <cover-view class="local_dialog_title">
      <cover-view class="local_dialog_close" bindtap="showDetail">
        <cover-view class="local_dialog_close_left"></cover-view>
        <cover-view class="local_dialog_close_right"></cover-view>
      </cover-view>
      <cover-view class="title">
        {{diglogTitle}}
      </cover-view>
    </cover-view>
    <cover-view class="local_dialog_body">
      <cover-view class="local_dialog_main">
        <cover-view style="background-color: #999; height: 1rpx;"></cover-view>
        <cover-view class="local_dialog_totalStyle" style="text-align: center;">
          <cover-view class="local_dialog_left titalItem">
            平台
            <cover-view class="local_dialog_line"> </cover-view>
          </cover-view>
          <cover-view class="local_dialog_right titalItem">
            合计
          </cover-view>
        </cover-view>
        <cover-view style="background-color: #999; height: 1rpx;"></cover-view>
        <cover-view class="local_dialog_left">
          <cover-view wx:key="id" wx:for="{{detailList}}">
            <cover-view style="line-height:1.8em;font-weight: bold;">{{item.platform}}：</cover-view>
            <cover-view style="line-height:1.8em" wx:key="id" wx:for="{{item.list || []}}" wx:for-item="v"
              wx:for-index="i">
              {{format.shenglueh(v.title)}}：{{format.formatNumber(v.play_count)}}
            </cover-view>
          </cover-view>
          <cover-view class="local_dialog_line"> </cover-view>
        </cover-view>
        <cover-view class="local_dialog_right">
          <cover-view>{{format.formatNumber(getData.total.play_main_stream_count)}}</cover-view>
        </cover-view>
        <cover-view style="background-color: #999; height: 1rpx;"></cover-view>
        <cover-view class="local_dialog_totalStyle">
          <cover-view class="local_dialog_left titalItem" style="line-height:1.8em;color: #000">
            其它平台
            <cover-view class="local_dialog_line"> </cover-view>
          </cover-view>
          <cover-view class="local_dialog_right titalItem" style="padding-left: 10rpx;line-height:1.8em;color: #000">
            {{format.formatNumber(getData.total.play_orther_count)}}
          </cover-view>
        </cover-view>
        <cover-view style="background-color: #999; height: 1rpx;"></cover-view>
        <cover-view class="local_dialog_totalStyle">
          <cover-view class="local_dialog_left titalItem" style="line-height:1.8em;color: #000">
            总计
            <cover-view class="local_dialog_line"> </cover-view>
          </cover-view>
          <cover-view class="local_dialog_right titalItem" style="padding-left: 10rpx;line-height:1.8em;color: #000">
            {{format.formatNumber(getData.total.play_count)}}
          </cover-view>
        </cover-view>
        <cover-view style="background-color: #999; height: 1rpx;"></cover-view>
      </cover-view>
    </cover-view>
    <cover-view style="height:25px"></cover-view>
  </cover-view>
</cover-view>