Browse Source

完成点播静态

wws 2 năm trước cách đây
mục cha
commit
037b6a9b16
44 tập tin đã thay đổi với 2058 bổ sung và 133 xóa
  1. 2 0
      .browserslistrc
  2. 9 0
      package.json
  3. 13 0
      postcss.config.js
  4. 1 1
      public/index.html
  5. 1 23
      src/App.vue
  6. BIN
      src/assets/arc.png
  7. BIN
      src/assets/arrow.png
  8. BIN
      src/assets/checked.png
  9. BIN
      src/assets/fenestrule.png
  10. BIN
      src/assets/fenestrule_set.png
  11. BIN
      src/assets/full.png
  12. BIN
      src/assets/like.png
  13. BIN
      src/assets/logo.png
  14. BIN
      src/assets/more.png
  15. BIN
      src/assets/pause.png
  16. BIN
      src/assets/pengyouquan.png
  17. BIN
      src/assets/play.png
  18. BIN
      src/assets/quality_set.png
  19. BIN
      src/assets/share.png
  20. BIN
      src/assets/speed_set.png
  21. BIN
      src/assets/undulate.png
  22. BIN
      src/assets/up.png
  23. BIN
      src/assets/wechat.png
  24. 0 60
      src/components/HelloWorld.vue
  25. 191 0
      src/components/full-control/FullControl.vue
  26. 270 0
      src/components/full-progress/FullProgress.vue
  27. 65 0
      src/components/full-share/FullShare.vue
  28. 59 0
      src/components/popup/ModalPopup.vue
  29. 256 0
      src/components/progress/ProgressLine.vue
  30. 119 0
      src/components/quality-popup/QualityPopup.vue
  31. 130 0
      src/components/set-popup/VideoSetPopup.vue
  32. 111 0
      src/components/speed-popup/SpeedPopup.vue
  33. 198 0
      src/components/video-container/PolyvPlayer.vue
  34. 73 0
      src/components/video-container/VideoContainer.vue
  35. 106 0
      src/components/video-desc/VideoDesc.vue
  36. 164 0
      src/components/video-info/VideoInfo.vue
  37. 7 0
      src/main.js
  38. 1 11
      src/router/index.js
  39. 0 5
      src/views/AboutView.vue
  40. 0 18
      src/views/HomeView.vue
  41. 22 0
      src/views/test/Test.vue
  42. 110 0
      src/views/video/VideoItem.vue
  43. 10 1
      vue.config.js
  44. 140 14
      yarn.lock

+ 2 - 0
.browserslistrc

@@ -1,3 +1,5 @@
 > 1%
 last 2 versions
 not dead
+Android >= 4.0
+iOS >= 7

+ 9 - 0
package.json

@@ -8,7 +8,14 @@
     "lint": "vue-cli-service lint"
   },
   "dependencies": {
+    "@polyv/live-watch-sdk": "^1.9.2",
+    "babel-plugin-import": "^1.13.8",
     "core-js": "^3.8.3",
+    "lib-flexible": "^0.3.2",
+    "postcss-px-to-viewport": "^1.1.1",
+    "postcss-pxtorem": "^6.1.0",
+    "vant": "^2.13.2",
+    "vant-green": "^1.0.44",
     "vue": "^2.6.14",
     "vue-router": "^3.5.1",
     "vuex": "^3.6.2"
@@ -21,8 +28,10 @@
     "@vue/cli-plugin-router": "~5.0.0",
     "@vue/cli-plugin-vuex": "~5.0.0",
     "@vue/cli-service": "~5.0.0",
+    "css-loader": "^7.1.2",
     "eslint": "^7.32.0",
     "eslint-plugin-vue": "^8.0.3",
+    "postcss-loader": "^8.1.1",
     "vue-template-compiler": "^2.6.14"
   }
 }

+ 13 - 0
postcss.config.js

@@ -0,0 +1,13 @@
+module.exports = {
+    plugins: {
+        'postcss-px-to-viewport': {
+            viewportWidth: 375,
+        },
+        'postcss-pxtorem': {
+            rootValue({ file }) {
+                return file.indexOf('vant') !== -1 ? 37.5 : 75;
+            },
+            propList: ['*'],
+        },
+    },
+};

+ 1 - 1
public/index.html

@@ -3,7 +3,7 @@
   <head>
     <meta charset="utf-8">
     <meta http-equiv="X-UA-Compatible" content="IE=edge">
-    <meta name="viewport" content="width=device-width,initial-scale=1.0">
+    <meta name="viewport" content="width=device-width,initial-scale=1.0, viewport-fit=cover">
     <link rel="icon" href="<%= BASE_URL %>favicon.ico">
     <title><%= htmlWebpackPlugin.options.title %></title>
   </head>

+ 1 - 23
src/App.vue

@@ -1,32 +1,10 @@
 <template>
   <div id="app">
-    <nav>
-      <router-link to="/">Home</router-link> |
-      <router-link to="/about">About</router-link>
-    </nav>
-    <router-view/>
+    <router-view />
   </div>
 </template>
 
 <style>
-#app {
-  font-family: Avenir, Helvetica, Arial, sans-serif;
-  -webkit-font-smoothing: antialiased;
-  -moz-osx-font-smoothing: grayscale;
-  text-align: center;
-  color: #2c3e50;
-}
 
-nav {
-  padding: 30px;
-}
 
-nav a {
-  font-weight: bold;
-  color: #2c3e50;
-}
-
-nav a.router-link-exact-active {
-  color: #42b983;
-}
 </style>

BIN
src/assets/arc.png


BIN
src/assets/arrow.png


BIN
src/assets/checked.png


BIN
src/assets/fenestrule.png


BIN
src/assets/fenestrule_set.png


BIN
src/assets/full.png


BIN
src/assets/like.png


BIN
src/assets/logo.png


BIN
src/assets/more.png


BIN
src/assets/pause.png


BIN
src/assets/pengyouquan.png


BIN
src/assets/play.png


BIN
src/assets/quality_set.png


BIN
src/assets/share.png


BIN
src/assets/speed_set.png


BIN
src/assets/undulate.png


BIN
src/assets/up.png


BIN
src/assets/wechat.png


+ 0 - 60
src/components/HelloWorld.vue

@@ -1,60 +0,0 @@
-<template>
-  <div class="hello">
-    <h1>{{ msg }}</h1>
-    <p>
-      For a guide and recipes on how to configure / customize this project,<br>
-      check out the
-      <a href="https://cli.vuejs.org" target="_blank" rel="noopener">vue-cli documentation</a>.
-    </p>
-    <h3>Installed CLI Plugins</h3>
-    <ul>
-      <li><a href="https://github.com/vuejs/vue-cli/tree/dev/packages/%40vue/cli-plugin-babel" target="_blank" rel="noopener">babel</a></li>
-      <li><a href="https://github.com/vuejs/vue-cli/tree/dev/packages/%40vue/cli-plugin-router" target="_blank" rel="noopener">router</a></li>
-      <li><a href="https://github.com/vuejs/vue-cli/tree/dev/packages/%40vue/cli-plugin-vuex" target="_blank" rel="noopener">vuex</a></li>
-      <li><a href="https://github.com/vuejs/vue-cli/tree/dev/packages/%40vue/cli-plugin-eslint" target="_blank" rel="noopener">eslint</a></li>
-    </ul>
-    <h3>Essential Links</h3>
-    <ul>
-      <li><a href="https://vuejs.org" target="_blank" rel="noopener">Core Docs</a></li>
-      <li><a href="https://forum.vuejs.org" target="_blank" rel="noopener">Forum</a></li>
-      <li><a href="https://chat.vuejs.org" target="_blank" rel="noopener">Community Chat</a></li>
-      <li><a href="https://twitter.com/vuejs" target="_blank" rel="noopener">Twitter</a></li>
-      <li><a href="https://news.vuejs.org" target="_blank" rel="noopener">News</a></li>
-    </ul>
-    <h3>Ecosystem</h3>
-    <ul>
-      <li><a href="https://router.vuejs.org" target="_blank" rel="noopener">vue-router</a></li>
-      <li><a href="https://vuex.vuejs.org" target="_blank" rel="noopener">vuex</a></li>
-      <li><a href="https://github.com/vuejs/vue-devtools#vue-devtools" target="_blank" rel="noopener">vue-devtools</a></li>
-      <li><a href="https://vue-loader.vuejs.org" target="_blank" rel="noopener">vue-loader</a></li>
-      <li><a href="https://github.com/vuejs/awesome-vue" target="_blank" rel="noopener">awesome-vue</a></li>
-    </ul>
-  </div>
-</template>
-
-<script>
-export default {
-  name: 'HelloWorld',
-  props: {
-    msg: String
-  }
-}
-</script>
-
-<!-- Add "scoped" attribute to limit CSS to this component only -->
-<style scoped>
-h3 {
-  margin: 40px 0 0;
-}
-ul {
-  list-style-type: none;
-  padding: 0;
-}
-li {
-  display: inline-block;
-  margin: 0 10px;
-}
-a {
-  color: #42b983;
-}
-</style>

+ 191 - 0
src/components/full-control/FullControl.vue

@@ -0,0 +1,191 @@
+<script>
+import FullProgress from "@/components/full-progress/FullProgress.vue";
+import FullShare from "@/components/full-share/FullShare.vue";
+
+export default {
+  name: "FullControl",
+  components: {FullShare, FullProgress},
+  model: {
+    event: "change",
+    prop: "visible"
+  },
+  props: {
+    visible: {
+      type: Boolean,
+      default: false
+    }
+  },
+  data() {
+    return {
+    }
+  },
+  methods: {
+    // 退出全屏
+    handleExitFullScreen() {
+
+    }
+  }
+}
+</script>
+
+<template>
+  <div class="full-control" :class="{'show': visible}">
+    <div>
+      <div class="header">
+        <div class="title-row">
+          <van-icon name="arrow-left" color="#ffffff" :size="22" @click.stop="$emit('exit')" />
+          <div class="title">无人出租车上路,拉动的不仅仅是人拉动的不l</div>
+        </div>
+
+        <div class="tool">
+          <img src="@/assets/like.png" class="tool-icon" />
+          <img src="@/assets/share.png" class="tool-icon" />
+          <img src="@/assets/fenestrule.png" class="tool-icon" />
+        </div>
+      </div>
+
+      <div class="user-info-box">
+        <div class="user-info-row">
+          <img class="user-avatar" src="https://picsum.photos/200" />
+          <span class="user-name">刘骜</span>
+          <div class="follow-status">关注</div>
+        </div>
+
+        <div class="live-status">
+          <img src="@/assets/undulate.png" class="live-icon" />
+          <span>直播中</span>
+        </div>
+      </div>
+    </div>
+
+    <full-progress />
+
+    <full-share />
+  </div>
+</template>
+
+<style scoped>
+  .full-control {
+    position: absolute;
+    top: 0;
+    left: 0;
+    width: 100vh;
+    height: 100vw;
+    //transform: rotate(90deg) translate(27vh, 58vw);
+    //transition: opacity 0.3s ease-in-out;
+    display: none;
+    z-index: 999;
+  }
+
+  .show {
+    display: flex;
+    flex-direction: column;
+    justify-content: space-between;
+  }
+
+  .header {
+    display: flex;
+    align-items: center;
+    justify-content: space-between;
+    box-sizing: border-box;
+    padding: 10px 60px;
+  }
+
+  .title-row {
+    display: flex;
+    align-items: center;
+    column-gap: 16px;
+  }
+
+  .title {
+    font-weight: 600;
+    font-size: 18px;
+    color: #FFFFFF;
+    position: relative;
+  }
+
+  .title::before {
+    content: "";
+    width: 100%;
+    height: 100%;
+    background: linear-gradient(to right, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.5));
+    position: absolute;
+    left: 0;
+    top: 0;
+  }
+
+  .tool {
+    display: flex;
+    align-items: center;
+    column-gap: 30px;
+  }
+
+  .tool-icon {
+    width: 26px;
+    height: 26px;
+  }
+
+  .user-info-box {
+    box-sizing: border-box;
+    padding-left: 60px;
+  }
+
+  .user-info-row {
+    width: fit-content;
+    height: 32px;
+    background: rgba(0, 0, 0, 0.8);
+    border-radius: 16px;
+    box-sizing: border-box;
+    padding: 0 4px;
+    display: flex;
+    align-items: center;
+    column-gap: 8px;
+    margin-bottom: 8px;
+  }
+
+  .user-avatar {
+    width: 24px;
+    height: 24px;
+    border-radius: 50%;
+  }
+
+  .user-name {
+    font-weight: 500;
+    font-size: 15px;
+    color: #FFFFFF;
+  }
+
+  .follow-status {
+    height: 24px;
+    background: #EC2E31;
+    border-radius: 14px;
+    box-sizing: border-box;
+    padding: 0 12px;
+    display: flex;
+    align-items: center;
+    justify-content: center;
+    font-weight: 400;
+    font-size: 13px;
+    color: #FFFFFF;
+  }
+
+  .live-status {
+    width: 50px;
+    height: 18px;
+    background: rgba(0, 0, 0, 0.8);
+    border-radius: 2px;
+    font-weight: 400;
+    font-size: 10px;
+    color: #EC2E31;
+    display: flex;
+    align-items: center;
+    justify-content: center;
+    column-gap: 4px;
+  }
+
+  .live-icon {
+    width: 8px;
+    height: 10px;
+  }
+
+</style>

+ 270 - 0
src/components/full-progress/FullProgress.vue

@@ -0,0 +1,270 @@
+<script>
+export default {
+  name: "FullProgress",
+  data() {
+    return {
+      isDrag: false,
+      // 总时长
+      totalTime: 0,
+      // 当前播放时间
+      currentTime: 0,
+      // 拖拽进度
+      progress: 0,
+      // 拖拽开始位置
+      startX: 0,
+      // 拖拽开始时的进度
+      startProgress: 0,
+      // 定时器
+      timer: null,
+      // 是否在播放
+      isPlay: false,
+    }
+  },
+  mounted() {
+    this.registerEvent();
+  },
+  methods: {
+    // 注册监听事件
+    registerEvent() {
+      // 初始化完成
+      this.$bus.$on("player_init_over", (totalTime) => {
+        this.totalTime = totalTime || 0;
+      })
+
+      // 播放
+      this.$bus.$on('player_play', (currentTime) => {
+        this.currentTime = currentTime;
+        if(currentTime === 0) this.progress = 0;
+        this.startTimer();
+        this.isPlay = true;
+      });
+
+      // 暂停
+      this.$bus.$on('player_pause', () => {
+        this.pauseTimer();
+        this.isPlay = false;
+      });
+
+      // 拖拽结束
+      this.$bus.$on("player_drag_seek", (currentTime) => {
+        this.currentTime = currentTime;
+        // 计算当时的进度
+        this.progress = (currentTime / this.totalTime) * 100;
+      })
+    },
+
+    handlePlayOrPause() {
+      console.log('切换开关')
+      if (this.isPlay) {
+        this.$bus.$emit("c_player_pause");
+      } else {
+        this.$bus.$emit("c_player_play");
+      }
+    },
+
+    startDrag(event) {
+      // 阻止默认行为,防止页面滚动等
+      event.preventDefault();
+
+      if (event.type === 'touchstart') {
+        this.startX = event.touches[0].clientX;
+      } else {
+        this.startX = event.clientX;
+      }
+      this.isDrag = true;
+      this.onDrag && this.onDrag(true);
+      this.pauseTimer(); // 暂停定时器
+
+      this.startProgress = this.progress;
+    },
+    handleTouch(event) {
+      if (!this.isDrag) return;
+      let currentX;
+      if (event.type === 'touchmove') {
+        currentX = event.touches[0].clientX;
+      } else {
+        currentX = event.clientX;
+      }
+      const diffX = currentX - this.startX;
+      const containerWidth = this.$refs.fullProgress.clientWidth;
+      this.progress = Math.min(100, Math.max(0, this.startProgress + (diffX / containerWidth) * 100));
+      this.updateCurrentTime();
+    },
+
+    // 更新当前时间
+    updateCurrentTime() {
+      this.currentTime = (this.totalTime * this.progress) / 100;
+    },
+
+    // 格式化时间
+    formatTime(seconds) {
+      const minutes = Math.floor(seconds / 60);
+      const secs = Math.floor(seconds % 60);
+
+      return [
+        minutes.toString().padStart(2, '0'),
+        secs.toString().padStart(2, '0')
+      ].join(':');
+    },
+    // 拖拽结束
+    handleTouchEnd() {
+      this.onDrag && this.onDrag(false);
+      this.isDrag = false;
+      this.$emit('touchend', this.currentTime);
+      // this.resumeTimer(); // 重新启动定时器
+      this.$bus.$emit('seek_video', this.currentTime);
+    },
+    // 开始定时器
+    startTimer() {
+      if(this.timer) {
+        clearInterval(this.timer);
+        this.timer = null;
+      }
+      this.timer = setInterval(() => {
+        if (this.currentTime < this.totalTime) {
+          this.currentTime++;
+          this.progress = (this.currentTime / this.totalTime) * 100;
+        } else {
+          this.stopTimer();
+        }
+      }, 1000);
+    },
+    // 暂停定时器
+    pauseTimer() {
+      if (this.timer) {
+        clearInterval(this.timer);
+        this.timer = null;
+      }
+    },
+    // 重新开始定时器
+    resumeTimer() {
+      console.log("开始重新定时")
+      if (!this.timer) {
+        this.startTimer();
+      }
+    },
+    // 停止定时器
+    stopTimer() {
+      if (this.timer) {
+        clearInterval(this.timer);
+        this.timer = null;
+      }
+    }
+  },
+  computed: {
+    currentTimeText() {
+      return this.formatTime(this.currentTime);
+    },
+    totalTimeText() {
+      return this.formatTime(this.totalTime);
+    }
+  },
+}
+</script>
+
+<template>
+  <div class="full-progress">
+    <div class="progress-row">
+      <span class="progress-time">{{ currentTimeText }}</span>
+      <div
+          @touch.stop="handleTouch"
+          @touchend.stop="handleTouchEnd"
+          @touchstart.stop="startDrag"
+          ref="fullProgress"
+          :style="{'--progress-width': progress + '%'}"
+          class="progress"></div>
+      <span class="progress-time">{{ totalTimeText }}</span>
+    </div>
+
+    <div class="tool-box">
+      <img v-if="isPlay" src="@/assets/play.png" class="play-icon" @click.stop="handlePlayOrPause" />
+      <img v-else src="@/assets/pause.png" class="play-icon" @click.stop="handlePlayOrPause" />
+
+      <div class="right-tool">
+        <div class="tool-item">
+          <span class="tool-name">倍速</span>
+        </div>
+
+        <div class="tool-item">
+          <span class="tool-name">1280P</span>
+        </div>
+      </div>
+    </div>
+  </div>
+</template>
+
+<style scoped>
+.full-progress {
+  margin: 0 60px 20px;
+}
+
+.progress-row {
+  display: flex;
+  align-items: center;
+  justify-content: space-between;
+}
+
+.progress {
+  flex: 1;
+  height: 2px;
+  background: rgba(255, 255, 255, 0.24);
+  border-radius: 2px;
+  margin: 0 24px;
+  position: relative;
+}
+
+.progress::before {
+  content: "";
+  position: absolute;
+  border-radius: 2px;
+  height: 2px;
+  transition: width 0.01s ease-in-out;
+  width: var(--progress-width);
+  background: #EB3C37;
+}
+
+.progress::after {
+  content: "";
+  width: 8px;
+  height: 8px;
+  background: #FFFFFF;
+  box-shadow: 0px 0px 4px 0px rgba(0,0,0,0.5);
+  border-radius: 4px;
+  position: absolute;
+  transition: left 0.01s ease-in-out;
+  left: var(--progress-width);
+  top: -4px;
+}
+
+.progress-time {
+  font-weight: bold;
+  font-size: 12px;
+  color: #FFFFFF;
+  min-width: 30px;
+}
+
+.tool-box {
+  display: flex;
+  align-items: center;
+  justify-content: space-between;
+  margin-top: 8px;
+}
+
+.play-icon {
+  width: 44px;
+  height: 44px;
+}
+
+.right-tool {
+  display: flex;
+  align-items: center;
+  column-gap: 24px;
+}
+
+.tool-name {
+  font-weight: 600;
+  font-size: 15px;
+  color: #FFFFFF;
+}
+
+</style>

+ 65 - 0
src/components/full-share/FullShare.vue

@@ -0,0 +1,65 @@
+<script>
+export default {
+  name: "FullShare",
+  data() {
+    return {
+      show: false,
+    }
+  }
+}
+</script>
+
+<template>
+  <van-popup v-model="show" :overlay="true" position="bottom">
+
+    <div>
+      <div class="share-title">分享到</div>
+      <div class="share-box">
+        <div class="share-item">
+          <img src="@/assets/wechat.png" class="share-icon" />
+        </div>
+        <div class="share-item">
+          <img src="@/assets/pengyouquan.png" class="share-icon" />
+        </div>
+      </div>
+    </div>
+
+  </van-popup>
+</template>
+
+<style scoped>
+/deep/.van-popup {
+  background: rgba(0, 0, 0, 0.45);
+}
+
+.share-title {
+  //color: #ffffff;
+  margin: 24px 0 16px 60px;
+}
+
+.share-box {
+  display: flex;
+  align-items: center;
+  justify-content: center;
+  column-gap: 60px;
+  box-sizing: border-box;
+  padding-bottom: 30px;
+}
+
+.share-item {
+  width: 56px;
+  height: 56px;
+  background: rgba(51, 51, 51, 0.5);
+  box-shadow: 0px 0px 1px 0px rgba(0,0,0,0.32);
+  border-radius: 8px;
+  display: flex;
+  align-items: center;
+  justify-content: center;
+}
+
+.share-icon {
+  width: 34px;
+  height: 28px;
+}
+
+</style>

+ 59 - 0
src/components/popup/ModalPopup.vue

@@ -0,0 +1,59 @@
+<script>
+export default {
+  name: "ModalPopup",
+  props: {
+    title: {
+      type: String,
+      default: "标题"
+    },
+    showBack: {
+      type: Boolean,
+      default: false,
+    }
+  },
+}
+</script>
+
+<template>
+  <van-popup v-bind="$attrs" v-on="$listeners" position="bottom" round>
+    <div class="c-header">
+      <img src="@/assets/arrow.png" class="back-icon" v-if="showBack" @click="$emit('back')" />
+      <div class="title-row">
+        {{ title }}
+      </div>
+    </div>
+    <slot></slot>
+  </van-popup>
+</template>
+
+<style scoped>
+
+/deep/.van-popup--round {
+  border-radius: 8px !important;
+}
+
+.c-header {
+  display: flex;
+  align-items: center;
+  box-sizing: border-box;
+  padding: 16px 20px;
+  position: relative;
+}
+
+.back-icon {
+  width: 12px;
+  height: 12px;
+  position: absolute;
+}
+
+.title-row {
+  flex: 1;
+  display: flex;
+  align-items: center;
+  justify-content: center;
+  font-weight: 600;
+  font-size: 14px;
+  color: #333333;
+}
+
+</style>

+ 256 - 0
src/components/progress/ProgressLine.vue

@@ -0,0 +1,256 @@
+<script>
+export default {
+  name: "ProgressLine",
+  props: {
+    onDrag: {
+      type: Function,
+      default: () => {}
+    }
+  },
+  data() {
+    return {
+      isDrag: false,
+      // 总时长
+      totalTime: 0,
+      // 当前播放时间
+      currentTime: 0,
+      // 拖拽进度
+      progress: 0,
+      // 拖拽开始位置
+      startX: 0,
+      // 拖拽开始时的进度
+      startProgress: 0,
+      // 定时器
+      timer: null
+    }
+  },
+  mounted() {
+    this.registerEvent();
+  },
+  methods: {
+    // 注册监听事件
+    registerEvent() {
+      // 初始化完成
+      this.$bus.$on("player_init_over", (totalTime) => {
+        this.totalTime = totalTime || 0;
+      })
+
+      // 播放
+      this.$bus.$on('player_play', (currentTime) => {
+        this.currentTime = currentTime;
+        if(currentTime === 0) this.progress = 0;
+        this.startTimer();
+      });
+
+      // 暂停
+      this.$bus.$on('player_pause', this.pauseTimer);
+    },
+
+    startDrag(event) {
+      // 阻止默认行为,防止页面滚动等
+      event.preventDefault();
+
+      if (event.type === 'touchstart') {
+        this.startX = event.touches[0].clientX;
+      } else {
+        this.startX = event.clientX;
+      }
+      this.isDrag = true;
+      this.onDrag && this.onDrag(true);
+      this.pauseTimer(); // 暂停定时器
+
+      this.startProgress = this.progress;
+    },
+    handleTouch(event) {
+      if (!this.isDrag) return;
+      let currentX;
+      if (event.type === 'touchmove') {
+        currentX = event.touches[0].clientX;
+      } else {
+        currentX = event.clientX;
+      }
+      const diffX = currentX - this.startX;
+      const containerWidth = this.$refs.line.clientWidth;
+      this.progress = Math.min(100, Math.max(0, this.startProgress + (diffX / containerWidth) * 100));
+      this.updateCurrentTime();
+    },
+
+    // 更新当前时间
+    updateCurrentTime() {
+      this.currentTime = (this.totalTime * this.progress) / 100;
+    },
+
+    // 格式化时间
+    formatTime(seconds) {
+      const minutes = Math.floor(seconds / 60);
+      const secs = Math.floor(seconds % 60);
+
+      return [
+        minutes.toString().padStart(2, '0'),
+        secs.toString().padStart(2, '0')
+      ].join(':');
+    },
+    // 拖拽结束
+    handleTouchEnd() {
+      this.onDrag && this.onDrag(false);
+      this.isDrag = false;
+      this.$emit('touchend', this.currentTime);
+      // this.resumeTimer(); // 重新启动定时器
+      this.$bus.$emit('seek_video', this.currentTime);
+    },
+    // 开始定时器
+    startTimer() {
+      if(this.timer) {
+        clearInterval(this.timer);
+        this.timer = null;
+      }
+      this.timer = setInterval(() => {
+        if (this.currentTime < this.totalTime) {
+          this.currentTime++;
+          this.progress = (this.currentTime / this.totalTime) * 100;
+        } else {
+          this.stopTimer();
+        }
+      }, 1000);
+    },
+    // 暂停定时器
+    pauseTimer() {
+      if (this.timer) {
+        clearInterval(this.timer);
+        this.timer = null;
+      }
+    },
+    // 重新开始定时器
+    resumeTimer() {
+      console.log("开始重新定时")
+      if (!this.timer) {
+        this.startTimer();
+      }
+    },
+    // 停止定时器
+    stopTimer() {
+      if (this.timer) {
+        clearInterval(this.timer);
+        this.timer = null;
+      }
+    }
+  },
+  computed: {
+    currentTimeText() {
+      return this.formatTime(this.currentTime);
+    },
+    totalTimeText() {
+      return this.formatTime(this.totalTime);
+    }
+  },
+}
+</script>
+
+<template>
+  <div>
+    <template v-if="isDrag">
+      <div class="progress-text-row">
+        <span class="now-time">{{ currentTimeText }}</span>
+        <span class="end-time">/ {{ totalTimeText }}</span>
+      </div>
+      <img src="@/assets/arc.png" class="arc-icon" />
+    </template>
+
+    <div class="progress-container">
+      <div
+          ref="line"
+          class="line"
+          :class="{'drag-line': isDrag}"
+          :style="{'--progress-width': progress + '%'}"
+          @touchmove="handleTouch"
+          @touchstart="startDrag"
+          @touchend="handleTouchEnd"></div>
+      <img src="@/assets/full.png" class="full-icon" @click="$emit('full')" />
+    </div>
+  </div>
+</template>
+
+<style scoped>
+
+.progress-text-row {
+  display: flex;
+  align-items: center;
+  justify-content: center;
+  margin-bottom: 12px;
+}
+
+.now-time,
+.end-time {
+  font-weight: 500;
+  font-size: 14px;
+  color: #FFFFFF;
+}
+
+.end-time {
+  color: rgba(255, 255, 255, 0.5);
+  margin-left: 4px;
+}
+
+.arc-icon {
+  width: 100%;
+  height: 44px;
+}
+
+.progress-container {
+  display: flex;
+  align-items: center;
+  justify-content: space-between;
+  column-gap: 18px;
+  box-sizing: border-box;
+  padding: 0 30px 0 20px;
+  margin: 16px 0;
+  //margin-bottom: 16px;
+}
+
+.line {
+  flex: 1;
+  background: rgba(255, 255, 255, 0.2);
+  height: 4px;
+  border-radius: 6px;
+  position: relative;
+  box-sizing: border-box;
+  //padding: 4px 0;
+  transition: width 0.02s ease-in-out;
+}
+
+.line::before {
+  content: "";
+  //width: 90%;
+  width: var(--progress-width);
+  height: 4px;
+  background: #FFFFFF;
+  position: absolute;
+  left: 0;
+  top: 0;
+  z-index: 1;
+  border-radius: 6px;
+}
+
+
+.drag-line::before{
+  background: #EB3C37;
+}
+
+.drag-line::after {
+  content: "";
+  width: 8px;
+  height: 8px;
+  background: #FFFFFF;
+  box-shadow: 0px 0px 4px 0px rgba(0,0,0,0.5);
+  border-radius: 4px;
+  position: absolute;
+  left: var(--progress-width);
+  top: -2px;
+}
+
+.full-icon {
+  width: 16px;
+  height: 16px;
+}
+
+</style>

+ 119 - 0
src/components/quality-popup/QualityPopup.vue

@@ -0,0 +1,119 @@
+<script>
+import ModalPopup from "@/components/popup/ModalPopup.vue";
+
+export default {
+  name: "QualityPopup",
+  components: {ModalPopup},
+  model: {
+    event: "change",
+    prop: "visible"
+  },
+  props: {
+    visible: {
+      type: Boolean,
+      default: false
+    }
+  },
+  data() {
+    return {
+      showPopup: false,
+      qualityList: [
+        {text: 1080, flag: 3},
+        {text: 720, flag: 2},
+        {text: 480, flag: 1},
+        // {text: 320, flag: 0}
+      ],
+      current: 0
+    }
+  },
+  methods: {
+    handleChangeQuality(item, index) {
+      this.$bus.$emit("switchBitrate", item.flag);
+      this.current = index;
+      this.showPopup = false;
+    }
+  },
+  watch: {
+    visible(val) {
+      this.showPopup = val;
+    },
+    showPopup(val) {
+      this.$emit("change", val)
+    }
+  }
+}
+</script>
+
+<template>
+  <modal-popup title="画质设置" show-back v-model="showPopup" @back="$emit('back')">
+    <div class="cell-list">
+      <div
+          :class="{'checked': current === index}"
+          class="cell-item"
+          v-for="(item, index) in qualityList"
+          :key="index"
+          @click="handleChangeQuality(item, index)">
+        <span class="cell-item-name">{{item.text}}P</span>
+        <img src="@/assets/checked.png" class="checked-icon" v-if="index === current" />
+      </div>
+    </div>
+
+    <div class="cancel-btn" @click="$emit('change', false)">
+      取消
+    </div>
+  </modal-popup>
+</template>
+
+<style scoped>
+
+.cell-list {
+  display: flex;
+  flex-direction: column;
+  align-items: center;
+  column-gap: 16px;
+  box-sizing: border-box;
+  padding:  0 20px;
+  border-top: 1px solid #EFEFEF;
+  border-bottom: 1px solid #EFEFEF;
+}
+
+.cell-item {
+  width: 100%;
+  display: flex;
+  align-items: center;
+  justify-content: space-between;
+  height: 56px;
+  border-bottom: 1px solid #EFEFEF;
+}
+
+.cell-item:last-child {
+  border-bottom: none;
+}
+
+.cell-item-name {
+  font-weight: 500;
+  font-size: 16px;
+  //color: #1F1F1F;
+}
+
+.checked-icon {
+  width: 24px;
+  height: 24px;
+}
+
+.cancel-btn {
+  display: flex;
+  align-items: center;
+  justify-content: center;
+  height: 56px;
+  background: #ffffff;
+  font-weight: 600;
+  font-size: 16px;
+  color: #333333;
+}
+
+.cell-list .checked {
+  color: #EB3C37;
+}
+
+</style>

+ 130 - 0
src/components/set-popup/VideoSetPopup.vue

@@ -0,0 +1,130 @@
+<script>
+import ModalPopup from "@/components/popup/ModalPopup.vue";
+import SpeedPopup from "@/components/speed-popup/SpeedPopup.vue";
+import QualityPopup from "@/components/quality-popup/QualityPopup.vue";
+
+export default {
+  name: "VideoSetPopup",
+  components: {QualityPopup, SpeedPopup, ModalPopup},
+  model: {
+    event: "change",
+    prop: "visible"
+  },
+  props: {
+    visible: {
+      type: Boolean,
+      default: false
+    }
+  },
+  data() {
+    return {
+      showPopup: false,
+      showSpeedPopup: false,
+      showQualityPopup: false,
+    }
+  },
+  methods: {
+    handleShowPopup(key) {
+      this.$emit('change', false)
+      this[key] = true;
+    },
+    handleBack(key) {
+      this[key] = false;
+      this.$emit('change', true)
+    }
+  },
+  watch: {
+    visible(val) {
+      this.showPopup = val;
+    },
+    showPopup(val) {
+      this.$emit("change", val)
+    }
+  }
+}
+</script>
+
+<template>
+  <div>
+    <modal-popup title="设置" :show-back="false" v-model="showPopup">
+      <div class="cell-list">
+        <div class="cell-item" @click="handleShowPopup('showSpeedPopup')">
+          <div class="cell-item-header">
+            <img src="@/assets/speed_set.png" class="cell-item-icon" />
+          </div>
+          <span class="cell-item-title">倍速</span>
+        </div>
+        <div class="cell-item" @click="handleShowPopup('showQualityPopup')">
+          <div class="cell-item-header">
+            <img src="@/assets/quality_set.png" class="cell-item-icon"  />
+          </div>
+          <span class="cell-item-title">画质</span>
+        </div>
+        <div class="cell-item">
+          <div class="cell-item-header">
+            <img src="@/assets/fenestrule_set.png" class="cell-item-icon" style="width: 28px; height: 20px" />
+          </div>
+          <span class="cell-item-title">小窗播放</span>
+        </div>
+      </div>
+
+      <div class="cancel-btn" @click="$emit('change', false)">取消</div>
+    </modal-popup>
+
+    <speed-popup v-model="showSpeedPopup" @back="handleBack('showSpeedPopup')" />
+    <quality-popup v-model="showQualityPopup" @back="handleBack('showQualityPopup')" />
+  </div>
+</template>
+
+<style scoped>
+
+.cell-list {
+  display: flex;
+  align-items: center;
+  column-gap: 16px;
+  box-sizing: border-box;
+  padding:  0 16px 16px;
+  border-bottom: 1px solid #F5F5F5;
+}
+
+.cell-item {
+  display: flex;
+  flex-direction: column;
+  align-items: center;
+  row-gap: 8px;
+}
+
+.cell-item-header {
+  width: 56px;
+  height: 56px;
+  background: #F5F5F5;
+  border-radius: 8px;
+  display: flex;
+  align-items: center;
+  justify-content: center;
+}
+
+.cell-item-icon {
+  width: 48px;
+  height: 26px;
+}
+
+.cell-item-title {
+  font-weight: 400;
+  font-size: 12px;
+  color: #777777;
+}
+
+
+.cancel-btn {
+  display: flex;
+  align-items: center;
+  justify-content: center;
+  height: 56px;
+  background: #ffffff;
+  font-weight: 600;
+  font-size: 16px;
+  color: #333333;
+}
+
+</style>

+ 111 - 0
src/components/speed-popup/SpeedPopup.vue

@@ -0,0 +1,111 @@
+<script>
+import ModalPopup from "@/components/popup/ModalPopup.vue";
+export default {
+  name: "SpeedPopup",
+  components: {ModalPopup},
+  model: {
+    event: "change",
+    prop: "visible"
+  },
+  props: {
+    visible: {
+      type: Boolean,
+      default: false
+    }
+  },
+  data() {
+    return {
+      showPopup: false,
+      speedList: [2.0, 1.5, 1.25, 1.0, 0.75],
+      current: 0
+    }
+  },
+  methods: {
+    handleBack() {
+      this.$emit("back", false);
+    }
+  },
+  watch: {
+    visible(val) {
+      this.showPopup = val;
+    },
+    showPopup(val) {
+      this.$emit("change", val)
+    }
+  }
+}
+</script>
+
+<template>
+  <modal-popup title="倍速设置" show-back @back="handleBack" v-model="showPopup">
+    <div class="cell-list">
+      <div
+          :class="{'checked': current === index}"
+          class="cell-item"
+          v-for="(item, index) in speedList"
+          :key="index"
+          @click="current = index">
+        <span class="cell-item-name">{{item}}X</span>
+        <img src="@/assets/checked.png" class="checked-icon" v-if="index === current" />
+      </div>
+    </div>
+
+    <div class="cancel-btn" @click="$emit('change', false)">
+      取消
+    </div>
+  </modal-popup>
+</template>
+
+<style scoped>
+
+.cell-list {
+  display: flex;
+  flex-direction: column;
+  align-items: center;
+  column-gap: 16px;
+  box-sizing: border-box;
+  padding:  0 20px;
+  border-top: 1px solid #EFEFEF;
+  border-bottom: 1px solid #EFEFEF;
+}
+
+.cell-item {
+  width: 100%;
+  display: flex;
+  align-items: center;
+  justify-content: space-between;
+  height: 56px;
+  border-bottom: 1px solid #EFEFEF;
+}
+
+.cell-item:last-child {
+  border-bottom: none;
+}
+
+.cell-item-name {
+  font-weight: 500;
+  font-size: 16px;
+  //color: #1F1F1F;
+}
+
+.checked-icon {
+  width: 24px;
+  height: 24px;
+}
+
+.cancel-btn {
+  display: flex;
+  align-items: center;
+  justify-content: center;
+  height: 56px;
+  background: #ffffff;
+  font-weight: 600;
+  font-size: 16px;
+  color: #333333;
+}
+
+.cell-list .checked {
+  color: #EB3C37;
+}
+
+</style>

+ 198 - 0
src/components/video-container/PolyvPlayer.vue

@@ -0,0 +1,198 @@
+<template>
+  <div class="test-container" :class="{'full': full}" @click="handleTest">
+    <div id="player"></div>
+    <full-control v-model="showControl" @exit="handleExitFullScreen" />
+  </div>
+</template>
+<script>
+import FullControl from "@/components/full-control/FullControl.vue";
+
+export default {
+  name: "PolyvPlayer",
+  components: {FullControl},
+  model: {
+    event: "change",
+    prop: "visible"
+  },
+  props: {
+    visible: {
+      type: Boolean,
+      default: false
+    }
+  },
+  data() {
+    return {
+      vodPlayerJs: 'https://player.polyv.net/resp/vod-player/latest/player.js',
+      vid:'88083abbf5bcf1356e05d39666be527a_8',
+      full: true,
+      showControl: true,
+      player: null,
+    };
+  },
+  mounted(){
+    this.loadPlayerScript(this.loadPlayer);
+    // setTimeout(() => {
+    //   this.full = true;
+    //   console.log('旋转')
+    //   this.loadPlayer();
+    //   this.exitFullScreen();
+    // }, 3000)
+
+    this.registerEvent();
+  },
+  methods: {
+    // 注册事件
+    registerEvent() {
+      // 切换清晰度
+      this.$bus.$on('switchBitrate', (number) => {
+        this.player.switchBitrate(number);
+        console.log("切换清晰度", number)
+      })
+
+      // 跳转时刻
+      this.$bus.$on("seek_video", this.handleSeekTo);
+
+      // 暂停播放
+      this.$bus.$on("c_player_pause", () => {
+        this.player.j2s_pauseVideo();
+      })
+
+      // 播放
+      this.$bus.$on("c_player_play", () => {
+        this.player.j2s_resumeVideo();
+      })
+    },
+
+    // 退出全屏
+    handleExitFullScreen() {
+      this.full = false;
+      this.showControl = false;
+      // this.loadPlayer();
+    },
+
+    handleTest() {
+      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);
+    },
+
+    loadPlayerScript(callback) {
+      if (!window.polyvPlayer) {
+        const myScript = document.createElement('script');
+        myScript.setAttribute('src', this.vodPlayerJs);
+        myScript.onload = callback;
+        document.body.appendChild(myScript);
+      } else {
+        callback();
+      }
+    },
+
+    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();
+    },
+
+    // 初始化完成监听
+    initPlayer() {
+      this.player.on('s2j_onPlayerInitOver',() => {
+        // 获取视频总时长
+        const totalTime = this.player.j2s_getDuration();
+        this.$bus.$emit("player_init_over", totalTime);
+      });
+
+      //初次播放触发
+      this.player.on("s2j_onPlayStart", () => {
+        this.$bus.$emit("player_play_start");
+      })
+
+      // 开始播放
+      this.player.on("s2j_onVideoPlay", () => {
+        const currentTime = this.player.j2s_getCurrentTime();
+        this.$bus.$emit("player_play", currentTime);
+      })
+
+      // 暂停播放
+      this.player.on("s2j_onVideoPause", () => {
+        this.$bus.$emit("player_pause");
+      })
+
+      // 拖拽监听
+      this.player.on("s2j_onVideoSeek", () => {
+        const currentTime = this.player.j2s_getCurrentTime();
+        this.$bus.$emit("player_drag_seek", currentTime);
+      })
+    },
+
+    // 卸载
+    destroyPlayer() {
+      if (this.player) {
+        this.player.destroy();
+        this.player = null;
+      }
+    }
+  },
+  watch: {
+    visible(val) {
+      this.full = val;
+    },
+    full(val) {
+      this.$emit("change", val);
+    }
+  },
+  destroyed() {
+    this.destroyPlayer();
+  }
+};
+</script>
+
+<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;
+}
+
+/deep/ .plv-player-container {
+  background: transparent;
+  height: 56.25vw;
+}
+
+.full /deep/ .plv-player-container {
+  height: 100vw;
+}
+
+</style>

+ 73 - 0
src/components/video-container/VideoContainer.vue

@@ -0,0 +1,73 @@
+<script>
+import { createWatchCore } from '@polyv/live-watch-sdk';
+export default {
+  name: "VideoContainer",
+  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('videoContainer'),
+        // lowLatency: true, // 使用无延迟播放
+      });
+    }
+  }
+}
+</script>
+
+<template>
+  <div class="video-container" id="videoContainer"></div>
+</template>
+
+<style scoped>
+
+.video-container {
+  width: 100%;
+  height: 56.25vw;
+}
+
+/deep/ .plwrap {
+  background: transparent;
+}
+
+</style>

+ 106 - 0
src/components/video-desc/VideoDesc.vue

@@ -0,0 +1,106 @@
+<script>
+export default {
+  name: "VideoDesc",
+  data() {
+    return {
+      // 是否展开全文
+      isExpand: false
+    }
+  },
+  methods: {
+
+  }
+}
+</script>
+
+<template>
+  <div>
+    <div class="info-title" :class="{'row-1': !isExpand}">
+      无人出租车上路,拉动的不仅仅是人;无人出租车上路,拉动的不仅仅是人无人出租车上路,拉动的不仅仅是人无人出租车上路,拉动的不仅仅是人无人出租车上路,拉动的不仅仅是人
+    </div>
+    <div class="desc-info">
+        <span class="desc-text-content" :class="{'row-2': !isExpand}">
+          当一个没有驾驶员的出租车出现你面前,你敢拉开车门么? 当一个没有驾驶员的出租车出现你面前,你敢拉开车门么? 当一个没有驾驶员的出租车出现你面前,你敢拉开车门么? 当一个没有驾驶员的出租车出现你面前,你敢拉开车门么? 当一个没有驾驶员的出租车出现你面前,你敢拉开车门么?
+        </span>
+      <span class="more" v-if="!isExpand" @click="isExpand = true">展开全文</span>
+    </div>
+
+    <template v-if="isExpand">
+      <div class="up-content">
+        【温馨提示】视频内容版权归东方证券股份有限公司所有,未经书面许可,不得复制、编辑或其他任何形式转载、传播。视频内容仅供参考,不构成投资依据或者建议,任何依据视频操作所引发的亏损,由投资者自行承担。市场有风险,投资须谨慎。
+      </div>
+
+      <div class="up-row">
+        <span class="time">2023-08-21</span>
+        <img src="@/assets/up.png" class="up-icon" @click="isExpand = false" />
+      </div>
+    </template>
+  </div>
+</template>
+
+<style scoped>
+.info-title {
+  font-weight: 400;
+  font-size: 14px;
+  color: #FFFFFF;
+  margin-bottom: 8px;
+}
+
+
+
+.desc-text-content {
+  font-weight: 400;
+  font-size: 14px;
+  color: #FFFFFF;
+}
+
+.more {
+  font-weight: 400;
+  font-size: 14px;
+  color: rgba(255,255,255,0.5);
+}
+
+.up-content {
+  font-weight: 400;
+  font-size: 12px;
+  color: rgba(255, 255, 255, 0.5);
+  margin-top: 8px;
+}
+
+.up-row {
+  width: 100%;
+  display: flex;
+  align-items: center;
+  justify-content: space-between;
+  margin-top: 16px;
+}
+
+.time {
+  font-weight: 500;
+  font-size: 12px;
+  color: rgba(255, 255, 255, .5);
+}
+
+.up-icon {
+  width: 40px;
+  height: 28px;
+}
+
+.row-1 {
+  display: -webkit-box;
+  -webkit-line-clamp: 1;
+  -webkit-box-orient: vertical;
+  overflow: hidden;
+  text-overflow: ellipsis;
+}
+
+
+.row-2 {
+  display: -webkit-box;
+  -webkit-line-clamp: 2;
+  -webkit-box-orient: vertical;
+  overflow: hidden;
+  text-overflow: ellipsis;
+}
+
+</style>

+ 164 - 0
src/components/video-info/VideoInfo.vue

@@ -0,0 +1,164 @@
+<script>
+import VideoDesc from "@/components/video-desc/VideoDesc.vue";
+
+export default {
+  name: "VideoInfo",
+  components: {VideoDesc}
+}
+</script>
+
+<template>
+  <div class="info-container">
+    <div class="info-left">
+      <div class="user-info">
+        <div class="user-info-row">
+          <img class="user-avatar" src="https://picsum.photos/200" />
+          <div class="user-info-right">
+            <div class="user-left-header">
+              <span class="user-name">刘骜</span>
+              <div class="live-status">
+                <img src="@/assets/undulate.png" class="undulate-icon" />
+                <span>直播中</span>
+              </div>
+            </div>
+
+            <span class="follow-count">10 万人关注</span>
+          </div>
+        </div>
+
+        <div class="follow-status">已关注</div>
+      </div>
+
+      <video-desc />
+    </div>
+
+    <div class="info-right">
+      <div class="info-right-item">
+        <img src="@/assets/like.png" class="info-right-item-icon" />
+        <span>1k</span>
+      </div>
+
+      <div class="info-right-item">
+        <img src="@/assets/share.png" class="info-right-item-icon" />
+        <span>1k</span>
+      </div>
+    </div>
+  </div>
+</template>
+
+<style scoped>
+
+.info-container {
+  width: 100%;
+  display: flex;
+  align-items: flex-end;
+  column-gap: 16px;
+  justify-content: space-between;
+  box-sizing: border-box;
+  padding: 0 20px;
+}
+
+.info-left {
+  flex: 1;
+}
+
+.user-info {
+  display: flex;
+  align-items: center;
+  justify-content: space-between;
+  column-gap: 16px;
+  margin-bottom: 16px;
+}
+
+.user-info-row {
+  display: flex;
+  align-items: center;
+  column-gap: 8px;
+}
+
+.user-avatar {
+  width: 48px;
+  height: 48px;
+  border-radius: 50%;
+}
+
+.user-info-right {
+  display: flex;
+  flex-direction: column;
+  column-gap: 4px;
+}
+
+.user-left-header {
+  display: flex;
+  align-items: center;
+  justify-content: space-between;
+  column-gap: 18px;
+}
+
+.user-name {
+  font-weight: 500;
+  font-size: 15px;
+  color: #FFFFFF;
+}
+
+.live-status {
+  display: flex;
+  align-items: center;
+  column-gap: 2px;
+  background: rgba(236,46,49,0.16);
+  border-radius: 2px;
+  box-sizing: border-box;
+  padding: 2px;
+  font-weight: 400;
+  font-size: 10px;
+  color: #EC2E31;
+}
+
+.undulate-icon {
+  width: 14px;
+  height: 14px;
+}
+
+.follow-count {
+  font-weight: 400;
+  font-size: 12px;
+  color: #FFFFFF;
+}
+
+.follow-status {
+  width: 68px;
+  height: 28px;
+  background: rgba(255,255,255,0);
+  border-radius: 4px;
+  border: 1px solid rgba(255,255,255,0.24);
+  font-weight: 400;
+  font-size: 13px;
+  color: rgba(255,255,255,0.5);
+  display: flex;
+  align-items: center;
+  justify-content: center;
+}
+
+
+.info-right {
+  display: flex;
+  flex-direction: column;
+  row-gap: 16px;
+}
+
+.info-right-item {
+  display: flex;
+  flex-direction: column;
+  align-items: center;
+  row-gap: 8px;
+  font-weight: bold;
+  font-size: 12px;
+  color: #FFFFFF;
+}
+
+.info-right-item-icon {
+  width: 36px;
+  height: 36px;
+}
+
+</style>

+ 7 - 0
src/main.js

@@ -2,9 +2,16 @@ import Vue from 'vue'
 import App from './App.vue'
 import router from './router'
 import store from './store'
+import Vant from 'vant';
+import 'vant/lib/index.css';
+
+Vue.use(Vant);
 
 Vue.config.productionTip = false
 
+// 注册全局监听事件
+Vue.prototype.$bus = new Vue();
+
 new Vue({
   router,
   store,

+ 1 - 11
src/router/index.js

@@ -1,23 +1,13 @@
 import Vue from 'vue'
 import VueRouter from 'vue-router'
-import HomeView from '../views/HomeView.vue'
 
 Vue.use(VueRouter)
 
 const routes = [
   {
     path: '/',
-    name: 'home',
-    component: HomeView
+    component: () => import( '../views/video/VideoItem.vue')
   },
-  {
-    path: '/about',
-    name: 'about',
-    // route level code-splitting
-    // this generates a separate chunk (about.[hash].js) for this route
-    // which is lazy-loaded when the route is visited.
-    component: () => import(/* webpackChunkName: "about" */ '../views/AboutView.vue')
-  }
 ]
 
 const router = new VueRouter({

+ 0 - 5
src/views/AboutView.vue

@@ -1,5 +0,0 @@
-<template>
-  <div class="about">
-    <h1>This is an about page</h1>
-  </div>
-</template>

+ 0 - 18
src/views/HomeView.vue

@@ -1,18 +0,0 @@
-<template>
-  <div class="home">
-    <img alt="Vue logo" src="../assets/logo.png">
-    <HelloWorld msg="Welcome to Your Vue.js App"/>
-  </div>
-</template>
-
-<script>
-// @ is an alias to /src
-import HelloWorld from '@/components/HelloWorld.vue'
-
-export default {
-  name: 'HomeView',
-  components: {
-    HelloWorld
-  }
-}
-</script>

+ 22 - 0
src/views/test/Test.vue

@@ -0,0 +1,22 @@
+<script>
+export default {
+  name: "TestPage"
+}
+</script>
+
+<template>
+  <div style="background: #000">
+    测试页面
+    <van-button type="primary">测试</van-button>
+    <img src="@/assets/fenestrule.png" class="icon" />
+  </div>
+</template>
+
+<style scoped>
+
+.icon {
+  width: 28px;
+  height: 28px;
+}
+
+</style>

+ 110 - 0
src/views/video/VideoItem.vue

@@ -0,0 +1,110 @@
+<script>
+import VideoInfo from "@/components/video-info/VideoInfo.vue";
+import ProgressLine from "@/components/progress/ProgressLine.vue";
+import VideoSetPopup from "@/components/set-popup/VideoSetPopup.vue";
+import PolyvPlayer from "@/components/video-container/PolyvPlayer.vue";
+
+export default {
+  name: "VideoItem",
+  components: {PolyvPlayer, VideoSetPopup, ProgressLine, VideoInfo},
+  data() {
+    return {
+      showSetPopup: false,
+      test: false,
+      showVideoInfo: true,
+      fullScreen: false,
+    }
+  },
+  methods: {
+    handleTest() {
+      // 进入vidoe 全屏
+      this.$refs.video.requestFullscreen();
+    },
+
+    // 拖拽时需要隐藏视频信息
+    handleDragLine(status) {
+      this.showVideoInfo = !status;
+    },
+
+    // 进入全屏
+    handleFullScreen() {
+      this.fullScreen = true;
+    }
+  }
+}
+</script>
+
+<template>
+  <div class="container">
+    <div class="header">
+      <div class="left"></div>
+      <div class="header-right">
+        <img src="@/assets/fenestrule.png" class="header-icon" />
+        <img src="@/assets/more.png" class="header-icon" @click="showSetPopup = true" />
+      </div>
+    </div>
+    <div class="video-container1">
+      <polyv-player v-model="fullScreen" />
+    </div>
+
+    <div class="footer">
+      <video-info v-show="showVideoInfo" />
+      <progress-line :on-drag="handleDragLine" @full="handleFullScreen" />
+    </div>
+    <video-set-popup  v-model="showSetPopup" />
+  </div>
+</template>
+
+<style scoped>
+
+.container {
+  background: #000000;
+  height: 100vh;
+  position: relative;
+  display: flex;
+  flex-direction: column;
+}
+
+.header {
+  display: flex;
+  align-items: center;
+  justify-content: space-between;
+  box-sizing: border-box;
+  padding: 8px 16px;
+  position: absolute;
+  top: 0;
+  left: 0;
+  width: 100%;
+  //z-index: 999;
+}
+
+.header-right {
+  display: flex;
+  align-items: center;
+  column-gap: 4px;
+}
+
+.header-icon {
+  width: 28px;
+  height: 28px;
+}
+
+.footer {
+  width: 100%;
+  position: absolute;
+  bottom: 0;
+}
+
+.video-container {
+  flex: 1;
+  display: flex;
+  align-items: center;
+  justify-content: center;
+  position: relative;
+}
+
+.video-container1 {
+  margin-top: 300px;
+}
+
+</style>

+ 10 - 1
vue.config.js

@@ -1,4 +1,13 @@
 const { defineConfig } = require('@vue/cli-service')
+const path = require('path')
 module.exports = defineConfig({
-  transpileDependencies: true
+  transpileDependencies: true,
+  // 配置别名
+  configureWebpack: {
+    resolve: {
+      alias: {
+        '@': path.resolve(__dirname, 'src')
+      }
+    }
+  }
 })

+ 140 - 14
yarn.lock

@@ -839,7 +839,7 @@
     "@babel/types" "^7.4.4"
     esutils "^2.0.2"
 
-"@babel/runtime@^7.12.13", "@babel/runtime@^7.8.4":
+"@babel/runtime@7.x", "@babel/runtime@^7.12.13", "@babel/runtime@^7.8.4":
   version "7.25.7"
   resolved "https://registry.npmmirror.com/@babel/runtime/-/runtime-7.25.7.tgz#7ffb53c37a8f247c8c4d335e89cdf16a2e0d0fb6"
   integrity sha512-FjoyLe754PMiYsFaN5C94ttGiOmBNYTf6pLr4xXHAT5uctHb092PBszndLDR5XA/jghQvn4n7JMHl7dmTgbm9w==
@@ -1008,6 +1008,11 @@
   resolved "https://registry.npmmirror.com/@polka/url/-/url-1.0.0-next.28.tgz#d45e01c4a56f143ee69c54dd6b12eade9e270a73"
   integrity sha512-8LduaNlMZGwdZ6qWrKlfa+2M4gahzFkprZiAt2TF8uS0qQgBizKXpXURqvTJ4WtmupWxaLqjRb2UCTe72mu+Aw==
 
+"@polyv/live-watch-sdk@^1.9.2":
+  version "1.9.2"
+  resolved "https://npm-registry.polyv.net/@polyv%2flive-watch-sdk/-/live-watch-sdk-1.9.2.tgz#3a71f1a9de05e60305ccc56066be73aa1a782c88"
+  integrity sha512-I0YIajYEDEL4hdm0lKHMXLdJEBqhTzDGdz9eER9pq30ya/aCxKknivXYteyJsXFBtnMgpszImEUKTyWvS589Pg==
+
 "@sideway/address@^4.1.5":
   version "4.1.5"
   resolved "https://registry.npmmirror.com/@sideway/address/-/address-4.1.5.tgz#4bc149a0076623ced99ca8208ba780d65a99b9d5"
@@ -1237,7 +1242,22 @@
   dependencies:
     "@types/node" "*"
 
-"@vue/babel-helper-vue-jsx-merge-props@^1.4.0":
+"@vant/icons@1.1.15":
+  version "1.1.15"
+  resolved "https://npm-registry.polyv.net/@vant%2ficons/-/icons-1.1.15.tgz#53c51ace21e9992bfeeb2e1ad9094fbf6506d116"
+  integrity sha512-96tbJotfofrKpOrUGWKkiGLJsCFc0OX5pikWLW5yarD+EMhi0zCrQSDb95xGrp/HETAFm+nSTQu2e1zGsWN/7A==
+
+"@vant/icons@^3.0.2":
+  version "3.0.2"
+  resolved "https://npm-registry.polyv.net/@vant%2ficons/-/icons-3.0.2.tgz#87f2dd74f0071d305b610d29f9442b89d346d05e"
+  integrity sha512-4OlRVMd0uiDtD9hgSISZW8hB95vU0fFtc41tQchRIyiXkR0tS+DydZOLb8/bQkithrNWhW7Uud38MbKjlJ9lJw==
+
+"@vant/popperjs@^1.1.0":
+  version "1.3.0"
+  resolved "https://npm-registry.polyv.net/@vant%2fpopperjs/-/popperjs-1.3.0.tgz#e0eff017124b5b2352ef3b36a6df06277f4400f2"
+  integrity sha512-hB+czUG+aHtjhaEmCJDuXOep0YTZjdlRR+4MSmIFnkCQIxJaXLQdSsR90XWvAI2yvKUI7TCGqR8pQg2RtvkMHw==
+
+"@vue/babel-helper-vue-jsx-merge-props@^1.0.0", "@vue/babel-helper-vue-jsx-merge-props@^1.4.0":
   version "1.4.0"
   resolved "https://registry.npmmirror.com/@vue/babel-helper-vue-jsx-merge-props/-/babel-helper-vue-jsx-merge-props-1.4.0.tgz#8d53a1e21347db8edbe54d339902583176de09f2"
   integrity sha512-JkqXfCkUDp4PIlFdDQ0TdXoIejMtTHP67/pvxlgeY+u5k3LEdKuWZ3LK6xkxo52uDoABIVyRwqVkfLQJhk7VBA==
@@ -1854,6 +1874,11 @@ argparse@^1.0.7:
   dependencies:
     sprintf-js "~1.0.2"
 
+argparse@^2.0.1:
+  version "2.0.1"
+  resolved "https://npm-registry.polyv.net/argparse/-/argparse-2.0.1.tgz#246f50f3ca78a3240f6c997e8a9bd1eac49e4b38"
+  integrity sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==
+
 array-flatten@1.1.1:
   version "1.1.1"
   resolved "https://registry.npmmirror.com/array-flatten/-/array-flatten-1.1.1.tgz#9a5f699051b1e7073328f2a008968b64ea2955d2"
@@ -1910,6 +1935,13 @@ babel-plugin-dynamic-import-node@^2.3.3:
   dependencies:
     object.assign "^4.1.0"
 
+babel-plugin-import@^1.13.8:
+  version "1.13.8"
+  resolved "https://npm-registry.polyv.net/babel-plugin-import/-/babel-plugin-import-1.13.8.tgz#782c517f6bbf2de3b1f75aaafd6d20a491c4878c"
+  integrity sha512-36babpjra5m3gca44V6tSTomeBlPA7cHUynrE2WiQIm3rEGD9xy28MKsx5IdO45EbnpJY7Jrgd00C6Dwt/l/2Q==
+  dependencies:
+    "@babel/helper-module-imports" "^7.0.0"
+
 babel-plugin-polyfill-corejs2@^0.4.10:
   version "0.4.11"
   resolved "https://registry.npmmirror.com/babel-plugin-polyfill-corejs2/-/babel-plugin-polyfill-corejs2-0.4.11.tgz#30320dfe3ffe1a336c15afdcdafd6fd615b25e33"
@@ -2379,6 +2411,16 @@ cosmiconfig@^7.0.0:
     path-type "^4.0.0"
     yaml "^1.10.0"
 
+cosmiconfig@^9.0.0:
+  version "9.0.0"
+  resolved "https://npm-registry.polyv.net/cosmiconfig/-/cosmiconfig-9.0.0.tgz#34c3fc58287b915f3ae905ab6dc3de258b55ad9d"
+  integrity sha512-itvL5h8RETACmOTFc4UfIyB2RfEHi71Ax6E/PivVxq9NseKbOWpeyHEOIbmAw1rs8Ak0VursQNww7lf7YtUwzg==
+  dependencies:
+    env-paths "^2.2.1"
+    import-fresh "^3.3.0"
+    js-yaml "^4.1.0"
+    parse-json "^5.2.0"
+
 cross-spawn@^5.0.1:
   version "5.1.0"
   resolved "https://registry.npmmirror.com/cross-spawn/-/cross-spawn-5.1.0.tgz#e8bd0efee58fcff6f8f94510a0a554bbfa235449"
@@ -2427,6 +2469,20 @@ css-loader@^6.5.0:
     postcss-value-parser "^4.2.0"
     semver "^7.5.4"
 
+css-loader@^7.1.2:
+  version "7.1.2"
+  resolved "https://npm-registry.polyv.net/css-loader/-/css-loader-7.1.2.tgz#64671541c6efe06b0e22e750503106bdd86880f8"
+  integrity sha512-6WvYYn7l/XEGN8Xu2vWFt9nVzrCn39vKyTEFf/ExEyoksJjjSZV/0/35XPlMbpnr6VGhZIUg5yJrL8tGfes/FA==
+  dependencies:
+    icss-utils "^5.1.0"
+    postcss "^8.4.33"
+    postcss-modules-extract-imports "^3.1.0"
+    postcss-modules-local-by-default "^4.0.5"
+    postcss-modules-scope "^3.2.0"
+    postcss-modules-values "^4.0.0"
+    postcss-value-parser "^4.2.0"
+    semver "^7.5.4"
+
 css-minimizer-webpack-plugin@^3.0.2:
   version "3.4.1"
   resolved "https://registry.npmmirror.com/css-minimizer-webpack-plugin/-/css-minimizer-webpack-plugin-3.4.1.tgz#ab78f781ced9181992fe7b6e4f3422e76429878f"
@@ -2776,6 +2832,11 @@ entities@^4.5.0:
   resolved "https://registry.npmmirror.com/entities/-/entities-4.5.0.tgz#5d268ea5e7113ec74c4d033b79ea5a35a488fb48"
   integrity sha512-V0hjH4dGPh9Ao5p0MoRY6BVqtwCjhz6vI5LT8AJ55H+4g9/4vbHx1I54fS0XuclLhDHArPQCiMjDxjaL8fPxhw==
 
+env-paths@^2.2.1:
+  version "2.2.1"
+  resolved "https://npm-registry.polyv.net/env-paths/-/env-paths-2.2.1.tgz#420399d416ce1fbe9bc0a07c62fa68d67fd0f8f2"
+  integrity sha512-+h1lkLKhZMTYjog1VEpJNG7NZJWcuc2DDk/qsqSTRRCOXiLjeQ1d1/udrUGhqMxUgAlwKNZ0cf2uqan5GLuS2A==
+
 error-ex@^1.3.1:
   version "1.3.2"
   resolved "https://registry.npmmirror.com/error-ex/-/error-ex-1.3.2.tgz#b4ac40648107fdcdcfae242f428bea8a14d4f1bf"
@@ -3589,7 +3650,7 @@ ignore@^5.2.0:
   resolved "https://registry.npmmirror.com/ignore/-/ignore-5.3.2.tgz#3cd40e729f3643fd87cb04e50bf0eb722bc596f5"
   integrity sha512-hsBTNUqQTDwkWtcdYI2i06Y/nUBEsNEDJKjWdigLvegy8kDuJAS8uRlpkkcQpyEXL0Z/pjDy5HBmMjRCJ2gq+g==
 
-import-fresh@^3.0.0, import-fresh@^3.2.1:
+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"
   integrity sha512-veYYhQa+D1QBKznvhUHxb8faxlrwUnxseDAbAp457E0wLNio2bOSKnjYDhMj+YiAq61xrMGhQk9iXVk5FzgQMw==
@@ -3772,6 +3833,11 @@ jest-worker@^28.0.2:
     merge-stream "^2.0.0"
     supports-color "^8.0.0"
 
+jiti@^1.20.0:
+  version "1.21.6"
+  resolved "https://npm-registry.polyv.net/jiti/-/jiti-1.21.6.tgz#6c7f7398dd4b3142767f9a168af2f317a428d268"
+  integrity sha512-2yTgeWTWzMWkHu6Jp9NKgePDaYHbntiwvYuuJLbbN9vl7DC9DvXKOB2BC3ZZ92D3cvV/aflH0osDfwpHepQ53w==
+
 joi@^17.4.0:
   version "17.13.3"
   resolved "https://registry.npmmirror.com/joi/-/joi-17.13.3.tgz#0f5cc1169c999b30d344366d384b12d92558bcec"
@@ -3801,6 +3867,13 @@ js-yaml@^3.13.1:
     argparse "^1.0.7"
     esprima "^4.0.0"
 
+js-yaml@^4.1.0:
+  version "4.1.0"
+  resolved "https://npm-registry.polyv.net/js-yaml/-/js-yaml-4.1.0.tgz#c1fb65f8f5017901cdd2c951864ba18458a10602"
+  integrity sha512-wpxZs9NoxZaJESJGIZTyDEaYpl0FKSA+FB9aJiyemKhMwkxQg63h4T1KJgUGHpTqPDNRcmmYLugrRjJlBtWvRA==
+  dependencies:
+    argparse "^2.0.1"
+
 jsesc@^3.0.2, jsesc@~3.0.2:
   version "3.0.2"
   resolved "https://registry.npmmirror.com/jsesc/-/jsesc-3.0.2.tgz#bb8b09a6597ba426425f2e4a07245c3d00b9343e"
@@ -3897,6 +3970,11 @@ levn@^0.4.1:
     prelude-ls "^1.2.1"
     type-check "~0.4.0"
 
+lib-flexible@^0.3.2:
+  version "0.3.2"
+  resolved "https://npm-registry.polyv.net/lib-flexible/-/lib-flexible-0.3.2.tgz#06f5a74832314a2d35c12039bc9c3ca2daeaa426"
+  integrity sha512-9yowMWA70tKhKdCJDaltY0mNQG4OWo7pWKScnTp9aiSxS7s20ZYlwBRE3335nweOf5qKXVC7sDxJwMPM8/MFZg==
+
 lilconfig@^2.0.3:
   version "2.1.0"
   resolved "https://registry.npmmirror.com/lilconfig/-/lilconfig-2.1.0.tgz#78e23ac89ebb7e1bfbf25b18043de756548e7f52"
@@ -4303,7 +4381,7 @@ nth-check@^2.0.1:
   dependencies:
     boolbase "^1.0.0"
 
-object-assign@^4.0.1:
+object-assign@>=4.0.1, object-assign@^4.0.1:
   version "4.1.1"
   resolved "https://registry.npmmirror.com/object-assign/-/object-assign-4.1.1.tgz#2109adc7965887cfc05cbbd442cac8bfbb360863"
   integrity sha512-rJgTQnkUnH1sFw8yT6VSU3zD3sWmu6sZhIseY8VX+GRu3P6F7Fu+JNDoXfklElbLJSnc3FUQHVe4cU5hj+BcUg==
@@ -4454,7 +4532,7 @@ parent-module@^1.0.0:
   dependencies:
     callsites "^3.0.0"
 
-parse-json@^5.0.0:
+parse-json@^5.0.0, parse-json@^5.2.0:
   version "5.2.0"
   resolved "https://registry.npmmirror.com/parse-json/-/parse-json-5.2.0.tgz#c76fc66dee54231c962b22bcc8a72cf2f99753cd"
   integrity sha512-ayCKvm/phCGxOkYRSCM82iDwct8/EonSEgCSxWxD7ve6jHggsFl4fZVQBPRNgQoKiuV/odhFrGzQXZwbifC8Rg==
@@ -4615,6 +4693,15 @@ postcss-loader@^6.1.1:
     klona "^2.0.5"
     semver "^7.3.5"
 
+postcss-loader@^8.1.1:
+  version "8.1.1"
+  resolved "https://npm-registry.polyv.net/postcss-loader/-/postcss-loader-8.1.1.tgz#2822589e7522927344954acb55bbf26e8b195dfe"
+  integrity sha512-0IeqyAsG6tYiDRCYKQJLAmgQr47DX6N7sFSWvQxt6AcupX8DIdmykuk/o/tx0Lze3ErGHJEp5OSRxrelC6+NdQ==
+  dependencies:
+    cosmiconfig "^9.0.0"
+    jiti "^1.20.0"
+    semver "^7.5.4"
+
 postcss-merge-longhand@^5.1.7:
   version "5.1.7"
   resolved "https://registry.npmmirror.com/postcss-merge-longhand/-/postcss-merge-longhand-5.1.7.tgz#24a1bdf402d9ef0e70f568f39bdc0344d568fb16"
@@ -4764,6 +4851,19 @@ postcss-ordered-values@^5.1.3:
     cssnano-utils "^3.1.0"
     postcss-value-parser "^4.2.0"
 
+postcss-px-to-viewport@^1.1.1:
+  version "1.1.1"
+  resolved "https://npm-registry.polyv.net/postcss-px-to-viewport/-/postcss-px-to-viewport-1.1.1.tgz#a25ca410b553c9892cc8b525cc710da47bf1aa55"
+  integrity sha512-2x9oGnBms+e0cYtBJOZdlwrFg/mLR4P1g2IFu7jYKvnqnH/HLhoKyareW2Q/x4sg0BgklHlP1qeWo2oCyPm8FQ==
+  dependencies:
+    object-assign ">=4.0.1"
+    postcss ">=5.0.2"
+
+postcss-pxtorem@^6.1.0:
+  version "6.1.0"
+  resolved "https://npm-registry.polyv.net/postcss-pxtorem/-/postcss-pxtorem-6.1.0.tgz#7e6410e30426adef53bad6c4c5f00cd5f586937c"
+  integrity sha512-ROODSNci9ADal3zUcPHOF/K83TiCgNSPXQFSbwyPHNV8ioHIE4SaC+FPOufd8jsr5jV2uIz29v1Uqy1c4ov42g==
+
 postcss-reduce-initial@^5.1.2:
   version "5.1.2"
   resolved "https://registry.npmmirror.com/postcss-reduce-initial/-/postcss-reduce-initial-5.1.2.tgz#798cd77b3e033eae7105c18c9d371d989e1382d6"
@@ -4807,15 +4907,7 @@ postcss-value-parser@^4.1.0, postcss-value-parser@^4.2.0:
   resolved "https://registry.npmmirror.com/postcss-value-parser/-/postcss-value-parser-4.2.0.tgz#723c09920836ba6d3e5af019f92bc0971c02e514"
   integrity sha512-1NNCs6uurfkVbeXG4S8JFT9t19m45ICnif8zWLd5oPSZ50QnwMfK+H3jv408d4jw/7Bttv5axS5IiHoLaVNHeQ==
 
-postcss@^7.0.36:
-  version "7.0.39"
-  resolved "https://registry.npmmirror.com/postcss/-/postcss-7.0.39.tgz#9624375d965630e2e1f2c02a935c82a59cb48309"
-  integrity sha512-yioayjNbHn6z1/Bywyb2Y4s3yvDAeXGOyxqD+LnVOinq6Mdmd++SW2wUNVzavyyHxd6+DxzWGIuosg6P1Rj8uA==
-  dependencies:
-    picocolors "^0.2.1"
-    source-map "^0.6.1"
-
-postcss@^8.2.6, postcss@^8.3.5, postcss@^8.4.14, postcss@^8.4.33, postcss@^8.4.47:
+postcss@>=5.0.2, postcss@^8.2.6, postcss@^8.3.5, postcss@^8.4.14, postcss@^8.4.33, postcss@^8.4.47:
   version "8.4.47"
   resolved "https://registry.npmmirror.com/postcss/-/postcss-8.4.47.tgz#5bf6c9a010f3e724c503bf03ef7947dcb0fea365"
   integrity sha512-56rxCq7G/XfB4EkXq9Egn5GCqugWvDFjafDOThIdMBsI15iqPqR5r15TfSr1YPYeEI19YeaXMCbY6u88Y76GLQ==
@@ -4824,6 +4916,14 @@ postcss@^8.2.6, postcss@^8.3.5, postcss@^8.4.14, postcss@^8.4.33, postcss@^8.4.4
     picocolors "^1.1.0"
     source-map-js "^1.2.1"
 
+postcss@^7.0.36:
+  version "7.0.39"
+  resolved "https://registry.npmmirror.com/postcss/-/postcss-7.0.39.tgz#9624375d965630e2e1f2c02a935c82a59cb48309"
+  integrity sha512-yioayjNbHn6z1/Bywyb2Y4s3yvDAeXGOyxqD+LnVOinq6Mdmd++SW2wUNVzavyyHxd6+DxzWGIuosg6P1Rj8uA==
+  dependencies:
+    picocolors "^0.2.1"
+    source-map "^0.6.1"
+
 prelude-ls@^1.2.1:
   version "1.2.1"
   resolved "https://registry.npmmirror.com/prelude-ls/-/prelude-ls-1.2.1.tgz#debc6489d7a6e6b0e7611888cec880337d316396"
@@ -5768,6 +5868,27 @@ validate-npm-package-license@^3.0.1:
     spdx-correct "^3.0.0"
     spdx-expression-parse "^3.0.0"
 
+vant-green@^1.0.44:
+  version "1.0.44"
+  resolved "https://npm-registry.polyv.net/vant-green/-/vant-green-1.0.44.tgz#f82097f655d6c3dae225c4a69201e666a069304b"
+  integrity sha512-px3WhS/fyxQsQqnjcTQnsT5vQBvYmTZwoXvotEPHoellmWT6ZeizAq5vsEyFcYsWrzUE+L4K+W84Qeha2mib+w==
+  dependencies:
+    "@babel/runtime" "7.x"
+    "@vant/icons" "1.1.15"
+    "@vue/babel-helper-vue-jsx-merge-props" "^1.0.0"
+    vue-lazyload "1.2.3"
+
+vant@^2.13.2:
+  version "2.13.2"
+  resolved "https://npm-registry.polyv.net/vant/-/vant-2.13.2.tgz#a3353cdb14e91c3ad7c05875a4edfdf3179ee1bb"
+  integrity sha512-anZbbLqXCq+rUJk10D67mn+V/1/i9tfOTdoR+64B0e+0BzV3KFgpHBF76noLa+yX9i/L+8DeL560WMk0GEN38g==
+  dependencies:
+    "@babel/runtime" "7.x"
+    "@vant/icons" "^3.0.2"
+    "@vant/popperjs" "^1.1.0"
+    "@vue/babel-helper-vue-jsx-merge-props" "^1.0.0"
+    vue-lazyload "1.2.3"
+
 vary@~1.1.2:
   version "1.1.2"
   resolved "https://registry.npmmirror.com/vary/-/vary-1.1.2.tgz#2299f02c6ded30d4a5961b0b9f74524a18f634fc"
@@ -5791,6 +5912,11 @@ vue-hot-reload-api@^2.3.0:
   resolved "https://registry.npmmirror.com/vue-hot-reload-api/-/vue-hot-reload-api-2.3.4.tgz#532955cc1eb208a3d990b3a9f9a70574657e08f2"
   integrity sha512-BXq3jwIagosjgNVae6tkHzzIk6a8MHFtzAdwhnV5VlvPTFxDCvIttgSiHWjdGoTJvXtmRu5HacExfdarRcFhog==
 
+vue-lazyload@1.2.3:
+  version "1.2.3"
+  resolved "https://npm-registry.polyv.net/vue-lazyload/-/vue-lazyload-1.2.3.tgz#901f9ec15c7e6ca78781a2bae4a343686bdedb2c"
+  integrity sha512-DC0ZwxanbRhx79tlA3zY5OYJkH8FYp3WBAnAJbrcuoS8eye1P73rcgAZhyxFSPUluJUTelMB+i/+VkNU/qVm7g==
+
 vue-loader@^17.0.0:
   version "17.4.2"
   resolved "https://registry.npmmirror.com/vue-loader/-/vue-loader-17.4.2.tgz#f87f0d8adfcbbe8623de9eba1979d41ba223c6da"