courseDetail.wxml 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. <view class="container">
  2. <view class='imageContainer'>
  3. <van-image
  4. wx:if="{{type == courseTypesEnum.LIVE || type == courseTypesEnum.OFFLINE}}"
  5. src="{{item.courseThumbnailUrl}}" width="750rpx" height="450rpx" fit="cover"/>
  6. <video wx:if="{{type == courseTypesEnum.PLAYBACK}}" id="myVideo" enable-play-gesture="true"
  7. enable-progress-gesture="false" src="{{videoList[videoIndex]}}"
  8. show-mute-btn>
  9. </video>
  10. <video wx:if="{{type == courseTypesEnum.RECORD}}" id="myVideo3" enable-play-gesture="true"
  11. enable-progress-gesture="false" src="{{videoItem.url}}"
  12. show-mute-btn bindtimeupdate="timeUpdate">
  13. </video>
  14. <face-scan-pop show="{{show}}" wx:if="{{type == courseTypesEnum.RECORD}}" bind:scanOk="scanOk"
  15. currentTime="{{currentTime}}" name="{{obj.eduStuName}}" idcard="{{obj.idCard}}"/>
  16. </view>
  17. <view class="card">
  18. <view class="info">
  19. <view class="info-name">{{item.courseName || item.ceremonyName}}</view>
  20. <view class='info-key'>时间
  21. <view class='key-value'>{{item.courseStart}}-{{item.courseEnd}}开课</view>
  22. </view>
  23. <view class="info-teacher" wx:if="{{item.teacherName}}">老师
  24. <view class="teacher-value" bind:tap="toTeacher" data-id="{{item.teacherId}}">
  25. {{item.teacherName}}
  26. </view>
  27. </view>
  28. <view class='info-key' wx:if="{{item.classroomName}}">教室
  29. <view class='key-value'>{{item.classroomName}}</view>
  30. </view>
  31. <view class='info-key' wx:if="{{item.seatMap}}">座位图
  32. <view class='teacher-value' bind:tap="clickImg">查看安排</view>
  33. </view>
  34. <view class="info-file" wx:for="{{fileList}}" wx:key="index" bind:tap="downloadFile"
  35. data-url="{{item.url}}">
  36. <edu-txt src='/images/ic_word.png' text="{{item.name}}" custom-class="word"/>
  37. <edu-txt src='/images/ic_download.png' text="下载" custom-class="download"/>
  38. </view>
  39. <view class="time-filter" wx:if="{{videoList.length > 1}}">
  40. <view class="{{index==videoIndex?'time-item-active':'time-item'}}" wx:for="{{videoList}}" wx:key="index"
  41. bind:tap="changeVideo" data-index="{{index}}">
  42. <view class="time-date">{{index + 1}}</view>
  43. </view>
  44. </view>
  45. </view>
  46. <edu-line size="19rpx"/>
  47. <view class="mrgin30">
  48. <view class="title">课程简介:</view>
  49. <view class="content">
  50. {{item.courseSynopsis || item.ceremonyContent}}
  51. </view>
  52. </view>
  53. <view class="white"></view>
  54. </view>
  55. <edu-course-action-bar item="{{item}}" obj="{{obj}}" bind:refresh="refresh" showBottom type="{{type}}"/>
  56. </view>