Browse Source

直播页80%

wws 2 years ago
parent
commit
5f593650dd

BIN
src/assets/live/exit.png


+ 36 - 1
src/components/live/LiveInteract.vue

@@ -16,7 +16,11 @@ export default {
              :initial-swipe="1"
              :show-indicators="false">
     <van-swipe-item>
-      清除
+      <img src="@/assets/live/arrow-left.png" class="arrow-left" />
+      <div class="exit-box">
+        <img src="@/assets/live/exit.png" class="exit-icon" />
+        <span>退出清屏</span>
+      </div>
     </van-swipe-item>
     <van-swipe-item>
       <div class="interact-box">
@@ -105,4 +109,35 @@ export default {
   right: 4px;
 }
 
+/*第一屏*/
+.arrow-left {
+  width: 28px;
+  height: 28px;
+  position: absolute;
+  left: 20px;
+  top: 8px;
+}
+
+.exit-box {
+  width: 112px;
+  height: 36px;
+  background: rgba(26, 40, 55, 0.5);
+  border-radius: 18px;
+  display: flex;
+  align-items: center;
+  justify-content: center;
+  font-weight: 400;
+  font-size: 14px;
+  color: #FFFFFF;
+  column-gap: 8px;
+  position: absolute;
+  bottom: 20px;
+  right: 24px;
+}
+
+.exit-icon {
+  width: 16px;
+  height: 20px;
+}
+
 </style>

+ 3 - 5
src/views/live/LiveItem.vue

@@ -1,9 +1,9 @@
 <script>
-import LiveInteract from "@/components/live/LiveInteract.vue";
+// import LiveInteract from "@/components/live/LiveInteract.vue";
 
 export default {
   name: "LiveItem",
-  components: {LiveInteract},
+  // components: {LiveInteract},
   methods: {
     handleClick() {
       console.log("测试点击")
@@ -21,7 +21,7 @@ export default {
       </div>
       <img src="@/assets/live/live-full.png" class="full-icon" @click="handleClick" />
     </div>
-    <live-interact class="interact"  style="flex: 1" />
+<!--    <live-interact class="interact"  style="flex: 1" />-->
   </div>
 </template>
 
@@ -66,8 +66,6 @@ export default {
   z-index: 9999;
 }
 
-
-
 .interact {
   position: fixed;
   top: 0;

+ 1 - 1
src/views/live/VerticalLive.vue

@@ -23,7 +23,7 @@ export default {
 .video-box {
   width: 100vw;
   height: 100vh;
-  background: pink;
+  background: rgba(0, 0, 0, 0.2);
 }
 
 .interact {