<view class="tab">
    <text data-id='1' bindtap="tabChange" class="{{tab==1?'act':''}}">在线学习</text>
    <text data-id='0' bindtap="tabChange" class="{{tab==0?'act':''}}">视频课程</text>
</view>
<view wx:if='{{tab==0}}' class="content">
 
  <navigator wx:for="{{videos}}" wx:key="*this" url="../video/video?title={{item.title}}&&url={{item.url}}&&time={{item.finished_time}}&id={{item.id}}" class="list">
      <view class="img">
      <image  src="{{item.image}}" mode="scaleToFill"></image>
      <image class="play" src="../../images/play.png" mode="widthFix"></image>
      </view>
      <view class="info">
        <view class="title">{{item.title}}</view>
        <view style="opacity:0;"> {{item.class_hour}}学时 </view>
        <text>{{item.class_hour}}学时</text>
        <!-- <text>{{item.finished_time}}/{{item.total_time}}</text> -->
        <view class="check" style="color:#FF5E4E;" wx:if='{{item.status != 1}}'>未完成</view>
        <view class="check" wx:else><image src="../../images/gou.png" mode="widthFix"></image>已完成</view>
      </view>
  </navigator>
</view>

<view  wx:if='{{tab==1}}' class="content">
  <!-- <view class="picker_view">
    <picker bindchange="bindPickerChange" value="{{index1}}" range="{{array1}}">
      <view class="picker">
        {{array1[index1]}} <image mode="widthFix" src="../../images/arrow-bottom.png"></image>
      </view>
    </picker>
  </view> -->
    <navigator  class="test"  wx:for="{{papers}}" wx:key="*this" url="../subject/subject?id={{item.id}}&status={{item.status}}">
        <view class="title">{{item.title}}</view>
        <text>{{item.class_hour}}学时/{{item.full_mark}}分/{{item.time_limit}}分钟</text>
        <view class="score" wx:if='{{item.status == 1}}'>
            <image  src="../../images/score.png" mode="widthFix"></image> <text>  {{item.mark}}分</text>
            <image src="../../images/gou.png" mode="widthFix"></image>  已完成
        </view> 
        <navigator wx:else >开始练习</navigator>
    </navigator>
</view>
<navigator url="../clocklist/clocklist?id={{signup_id}}" style="position:fixed;bottom:100rpx;background-color: rgba(53,139,255,1);" wx:if="{{show&&signup_id}}"
 class="complete">查看打卡记录</navigator>

<view bindtap="genclasshour" style="position:fixed;bottom:20rpx;" wx:if="{{show&&signup_id}}" class="complete">已完成学习，立即生成学时证明</view>

