<navigator class="font12 coin-rule" url='/pages/public/rule/bb_rule' hidden="{{info.scale == 1}}">
  <text class="icon icon-question font18 middle"></text><text class='middle'> 规则</text>
</navigator>
<view class='coin-info content-box'>
  <view class='row no-gutter'>
    <view class='col-25'>
      <text class='b'>{{info.balance}}</text>
      <text>剩余\n</text>
      <!-- <navigator url='/pages/account/coin/cash' class='button button-radius' hover-class='none'>提现</navigator> -->
    </view>
    <view class='col-25'>
      <text class='b'>{{info.income_all}}</text>
      <text>累计</text>
    </view>
    <view class='col-25'>
      <text class='b'>{{info.inviter_award}}</text>
      <text>邀请奖励</text>
    </view>
    <view class='col-25'>
      <text class='b'>{{info.inviter_all}}</text>
      <text>累计邀请</text>
    </view>
  </view>
</view>
<view class='content-box coin-box-info'>
  <view class='nav'>
    <view class="col{{index == 0 ? ' navCol':''}}" bindtap='tabs' data-index='0'>钱包记录</view>
    <view class="col{{index == 1 ? ' navCol':''}}" bindtap='tabs' data-index='1'>邀请用户</view>
  </view>
  <view class='list-block' wx:if="{{records.length > 0}}">
    <block wx:if="{{index == 0}}">
    <view class="media-item" wx:for="{{records}}" wx:key="*">
      <view class='item-content'>
        <view class='item-media'>
          <image src='{{item.avatar}}' mode="aspectFit" class='head' data-index="{{index}}" binderror="binderror"></image>
        </view>
        <view class='item-inner'>
          <view class='item-title'>{{item.nickname}}</view>
          <view class='item-text'>{{item.remark}}</view>
        </view>
        <view class="item-after">
          <text class="font14 {{item.priceStats == 1 ? 'green':'subtitleColor'}}">{{item.price}}</text>
          <text>\n{{item.time}}</text>
        </view>
      </view>
    </view>
    </block>
    <block wx:else>
    <navigator wx:for="{{records}}" wx:key="*" url='/pages/account/coin/invite?id={{item.id}}' class='item-content item-link'>
      <view class='item-media'>
        <image src='{{item.avatar}}' mode="aspectFit" data-index="{{index}}" class='head' binderror="binderror"></image>
      </view>
      <view class='item-inner'>
        <view class='item-title'>{{item.nickname}}</view>
      </view>
      <view class="item-after">
        {{item.time}}
      </view>
    </navigator>
    </block>
  </view>
  <view wx:else class='noData'>
    <text class="icon icon-info"></text><text>{{index == 0 ? '您暂无佣金收入。':'您暂无邀请用户。'}}<text wx:if="{{info.scale != 1}}">\n每成功有效邀请一位新用户，\n您邀请的新用户实付的<text class="subtitleColor font14">3%</text>，可累加提现。</text>\n\n</text>
    <navigator url='/pages/account/invite/index' class='button button-radius button-subtitle button-big'>立即邀请新用户</navigator>
  </view>
</view>
<view class='load-more' hidden='{{isLoadMore}}'>下面没有了哦</view>