doTask.wxml 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  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"></textarea>
  14. <view class="wordNum">0/200</view>
  15. </view>
  16. <view class="title">上传图片</view>
  17. <view class="uploadImg-task-view">
  18. <view class="my-img-view" wx:for="{{1}}" wx:key="index">
  19. <view class="new-task-img">
  20. <image src="/images/logo.png"></image>
  21. </view>
  22. <view class="del-btn">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. <view class="title">上传视频</view>
  32. <view class="uploadImg-task-view">
  33. <view class="my-img-view" wx:for="{{1}}" wx:key="index">
  34. <view class="new-task-img">
  35. <image src="/images/logo.png"></image>
  36. </view>
  37. <view class="del-btn">X</view>
  38. </view>
  39. <view class="upload-btn" bindtap="uploadTap">
  40. <view style="margin-top:30rpx">
  41. <image src="/images/addFile.png"></image>
  42. <view>添加视频</view>
  43. </view>
  44. </view>
  45. </view>
  46. <audio id="audio-play" bindpause="bindpause" bindended="bindended" src="{{curAudio}}"></audio>
  47. <view class="title">上传录音</view>
  48. <view class="audio-list">
  49. <view class="audio-box" wx:for="{{6}}" wx:key="index">
  50. <image bindtap="audioShow" src="{{index == curAudioIndex ? '/images/cur-audio.png' : '/images/audio.png'}}"
  51. class="{{index == curAudioIndex ? 'curAudioStyle' : ''}}"
  52. data-index="{{index}}" data-url="{{item}}"></image>
  53. <view class="del-btn">X</view>
  54. </view>
  55. </view>
  56. <view class="record-view">
  57. <view class="record-img {{talkFlag ? 'curTalkStyle' : ''}}" bindtap="getRecord">
  58. <image src="{{talkFlag ? '/images/cur-talk.png' : '/images/talk.png'}}"></image>
  59. </view>
  60. <view class="{{talkFlag ? 'record-bg' : ''}}"></view>
  61. <view class="close-talk" bindtap="getRecord">{{closeName}}</view>
  62. </view>
  63. </view>
  64. <!-- end -->
  65. </view>