<!--packageH/Advertising/advertisingAdvertisers/advertisingAdvertisers.wxml-->
<view id="advertisers">
  <view class="top-box">
    <view class="member-info" wx:if="{{info.has_one_member}}">
      <image src="{{info.has_one_member.avatar_image}}" alt="" />
      <view class="member-name">{{ info.has_one_member.nickname }}</view>
    </view>
    <view class="release-btn" catchtap="gotoUrl" data-tag="advertisingRelease">
      <view class="iconfont icon-life-game-plus"></view>
      发布广告
    </view>
  </view>
  <view class="main">
    <van-tabs active="{{ activeName }}" wx:if="{{showTabs}}" bind:click="onClick" sticky offset-top="40">
      <van-tab title="{{items.name}}" wx:for="{{titleArr}}" wx:for-index="ind" wx:for-item="items">
        <view class="statistics-table" wx:if="{{titleArr[ind].code == 'video' || titleArr[ind].code == 'live'}}">
          <view class="table-num">
            <view class="nums">{{ statistical.browse_total || "--" }}</view>
            <view>累计总播放量</view>
          </view>
          <view class="table-num">
            <view class="nums">{{ statistical.share_total || "--" }}</view>
            <view>累计总分享量</view>
          </view>
          <view class="table-num">
            <view class="nums">{{ statistical.reward_amount_total || "--" }}</view>
            <view>累计广告金额</view>
          </view>
          <view class="table-num">
            <view class="nums">{{ statistical.reward_amount || "--" }}</view>
            <view>累计已奖励金额</view>
          </view>
        </view>
          <view class="content-title">
            <view>{{ titleArr[ind].code == "audit" ? "我的广告" : titleArr[ind].code == "video" ? "我的视频订单" : "我的直播订单" }}
            </view>
            <view class="popover-box" >
              <view class="popover-text" catchtap="changePopover">{{popover_text}} <icon class="iconfont icon-member-bottom"></icon></view>
              <view class="popover-actions" wx:if="{{isShowPopover}}">
                <view class="popover-actions-child" catchtap="clickPopover"  data-name="{{item.text}}" data-id="{{item.status}}" wx:for="{{actions}}">{{item.text}}</view>
              </view>
            </view>
          </view>

        <view class="content">
          <block wx:if="{{titleArr[ind].code == 'audit'}}">
            <view class="li audit-class" wx:for="{{dataList[0].list}}" wx:for-index="index" wx:for-item="item">
              <view class="li-img">
                <image src="{{item.video_cover}}" alt="" />
              </view>
              <view class="ad-li-right has-turn-down-box">
                <view class="advertisers-title audit-class-title">
                  <view class="advertisers-status">{{ item.status_text }}</view>
                  <text >{{ item.title }}</text>
                </view>
                <view class="turn-down-box" wx:if="{{item.status == -1}}">驳回原因：{{ item.rejection_details }}</view>
              </view>
            </view>
          </block>
          <block wx:if="{{titleArr[ind].code == 'video' || titleArr[ind].code == 'live'}}">
            <view class="li video-class" wx:for="{{dataList[ind].list}}" wx:for-index="index" wx:for-item="item">
              <view class="li-img">
                <image src="{{item.video_cover}}" alt="" />
              </view>
              <view class="ad-li-right">
                <view class="advertisers-title">
                  <view class="advertisers-status">{{ item.status_text }}</view>
                  <text >{{ item.title }}</text>
                </view>
                <view class="other">
                  广告金额：
                  <view class="size-color1">￥{{ item.reward_amount_total }}</view>
                </view>
                <view class="other">
                  已奖励金额：
                  <view class="size-color1">￥{{ item.reward_amount }}</view>
                </view>
                <view class="other">
                  播放量：
                  <view class="size-color2">{{ item.browse_total }}</view>
                </view>
                <view class="other">
                  分享量：
                  <view class="size-color2">{{ item.share_total }}</view>
                  <view class="btn-detail size-color1" catchtap="gotoUrl" data-tag="advertisingAdDetails"
                    data-id="{{item.id}}">查看详情 <icon class="iconfont icon-member_right"></icon>
                  </view>
                </view>
              </view>
            </view>
          </block>
        </view>
        <view class="blank-box" wx:if="{{dataList[ind] && dataList[ind].list.length==0}}">
          <image src="https://mini-app-img-1251768088.cos.ap-guangzhou.myqcloud.com/blank.png" mode='widthFix' />
        </view>
      </van-tab>
    </van-tabs>
  </view>
</view>