taskDetail.wxml 3.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  1. <view class="container">
  2. <!-- 作业内容 -->
  3. <view class="task-head">
  4. <view class="task-title">2021-02-21 课后作业</view>
  5. <view class="task-time">2021-02-21 16:00</view>
  6. </view>
  7. <view class="task-teacher">
  8. <view class="taskImg">
  9. <image src="/images/head.png"></image>
  10. </view>
  11. <view class="teacher-name">张老师:</view>
  12. <view class="contact-teacher">
  13. 联系老师
  14. </view>
  15. </view>
  16. <view class="task-desc">
  17. 这是一条测试数据这是一条测试数据这是一条测试数据这是一条测试数据这是一条测试数据这是一条测试数据这是一条测试数据这是一条测试数据这是一条测试数据
  18. </view>
  19. <view class="task-content">
  20. <view class="title">图片</view>
  21. <view class="img-list">
  22. <image src="{{item}}" mode="aspectFill" wx:for="{{imgList}}" wx:key="index" bindtap="showImg" data-url="{{item}}" ></image>
  23. </view>
  24. <view class="title">视频</view>
  25. <view class="video-list">
  26. <view wx:for="{{videoList}}" wx:key="index" class="video-img-view" data-url="{{item.url}}" bindtap="videoShow">
  27. <image class="videoImg" src="{{item.img}}" mode="aspectFill" ></image>
  28. <image class="playImg" src="/images/play.png"></image>
  29. </view>
  30. </view>
  31. <video id="play-video" bindfullscreenchange="bindfullscreenchange" wx:if="{{curVideo != ''}}" autoplay="true" src="{{curVideo}}" controls="true" downloadlist></video>
  32. <view class="title">语音</view>
  33. <view class="audio-list">
  34. <image bindtap="audioShow" src="{{index == curAudioIndex ? '/images/cur-audio.png' : '/images/audio.png'}}" class="{{index == curAudioIndex ? 'curAudioStyle' : ''}}" wx:for="{{audioList}}" wx:key="index" data-index="{{index}}" data-url="{{item}}"></image>
  35. </view>
  36. <audio id="audio-play" bindpause="bindpause" bindended="bindended" src="{{curAudio}}"></audio>
  37. </view>
  38. <!-- end -->
  39. <!-- 作业完成情况 -->
  40. <view class="done-view" wx:if="{{!doTaskFlag}}">
  41. <view class="done-title">作业完成情况</view>
  42. <view class="task-content">
  43. <view class="title">图片</view>
  44. <view class="img-list">
  45. <image src="{{item}}" mode="aspectFill" wx:for="{{imgList}}" wx:key="index" bindtap="showImg" data-url="{{item}}" ></image>
  46. </view>
  47. <view class="title">视频</view>
  48. <view class="video-list">
  49. <view wx:for="{{videoList}}" wx:key="index" class="video-img-view" data-url="{{item.url}}" bindtap="videoShow">
  50. <image class="videoImg" src="{{item.img}}" mode="aspectFill" ></image>
  51. <image class="playImg" src="/images/play.png"></image>
  52. </view>
  53. </view>
  54. <video id="play-video" bindfullscreenchange="bindfullscreenchange" wx:if="{{curVideo != ''}}" autoplay="true" src="{{curVideo}}" controls="true" downloadlist></video>
  55. <view class="title">语音</view>
  56. <view class="audio-list">
  57. <image bindtap="audioShow" src="{{index == curAudioIndex ? '/images/cur-audio.png' : '/images/audio.png'}}" class="{{index == curAudioIndex ? 'curAudioStyle' : ''}}" wx:for="{{audioList}}" wx:key="index" data-index="{{index}}" data-url="{{item}}"></image>
  58. </view>
  59. <audio id="audio-play" bindpause="bindpause" bindended="bindended" src="{{curAudio}}"></audio>
  60. </view>
  61. </view>
  62. <!-- end -->
  63. <view class="toTask" bindtap="toTask" wx:if="{{doTaskFlag}}">
  64. 做作业
  65. </view>
  66. </view>