FullControl.vue 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190
  1. <script>
  2. import FullProgress from "@/components/full-progress/FullProgress.vue";
  3. import FullShare from "@/components/full-share/FullShare.vue";
  4. export default {
  5. name: "FullControl",
  6. components: {FullShare, FullProgress},
  7. model: {
  8. event: "change",
  9. prop: "visible"
  10. },
  11. props: {
  12. visible: {
  13. type: Boolean,
  14. default: false
  15. }
  16. },
  17. data() {
  18. return {
  19. }
  20. },
  21. methods: {
  22. // 退出全屏
  23. handleExitFullScreen() {
  24. }
  25. }
  26. }
  27. </script>
  28. <template>
  29. <div class="full-control" :class="{'show': visible}">
  30. <div>
  31. <div class="header">
  32. <div class="title-row">
  33. <van-icon name="arrow-left" color="#ffffff" :size="22" @click.stop="$emit('exit')" />
  34. <div class="title">无人出租车上路,拉动的不仅仅是人拉动的不l</div>
  35. </div>
  36. <div class="tool">
  37. <img src="@/assets/like.png" class="tool-icon" />
  38. <img src="@/assets/share.png" class="tool-icon" />
  39. <img src="@/assets/fenestrule.png" class="tool-icon" />
  40. </div>
  41. </div>
  42. <div class="user-info-box">
  43. <div class="user-info-row">
  44. <img class="user-avatar" src="https://picsum.photos/200" />
  45. <span class="user-name">刘骜</span>
  46. <div class="follow-status">关注</div>
  47. </div>
  48. <div class="live-status">
  49. <img src="@/assets/undulate.png" class="live-icon" />
  50. <span>直播中</span>
  51. </div>
  52. </div>
  53. </div>
  54. <full-progress />
  55. <full-share />
  56. </div>
  57. </template>
  58. <style scoped>
  59. .full-control {
  60. position: fixed;
  61. top: calc(50% - 50vw);
  62. left: calc(50% - 50vh);
  63. z-index: 99;
  64. width: 100vh;
  65. height: 100vw;
  66. display: none;
  67. background: transparent;
  68. }
  69. .show {
  70. display: flex;
  71. flex-direction: column;
  72. justify-content: space-between;
  73. }
  74. .header {
  75. display: flex;
  76. align-items: center;
  77. justify-content: space-between;
  78. box-sizing: border-box;
  79. padding: 10px 60px;
  80. }
  81. .title-row {
  82. display: flex;
  83. align-items: center;
  84. column-gap: 16px;
  85. }
  86. .title {
  87. font-weight: 600;
  88. font-size: 18px;
  89. color: #FFFFFF;
  90. position: relative;
  91. }
  92. .title::before {
  93. content: "";
  94. width: 100%;
  95. height: 100%;
  96. background: linear-gradient(to right, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.5));
  97. position: absolute;
  98. left: 0;
  99. top: 0;
  100. }
  101. .tool {
  102. display: flex;
  103. align-items: center;
  104. column-gap: 30px;
  105. }
  106. .tool-icon {
  107. width: 26px;
  108. height: 26px;
  109. }
  110. .user-info-box {
  111. box-sizing: border-box;
  112. padding-left: 60px;
  113. }
  114. .user-info-row {
  115. width: fit-content;
  116. height: 32px;
  117. background: rgba(0, 0, 0, 0.8);
  118. border-radius: 16px;
  119. box-sizing: border-box;
  120. padding: 0 4px;
  121. display: flex;
  122. align-items: center;
  123. column-gap: 8px;
  124. margin-bottom: 8px;
  125. }
  126. .user-avatar {
  127. width: 24px;
  128. height: 24px;
  129. border-radius: 50%;
  130. }
  131. .user-name {
  132. font-weight: 500;
  133. font-size: 15px;
  134. color: #FFFFFF;
  135. }
  136. .follow-status {
  137. height: 24px;
  138. background: #EC2E31;
  139. border-radius: 14px;
  140. box-sizing: border-box;
  141. padding: 0 12px;
  142. display: flex;
  143. align-items: center;
  144. justify-content: center;
  145. font-weight: 400;
  146. font-size: 13px;
  147. color: #FFFFFF;
  148. }
  149. .live-status {
  150. width: 50px;
  151. height: 18px;
  152. background: rgba(0, 0, 0, 0.8);
  153. border-radius: 2px;
  154. font-weight: 400;
  155. font-size: 10px;
  156. color: #EC2E31;
  157. display: flex;
  158. align-items: center;
  159. justify-content: center;
  160. column-gap: 4px;
  161. }
  162. .live-icon {
  163. width: 8px;
  164. height: 10px;
  165. }
  166. </style>