From 83a157e76455731451659f07599db58925133236 Mon Sep 17 00:00:00 2001
From: kongdeqiang <123456>
Date: 星期一, 22 十二月 2025 08:26:31 +0800
Subject: [PATCH] feat: 修改

---
 vue.config.js                       |    4 
 src/main.js                         |    4 
 src/components/page/dPlayerTest.vue |   69 +++++++++++++++++++++++
 src/store/state.js                  |   48 ++++++++--------
 src/router/index.js                 |    5 +
 5 files changed, 102 insertions(+), 28 deletions(-)

diff --git a/src/components/page/dPlayerTest.vue b/src/components/page/dPlayerTest.vue
new file mode 100644
index 0000000..bfb2a2e
--- /dev/null
+++ b/src/components/page/dPlayerTest.vue
@@ -0,0 +1,69 @@
+<template>
+  <div >
+    <div id="dplayer"></div>
+  </div>
+</template>
+
+
+<script>
+import DPlayer from 'dplayer';
+
+export default {
+  name: 'VideoPlayer',
+  components:{},
+  data() {
+    return {
+      winH: '300px',
+      id: 'dpPlayerDom',
+      player: null,
+      filePath:'',
+      type:'',
+      url:'',
+      dp: null,
+      time: 5,
+    }
+
+  },
+  mounted() {
+    this.initDPlayer();
+  },
+  methods: {
+    initDPlayer() {
+      this.dp = new DPlayer({
+        container: document.getElementById('dplayer'), // 纭繚浣犵殑 HTML 涓湁杩欎釜鍏冪礌
+        danmaku: {
+          speedRate: 0.5,
+          api: 'http://192.168.0.147:8889/training/trainingContentCommon/getDanmaku',// 娣诲姞寮瑰箷鐨勫悗绔湴鍧�
+          user: this.$store.getters.userId,
+          bottom: "15%",
+          id: 1
+        },
+        video: {
+          url: 'static/1080p.mp4', // 杩欓噷濉啓瑙嗛鐨� URL
+          //url: 'static/911Mothers_2010W-480p.mp4', // 杩欓噷濉啓瑙嗛鐨� URL
+          pic: '/Users/kongdeqiang/Downloads/image/v2-1e575237731ad3d8169dfedb6658ed19_r.jpg', // 杩欓噷濉啓瑙嗛鐨勫皝闈㈠浘鍦板潃锛屽彲閫�
+          type: 'auto', // 鍙�夛紝鑷姩鍒ゆ柇绫诲瀷锛屾垨鑰呮寚瀹氫负 'hls', 'flv' 绛�
+          autoPlay:true
+        },
+        // 鍏朵粬閰嶇疆...
+      });
+      // this.$nextTick(()=>{
+      //   if(this.time){
+      //     this.dp.seek(this.time)
+      //   }
+      // })
+
+    },
+
+    beforeDestroy() {
+      if (this.dp) {
+        this.dp.destroy(); // 閿�姣佹挱鏀惧櫒瀹炰緥锛岄噴鏀捐祫婧�
+      }
+    }
+  }
+}
+</script>
+<style>
+
+</style>
+
diff --git a/src/main.js b/src/main.js
index 9b58c5f..482d362 100644
--- a/src/main.js
+++ b/src/main.js
@@ -76,8 +76,8 @@
 // 閰嶇疆鏂囦欢
 Vue.prototype.$systemconfig = {
 // 鏈嶅姟绔矾寰�
-    basePath: 'http://183.196.93.178:8089',
-    // basePath:'http://192.168.0.40:8089'
+    basePath: 'http://192.168.0.78:8089',
+    //basePath:'http://183.196.93.178:8089'
 }
 Vue.prototype.$byutil = byUtils
 Vue.prototype.$stringUtil = StringUtil
diff --git a/src/router/index.js b/src/router/index.js
index 2df8b20..b27c027 100644
--- a/src/router/index.js
+++ b/src/router/index.js
@@ -210,6 +210,11 @@
             component: resolve => require(['../components/page/MonthFeePay.vue'], resolve),
             meta: { title: '鏈堢杞︾即璐�' }
         },
+        {
+            path: '/dplayer',
+            component: resolve => require(['../components/page/dPlayerTest.vue'], resolve),
+            meta: { title: 'dPlayerTest' }
+        },
     ]
 })
 
diff --git a/src/store/state.js b/src/store/state.js
index 6b2a551..9438b5b 100644
--- a/src/store/state.js
+++ b/src/store/state.js
@@ -61,18 +61,18 @@
                     parentId: 2,
                     indexUrl: "barrierOpenLog"
                 },
-                {
-                    icon: 'el-icon-document',
-                    name: '鏈堢エ杞﹁鍒欑鐞�',
-                    parentId: 2,
-                    indexUrl: "whiteListRule"
-                },
-                {
-                    icon: 'el-icon-document',
-                    name: '缂磋垂鏃ュ織绠$悊',
-                    parentId: 2,
-                    indexUrl: "paymentLog"
-                },
+                // {
+                //     icon: 'el-icon-document',
+                //     name: '鏈堢エ杞﹁鍒欑鐞�',
+                //     parentId: 2,
+                //     indexUrl: "whiteListRule"
+                // },
+                // {
+                //     icon: 'el-icon-document',
+                //     name: '缂磋垂鏃ュ織绠$悊',
+                //     parentId: 2,
+                //     indexUrl: "paymentLog"
+                // },
                 {
                   icon: 'el-icon-document',
                   name: '鐧藉悕鍗曠鐞�',
@@ -163,18 +163,18 @@
                     parentId: 2,
                     indexUrl: "enterParkCar"
                 },
-                {
-                    icon: 'el-icon-document',
-                    name: '鏈堢エ杞﹁鍒欑鐞�',
-                    parentId: 2,
-                    indexUrl: "whiteListRule"
-                },
-                {
-                    icon: 'el-icon-document',
-                    name: '缂磋垂鏃ュ織绠$悊',
-                    parentId: 2,
-                    indexUrl: "paymentLog"
-                },
+                // {
+                //     icon: 'el-icon-document',
+                //     name: '鏈堢エ杞﹁鍒欑鐞�',
+                //     parentId: 2,
+                //     indexUrl: "whiteListRule"
+                // },
+                // {
+                //     icon: 'el-icon-document',
+                //     name: '缂磋垂鏃ュ織绠$悊',
+                //     parentId: 2,
+                //     indexUrl: "paymentLog"
+                // },
                 {
                     icon: 'el-icon-document',
                     name: '鎵嬪姩鎶潌璁板綍',
diff --git a/vue.config.js b/vue.config.js
index 6b16215..0331b37 100644
--- a/vue.config.js
+++ b/vue.config.js
@@ -16,8 +16,8 @@
         disableHostCheck: true,
         proxy: {
             '/':{
-                //target:'http://183.196.93.178',
-                target:'http://127.0.0.1:8089',
+                target:'http://183.196.93.178:8089',
+                //target:'http://127.0.0.1:8089',
                 changeOrigin:true,
                 pathRewrite:{
                     '/':''

--
Gitblit v1.9.1