online.wxml 1.9 KB

1234567891011121314151617181920212223242526272829303132333435
  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.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. <navigator class="test" wx:for="{{papers}}" wx:key="*this" url="../subject/subject?id={{item.id}}">
  23. <view class="title">{{item.title}}</view>
  24. <text>{{item.class_hour}}学时/{{item.full_mark}}分/{{item.time_limit}}分钟</text>
  25. <view class="score" wx:if='{{item.status == 1}}'>
  26. <image src="../../images/score.png" mode="widthFix"></image> <text> {{item.mark}}分</text>
  27. <image src="../../images/gou.png" mode="widthFix"></image> 已完成
  28. </view>
  29. <navigator wx:else >开始练习</navigator>
  30. </navigator>
  31. </view>
  32. <view bindtap="genclasshour" style="position:fixed;bottom:20rpx;" wx:if="{{show&&signup_id}}" class="complete">已完成学习,立即生成学时证明</view>