doTask.wxml 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. <view class="container">
  2. <!-- 作业内容 -->
  3. <view class="task-view">
  4. <view class="task-title">{{contents.title}}</view>
  5. <view class="task-time">{{contents.receiveDate}}</view>
  6. <view class="task-class">{{contents.classesName}}</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 class="removeUploadBg" wx:if="{{uploadIng}}"></view>
  48. <view class="removeUpload" wx:if="{{uploadIng}}" >取消上传</view>
  49. </view>
  50. <audio id="audio-play" bindpause="bindpause" bindended="bindended" src="{{curAudio}}"></audio>
  51. <view class="title">上传录音</view>
  52. <view class="audio-list">
  53. <view class="audio-box" wx:for="{{audioList}}" wx:key="index" wx:if="{{item.delete != 1}}">
  54. <image bindtap="audioShow" src="{{index == curAudioIndex ? '/images/cur-audio.png' : '/images/audio.png'}}"
  55. class="{{index == curAudioIndex ? 'curAudioStyle' : ''}}"
  56. data-index="{{index}}" catchtap="showAudio"></image>
  57. <view class="del-btn" data-index="{{index}}" catchtap="delAudio">X</view>
  58. </view>
  59. </view>
  60. <view class="record-view">
  61. <view class="record-img {{talkFlag ? 'curTalkStyle' : ''}}" bindtap="getRecord">
  62. <image src="{{talkFlag ? '/images/cur-talk.png' : '/images/talk.png'}}"></image>
  63. </view>
  64. <view class="{{talkFlag ? 'record-bg' : ''}}"></view>
  65. <view class="close-talk" bindtap="getRecord">{{closeName}}</view>
  66. </view>
  67. </view>
  68. <!-- end -->
  69. <view class="toTask" bindtap="doConfirmComplete">
  70. 完成
  71. </view>
  72. </view>