doTask.wxml 3.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. <view class="container">
  2. <!-- 作业内容 -->
  3. <view class="task-view">
  4. <view class="task-title">2021-02-21 课后作业</view>
  5. <view class="task-time">2021-02-21 16:00</view>
  6. <view class="task-class">小鹏钢琴课</view>
  7. </view>
  8. <!-- end -->
  9. <!-- 作业完成内容 -->
  10. <view class="my-task">
  11. <view class="title">作业完成情况</view>
  12. <view class="textarea">
  13. <textarea placeholder="输入答题内容(200字以内)" maxlength="200" value="{{content}}" bindinput="doInput"></textarea>
  14. <view class="wordNum">{{content.length}}/200</view>
  15. </view>
  16. <view class="title">上传图片</view>
  17. <view class="uploadImg-task-view">
  18. <view class="my-img-view" wx:for="{{imgList}}" wx:key="index" data-index="{{index}}" catchtap="showImg" wx:if="{{item.delete != 1}}">
  19. <view class="new-task-img">
  20. <image src="{{item.url}}"></image>
  21. </view>
  22. <view class="del-btn" data-index="{{index}}" catchtap="delImg">X</view>
  23. </view>
  24. <view class="upload-btn" bindtap="uploadTap">
  25. <view style="margin-top:30rpx">
  26. <image src="/images/addFile.png"></image>
  27. <view>添加图片</view>
  28. </view>
  29. </view>
  30. </view>
  31. <video id="play-video" bindfullscreenchange="bindfullscreenchange" wx:if="{{curVideo}}" autoplay="true"
  32. src="{{curVideo}}" controls="true" downloadlist></video>
  33. <view class="title">上传视频</view>
  34. <view class="uploadImg-task-view">
  35. <view class="my-img-view" wx:for="{{videoList}}" wx:key="index" data-index="{{index}}" catchtap="showVideo" wx:if="{{item.delete != 1}}">
  36. <view class="new-task-img">
  37. <image src="{{item.imgUrl}}"></image>
  38. </view>
  39. <view class="del-btn" data-index="{{index}}" catchtap="delVideo">X</view>
  40. </view>
  41. <view class="upload-btn" bindtap="upLoadVideo">
  42. <view style="margin-top:30rpx">
  43. <image src="/images/addFile.png"></image>
  44. <view>添加视频</view>
  45. </view>
  46. </view>
  47. </view>
  48. <audio id="audio-play" bindpause="bindpause" bindended="bindended" src="{{curAudio}}"></audio>
  49. <view class="title">上传录音</view>
  50. <view class="audio-list">
  51. <view class="audio-box" wx:for="{{audioList}}" wx:key="index" wx:if="{{item.delete != 1}}">
  52. <image bindtap="audioShow" src="{{index == curAudioIndex ? '/images/cur-audio.png' : '/images/audio.png'}}"
  53. class="{{index == curAudioIndex ? 'curAudioStyle' : ''}}"
  54. data-index="{{index}}" catchtap="showAudio"></image>
  55. <view class="del-btn" data-index="{{index}}" catchtap="delAudio">X</view>
  56. </view>
  57. </view>
  58. <view class="record-view">
  59. <view class="record-img {{talkFlag ? 'curTalkStyle' : ''}}" bindtap="getRecord">
  60. <image src="{{talkFlag ? '/images/cur-talk.png' : '/images/talk.png'}}"></image>
  61. </view>
  62. <view class="{{talkFlag ? 'record-bg' : ''}}"></view>
  63. <view class="close-talk" bindtap="getRecord">{{closeName}}</view>
  64. </view>
  65. </view>
  66. <!-- end -->
  67. <view class="toTask" bindtap="doConfirmComplete">
  68. 完成
  69. </view>
  70. </view>