Browse Source

直播页90%

wws 2 years ago
parent
commit
0d3cbd95f6

+ 3 - 0
package.json

@@ -14,8 +14,11 @@
     "lib-flexible": "^0.3.2",
     "postcss-px-to-viewport": "^1.1.1",
     "postcss-pxtorem": "^6.1.0",
+    "sass": "^1.80.4",
+    "sass-loader": "^16.0.2",
     "vant": "^2.13.2",
     "vant-green": "^1.0.44",
+    "vconsole": "^3.15.1",
     "vue": "^2.6.14",
     "vue-router": "^3.5.1",
     "vuex": "^3.6.2"

+ 5 - 6
src/components/full-control/FullControl.vue

@@ -66,15 +66,14 @@ export default {
 
 <style scoped>
   .full-control {
-    position: absolute;
-    top: 0;
-    left: 0;
+    position: fixed;
+    top: calc(50% - 50vw);
+    left: calc(50% - 50vh);
+    z-index: 99;
     width: 100vh;
     height: 100vw;
-    //transform: rotate(90deg) translate(27vh, 58vw);
-    //transition: opacity 0.3s ease-in-out;
     display: none;
-    z-index: 999;
+    background: transparent;
   }
 
   .show {

+ 14 - 2
src/components/live-footer/LiveFooter.vue

@@ -1,11 +1,18 @@
 <script>
 export default {
-  name: "LiveFooter"
+  name: "LiveFooter",
+  props: {
+    // 是否全屏
+    isFullScreen: {
+      type: Boolean,
+      default: false,
+    }
+  }
 }
 </script>
 
 <template>
-  <div class="live-footer">
+  <div class="live-footer" :class="{'horiz': isFullScreen}">
     <div class="live-input-row">发个弹幕吧~</div>
     <div class="live-footer-item" style="padding: 6px 5px">
       <img src="@/assets/cart.png" class="live-footer-icon" />
@@ -67,4 +74,9 @@ export default {
   font-size: 12px;
   color: #FFFFFF;
 }
+
+/*横屏样式*/
+.horiz {
+  margin: 8px 60px 34px ;
+}
 </style>

+ 116 - 0
src/components/live-footer/css/horiz.css

@@ -0,0 +1,116 @@
+/*横屏样式*/
+.horiz {
+    .live-header {
+        display: flex;
+        align-items: center;
+        justify-content: space-between;
+        column-gap: 8px;
+        margin: 10px 60px 0;
+    }
+
+    .header-l {
+        flex: 1;
+        display: flex;
+        align-items: center;
+    }
+
+    .arrow-left {
+        width: 28px;
+        height: 28px;
+    }
+
+    .user-avatar {
+        width: 32px;
+        height: 32px;
+        border-radius: 50%;
+    }
+
+    .live-box {
+        flex: 1;
+        display: flex;
+        align-items: center;
+        column-gap: 8px;
+        box-sizing: border-box;
+        padding: 4px 10px 4px 0;
+    }
+
+    .live-info {
+        flex: 1;
+        display: flex;
+        flex-direction: column;
+        row-gap: 4px;
+    }
+
+    .live-name {
+        flex: 1;
+        font-weight: 600;
+        font-size: 14px;
+        color: #FFFFFF;
+        white-space: nowrap;
+        overflow: hidden;
+        text-overflow: ellipsis;
+    }
+
+    .live-user-count {
+        font-weight: 400;
+        font-size: 12px;
+        color: #FFFFFF;
+    }
+
+    .follow-status {
+        background: rgba(255,255,255,0);
+        border-radius: 14px;
+        border: 1px solid #EC2E31;
+        font-weight: 400;
+        font-size: 14px;
+        color: #EC2E31;
+        box-sizing: border-box;
+        padding: 2px 12px;
+    }
+
+    .header-r {
+        display: flex;
+        align-items: center;
+        column-gap: 4px;
+    }
+
+    .header-r-icon {
+        width: 28px;
+        height: 28px;
+    }
+
+    .preside-row {
+        font-weight: 400;
+        font-size: 10px;
+        color: #FFFFFF;
+        margin: 8px 60px 0;
+    }
+
+    .notice-row {
+        margin: 8px 60px 0;
+    }
+
+
+    .live-status {
+        width: 68px;
+        height: 20px;
+        display: flex;
+        align-items: center;
+        column-gap: 4px;
+        background: rgba(26, 40, 55, 0.5);
+        box-shadow: 0px 0px 4px 0px rgba(0,0,0,0.24);
+        border-radius: 10px;
+        color: #ffffff;
+        font-weight: 400;
+        font-size: 12px;
+        margin: 8px 60px 0;
+        box-sizing: border-box;
+        padding: 0 8px;
+    }
+
+    .undulate-icon {
+        width: 12px;
+        height: 12px;
+    }
+
+}

+ 119 - 0
src/components/live-footer/css/vertical.css

@@ -0,0 +1,119 @@
+/*竖屏样式*/
+.vertical {
+
+    .live-header {
+        display: flex;
+        align-items: center;
+        justify-content: space-between;
+        column-gap: 8px;
+        margin: 0 15px;
+    }
+
+    .header-l {
+        display: flex;
+        align-items: center;
+    }
+
+    .arrow-left {
+        width: 28px;
+        height: 28px;
+    }
+
+    .user-avatar {
+        width: 32px;
+        height: 32px;
+        border-radius: 50%;
+    }
+
+    .live-box {
+        flex: 1;
+        display: flex;
+        align-items: center;
+        column-gap: 8px;
+        background: rgba(26, 40, 55, 0.5);
+        box-shadow: 0px 0px 4px 0px rgba(0,0,0,0.24);
+        border-radius: 21px;
+        box-sizing: border-box;
+        padding: 4px 10px 4px 0;
+    }
+
+    .live-info {
+        display: flex;
+        flex-direction: column;
+        row-gap: 4px;
+    }
+
+    .live-name {
+        width: 138px;
+        font-weight: 600;
+        font-size: 14px;
+        color: #FFFFFF;
+        white-space: nowrap;
+        overflow: hidden;
+        text-overflow: ellipsis;
+    }
+
+    .live-user-count {
+        font-weight: 400;
+        font-size: 10px;
+        color: #FFFFFF;
+    }
+
+    .follow-status {
+        background: rgba(255,255,255,0);
+        border-radius: 14px;
+        border: 1px solid #EC2E31;
+        font-weight: 400;
+        font-size: 14px;
+        color: #EC2E31;
+        box-sizing: border-box;
+        padding: 2px 12px;
+    }
+
+    .header-r {
+        display: flex;
+        align-items: center;
+        column-gap: 4px;
+    }
+
+    .header-r-icon {
+        width: 28px;
+        height: 28px;
+    }
+
+    .preside-row {
+        font-weight: 400;
+        font-size: 10px;
+        color: #FFFFFF;
+        margin: 8px 15px 0;
+    }
+
+
+    .notice-row {
+        margin: 8px 15px 0;
+    }
+
+
+
+    .live-status {
+        width: 68px;
+        height: 20px;
+        display: flex;
+        align-items: center;
+        column-gap: 4px;
+        background: rgba(26, 40, 55, 0.5);
+        box-shadow: 0px 0px 4px 0px rgba(0,0,0,0.24);
+        border-radius: 10px;
+        color: #ffffff;
+        font-weight: 400;
+        font-size: 12px;
+        margin: 8px 15px 0;
+        box-sizing: border-box;
+        padding: 0 8px;
+    }
+
+    .undulate-icon {
+        width: 12px;
+        height: 12px;
+    }
+}

+ 21 - 118
src/components/live-header/LiveHeader.vue

@@ -3,15 +3,27 @@ import LiveNotice from "@/components/notcie/LiveNotice.vue";
 
 export default {
   name: "LiveHeader",
-  components: {LiveNotice}
+  components: {LiveNotice},
+  props: {
+    // 是否全屏
+    isFullScreen: {
+      type: Boolean,
+      default: false,
+    }
+  },
+  computed: {
+    headerClass() {
+      return this.isFullScreen ? 'horiz' : "vertical"
+    }
+  }
 }
 </script>
 
 <template>
-  <div>
+  <div :class="headerClass">
     <div class="live-header">
       <div class="header-l">
-        <img src="@/assets/live/arrow-left.png" class="arrow-left" />
+        <img src="@/assets/live/arrow-left.png" class="arrow-left" @click="$emit('back')" />
         <div class="live-box">
           <img src="https://picsum.photos/200" class="user-avatar" />
           <div class="live-info">
@@ -28,7 +40,9 @@ export default {
       </div>
     </div>
     <div class="preside-row">主持人:汪老师 · 职业编号:S0570618010086</div>
-    <live-notice />
+    <div class="notice-row">
+      <live-notice />
+    </div>
     <div class="live-status">
       <img src="@/assets/undulate.png" class="undulate-icon" />
       <span>直播中</span>
@@ -36,118 +50,7 @@ export default {
   </div>
 </template>
 
-<style scoped>
-
-
-.live-header {
-  display: flex;
-  align-items: center;
-  justify-content: space-between;
-  column-gap: 8px;
-  margin: 0 15px;
-}
-
-.header-l {
-  display: flex;
-  align-items: center;
-}
-
-.arrow-left {
-  width: 28px;
-  height: 28px;
-}
-
-.user-avatar {
-  width: 32px;
-  height: 32px;
-  border-radius: 50%;
-}
-
-.live-box {
-  flex: 1;
-  display: flex;
-  align-items: center;
-  column-gap: 8px;
-  background: rgba(26, 40, 55, 0.5);
-  box-shadow: 0px 0px 4px 0px rgba(0,0,0,0.24);
-  border-radius: 21px;
-  box-sizing: border-box;
-  padding: 4px 10px 4px 0;
-}
-
-.live-info {
-  display: flex;
-  flex-direction: column;
-  row-gap: 4px;
-}
-
-.live-name {
-  width: 138px;
-  font-weight: 600;
-  font-size: 14px;
-  color: #FFFFFF;
-  white-space: nowrap;
-  overflow: hidden;
-  text-overflow: ellipsis;
-}
-
-.live-user-count {
-  font-weight: 400;
-  font-size: 10px;
-  color: #FFFFFF;
-}
-
-.follow-status {
-  background: rgba(255,255,255,0);
-  border-radius: 14px;
-  border: 1px solid #EC2E31;
-  font-weight: 400;
-  font-size: 14px;
-  color: #EC2E31;
-  box-sizing: border-box;
-  padding: 2px 12px;
-}
-
-.header-r {
-  display: flex;
-  align-items: center;
-  column-gap: 4px;
-}
-
-.header-r-icon {
-  width: 28px;
-  height: 28px;
-}
-
-.preside-row {
-  font-weight: 400;
-  font-size: 10px;
-  color: #FFFFFF;
-  margin: 8px 15px 0;
-}
-
-
-
-.live-status {
-  width: 68px;
-  height: 20px;
-  display: flex;
-  align-items: center;
-  column-gap: 4px;
-  background: rgba(26, 40, 55, 0.5);
-  box-shadow: 0px 0px 4px 0px rgba(0,0,0,0.24);
-  border-radius: 10px;
-  color: #ffffff;
-  font-weight: 400;
-  font-size: 12px;
-  margin: 8px 15px 0;
-  box-sizing: border-box;
-  padding: 0 8px;
-}
-
-.undulate-icon {
-  width: 12px;
-  height: 12px;
-}
-
+<style scoped lang="scss">
+@import "css/vertical.scss";
+@import "css/horiz.scss";
 </style>

+ 116 - 0
src/components/live-header/css/horiz.scss

@@ -0,0 +1,116 @@
+/*横屏样式*/
+.horiz {
+    .live-header {
+        display: flex;
+        align-items: center;
+        justify-content: space-between;
+        column-gap: 8px;
+        margin: 10px 60px 0;
+    }
+
+    .header-l {
+        flex: 1;
+        display: flex;
+        align-items: center;
+    }
+
+    .arrow-left {
+        width: 28px;
+        height: 28px;
+    }
+
+    .user-avatar {
+        width: 32px;
+        height: 32px;
+        border-radius: 50%;
+    }
+
+    .live-box {
+        flex: 1;
+        display: flex;
+        align-items: center;
+        column-gap: 8px;
+        box-sizing: border-box;
+        padding: 4px 10px 4px 0;
+    }
+
+    .live-info {
+        flex: 1;
+        display: flex;
+        flex-direction: column;
+        row-gap: 4px;
+    }
+
+    .live-name {
+        flex: 1;
+        font-weight: 600;
+        font-size: 14px;
+        color: #FFFFFF;
+        white-space: nowrap;
+        overflow: hidden;
+        text-overflow: ellipsis;
+    }
+
+    .live-user-count {
+        font-weight: 400;
+        font-size: 12px;
+        color: #FFFFFF;
+    }
+
+    .follow-status {
+        background: rgba(255,255,255,0);
+        border-radius: 14px;
+        border: 1px solid #EC2E31;
+        font-weight: 400;
+        font-size: 14px;
+        color: #EC2E31;
+        box-sizing: border-box;
+        padding: 2px 12px;
+    }
+
+    .header-r {
+        display: flex;
+        align-items: center;
+        column-gap: 4px;
+    }
+
+    .header-r-icon {
+        width: 28px;
+        height: 28px;
+    }
+
+    .preside-row {
+        font-weight: 400;
+        font-size: 10px;
+        color: #FFFFFF;
+        margin: 8px 60px 0;
+    }
+
+    .notice-row {
+        margin: 8px 60px 0;
+    }
+
+
+    .live-status {
+        width: 68px;
+        height: 20px;
+        display: flex;
+        align-items: center;
+        column-gap: 4px;
+        background: rgba(26, 40, 55, 0.5);
+        box-shadow: 0px 0px 4px 0px rgba(0,0,0,0.24);
+        border-radius: 10px;
+        color: #ffffff;
+        font-weight: 400;
+        font-size: 12px;
+        margin: 8px 60px 0;
+        box-sizing: border-box;
+        padding: 0 8px;
+    }
+
+    .undulate-icon {
+        width: 12px;
+        height: 12px;
+    }
+
+}

+ 119 - 0
src/components/live-header/css/vertical.scss

@@ -0,0 +1,119 @@
+/*竖屏样式*/
+.vertical {
+
+    .live-header {
+        display: flex;
+        align-items: center;
+        justify-content: space-between;
+        column-gap: 8px;
+        margin: 0 15px;
+    }
+
+    .header-l {
+        display: flex;
+        align-items: center;
+    }
+
+    .arrow-left {
+        width: 28px;
+        height: 28px;
+    }
+
+    .user-avatar {
+        width: 32px;
+        height: 32px;
+        border-radius: 50%;
+    }
+
+    .live-box {
+        flex: 1;
+        display: flex;
+        align-items: center;
+        column-gap: 8px;
+        background: rgba(26, 40, 55, 0.5);
+        box-shadow: 0px 0px 4px 0px rgba(0,0,0,0.24);
+        border-radius: 21px;
+        box-sizing: border-box;
+        padding: 4px 10px 4px 0;
+    }
+
+    .live-info {
+        display: flex;
+        flex-direction: column;
+        row-gap: 4px;
+    }
+
+    .live-name {
+        width: 138px;
+        font-weight: 600;
+        font-size: 14px;
+        color: #FFFFFF;
+        white-space: nowrap;
+        overflow: hidden;
+        text-overflow: ellipsis;
+    }
+
+    .live-user-count {
+        font-weight: 400;
+        font-size: 10px;
+        color: #FFFFFF;
+    }
+
+    .follow-status {
+        background: rgba(255,255,255,0);
+        border-radius: 14px;
+        border: 1px solid #EC2E31;
+        font-weight: 400;
+        font-size: 14px;
+        color: #EC2E31;
+        box-sizing: border-box;
+        padding: 2px 12px;
+    }
+
+    .header-r {
+        display: flex;
+        align-items: center;
+        column-gap: 4px;
+    }
+
+    .header-r-icon {
+        width: 28px;
+        height: 28px;
+    }
+
+    .preside-row {
+        font-weight: 400;
+        font-size: 10px;
+        color: #FFFFFF;
+        margin: 8px 15px 0;
+    }
+
+
+    .notice-row {
+        margin: 8px 15px 0;
+    }
+
+
+
+    .live-status {
+        width: 68px;
+        height: 20px;
+        display: flex;
+        align-items: center;
+        column-gap: 4px;
+        background: rgba(26, 40, 55, 0.5);
+        box-shadow: 0px 0px 4px 0px rgba(0,0,0,0.24);
+        border-radius: 10px;
+        color: #ffffff;
+        font-weight: 400;
+        font-size: 12px;
+        margin: 8px 15px 0;
+        box-sizing: border-box;
+        padding: 0 8px;
+    }
+
+    .undulate-icon {
+        width: 12px;
+        height: 12px;
+    }
+}

+ 73 - 0
src/components/live-video/LiveVideo.vue

@@ -0,0 +1,73 @@
+<script>
+import { createWatchCore } from '@polyv/live-watch-sdk';
+
+export default {
+  name: "LiveVideo",
+  data() {
+    return {
+      watchCore: null
+    }
+  },
+  mounted() {
+    this.getWatchCore();
+  },
+  methods: {
+    async getWatchCore() {
+      this.watchCore = createWatchCore({
+        channelId: "4247961",
+        userInfo: {
+          userId: "test1"
+        }
+      })
+
+      try {
+        await this.watchAuth();
+        await this.watchCore.setup();
+        // 连接
+        await this.watchCore.connect();
+        await this.createPlayer();
+      } catch (err) {
+        console.error(err);
+      }
+    },
+
+    // 观看授权
+    watchAuth() {
+      return new Promise(  (resolve, reject) => {
+        this.watchCore.auth.verifyNoneAuth().then(result => {
+          if (result.success) {
+            resolve(result)
+          } else {
+            reject(result)
+          }
+        });
+      })
+    },
+
+
+    // 创建播放器
+    async createPlayer() {
+      await this.watchCore.player.setupPlayer({
+        container: document.getElementById('liveVideoContainer'),
+        // lowLatency: true, // 使用无延迟播放
+      });
+    }
+  }
+}
+</script>
+
+<template>
+  <div class="live-video" id="liveVideoContainer"></div>
+</template>
+
+<style scoped>
+
+.live-video {
+  width: 100%;
+  //height: 56.25vw;
+}
+
+/deep/ .plwrap {
+  background: transparent;
+}
+</style>

+ 36 - 0
src/components/live/LiveHorizInteract.vue

@@ -0,0 +1,36 @@
+<script>
+
+import LiveHeader from "@/components/live-header/LiveHeader.vue";
+import LiveFooter from "@/components/live-footer/LiveFooter.vue";
+
+export default {
+  name: "LiveHorizInteract",
+  components: {LiveFooter, LiveHeader},
+}
+</script>
+
+<template>
+  <div class="test">
+    <live-header />
+
+    <live-footer />
+
+  </div>
+</template>
+
+<style scoped>
+
+.test {
+  width: 100vh;
+  height: 100vw;
+  position: fixed;
+  top: calc(50% - 50vw);
+  left: calc(50% - 50vh);
+  background: yellowgreen;
+  transform: rotate(90deg);
+  display: flex;
+  flex-direction: column;
+  justify-content: space-between;
+}
+
+</style>

+ 209 - 30
src/components/live/LiveInteract.vue

@@ -5,54 +5,208 @@ import LiveHeader from "@/components/live-header/LiveHeader.vue";
 
 export default {
   name: "LiveInteract",
-  components: {LiveHeader, LiveFooter, ChatWrapper}
+  model: {
+    event: "change",
+    prop: "value",
+  },
+  props: {
+    value: {
+      type: Boolean,
+      default: false,
+    }
+  },
+  components: {LiveHeader, LiveFooter, ChatWrapper},
+  data() {
+    return {
+      swiperDom: null,
+      currentOffset: 0,
+      startX: 0,
+      startY: 0,
+      isDragging: false,
+      slideWidth: 0,
+      currentIndex: 1,
+
+      // 是否是横屏
+      isLandscape: false,
+    }
+  },
+  mounted() {
+
+  },
+  methods: {
+    // 点击返回
+    handleClickBack() {
+      // 判断当前状态是否全屏,如果是则退出全屏
+      if (this.isLandscape) {
+        this.isLandscape = false;
+        return;
+      }
+      // 不是则退出直播页
+    },
+
+    // 获取横屏基础信息
+    getLandscapeInfo() {
+      this.swiperDom = document.querySelector(".van-swipe__track");
+      // 设置 所有的van-swipe-item 的宽度为屏幕宽度
+      const swiperItemList = document.querySelectorAll(".van-swipe-item");
+      const width = this.$refs.interactRef.offsetWidth;
+      swiperItemList.forEach(item => {
+       item.style.width = `${width}px`;
+      })
+
+      this.slideWidth = width;
+      this.currentOffset = -this.slideWidth * this.currentIndex; // 初始偏移量
+      this.swiperDom.style.transform = `translateX(${this.currentOffset}px)`;
+    },
+
+    // 触摸开始
+    handleTouchStart(event) {
+      if(!this.isLandscape) return;
+      this.startX = event.touches[0].clientX;
+      this.startY = event.touches[0].clientY;
+      this.isDragging = true;
+      // this.swiperDom.style.transitionDuration = '0ms';
+    },
+    handleTouchEnd() {
+      if (!this.isDragging) return;
+      this.isDragging = false;
+      // this.swiperDom.style.transitionDuration = "500ms";
+
+      // 计算滑动距离
+      const swipeDistance = this.currentOffset - (-this.slideWidth * this.currentIndex);
+
+      // 判断滑动距离是否超过容器宽度的一半
+      if (Math.abs(swipeDistance) >= this.slideWidth / 2) {
+        if (swipeDistance < 0) {
+          // 向右滑动超过一半,切换到下一个item
+          if (this.currentIndex < 1) {
+            this.currentIndex++;
+          }
+        } else {
+          // 向左滑动超过一半,切换到上一个item
+          if (this.currentIndex > 0) {
+            this.currentIndex--;
+          }
+        }
+      }
+      // 根据新的索引计算新的偏移量
+      this.currentOffset = -this.slideWidth * this.currentIndex;
+      // 更新DOM的transform属性
+      this.swiperDom.style.transform = `translateX(${this.currentOffset}px)`;
+    },
+    handleTouchMove(event) {
+      if (!this.isDragging) return;
+      const moveY = event.touches[0].clientY;
+      const moveX = event.touches[0].clientX;
+      const diffY = moveY - this.startY;
+      const diffX = moveX - this.startX;
+
+      // 如果主要是水平滑动,则不处理
+      if (Math.abs(diffX) > Math.abs(diffY)) return;
+      // 根据上下滑动调整水平偏移量
+      this.currentOffset += diffY * 0.5; // 向上拖动时向左移动
+      // 限制移动范围
+      const maxWidth = -this.slideWidth;
+      if (this.currentOffset >= this.slideWidth || this.currentOffset <= maxWidth) return;
+      // 更新DOM的transform属性
+      this.swiperDom.style.transform = `translateX(${this.currentOffset}px)`;
+    }
+  },
+  watch: {
+    isLandscape: {
+      handler() {
+        this.$emit("change", this.isLandscape);
+      },
+      immediate: true,
+    },
+    value: {
+      handler() {
+        this.isLandscape = this.value;
+        this.$nextTick(() => {
+          this.getLandscapeInfo();
+        })
+      },
+      immediate: true,
+      deep: true,
+    }
+  }
 }
 </script>
 
 <template>
-  <van-swipe class="my-swipe"
-             :autoplay="0"
-             :loop="false"
-             :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">
-        <live-header />
-        <div class="footer">
-          <chat-wrapper />
-          <live-footer />
-          <div class="shop-and-gift">
-            <div class="guide-box">
-              <img src="https://picsum.photos/200" class="guide-cover" />
-              <img src="@/assets/close.png" class="close-icon" />
-            </div>
+  <div class="interact-container"
+       ref="interactRef"
+       :class="{'horiz-wrapper': isLandscape}"
+       @touchmove="handleTouchMove"
+       @touchend="handleTouchEnd"
+       @touchstart="handleTouchStart">
+    <van-swipe class="my-swipe"
+               :autoplay="0"
+               @change="(e) => currentIndex = e"
+               :touchable="!isLandscape"
+               :stop-propagation="false"
+               :loop="false"
+               :initial-swipe="currentIndex"
+               :show-indicators="false">
+      <van-swipe-item>
+        <img src="@/assets/live/arrow-left.png" class="arrow-left" @click="handleClickBack" />
+        <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">
+          <live-header @back="handleClickBack" :is-full-screen="isLandscape" />
+          <div class="footer">
+            <chat-wrapper v-show="!isLandscape" />
+            <live-footer :is-full-screen="isLandscape" />
+            <div class="shop-and-gift">
+              <div class="guide-box">
+                <img src="https://picsum.photos/200" class="guide-cover" />
+                <img src="@/assets/close.png" class="close-icon" />
+              </div>
 
-            <div class="gift-box">
-              <img src="@/assets/live/gift.png" class="gift-icon" />
+              <div class="gift-box">
+                <img src="@/assets/live/gift.png" class="gift-icon" />
+              </div>
             </div>
           </div>
         </div>
-      </div>
-    </van-swipe-item>
-  </van-swipe>
+
+        <!-- 横屏显示-->
+        <div v-show="isLandscape" class="live-horiz-tip">市场有风险 投资需谨慎</div>
+      </van-swipe-item>
+    </van-swipe>
+  </div>
 </template>
 
 <style scoped>
 
+.interact-container {
+  transition: all 0.3s;
+
+}
+
+.horiz-wrapper {
+  width: 100vh;
+  height: 100vw;
+  position: fixed;
+  top: calc(50% - 50vw);
+  left: calc(50% - 50vh);
+  z-index: 10;
+  //background: yellowgreen;
+  background: transparent;
+  transform: rotate(90deg);
+}
+
 .my-swipe {
   color: #FFFFFF;
   height: 100%;
-  background: rgba(255, 255, 255, 0.5);
 }
 
 .interact-box {
+  width: 100%;
   height: 100%;
   display: flex;
   flex-direction: column;
@@ -61,7 +215,9 @@ export default {
   padding: 14px 0 0;
 }
 
+
 .shop-and-gift {
+  width: fit-content;
   position: absolute;
   right: 8px;
   bottom: 62px;
@@ -109,6 +265,8 @@ export default {
   right: 4px;
 }
 
+
+
 /*第一屏*/
 .arrow-left {
   width: 28px;
@@ -140,4 +298,25 @@ export default {
   height: 20px;
 }
 
+.live-horiz-tip {
+  width: 100vh;
+  box-sizing: border-box;
+  padding: 6px 20px;
+  position: absolute;
+  bottom: 0;
+  font-weight: 400;
+  font-size: 12px;
+  color: #FFFFFF;
+  background: rgba(26, 40, 55, 0.5);
+}
+
+.horiz-wrapper .interact-box {
+  width: 100vh;
+  height: 100vw;
+}
+
+.horiz-wrapper .footer {
+  //width: 100vh;
+  position: relative;
+}
 </style>

+ 1 - 1
src/components/notcie/LiveNotice.vue

@@ -23,7 +23,7 @@ export default {
   background: #5290E0;
   box-shadow: 0px 0px 4px 0px rgba(0,0,0,0.24);
   border-radius: 14px;
-  margin: 8px 15px 0;
+  //margin: 8px 15px 0;
   box-sizing: border-box;
   padding: 6px 8px;
   height: 28px;

+ 42 - 35
src/components/video-container/PolyvPlayer.vue

@@ -1,7 +1,8 @@
 <template>
-  <div class="test-container" :class="{'full': full}" @click="handleTest">
+  <div :class="{'full': full}" @click="handleChangeControl">
     <div id="player"></div>
-    <full-control v-model="showControl" @exit="handleExitFullScreen" />
+    <div class="test">测试内容</div>
+    <full-control v-model="showControl" @exit="handleExitFullScreen" v-if="false" />
   </div>
 </template>
 <script>
@@ -24,20 +25,13 @@ export default {
     return {
       vodPlayerJs: 'https://player.polyv.net/resp/vod-player/latest/player.js',
       vid:'88083abbf5bcf1356e05d39666be527a_8',
-      full: false,
+      full: true,
       showControl: false,
       player: null,
     };
   },
   mounted(){
     this.loadPlayerScript(this.loadPlayer);
-    // setTimeout(() => {
-    //   this.full = true;
-    //   console.log('旋转')
-    //   this.loadPlayer();
-    //   this.exitFullScreen();
-    // }, 3000)
-
     this.registerEvent();
   },
   methods: {
@@ -67,24 +61,16 @@ export default {
     handleExitFullScreen() {
       this.full = false;
       this.showControl = false;
-      // this.loadPlayer();
     },
 
-    handleTest() {
+    // 是否显示控件
+    handleChangeControl() {
       if(!this.full) return;
       console.log('点击了')
       this.showControl = !this.showControl;
 
     },
 
-    // 退出全屏
-    exitFullScreen() {
-      setTimeout(() => {
-        this.full = false;
-        this.loadPlayer();
-      }, 4000)
-    },
-
     // 跳转某个时刻播放(秒)
     handleSeekTo(number) {
       this.player.j2s_seekVideo(number);
@@ -102,20 +88,14 @@ export default {
     },
 
     loadPlayer() {
-      // plv-player-container plv-player-control-ios
-      // this.destroyPlayer();
-      // const { width, height } = document.body.getBoundingClientRect();
       const polyvPlayer = window.polyvPlayer;
       this.player = polyvPlayer({
         wrap: '#player',
-        // width: this.full ? height : null,
-        // height: this.full ? width : 200,
         vid: this.vid ,
         skinLocation: 0,
         autoplay: true,
         df: 3
       });
-
       this.initPlayer();
     },
 
@@ -175,17 +155,19 @@ export default {
 <style scoped>
 
 .full {
-  position: fixed;
-  top: 0;
-  left: 0;
-  width: 100vh;
-  height: 100vw;
-  transition: transform 0.3s ease-in-out;
-  transform: rotate(90deg) translate(27vh, 58vw);
-  z-index: 99;
-  background: #000000;
+  //width: 100vh;
+  //height: 100vw;
+  //position: fixed;
+  //top: calc(50% - 50vw);
+  //left: calc(50% - 50vh);
+  //transition: transform 0.3s ease-in-out;
+  //transform: rotate(90deg);
+  //z-index: 99;
+  //background: #000000;
+  background: pink;
 }
 
+
 /deep/ .plv-player-container {
   background: transparent;
   height: 56.25vw;
@@ -195,4 +177,29 @@ export default {
   height: 100vw;
 }
 
+.full #player {
+  //position: fixed;
+  //z-index: 1;
+
+  width: 100vh;
+  height: 100vw;
+  position: fixed;
+  top: calc(50% - 50vw);
+  left: calc(50% - 50vh);
+  transition: transform 0.3s ease-in-out;
+  transform: rotate(90deg);
+  z-index: 9;
+  background: #000000;
+}
+
+.test {
+  color: #FFFFFF;
+  position: fixed;
+  top: 50%;
+  left: 0;
+  background: pink;
+  width: 100%;
+  z-index: 99999;
+}
+
 </style>

+ 3 - 0
src/main.js

@@ -5,6 +5,9 @@ import store from './store'
 import Vant from 'vant';
 import 'vant/lib/index.css';
 
+import VConsole from 'vconsole';
+
+new VConsole();
 Vue.use(Vant);
 
 Vue.config.productionTip = false

+ 31 - 12
src/views/live/LiveItem.vue

@@ -1,12 +1,19 @@
 <script>
-// import LiveInteract from "@/components/live/LiveInteract.vue";
+import LiveInteract from "@/components/live/LiveInteract.vue";
+import LiveVideo from "@/components/live-video/LiveVideo.vue";
 
 export default {
   name: "LiveItem",
-  // components: {LiveInteract},
+  components: {LiveVideo, LiveInteract},
+  data() {
+    return {
+      fullScreen: false,
+    }
+  },
   methods: {
     handleClick() {
       console.log("测试点击")
+      this.fullScreen = true
     }
   }
 }
@@ -15,13 +22,16 @@ export default {
 <template>
   <div class="live-item">
     <div class="live-video-box">
-      <div class="video-box"></div>
+      <div class="video-box" :class="{'full-video-box': fullScreen}">
+        <live-video />
+      </div>
       <div class="video-tip">
         市场有风险 投资需谨慎
       </div>
-      <img src="@/assets/live/live-full.png" class="full-icon" @click="handleClick" />
+      <img src="@/assets/live/live-full.png" class="full-icon" @click="fullScreen = true" />
     </div>
-<!--    <live-interact class="interact"  style="flex: 1" />-->
+
+    <live-interact class="interact1" v-model="fullScreen"  style="flex: 1" />
   </div>
 </template>
 
@@ -40,7 +50,6 @@ export default {
   top: 120px;
   width: 100vw;
   height: 206px;
-  background: pink;
 }
 
 .video-tip {
@@ -55,6 +64,7 @@ export default {
   padding: 0 20px;
   position: absolute;
   bottom: 0;
+  z-index: 9;
 }
 
 .full-icon {
@@ -63,15 +73,24 @@ export default {
   position: absolute;
   right: 20px;
   bottom: 20px;
-  z-index: 9999;
+  z-index: 9;
 }
 
-.interact {
+.video-box {
+  transition: all 0.3s;
+  background: #000000;
+}
+
+.full-video-box {
+  width: 100vh;
+  height: 100vw;
   position: fixed;
-  top: 0;
-  left: 0;
-  width: 100vw;
-  height: 100vh;
+  top: calc(50% - 50vw);
+  left: calc(50% - 50vh);
+  z-index: 10;
+  //background: transparent;
+  transform: rotate(90deg);
+  background: #000000;
 }
 
 </style>

+ 11 - 20
src/views/video/VideoItem.vue

@@ -10,17 +10,11 @@ export default {
   data() {
     return {
       showSetPopup: false,
-      test: false,
       showVideoInfo: true,
       fullScreen: false,
     }
   },
   methods: {
-    handleTest() {
-      // 进入vidoe 全屏
-      this.$refs.video.requestFullscreen();
-    },
-
     // 拖拽时需要隐藏视频信息
     handleDragLine(status) {
       this.showVideoInfo = !status;
@@ -71,10 +65,10 @@ export default {
   justify-content: space-between;
   box-sizing: border-box;
   padding: 8px 16px;
-  position: absolute;
-  top: 0;
-  left: 0;
-  width: 100%;
+  //position: absolute;
+  //top: 0;
+  //left: 0;
+  //width: 100%;
   //z-index: 999;
 }
 
@@ -95,16 +89,13 @@ export default {
   bottom: 0;
 }
 
-.video-container {
-  flex: 1;
-  display: flex;
-  align-items: center;
-  justify-content: center;
-  position: relative;
-}
-
 .video-container1 {
-  margin-top: 300px;
+  //margin-top: 250px;
+  //position: fixed;
+  //top: calc(50% - 50vw);
+  //left: calc(50% - 50vh);
+  //width: 100vh;
+  //height: 100vw;
+  //transition: transform 0.3s ease-in-out;
 }
-
 </style>

+ 156 - 2
yarn.lock

@@ -846,6 +846,13 @@
   dependencies:
     regenerator-runtime "^0.14.0"
 
+"@babel/runtime@^7.17.2":
+  version "7.26.0"
+  resolved "https://npm-registry.polyv.net/@babel%2fruntime/-/runtime-7.26.0.tgz#8600c2f595f277c60815256418b85356a65173c1"
+  integrity sha512-FDSOghenHTiToteC/QRlv2q3DhPZ/oOXTBoirfWNx1Cx3TMVcGWQtMMmQcSvb/JjpNeGzx8Pq/b4fKEJuWm1sw==
+  dependencies:
+    regenerator-runtime "^0.14.0"
+
 "@babel/template@^7.25.0", "@babel/template@^7.25.7":
   version "7.25.7"
   resolved "https://registry.npmmirror.com/@babel/template/-/template-7.25.7.tgz#27f69ce382855d915b14ab0fe5fb4cbf88fa0769"
@@ -1003,6 +1010,89 @@
     "@nodelib/fs.scandir" "2.1.5"
     fastq "^1.6.0"
 
+"@parcel/watcher-android-arm64@2.4.1":
+  version "2.4.1"
+  resolved "https://npm-registry.polyv.net/@parcel%2fwatcher-android-arm64/-/watcher-android-arm64-2.4.1.tgz#c2c19a3c442313ff007d2d7a9c2c1dd3e1c9ca84"
+  integrity sha512-LOi/WTbbh3aTn2RYddrO8pnapixAziFl6SMxHM69r3tvdSm94JtCenaKgk1GRg5FJ5wpMCpHeW+7yqPlvZv7kg==
+
+"@parcel/watcher-darwin-arm64@2.4.1":
+  version "2.4.1"
+  resolved "https://npm-registry.polyv.net/@parcel%2fwatcher-darwin-arm64/-/watcher-darwin-arm64-2.4.1.tgz#c817c7a3b4f3a79c1535bfe54a1c2818d9ffdc34"
+  integrity sha512-ln41eihm5YXIY043vBrrHfn94SIBlqOWmoROhsMVTSXGh0QahKGy77tfEywQ7v3NywyxBBkGIfrWRHm0hsKtzA==
+
+"@parcel/watcher-darwin-x64@2.4.1":
+  version "2.4.1"
+  resolved "https://npm-registry.polyv.net/@parcel%2fwatcher-darwin-x64/-/watcher-darwin-x64-2.4.1.tgz#1a3f69d9323eae4f1c61a5f480a59c478d2cb020"
+  integrity sha512-yrw81BRLjjtHyDu7J61oPuSoeYWR3lDElcPGJyOvIXmor6DEo7/G2u1o7I38cwlcoBHQFULqF6nesIX3tsEXMg==
+
+"@parcel/watcher-freebsd-x64@2.4.1":
+  version "2.4.1"
+  resolved "https://npm-registry.polyv.net/@parcel%2fwatcher-freebsd-x64/-/watcher-freebsd-x64-2.4.1.tgz#0d67fef1609f90ba6a8a662bc76a55fc93706fc8"
+  integrity sha512-TJa3Pex/gX3CWIx/Co8k+ykNdDCLx+TuZj3f3h7eOjgpdKM+Mnix37RYsYU4LHhiYJz3DK5nFCCra81p6g050w==
+
+"@parcel/watcher-linux-arm-glibc@2.4.1":
+  version "2.4.1"
+  resolved "https://npm-registry.polyv.net/@parcel%2fwatcher-linux-arm-glibc/-/watcher-linux-arm-glibc-2.4.1.tgz#ce5b340da5829b8e546bd00f752ae5292e1c702d"
+  integrity sha512-4rVYDlsMEYfa537BRXxJ5UF4ddNwnr2/1O4MHM5PjI9cvV2qymvhwZSFgXqbS8YoTk5i/JR0L0JDs69BUn45YA==
+
+"@parcel/watcher-linux-arm64-glibc@2.4.1":
+  version "2.4.1"
+  resolved "https://npm-registry.polyv.net/@parcel%2fwatcher-linux-arm64-glibc/-/watcher-linux-arm64-glibc-2.4.1.tgz#6d7c00dde6d40608f9554e73998db11b2b1ff7c7"
+  integrity sha512-BJ7mH985OADVLpbrzCLgrJ3TOpiZggE9FMblfO65PlOCdG++xJpKUJ0Aol74ZUIYfb8WsRlUdgrZxKkz3zXWYA==
+
+"@parcel/watcher-linux-arm64-musl@2.4.1":
+  version "2.4.1"
+  resolved "https://npm-registry.polyv.net/@parcel%2fwatcher-linux-arm64-musl/-/watcher-linux-arm64-musl-2.4.1.tgz#bd39bc71015f08a4a31a47cd89c236b9d6a7f635"
+  integrity sha512-p4Xb7JGq3MLgAfYhslU2SjoV9G0kI0Xry0kuxeG/41UfpjHGOhv7UoUDAz/jb1u2elbhazy4rRBL8PegPJFBhA==
+
+"@parcel/watcher-linux-x64-glibc@2.4.1":
+  version "2.4.1"
+  resolved "https://npm-registry.polyv.net/@parcel%2fwatcher-linux-x64-glibc/-/watcher-linux-x64-glibc-2.4.1.tgz#0ce29966b082fb6cdd3de44f2f74057eef2c9e39"
+  integrity sha512-s9O3fByZ/2pyYDPoLM6zt92yu6P4E39a03zvO0qCHOTjxmt3GHRMLuRZEWhWLASTMSrrnVNWdVI/+pUElJBBBg==
+
+"@parcel/watcher-linux-x64-musl@2.4.1":
+  version "2.4.1"
+  resolved "https://npm-registry.polyv.net/@parcel%2fwatcher-linux-x64-musl/-/watcher-linux-x64-musl-2.4.1.tgz#d2ebbf60e407170bb647cd6e447f4f2bab19ad16"
+  integrity sha512-L2nZTYR1myLNST0O632g0Dx9LyMNHrn6TOt76sYxWLdff3cB22/GZX2UPtJnaqQPdCRoszoY5rcOj4oMTtp5fQ==
+
+"@parcel/watcher-win32-arm64@2.4.1":
+  version "2.4.1"
+  resolved "https://npm-registry.polyv.net/@parcel%2fwatcher-win32-arm64/-/watcher-win32-arm64-2.4.1.tgz#eb4deef37e80f0b5e2f215dd6d7a6d40a85f8adc"
+  integrity sha512-Uq2BPp5GWhrq/lcuItCHoqxjULU1QYEcyjSO5jqqOK8RNFDBQnenMMx4gAl3v8GiWa59E9+uDM7yZ6LxwUIfRg==
+
+"@parcel/watcher-win32-ia32@2.4.1":
+  version "2.4.1"
+  resolved "https://npm-registry.polyv.net/@parcel%2fwatcher-win32-ia32/-/watcher-win32-ia32-2.4.1.tgz#94fbd4b497be39fd5c8c71ba05436927842c9df7"
+  integrity sha512-maNRit5QQV2kgHFSYwftmPBxiuK5u4DXjbXx7q6eKjq5dsLXZ4FJiVvlcw35QXzk0KrUecJmuVFbj4uV9oYrcw==
+
+"@parcel/watcher-win32-x64@2.4.1":
+  version "2.4.1"
+  resolved "https://npm-registry.polyv.net/@parcel%2fwatcher-win32-x64/-/watcher-win32-x64-2.4.1.tgz#4bf920912f67cae5f2d264f58df81abfea68dadf"
+  integrity sha512-+DvS92F9ezicfswqrvIRM2njcYJbd5mb9CUgtrHCHmvn7pPPa+nMDRu1o1bYYz/l5IB2NVGNJWiH7h1E58IF2A==
+
+"@parcel/watcher@^2.4.1":
+  version "2.4.1"
+  resolved "https://npm-registry.polyv.net/@parcel%2fwatcher/-/watcher-2.4.1.tgz#a50275151a1bb110879c6123589dba90c19f1bf8"
+  integrity sha512-HNjmfLQEVRZmHRET336f20H/8kOozUGwk7yajvsonjNxbj2wBTK1WsQuHkD5yYh9RxFGL2EyDHryOihOwUoKDA==
+  dependencies:
+    detect-libc "^1.0.3"
+    is-glob "^4.0.3"
+    micromatch "^4.0.5"
+    node-addon-api "^7.0.0"
+  optionalDependencies:
+    "@parcel/watcher-android-arm64" "2.4.1"
+    "@parcel/watcher-darwin-arm64" "2.4.1"
+    "@parcel/watcher-darwin-x64" "2.4.1"
+    "@parcel/watcher-freebsd-x64" "2.4.1"
+    "@parcel/watcher-linux-arm-glibc" "2.4.1"
+    "@parcel/watcher-linux-arm64-glibc" "2.4.1"
+    "@parcel/watcher-linux-arm64-musl" "2.4.1"
+    "@parcel/watcher-linux-x64-glibc" "2.4.1"
+    "@parcel/watcher-linux-x64-musl" "2.4.1"
+    "@parcel/watcher-win32-arm64" "2.4.1"
+    "@parcel/watcher-win32-ia32" "2.4.1"
+    "@parcel/watcher-win32-x64" "2.4.1"
+
 "@polka/url@^1.0.0-next.24":
   version "1.0.0-next.28"
   resolved "https://registry.npmmirror.com/@polka/url/-/url-1.0.0-next.28.tgz#d45e01c4a56f143ee69c54dd6b12eade9e270a73"
@@ -2173,6 +2263,13 @@ chokidar@^3.5.3:
   optionalDependencies:
     fsevents "~2.3.2"
 
+chokidar@^4.0.0:
+  version "4.0.1"
+  resolved "https://npm-registry.polyv.net/chokidar/-/chokidar-4.0.1.tgz#4a6dff66798fb0f72a94f616abbd7e1a19f31d41"
+  integrity sha512-n8enUVCED/KVRQlab1hr3MVpcVMvxtZjmEa956u+4YijlmQED223XMSYj2tLuKvr4jcCTzNNMpQDUer72MMmzA==
+  dependencies:
+    readdirp "^4.0.1"
+
 chrome-trace-event@^1.0.2:
   version "1.0.4"
   resolved "https://registry.npmmirror.com/chrome-trace-event/-/chrome-trace-event-1.0.4.tgz#05bffd7ff928465093314708c93bdfa9bd1f0f5b"
@@ -2371,6 +2468,11 @@ cookie@0.7.1:
   resolved "https://registry.npmmirror.com/cookie/-/cookie-0.7.1.tgz#2f73c42142d5d5cf71310a74fc4ae61670e5dbc9"
   integrity sha512-6DnInpx7SJ2AK3+CTUE/ZM0vWTUboZCegxhC2xiIydHR9jNuTAASBrfEpHhiGOZw/nX51bHt6YQl8jsGo4y/0w==
 
+copy-text-to-clipboard@^3.0.1:
+  version "3.2.0"
+  resolved "https://npm-registry.polyv.net/copy-text-to-clipboard/-/copy-text-to-clipboard-3.2.0.tgz#0202b2d9bdae30a49a53f898626dcc3b49ad960b"
+  integrity sha512-RnJFp1XR/LOBDckxTib5Qjr/PMfkatD0MUCQgdpqS8MdKiNUzBjAQBEN6oUy+jW7LI93BBG3DtMB2KOOKpGs2Q==
+
 copy-webpack-plugin@^9.0.1:
   version "9.1.0"
   resolved "https://registry.npmmirror.com/copy-webpack-plugin/-/copy-webpack-plugin-9.1.0.tgz#2d2c460c4c4695ec0a58afb2801a1205256c4e6b"
@@ -2390,7 +2492,7 @@ core-js-compat@^3.38.0, core-js-compat@^3.38.1, core-js-compat@^3.8.3:
   dependencies:
     browserslist "^4.23.3"
 
-core-js@^3.8.3:
+core-js@^3.11.0, core-js@^3.8.3:
   version "3.38.1"
   resolved "https://registry.npmmirror.com/core-js/-/core-js-3.38.1.tgz#aa375b79a286a670388a1a363363d53677c0383e"
   integrity sha512-OP35aUorbU3Zvlx7pjsFdu1rGNnD4pgw/CWoYzRY3t2EzoVT7shKHY1dlAy3f41cGIO7ZDPQimhGFTlEYkG/Hw==
@@ -2678,6 +2780,11 @@ destroy@1.2.0:
   resolved "https://registry.npmmirror.com/destroy/-/destroy-1.2.0.tgz#4803735509ad8be552934c67df614f94e66fa015"
   integrity sha512-2sJGJTaXIIaR1w4iJSNoN0hnMY7Gpc/n8D4qSCJw8QqFWXf7cuAgnEHxBpweaVcPevC2l3KpjYCx3NypQQgaJg==
 
+detect-libc@^1.0.3:
+  version "1.0.3"
+  resolved "https://npm-registry.polyv.net/detect-libc/-/detect-libc-1.0.3.tgz#fa137c4bd698edf55cd5cd02ac559f91a4c4ba9b"
+  integrity sha1-+hN8S9aY7fVc1c0CrFWfkaTEups=
+
 detect-node@^2.0.4:
   version "2.1.0"
   resolved "https://registry.npmmirror.com/detect-node/-/detect-node-2.1.0.tgz#c9c70775a49c3d03bc2c06d9a73be550f978f8b1"
@@ -3650,6 +3757,11 @@ ignore@^5.2.0:
   resolved "https://registry.npmmirror.com/ignore/-/ignore-5.3.2.tgz#3cd40e729f3643fd87cb04e50bf0eb722bc596f5"
   integrity sha512-hsBTNUqQTDwkWtcdYI2i06Y/nUBEsNEDJKjWdigLvegy8kDuJAS8uRlpkkcQpyEXL0Z/pjDy5HBmMjRCJ2gq+g==
 
+immutable@^4.0.0:
+  version "4.3.7"
+  resolved "https://npm-registry.polyv.net/immutable/-/immutable-4.3.7.tgz#c70145fc90d89fb02021e65c84eb0226e4e5a381"
+  integrity sha512-1hqclzwYwjRDFLjcFxOM5AYkkG0rpFPpr1RLPMEuGczoS7YA8gLhy8SWXYRAA/XwfEHpfo3cw5JGioS32fnMRw==
+
 import-fresh@^3.0.0, import-fresh@^3.2.1, import-fresh@^3.3.0:
   version "3.3.0"
   resolved "https://registry.npmmirror.com/import-fresh/-/import-fresh-3.3.0.tgz#37162c25fcb9ebaa2e6e53d5b4d88ce17d9e0c2b"
@@ -4271,6 +4383,11 @@ multicast-dns@^7.2.5:
     dns-packet "^5.2.2"
     thunky "^1.0.2"
 
+mutation-observer@^1.0.3:
+  version "1.0.3"
+  resolved "https://npm-registry.polyv.net/mutation-observer/-/mutation-observer-1.0.3.tgz#42e9222b101bca82e5ba9d5a7acf4a14c0f263d0"
+  integrity sha512-M/O/4rF2h776hV7qGMZUH3utZLO/jK7p8rnNgGkjKUw8zCGjRQPxB8z6+5l8+VjRUQ3dNYu4vjqXYLr+U8ZVNA==
+
 mz@^2.4.0:
   version "2.7.0"
   resolved "https://registry.npmmirror.com/mz/-/mz-2.7.0.tgz#95008057a56cafadc2bc63dde7f9ff6955948e32"
@@ -4313,6 +4430,11 @@ no-case@^3.0.4:
     lower-case "^2.0.2"
     tslib "^2.0.3"
 
+node-addon-api@^7.0.0:
+  version "7.1.1"
+  resolved "https://npm-registry.polyv.net/node-addon-api/-/node-addon-api-7.1.1.tgz#1aba6693b0f255258a049d621329329322aad558"
+  integrity sha512-5m3bsyrjFWE1xf7nz7YXdN4udnVtXK6/Yfgn5qnahL6bCkf2yKt4k3nuTKAtT4r3IG8JNR2ncsIMdZuAzJjHQQ==
+
 node-fetch@^2.6.7:
   version "2.7.0"
   resolved "https://registry.npmmirror.com/node-fetch/-/node-fetch-2.7.0.tgz#d0f0fa6e3e2dc1d27efcd8ad99d550bda94d187d"
@@ -5062,6 +5184,11 @@ readable-stream@^3.0.6, readable-stream@^3.4.0:
     string_decoder "^1.1.1"
     util-deprecate "^1.0.1"
 
+readdirp@^4.0.1:
+  version "4.0.2"
+  resolved "https://npm-registry.polyv.net/readdirp/-/readdirp-4.0.2.tgz#388fccb8b75665da3abffe2d8f8ed59fe74c230a"
+  integrity sha512-yDMz9g+VaZkqBYS/ozoBJwaBhTbZo3UNYQHNRw1D3UFQB8oHB4uS/tAODO+ZLjGWmUbKnIlOWO+aaIiAxrUWHA==
+
 readdirp@~3.6.0:
   version "3.6.0"
   resolved "https://registry.npmmirror.com/readdirp/-/readdirp-3.6.0.tgz#74a370bd857116e245b29cc97340cd431a02a6c7"
@@ -5222,6 +5349,23 @@ safe-buffer@5.2.1, safe-buffer@>=5.1.0, safe-buffer@^5.1.0, safe-buffer@~5.2.0:
   resolved "https://registry.npmmirror.com/safer-buffer/-/safer-buffer-2.1.2.tgz#44fa161b0187b9549dd84bb91802f9bd8385cd6a"
   integrity sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==
 
+sass-loader@^16.0.2:
+  version "16.0.2"
+  resolved "https://npm-registry.polyv.net/sass-loader/-/sass-loader-16.0.2.tgz#e581bc13d7cb5090e27f155c6aa2855c08cafe86"
+  integrity sha512-Ll6iXZ1EYwYT19SqW4mSBb76vSSi8JgzElmzIerhEGgzB5hRjDQIWsPmuk1UrAXkR16KJHqVY0eH+5/uw9Tmfw==
+  dependencies:
+    neo-async "^2.6.2"
+
+sass@^1.80.4:
+  version "1.80.4"
+  resolved "https://npm-registry.polyv.net/sass/-/sass-1.80.4.tgz#bc0418fd796cad2f1a1309d8b4d7fe44b7027de0"
+  integrity sha512-rhMQ2tSF5CsuuspvC94nPM9rToiAFw2h3JTrLlgmNw1MH79v8Cr3DH6KF6o6r+8oofY3iYVPUf66KzC8yuVN1w==
+  dependencies:
+    "@parcel/watcher" "^2.4.1"
+    chokidar "^4.0.0"
+    immutable "^4.0.0"
+    source-map-js ">=0.6.2 <2.0.0"
+
 schema-utils@^2.6.5:
   version "2.7.1"
   resolved "https://registry.npmmirror.com/schema-utils/-/schema-utils-2.7.1.tgz#1ca4f32d1b24c590c203b8e7a50bf0ea4cd394d7"
@@ -5432,7 +5576,7 @@ sockjs@^0.3.24:
     uuid "^8.3.2"
     websocket-driver "^0.7.4"
 
-source-map-js@^1.2.0, source-map-js@^1.2.1:
+"source-map-js@>=0.6.2 <2.0.0", source-map-js@^1.2.0, source-map-js@^1.2.1:
   version "1.2.1"
   resolved "https://registry.npmmirror.com/source-map-js/-/source-map-js-1.2.1.tgz#1ce5650fddd87abc099eda37dcff024c2667ae46"
   integrity sha512-UXWMKhLOwVKb728IUtQPXxfYU+usdybtUrK/8uGE8CQMvrhOpwvzDBwj0QhSL7MQc7vIsISBG8VQ8+IDQxpfQA==
@@ -5894,6 +6038,16 @@ vary@~1.1.2:
   resolved "https://registry.npmmirror.com/vary/-/vary-1.1.2.tgz#2299f02c6ded30d4a5961b0b9f74524a18f634fc"
   integrity sha512-BNGbWLfd0eUPabhkXUVm0j8uuvREyTh5ovRa/dyow/BqAbZJyC+5fU+IzQOzmAKzYqYRAISoRhdQr3eIZ/PXqg==
 
+vconsole@^3.15.1:
+  version "3.15.1"
+  resolved "https://npm-registry.polyv.net/vconsole/-/vconsole-3.15.1.tgz#569a8ab15f353259527bbcf004f02946b4482cff"
+  integrity sha512-KH8XLdrq9T5YHJO/ixrjivHfmF2PC2CdVoK6RWZB4yftMykYIaXY1mxZYAic70vADM54kpMQF+dYmvl5NRNy1g==
+  dependencies:
+    "@babel/runtime" "^7.17.2"
+    copy-text-to-clipboard "^3.0.1"
+    core-js "^3.11.0"
+    mutation-observer "^1.0.3"
+
 vue-eslint-parser@^8.0.1:
   version "8.3.0"
   resolved "https://registry.npmmirror.com/vue-eslint-parser/-/vue-eslint-parser-8.3.0.tgz#5d31129a1b3dd89c0069ca0a1c88f970c360bd0d"