living.vue 5.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265
  1. <template>
  2. <view>
  3. <view class="view">
  4. <video src="https://es.admin.506720281.com/mp4/1.mp4"
  5. :controls="false"
  6. :show-center-play-btn="false">
  7. </video>
  8. <view class="top es es-ac es-h-88" :style="'top:'+top+'px'">
  9. <image class="es-w-18 es-h-31 es-mr-20" src="/static/images/other/ret-white.png"></image>
  10. <view class="name-bg es-brc es-h-60 es es-ac">
  11. <view class="es-icon-57 es-br es-oh es-bc-red es es-ac es-pc">
  12. <image class="es-icon-57" src="/static/logo.png"></image>
  13. </view>
  14. <view class="es-c-white es-fw-500 es-fs-28 es-ml-11 es-mr-30" style="max-width: 6em;">名字</view>
  15. <image class="es-icon-27 es-mr-21" src="/static/images/other/video/add.png"></image>
  16. </view>
  17. </view>
  18. <view class="top es es-ac es-h-88" :style="'top:'+top+'px'" style="margin-top: 88rpx;">
  19. <view class="es-f1"></view>
  20. <view class="es">
  21. <image class="es-br es-icon-57 es-ml-10" src="/static/logo.png"></image>
  22. <image class="es-br es-icon-57 es-ml-10" src="/static/logo.png"></image>
  23. <image class="es-br es-icon-57 es-ml-10" src="/static/logo.png"></image>
  24. </view>
  25. <view class="es-w-70"></view>
  26. <view class="person es es-ac">
  27. <view class="num es-fs-28 es-fw-500 es es-ac es-pc es-c-white">188人</view>
  28. </view>
  29. </view>
  30. <view class="right">
  31. <view class="item">
  32. <view class="icon">
  33. <image src="/static/images/other/video/like.png"></image>
  34. <view class="es es-ac es-pc">
  35. <image class="es-w-42 es-h-40" src="/static/images/other/video/like2.png"></image>
  36. </view>
  37. </view>
  38. <view class="text">1.8万</view>
  39. </view>
  40. <view class="item">
  41. <view class="icon">
  42. <image src="/static/images/other/video/collect.png"></image>
  43. <view class="es es-ac es-pc">
  44. <image class="es-w-42 es-h-40" src="/static/images/other/video/collect2.png"></image>
  45. </view>
  46. </view>
  47. <view class="text">1.8万</view>
  48. </view>
  49. <view class="item">
  50. <view class="icon">
  51. <image src="/static/images/other/video/star.png"></image>
  52. <view class="es es-ac es-pc">
  53. <image class="es-w-42 es-h-40" src="/static/images/other/video/star2.png"></image>
  54. </view>
  55. </view>
  56. <view class="text">1.8万</view>
  57. </view>
  58. <view class="item">
  59. <view class="icon">
  60. <image src="/static/images/other/video/point.png"></image>
  61. <view class="es es-ac es-pc">
  62. <image class="es-w-52 es-h-14" src="/static/images/other/video/point2.png"></image>
  63. </view>
  64. </view>
  65. <view class="text">1.8万</view>
  66. </view>
  67. <view class="es-h-100"></view>
  68. <view class="es-h-100"></view>
  69. <view class="es-h-50"></view>
  70. <view class="es-auto-bottom"></view>
  71. </view>
  72. <view class="bottom">
  73. <view class="es">
  74. <view class="es-f1 es-mr-50 ipt es-br es-oh es es-ac">
  75. <view class="es-f1 es-ipt">
  76. <input placeholder="说点什么..." placeholder-class="es-c-white" class="es-c-white" />
  77. </view>
  78. <view class="emotion es-mr-25">
  79. <image src="/static/images/other/video/emotion.png"></image>
  80. </view>
  81. </view>
  82. <view class="item">
  83. <view class="icon">
  84. <image src="/static/images/other/video/car.png"></image>
  85. <view class="es es-ac es-pc">
  86. <image class="es-w-38 es-h-38" src="/static/images/other/video/car2.png"></image>
  87. </view>
  88. </view>
  89. </view>
  90. </view>
  91. <view class="es-h-50"></view>
  92. <view class="es-h-50"></view>
  93. <view class="es-auto-bottom"></view>
  94. </view>
  95. </view>
  96. </view>
  97. </template>
  98. <script>
  99. export default {
  100. data() {
  101. return {
  102. top: 0,
  103. }
  104. },
  105. onLoad(options) {
  106. uni.getSystemInfo({
  107. success: (res) => {
  108. this.top = res.safeArea.top;
  109. }
  110. });
  111. },
  112. methods: {
  113. }
  114. }
  115. </script>
  116. <style>
  117. .view {
  118. width: 100%;
  119. height: 100%;
  120. position: fixed;
  121. left: 0;
  122. top: 0;
  123. }
  124. .view video {
  125. width: 100%;
  126. height: 100%;
  127. }
  128. .right {
  129. position: fixed;
  130. z-index: 1;
  131. right: 30rpx;
  132. bottom: 0rpx;
  133. }
  134. .right .item {
  135. width: 90rpx;
  136. margin-top: 30rpx;
  137. padding-bottom: 10rpx;
  138. position: relative;
  139. }
  140. .right .item .icon {
  141. width: 90rpx;
  142. height: 90rpx;
  143. }
  144. .right .item .icon view {
  145. width: 90rpx;
  146. height: 90rpx;
  147. position: absolute;
  148. z-index: 1;
  149. left: 0;
  150. top: 0;
  151. }
  152. .icon>image {
  153. width: 100%;
  154. height: 100%;
  155. }
  156. .text {
  157. text-align: center;
  158. color: white;
  159. font-size: 24rpx;
  160. margin-top: 12rpx;
  161. width: 100%;
  162. }
  163. .bottom {
  164. position: fixed;
  165. z-index: 1;
  166. bottom: 0;
  167. left: 30rpx;
  168. right: 30rpx;
  169. /* width: calc(100% - 60rpx); */
  170. }
  171. .bottom .item {
  172. position: relative;
  173. }
  174. .bottom .item .icon {
  175. width: 74rpx;
  176. height: 74rpx;
  177. }
  178. .bottom .item .icon view {
  179. width: 74rpx;
  180. height: 74rpx;
  181. position: absolute;
  182. z-index: 1;
  183. left: 0;
  184. top: 0;
  185. }
  186. .bottom .ipt {
  187. background-color: rgba(0, 0, 0, 0.5);
  188. }
  189. .emotion {
  190. width: 41rpx;
  191. height: 41rpx;
  192. }
  193. .emotion image {
  194. width: 100%;
  195. height: 100%;
  196. }
  197. .es-ipt,
  198. .es-ipt input {
  199. background-color: inherit;
  200. }
  201. .top {
  202. position: fixed;
  203. left: 0rpx;
  204. width: 100%;
  205. top: 0;
  206. padding-left: 30rpx;
  207. padding-right: 30rpx;
  208. }
  209. .name-bg {
  210. background-color: rgba(0, 0, 0, 0.2);
  211. border-radius: 100rpx;
  212. }
  213. .person {
  214. position: absolute;
  215. right: 0;
  216. bottom: 0;
  217. height: 88rpx;
  218. }
  219. .person .num {
  220. background-color: rgba(255, 100, 3, 1);
  221. height: 58rpx;
  222. border-radius: 100rpx 0 0 100rpx;
  223. padding: 0 30rpx;
  224. }
  225. </style>