<!--pages/member/course/CourseMemberUpdate/CourseMemberUpdate.wxml-->

<view class="content_is">
  <view class="top">
    <view class="left">
      <image src="{{course_goods.goods_thumb}}"></image>
    </view>
    <view class="right">
      <view class="title">
      <view>{{course_goods.goods_title}}</view>
      <view class="num">共{{course_goods.course_chapter_num}}节</view>
      </view>
      <view class="teacher">讲师:{{course_goods.lecturer_name}}</view>
    </view>
  </view>
  <view wx:if='{{level_type == 2}}'>
    <view style="font-size: 28rpx;margin-left:25rpx">以下等级可以免费观看</view>
    <view class="good-wrap" wx:for="{{level_data}}" wx:key="index">
      <view class="good-item">
        <view class="good-tit">{{item.level_name}}</view>
        <view class="good" wx:for="{{item.goods}}" wx:key="ind" data-id="{{item.id}}" catchtap="gotoBuy">
          <view class="img">
            <image mode='widthFix' src="{{item.thumb}}"></image>
          </view>
          <view class="bt">
              <view class="head">{{item.title}}</view>
              <view class="cash">{{language['money']}}{{item.price}}</view>
          </view>
        </view>
      </view>
    </view>
  </view>
  <view wx:if="{{level_type != 2}}">
    <view style="font-size: 28rpx;margin-left:25rpx">以下等级可以免费观看</view>
    <view class="wrap" wx:if="{{level_data.length > 0}}">
      <view class="item" wx:for="{{level_data}}" wx:key="index">
        <view class="level">{{item.level_name}}</view>
        <view class="al">
          <view class="span" wx:if="{{level_type==0||level_type==1}}">订单</view>
          <view class="span"  wx:if="{{level_type==3}}">团队</view>
          <view class="span" wx:if="{{level_type==1}}">数量</view>
          <view class="span" wx:if="{{level_type==0}}">金额</view>
          <view class="span" wx:if="{{level_type==3}}">业绩</view>
          <view class="span" wx:if="{{level_type==4}}">余额充值一次性</view>满
        </view>
        <view class="amount">
          <view class="num span" wx:if="{{level_type==0}}">{{item.order_money}}</view>
          <view class="num span" wx:if="{{level_type==1}}">{{item.order_count}}</view>
          <view class="num span" wx:if="{{level_type==3}}">{{item.team_performance}}</view>
          <view class="num span" wx:if="{{level_type==4}}">{{item.balance_recharge}}</view>
          <view class="span" wx:if="{{level_type==1}}">个</view>
          <view class="span" wx:if="{{level_type==0||level_type==3}}">{{language['元']}}</view>
        </view>
        <view class="yel" wx:if="{{level_type!=4}}">
          <view class="first">
            您的
            <view class="span" wx:if="{{level_type==0||level_type==1}}">订单</view>
            <view class="span"  wx:if="{{level_type==3}}">团队</view>
            <view class="span" wx:if="{{level_type==1}}">数量</view>
            <view class="span" wx:if="{{level_type==0}}">金额</view>
            <view class="span" wx:if="{{level_type==3}}">业绩</view>
            还差
          </view>
          <view class="second">
              <view class="num span" wx:if="{{level_type==0}}">{{item.member_order_money}}</view>
              <view class="num span" wx:if="{{level_type==1}}">{{item.member_order_count}}</view>
              <view class="num span" wx:if="{{level_type==3}}">{{item.member_team_performance}}</view>
              <view class="span" wx:if="{{level_type==1}}">个</view>
              <view class="span" wx:if="{{level_type==0||level_type==3}}">{{language['元']}}</view>
          </view>
        </view>
        <view wx:if="{{level_type==4}}" class="btn-recharge" bindtap="toRecharge" data-money="{{item.balance_recharge}}"> 充值 </view>
      </view>
      <view class="toBuy" catchtap="goto" wx:if="{{level_data.length > 0}}">去购买</view>
    </view>
    <van-empty wx:else description="什么也没有"></van-empty>
  </view>
</view>
