online.wxml 2.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. <view class="tab">
  2. <text data-id='1' bindtap="tabChange" class="{{tab==1?'act':''}}">在线学习</text>
  3. <text data-id='0' bindtap="tabChange" class="{{tab==0?'act':''}}">视频课程</text>
  4. </view>
  5. <view wx:if='{{tab==0}}' class="content">
  6. <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">
  7. <view class="img">
  8. <image src="{{item.image}}" mode="scaleToFill"></image>
  9. <image class="play" src="../../images/play.png" mode="widthFix"></image>
  10. </view>
  11. <view class="info">
  12. <view class="title">{{item.title}}</view>
  13. <view style="opacity:0;"> {{item.class_hour}}学时 </view>
  14. <text>{{item.class_hour}}学时</text>
  15. <!-- <text>{{item.finished_time}}/{{item.total_time}}</text> -->
  16. <view class="check" style="color:#FF5E4E;" wx:if='{{item.mark_status != 1}}'>未完成</view>
  17. <view class="check" wx:else><image src="../../images/gou.png" mode="widthFix"></image>已完成</view>
  18. </view>
  19. </navigator>
  20. </view>
  21. <view wx:if='{{tab==1}}' class="content">
  22. <!-- <view class="picker_view">
  23. <picker bindchange="bindPickerChange" value="{{index1}}" range="{{array1}}">
  24. <view class="picker">
  25. {{array1[index1]}} <image mode="widthFix" src="../../images/arrow-bottom.png"></image>
  26. </view>
  27. </picker>
  28. </view> -->
  29. <navigator class="test" wx:for="{{papers}}" wx:key="*this" url="../subject/subject?id={{item.id}}&status={{item.mark_status}}&class_id={{class_id}}&order_id={{order_id}}">
  30. <view class="title">{{item.title}}</view>
  31. <text>{{item.class_hour}}学时/{{item.full_mark}}分/{{item.time_limit}}分钟</text>
  32. <view class="score" wx:if='{{item.mark_status == 1}}'>
  33. <image src="../../images/score.png" mode="widthFix"></image> <text> {{item.mark}}分</text>
  34. <image src="../../images/gou.png" mode="widthFix"></image> 已完成
  35. </view>
  36. <view class="score" wx:else>
  37. <image wx:if="{{item.mark_count>0}}" src="../../images/score.png" mode="widthFix"></image> <text wx:if="{{item.mark_count>0}}"> {{item.mark}}分</text>
  38. <navigator>开始练习</navigator>
  39. </view>
  40. </navigator>
  41. </view>
  42. <navigator url="../clocklist/clocklist?id={{signup_id}}" style="position:fixed;bottom:110rpx;background-color: rgba(53,139,255,1);" wx:if="{{show&&signup_id}}"
  43. class="complete">查看打卡记录</navigator>
  44. <view bindtap="genclasshour" style="position:fixed;bottom:20rpx;" wx:if="{{show&&signup_id}}" class="complete">已完成学习,立即生成学时证明</view>