index.vue 5.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274
  1. <template>
  2. <view class="play">
  3. <video-player :videoUrl="videoUrl"></video-player>
  4. <view class="anthologys_detail">
  5. <view class="anthology" @click="show = true">
  6. <view class="ant">
  7. <image :src="play_img" class="play"></image>
  8. <text class="ant-text">大夏第一赘婿(1/94)</text>
  9. </view>
  10. <view class="ant">
  11. <text>选集</text>
  12. <pv-icon name="icon-shangla" color='#fff'
  13. :customStyle="{ fontSize: '32rpx',marginLeft:'8rpx'}"></pv-icon>
  14. </view>
  15. </view>
  16. <view class="hot">
  17. <pv-icon name="icon-huomiao" color='#fff' :customStyle="{ fontSize: '32rpx'}"></pv-icon>
  18. <text>12.8W</text>
  19. </view>
  20. </view>
  21. <u-popup :show="show" @close="close" @open="open" safeAreaInsetBottom :round="15">
  22. <view class="opera">
  23. <view class="opera-top">
  24. <view class="title">
  25. <image class="cover" :src="coverImg"></image>
  26. <view class="name">
  27. <text>大夏第一赘婿</text>
  28. <text>共94集·已完结</text>
  29. </view>
  30. </view>
  31. <view @click="close"><pv-icon name="icon-xiala"
  32. :customStyle="{ fontSize: '40rpx',fontWeight: 'bold'}"></pv-icon></view>
  33. </view>
  34. <view class="serice">
  35. <u-tabs :list="tabs" lineWidth="0" lineColor="#f56c6c" :activeStyle="{
  36. color: '#62C5C6',
  37. transform: 'scale(1)'
  38. }" :inactiveStyle="{
  39. color: '#000',
  40. transform: 'scale(1)'
  41. }" itemStyle="padding-left: 0px; padding-right: 20px; height: 34px;">
  42. </u-tabs>
  43. <view class="numbers">
  44. <view class="num">
  45. <view class="num_item num_item_select" v-for="(item,index) in list" :key="index">
  46. <text class="num_text">{{item}}</text>
  47. <view class="num_play">
  48. <view></view>
  49. <view></view>
  50. <view></view>
  51. </view>
  52. <view class="lock">
  53. <pv-icon name="icon-v-locked" color="#A37449"
  54. :customStyle="{ fontSize: '20rpx',fontWeight: 'bold'}"></pv-icon>
  55. </view>
  56. </view>
  57. </view>
  58. </view>
  59. </view>
  60. </view>
  61. </u-popup>
  62. </view>
  63. </template>
  64. <script>
  65. import defaultConfig from '@/config/default.js'
  66. export default {
  67. data() {
  68. return {
  69. show: false,
  70. videoUrl: '/static/video/luo-sun.mp4', //路径
  71. play_img: defaultConfig.ossImgUrl + '/playVideo/video/ic_search.png',
  72. coverImg: 'https://obs-fanxing.obs.cn-east-3.myhuaweicloud.com/retail/main/img_bgtop.png',
  73. tabs: [{
  74. name: '1-50',
  75. }, {
  76. name: '51-94'
  77. }],
  78. list: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27,
  79. 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50
  80. ]
  81. }
  82. },
  83. onReady:function(){},
  84. methods: {
  85. open() {
  86. // console.log('open');
  87. },
  88. close() {
  89. this.show = false
  90. // console.log('close');
  91. }
  92. }
  93. }
  94. </script>
  95. <style lang="scss">
  96. .play {
  97. width: 100%;
  98. height: 100%;
  99. .anthologys_detail {
  100. box-sizing: border-box;
  101. width: 100%;
  102. padding: 0 24rpx 0 34rpx;
  103. display: flex;
  104. align-items: center;
  105. justify-content: space-between;
  106. color: #fff;
  107. position: absolute;
  108. bottom: calc(70rpx + constant(safe-area-inset-bottom));
  109. bottom: calc(70rpx);
  110. z-index: 99;
  111. .anthology {
  112. flex-grow: 1;
  113. display: flex;
  114. align-items: center;
  115. justify-content: space-between;
  116. // height: 72rpx;
  117. background: #1A1A1A;
  118. border-radius: 72rpx;
  119. padding: 16rpx 20rpx;
  120. font-size: 32rpx;
  121. // width: 572rpx;
  122. .ant {
  123. display: flex;
  124. align-items: center;
  125. .ant-text {
  126. margin-left: 16rpx;
  127. }
  128. }
  129. .play {
  130. width: 40rpx;
  131. height: 40rpx;
  132. }
  133. }
  134. .hot {
  135. width: 150rpx;
  136. text-align: right;
  137. text {
  138. margin-left: 8rpx;
  139. }
  140. }
  141. }
  142. .opera {
  143. padding: 20rpx 30rpx;
  144. .opera-top {
  145. display: flex;
  146. justify-content: space-between;
  147. align-items: center;
  148. margin-bottom: 10rpx;
  149. .title {
  150. display: flex;
  151. .cover {
  152. width: 80rpx;
  153. height: 108rpx;
  154. border-radius: 10rpx;
  155. margin-right: 20rpx;
  156. }
  157. .name {
  158. display: flex;
  159. flex-direction: column;
  160. justify-content: space-around;
  161. text:nth-child(1) {
  162. color: #000;
  163. font-size: 40rpx;
  164. font-weight: bold;
  165. }
  166. text:nth-child(2) {
  167. color: #999;
  168. font-size: 30rpx;
  169. }
  170. }
  171. }
  172. }
  173. .serice {
  174. overflow: hidden;
  175. .numbers {
  176. height: 600rpx;
  177. overflow: scroll;
  178. .num {
  179. display: flex;
  180. flex-wrap: wrap;
  181. .num_item {
  182. display: flex;
  183. justify-content: center;
  184. align-items: center;
  185. width: calc(20% - 20rpx);
  186. height: 110rpx;
  187. margin: 10rpx;
  188. background: #FAFAFA;
  189. color: #000;
  190. box-sizing: border-box;
  191. }
  192. .num_item_select {
  193. background: #E9F9F9;
  194. position: relative;
  195. .num_text {
  196. color: #62C5C6;
  197. }
  198. .num_play {
  199. position: absolute;
  200. left: 10rpx;
  201. bottom: 10rpx;
  202. display: flex;
  203. align-items: flex-end;
  204. view {
  205. width: 6rpx;
  206. background: #62C5C6;
  207. margin-right: 6rpx;
  208. border-radius: 6rpx;
  209. }
  210. view:nth-child(1) {
  211. height: 21rpx;
  212. }
  213. view:nth-child(2) {
  214. height: 16rpx;
  215. }
  216. view:nth-child(3) {
  217. height: 18rpx;
  218. }
  219. }
  220. .lock {
  221. position: absolute;
  222. top: 0;
  223. right: 0;
  224. width: 40rpx;
  225. height: 40rpx;
  226. background: #F9E2B7;
  227. border-radius: 0rpx 12rpx 0rpx 12rpx;
  228. // text-align: center;
  229. // line-height: 40rpx;
  230. display: flex;
  231. justify-content: center;
  232. align-items: center;
  233. }
  234. }
  235. }
  236. }
  237. }
  238. }
  239. }
  240. </style>