<!--packageI/newMedia/newMediaMy/newMediaMy.wxml-->


<view class="header">
  <view class="header-container">
    <view class="face">
      <image src="{{details.avatar}}">
      </image>
    </view>
    <view class="name">{{details.nickname}}</view>
  </view>
</view>

<view class="flow">
  <view class="my-flow">我的流量：<text class="num">{{details.stream}}</text></view>
  <view class="flow-items">
    <view class="flow-item" data-page="/packageI/newMedia/newMediaRechange/newMediaRechange" bindtap="gotoPages">
      <view class="icon">
        <image src="https://mini-app-img-1251768088.cos.ap-guangzhou.myqcloud.com/new_media/recharge_flow.png">
        </image>
      </view>
      <view class="text">充值流量值</view>
    </view>
    <view class="flow-item" data-page="/packageI/newMedia/newMediaExchange/newMediaExchange" bindtap="gotoPages">
      <view class="icon">
        <image src="https://mini-app-img-1251768088.cos.ap-guangzhou.myqcloud.com/new_media/exchange_flow.png">
        </image>
      </view>
      <view class="text">兑换流量值</view>
    </view>
    <view class="flow-item" data-page="/packageI/newMedia/newMediaPoints/newMediaPoints" bindtap="gotoPages">
      <view class="icon">
        <image src="https://mini-app-img-1251768088.cos.ap-guangzhou.myqcloud.com/new_media/check_details.png">
        </image>
      </view>
      <view class="text">查看明细</view>
    </view>
  </view>
</view>

<view class="tabs">
  <view class="tabItem {{tabsIndex==0 ? 'active' : ''}}" bindtap="setTabsIndex" data-index="0" data-name="tabsIndex">
    我看过的
  </view>
  <view class="tabItem {{tabsIndex==1 ? 'active' : ''}}" bindtap="setTabsIndex" data-index="1" data-name="tabsIndex">
    我发布的
  </view>
</view>

<!-- 我看过的 -->
<view class="my-seen" wx:if="{{tabsIndex==0}}">

  <view class="my-seen-tabs">
    <view class="my-seen-tab {{seeTabIndex==index ? 'active' : ''}}" bindtap="setTabsIndex" data-index="{{index}}"
      data-name="seeTabIndex" wx:for="{{seeTabArray}}">{{item.name}}</view>
  </view>

  <view class="nav-box seen-nav-box" wx:if="{{seeTabIndex==6}}">
    <view class="name">直播</view>
    <view class="screenBox">
      <view class="srceenText" bindtap="setScreenShow">
        <text>{{liveRecordArray[liveRecordIndex].name}}</text>
        <i class="iconfont icon-member-bottom"></i>
      </view>
      <view class="srceenOptions" wx:if="{{screenShow}}">
        <view class="srceenOptionsItem {{liveRecordIndex==index ? 'active' : ''}}" data-index="{{index}}"
          data-name="liveRecordIndex" bindtap="setTabsIndex" wx:for="{{liveRecordArray}}">{{item.name}}</view>
      </view>
    </view>
  </view>

  <view class="ad-articles" wx:if="{{seeTabIndex!=5 && seeTabIndex!=6}}">
    <block wx:for="{{listData}}" wx:if="{{networkLoading && listData.length > 0}}">
      <ad-article-item class="ad-article-item" clickShow="{{seeTabIndex==4}}" labelShow="{{true}}" item="{{item}}"
        wx:key="{{index}}"> </ad-article-item>
    </block>
  </view>

  <block wx:if="{{networkLoading && listData.length > 0}}"> 
    <ad-live-record wx:if="{{seeTabIndex==6}}" allLivelistData="{{listData}}"></ad-live-record>
  </block>

  <!-- 关注记录 -->
  <block wx:if="{{networkLoading && listData.length > 0}}"> 
    <fans-list wx:if="{{seeTabIndex==5}}" list="{{listData}}" bind:cancelAttention="cancelAttention"></fans-list>
  </block>


</view>

<!-- 我发布的 -->
<view class="my-release" wx:if="{{tabsIndex==1}}">

  <view class="specific">
    <view class="specific-container">
      <view class="specific-items">
        <view class="specific-item">
          <view class="num">{{details.read_count || 0}}</view>
          <view class="text">{{details.name_set.read_name}}人数</view>
        </view>
        <view class="hr"></view>
        <view class="specific-item">
          <view class="num">{{details.like_count || 0}}</view>
          <view class="text">{{details.name_set.like_name}}人数</view>
        </view>
        <view class="hr"></view>
        <view class="specific-item">
          <view class="num">{{details.collect_count || 0}}</view>
          <view class="text">{{details.name_set.favorites_name}}人数</view>
        </view>
      </view>
      <view class="specific-items">
        <view class="specific-item">
          <view class="num">{{details.comment_count || 0}}</view>
          <view class="text">{{details.name_set.comment_name}}人数</view>
        </view>
        <view class="hr"></view>
        <view class="specific-item">
          <view class="num">{{details.share_count || 0}}</view>
          <view class="text">{{details.name_set.share_name}}人数</view>
        </view>
        <view class="hr"></view>
        <view class="specific-item" data-page="/packageI/newMedia/newMediaFans/newMediaFans" bindtap="gotoPages">
          <view class="num">{{details.attention_count || 0}}</view>
          <view class="text">粉丝</view>
        </view>
      </view>
    </view>
  </view>

  <view class="tabs">
    <view wx:for="{{releaseTabArray}}" class="tabItem {{releaseTabIndex==index ? 'active' : ''}}" bindtap="setTabsIndex" data-index="{{index}}"
      data-name="releaseTabIndex">
      {{releaseTabArray[index].name}}
    </view>
  </view>

  <view class="my-release-container">
    <view class="nav-box">
      <view class="name">{{releaseTabArray[releaseTabIndex].name}}</view>
      <view class="screenBox" wx:if="{{releaseTabIndex==0 || releaseTabIndex==1}}">
        <view class="srceenText" bindtap="setScreenShow">
          <text wx:if="{{releaseTabIndex==0}}">{{releaseExamineArray[releaseExamineIndex].name}}</text>
          <text wx:if="{{releaseTabIndex==1}}">{{releaseOrdinaryArray[releaseOrdinaryIndex].name}}</text>
          <i class="iconfont icon-member-bottom"></i>
        </view>
        <view class="srceenOptions" wx:if="{{screenShow}}">
          <view class="srceenOptionsItem {{releaseExamineIndex==index ? 'active' : ''}}" wx:if="{{releaseTabIndex==0}}"
            data-index="{{index}}" data-name="releaseExamineIndex" bindtap="setTabsIndex"
            wx:for="{{releaseExamineArray}}">{{item.name}}</view>
          <view class="srceenOptionsItem {{releaseOrdinaryIndex==index ? 'active' : ''}}" wx:if="{{releaseTabIndex==1}}"
            data-index="{{index}}" bindtap="setTabsIndex" data-name="releaseOrdinaryIndex"
            wx:for="{{releaseOrdinaryArray}}">{{item.name}}</view>
        </view>
      </view>
    </view>

    <view class="release-list">
      <view class="release-list-item" wx:for="{{listData}}">

          <my-release-item releaseTabIndex="{{releaseTabIndex}}" item="{{item}}" index="{{index}}"></my-release-item>

         
  
      </view>
    </view>

  </view>




</view>




<view wx:if="{{!networkLoading}}" class="loadingimg">
    <image src="https://mini-app-img-1251768088.cos.ap-guangzhou.myqcloud.com/video-loading.gif" mode='aspectFill' />
  </view>

  <view wx:if="{{ networkLoading && listData.length==0}}" class="blank">
    <image src='https://mini-app-img-1251768088.cos.ap-guangzhou.myqcloud.com/blank.png' mode='widthFix' />
  </view>