<!--pages/classDetails/classDetails.wxml-->
<view class='classDetails'>
  <view class='top_classDetails'>
    <text>{{courseTitle}}</text>
    <view>
      <image src='{{frontImage}}'></image>
      <view>
        <text>讲师：{{teacherName}}</text>
        <view>讲师介绍：{{teacherProfile}}</view>
      </view>
    </view>
  </view>
  <view class='kechengjianjie'>
    课程简介：{{courseComment}}
  </view>
  <view class='classfenji'>
    <view class='top_classfenji'>
      <image src='../../img/sanjiao.png'></image>课程分集（{{mediaCount}}）
    </view>
    <view class='bot_classfenji'>
      <view wx:for="{{mediaList}}" >
        <text bindtap='videoplay'>{{item.title}}</text>
        <view bindtap='cliLearn' data-id="{{item.id}}" data-index="{{index}}">学习<image src='../../img/suo.png' class='suo' wx:if="{{!item.haveBuy&&!item.is_free}}"></image></view>
      </view>

    </view>
  </view>
  <view class='play' wx:if="{{play==1}}">
    <video class='video' src="{{playUrl}}"></video>
    <!-- <view class='backplay' bindtap='backplay'>返回</view> -->
    <view style="text-align:center;">
      <van-button type="warning" bind:click="backplay">返回</van-button>
    </view>
  </view>
  <view class='fufeilook' wx:if="{{fufeiPage==1}}">
    <view class='con_fufeilook'>
      <view class='top_con_fufeilook'>付费观看</view>
      <view>
      金额:<text>{{money}}</text>
      </view>
      <view class='fufeiBtn'>
        <view bindtap='backfufei'>取消</view>
        <view style='background:rgb(91,155,213)' bindtap='surefufei'>确认</view>
      </view>
    </view>
  </view>
</view>
