TeacherVideos.vue 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  1. <template>
  2. <div class="activity_container">
  3. <div class="activity_details">
  4. <div class="activity_details_box">
  5. <div class="title">
  6. <Icon type="ios-home-outline" size="22" />
  7. <p><router-link to="/TeacherZone/ZonesHome">工作室首页</router-link></p><span>>名师课堂</span><span>>视频详情</span>
  8. </div>
  9. <div class=video-info>
  10. <h1>选修3-1第二章恒定电流,2电流的微观解析.mp4</h1>
  11. <div class="video">
  12. <video-player class="video-player-box" style="width:600px;height:600px;"
  13. ref="videoPlayer"
  14. :options="playerOptions"
  15. :playsinline="true">
  16. </video-player>
  17. </div>
  18. </div>
  19. </div>
  20. </div>
  21. </div>
  22. </template>
  23. <script>
  24. export default {
  25. data() {
  26. return {
  27. }
  28. },
  29. methods: {
  30. showVideo(index) {
  31. //alert(index);
  32. this.$router.push(
  33. {
  34. name: 'video',
  35. query: {
  36. rewardIndex: index
  37. }
  38. }
  39. );
  40. this.$refs.videoPlayer.player.src({ type: "application/x-mpegURL", src: "https://teammodelstorage.blob.core.chinacloudapi.cn/teammodelcontest/20190517/history/history.m3u8" });
  41. }
  42. }
  43. }
  44. </script>
  45. <style scoped>
  46. .activity_details {
  47. width: 100%;
  48. height: auto;
  49. background: #f8f8f8;
  50. padding-top: 20px;
  51. padding-bottom: 8%;
  52. }
  53. .activity_details_box {
  54. width: 1200px;
  55. height: auto;
  56. margin: 0 auto;
  57. }
  58. .clearfix {
  59. display: block;
  60. }
  61. .video-info{
  62. width:1000px;
  63. height:600px;
  64. border:1px solid red;
  65. }
  66. .video-info h1 {
  67. text-align:center;
  68. }
  69. .video{
  70. width:800px;
  71. height:600px;
  72. }
  73. </style>