学员端小程序
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

133 lines
2.9 KiB

1 year ago
  1. <template>
  2. <view class="pageBgImg">
  3. <view class="videoBox">
  4. <view class="back">
  5. <topNavbar title=""></topNavbar>
  6. </view>
  7. <video src="http://vjs.zencdn.net/v/oceans.mp4"></video>
  8. </view>
  9. <view class="pad">
  10. <view class="card" style="margin: 28rpx 0 24rpx 0;">
  11. <view class="info">
  12. <view class="name">视频名字</view>
  13. <view class="date">2023/08/08</view>
  14. </view>
  15. </view>
  16. <view class="operate">
  17. <view class="operateItem">
  18. <view class="icon">
  19. <image src="/static/images/index/dianzan_nor.png" mode=""></image>
  20. <!-- <image src="/static/images/index/dianzan_cli.png" mode=""></image> -->
  21. </view>
  22. <view class="txt">点赞</view>
  23. </view>
  24. <view class="operateItem">
  25. <view class="icon">
  26. <image src="/static/images/index/shoucang_nor.png" mode=""></image>
  27. <!-- <image src="/static/images/index/shoucang_cli.png" mode=""></image> -->
  28. </view>
  29. <view class="txt">收藏</view>
  30. </view>
  31. <view class="operateItem">
  32. <view class="icon">
  33. <image src="/static/images/index/fenxiang_nor.png" mode=""></image>
  34. </view>
  35. <view class="txt">分享</view>
  36. </view>
  37. </view>
  38. <view class="videolist">
  39. <view class="flex-b">
  40. <view class="h1">相关推荐</view>
  41. <moreRight text="更多"></moreRight>
  42. </view>
  43. <view class="ul">
  44. <view class="li" v-for="(item,index) in 10" :key="index" @click="$goPage('/pages/indexEntry/publicVideo/videoDetail/videoDetail')">
  45. <videoItem></videoItem>
  46. </view>
  47. </view>
  48. </view>
  49. </view>
  50. </view>
  51. </template>
  52. <script>
  53. import videoItem from '../comp/videoItem'
  54. export default {
  55. components: { videoItem }
  56. }
  57. </script>
  58. <style lang="scss" scoped>
  59. .h1 {
  60. line-height: 100rpx;
  61. }
  62. .info {
  63. padding: 28rpx;
  64. .name {
  65. font-size: 34rpx;
  66. color: #363A44;
  67. font-weight: 500;
  68. }
  69. .date {
  70. font-size: 28rpx;
  71. color: #686B73;
  72. margin-top: 4rpx;
  73. }
  74. }
  75. .operate {
  76. display: flex;
  77. justify-content: space-between;
  78. .operateItem {
  79. width: 188rpx;
  80. height: 132rpx;
  81. background: #FFFFFF;
  82. border-radius: 16rpx;
  83. display: flex;
  84. flex-direction: column;
  85. align-items: center;
  86. justify-content: center;
  87. .icon {
  88. width: 48rpx;
  89. height: 48rpx;
  90. }
  91. .txt {
  92. font-size: 24rpx;
  93. color: #333;
  94. font-weight: 500;
  95. }
  96. }
  97. }
  98. .videoBox {
  99. width: 100%;
  100. height: 492rpx;
  101. position: relative;
  102. .back {
  103. position: absolute;
  104. left: 0;
  105. top: 0;
  106. }
  107. video {
  108. width: 100%;
  109. height: 100%;
  110. display: block;
  111. }
  112. }
  113. .ul {
  114. width: 100%;
  115. display: flex;
  116. justify-content: space-between;
  117. flex-wrap: wrap;
  118. .li {
  119. width: 100%;
  120. width: 48%;
  121. height: 260rpx;
  122. background: #FFFFFF;
  123. box-shadow: 0px 8rpx 20rpx 0px rgba(0,0,0,0.04), 2rpx 2rpx 8rpx 0px rgba(0,0,0,0.06);
  124. border-radius: 16rpx;
  125. margin-bottom: 24rpx;
  126. padding: 16rpx;
  127. }
  128. }
  129. </style>