taskDetail.wxml 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  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. <view class="toTask" bindtap="toTask">
  40. 做作业
  41. </view>
  42. </view>