video.vue 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184
  1. <template>
  2. <view class="view">
  3. <video src="https://es.admin.506720281.com/mp4/1.mp4"
  4. :controls="false"
  5. :show-center-play-btn="false"
  6. ></video>
  7. <view class="right">
  8. <view class="item">
  9. <view class="logo es-br es-oh">
  10. <image src="/static/logo.png"></image>
  11. </view>
  12. </view>
  13. <view class="item">
  14. <view class="icon">
  15. <image src="/static/images/other/video/icon-1.png"></image>
  16. </view>
  17. <view class="text">1.8万</view>
  18. </view>
  19. <view class="item">
  20. <view class="icon">
  21. <image src="/static/images/other/video/icon-2.png"></image>
  22. </view>
  23. <view class="text">3255</view>
  24. </view>
  25. <view class="item">
  26. <view class="icon">
  27. <image src="/static/images/other/video/icon-3.png"></image>
  28. </view>
  29. <view class="text">1.1万</view>
  30. </view>
  31. <view class="item">
  32. <view class="icon">
  33. <image src="/static/images/other/video/icon-4.png"></image>
  34. </view>
  35. <view class="text">1265</view>
  36. </view>
  37. <view class="es-h-100"></view>
  38. <view class="es-auto-bottom"></view>
  39. </view>
  40. <view class="left">
  41. <view class="name es-h-74 es es-ac">
  42. <view class="bg">
  43. <image src="/static/images/other/video/bg.png"></image>
  44. </view>
  45. <image class="rank-icon" src="/static/images/other/video/rank.png"></image>
  46. <view class="rank-text es-fs-26 es-fw-500 es-c-white">精选热销榜·第二名</view>
  47. <view class="es-w-30"></view>
  48. </view>
  49. <view class="goods">
  50. <view class="icon">
  51. <image src="/static/logo.png"></image>
  52. </view>
  53. <view class="es-omit es-fw es-fs-30 es-mt-19">御君方蜂胶胶囊御君方蜂胶胶囊</view>
  54. </view>
  55. <view class="es-h-100"></view>
  56. <view class="es-auto-bottom"></view>
  57. </view>
  58. </view>
  59. </template>
  60. <script>
  61. export default {
  62. data() {
  63. return {
  64. }
  65. },
  66. onLoad(options) {
  67. },
  68. methods: {
  69. }
  70. }
  71. </script>
  72. <style>
  73. .view,.right,.left{
  74. position: absolute;
  75. }
  76. .view{
  77. width: 100%;
  78. height: 100%;
  79. /* position: fixed; */
  80. left:0;top:0;
  81. }
  82. .view video{
  83. width: 100%;
  84. height: 100%;
  85. }
  86. .right{
  87. /* position: fixed; */
  88. z-index: 1;
  89. right:30rpx;
  90. bottom:0rpx;
  91. }
  92. .left{
  93. /* position: fixed; */
  94. left:30rpx;
  95. bottom:0;
  96. }
  97. .right .item{
  98. width: 100rpx;
  99. margin-top: 30rpx;
  100. padding-bottom: 10rpx;
  101. border-radius: 100rpx;
  102. }
  103. .right .icon{
  104. width: 80rpx;
  105. height: 80rpx;
  106. margin-left: 10rpx;
  107. }
  108. image{
  109. width: 100%;
  110. height: 100%;
  111. }
  112. .right .text{
  113. color:white;
  114. text-align: center;
  115. font-size: 22rpx;
  116. margin-top: 10rpx;
  117. }
  118. .right .logo{
  119. width: 100rpx;
  120. height: 100rpx;
  121. border-radius: 100rpx;
  122. }
  123. .left .name{
  124. position: relative;
  125. color: white;
  126. }
  127. .left .rank-icon{
  128. width: 74rpx;
  129. height: 74rpx;
  130. z-index: 1;
  131. }
  132. .left .rank-text{
  133. z-index: 1;
  134. }
  135. .bg{
  136. position: absolute;
  137. left:0;top:0;
  138. width: 100%;
  139. height: 100%;
  140. }
  141. .goods{
  142. width: 290rpx;
  143. background-color: rgba(255,255,255,0.7);
  144. padding:20rpx;
  145. border-radius: 20rpx;
  146. margin-top: 20rpx;
  147. }
  148. .goods .icon{
  149. /* background-color: white; */
  150. border-radius: 34rpx;
  151. overflow: hidden;
  152. width: 250rpx;
  153. height: 250rpx;
  154. }
  155. .goods .icon image{
  156. width: 100%;
  157. height: 100%;
  158. }
  159. </style>