playback.vue 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218
  1. <template>
  2. <view>
  3. <nav-bar title="回放"></nav-bar>
  4. <view class="videoBox" >
  5. <view >
  6. <view class="video_box" style="width: 100%;height: 460rpx;">
  7. <polyv-player
  8. id="playerVideo"
  9. playerId="playerVideo"
  10. height="460rpx"
  11. :vid="vid"
  12. :showSettingBtn="true"
  13. :enablePlayGesture="true"
  14. :playbackRate="playbackRate"
  15. :isAllowSeek="isAllowSeek"
  16. :autoplay="autoplay"
  17. ></polyv-player>
  18. </view>
  19. </view>
  20. </view>
  21. </view>
  22. </template>
  23. <script>
  24. import { mapGetters,mapMutations } from 'vuex';
  25. export default {
  26. data() {
  27. return {
  28. id:0,
  29. list: [],
  30. menuIndex:[],
  31. current:0,
  32. detail:{},
  33. courseList:[],
  34. menuList:[],
  35. freeMenuList:[],
  36. startStatus:false,
  37. playbackRate: [1.0,1.5,2.0],
  38. isAllowSeek:'yes',
  39. vid:'',
  40. autoplay:true,
  41. };
  42. },
  43. computed: { ...mapGetters(['userInfo']) },
  44. onLoad(option) {
  45. this.vid = option.vid;
  46. },
  47. mounted() {
  48. },
  49. methods: {
  50. }
  51. };
  52. </script>
  53. <style >
  54. page{
  55. background-color: #EAEEF1;
  56. }
  57. </style>
  58. <style scope>
  59. .video_t2 {
  60. font-size: 24rpx;
  61. font-family: PingFang SC;
  62. font-weight: 500;
  63. color: #666666;
  64. }
  65. .video_t1 {
  66. height: 80rpx;
  67. color: #333333;
  68. line-height: 80rpx;
  69. font-size: 30rpx;
  70. font-family: PingFang SC;
  71. font-weight: bold;
  72. color: #333333;
  73. overflow: hidden;
  74. text-overflow:ellipsis;
  75. white-space: nowrap;
  76. }
  77. .video_t1_t {
  78. display: flex;
  79. flex-direction: column;
  80. height: 80rpx;
  81. color: #333333;
  82. text-align: center;
  83. align-items: center;
  84. border-left: solid 1px #d6d6db;
  85. }
  86. .video_play {
  87. position: absolute;
  88. width: 95rpx;
  89. height: 95rpx;
  90. top: 0;
  91. left: 0;
  92. right: 0;
  93. bottom: 0;
  94. margin: auto;
  95. }
  96. .video_box {
  97. position: relative;
  98. }
  99. .courseName{
  100. white-space:nowrap;
  101. overflow:hidden;
  102. text-overflow:ellipsis;
  103. }
  104. .videoBox{
  105. background-color: #FFFFFF;
  106. width: 100%;
  107. /* height: 680rpx; */
  108. z-index: 999;
  109. }
  110. .icon_up{
  111. width: 32rpx;
  112. height: 32rpx;
  113. }
  114. .contentBox{
  115. }
  116. .courseItemBox{
  117. background: #FFFFFF;
  118. border-radius: 16rpx;
  119. padding: 0 10rpx;
  120. margin-bottom: 20rpx;
  121. }
  122. .courseItem{
  123. height: 80rpx;
  124. color: #333333;
  125. font-size: 32rpx;
  126. line-height: 80rpx;
  127. font-weight: bold;
  128. display: flex;
  129. justify-content: space-between;
  130. }
  131. .content{
  132. background-color: #FFFFFF;
  133. width: 100%;
  134. }
  135. .btn2{
  136. width: 200rpx;
  137. height: 64rpx;
  138. background: linear-gradient(0deg, #FFB102, #FD644F);
  139. box-shadow: 0rpx 10rpx 16rpx 4rpx rgba(1, 99, 235, 0.04);
  140. border-radius: 32rpx;
  141. line-height: 64rpx;
  142. text-align: center;
  143. }
  144. .btn1{
  145. width: 200rpx;
  146. height: 64rpx;
  147. background: linear-gradient(0deg, #015EEA, #00C0FA);
  148. border-radius: 32rpx;
  149. line-height: 64rpx;
  150. text-align: center;
  151. margin-right: 20rpx;
  152. }
  153. .bottomBox{
  154. position: fixed;
  155. bottom: 0;
  156. width: 100%;
  157. left: 0;
  158. height:98rpx ;
  159. background-color: #FFFFFF;
  160. display: flex;
  161. justify-content: space-between;
  162. align-items: center;
  163. padding: 0 30rpx;
  164. }
  165. .blackFont{
  166. color: #333333;
  167. margin: 0 4rpx;
  168. }
  169. .wk_icon{
  170. width: 24rpx;
  171. height: 24rpx;
  172. margin-right: 12rpx;
  173. }
  174. .noteTag{
  175. ont-size: 24rpx;
  176. font-family: PingFang SC;
  177. font-weight: 500;
  178. color: #999999;
  179. align-items: center;
  180. }
  181. .priceTag{
  182. font-size: 30rpx;
  183. font-family: PingFang SC;
  184. font-weight: bold;
  185. color: #FF2D55;
  186. }
  187. .titleTag{
  188. font-size: 32rpx;
  189. font-weight: bold;
  190. color: #333333;
  191. margin-left: 8rpx;
  192. }
  193. .yearTag{
  194. width: 80rpx;
  195. height: 32rpx;
  196. background: #EBF5FF;
  197. border: 2rpx solid #007AFF;
  198. border-radius: 16rpx;
  199. font-size: 24rpx;
  200. color: #007AFF;
  201. text-align: center;
  202. line-height: 32rpx;
  203. }
  204. .itemBox{
  205. background: #FFFFFF;
  206. box-shadow: 0rpx 10rpx 9rpx 1rpx rgba(165, 196, 239, 0.1);
  207. border-radius: 24rpx;
  208. width: 100%;
  209. padding: 20rpx;
  210. margin-bottom: 20rpx;
  211. }
  212. </style>