From def686b838a8b7f0937aa2474a48bfd3e560bd2f Mon Sep 17 00:00:00 2001 From: qingyu <14049064+qingyuya123@user.noreply.gitee.com> Date: Thu, 26 Jun 2025 18:48:36 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E8=A7=86=E9=A2=91=E9=83=A8?= =?UTF-8?q?=E5=88=86=E5=86=85=E5=AE=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .env.dev | 4 +- src/views/dynamic/videoCenter/index.vue | 104 +++++++++++++++---- src/views/websiteRelated/contactUs/index.vue | 6 +- 3 files changed, 92 insertions(+), 22 deletions(-) diff --git a/.env.dev b/.env.dev index bb781b0..bcb46e7 100644 --- a/.env.dev +++ b/.env.dev @@ -12,8 +12,8 @@ VITE_ROUTER_BASE=/ VITE_ROUTER_HISTORY=hash # api -VITE_API_BASIC=https://api.hailin-keji.com -#VITE_API_BASIC=http://10.10.1.6:8060 +#VITE_API_BASIC=https://api.hailin-keji.com +VITE_API_BASIC=http://10.10.1.6:8060 VITE_API_HTTP=/api/v1/ # storage VITE_STORAGE_NAMESPACE = gin-admin_local_ diff --git a/src/views/dynamic/videoCenter/index.vue b/src/views/dynamic/videoCenter/index.vue index 1df2d0a..b66973d 100644 --- a/src/views/dynamic/videoCenter/index.vue +++ b/src/views/dynamic/videoCenter/index.vue @@ -94,23 +94,23 @@ - - - - - - + +
+
+ + + +
+
@@ -243,6 +243,7 @@ async function onOk() { const dialogVisible = ref(false) const currentVideoUrl = ref('') +const previewVideoRef = ref(null) // 预览处理 const handlePreview = (videoUrl) => { @@ -256,9 +257,76 @@ const handlePreview = (videoUrl) => { // 关闭处理 const handleClose = () => { + if (previewVideoRef.value) { + previewVideoRef.value.pause() + previewVideoRef.value.currentTime = 0 + } currentVideoUrl.value = '' dialogVisible.value = false } - + diff --git a/src/views/websiteRelated/contactUs/index.vue b/src/views/websiteRelated/contactUs/index.vue index 6fde732..f7c0e53 100644 --- a/src/views/websiteRelated/contactUs/index.vue +++ b/src/views/websiteRelated/contactUs/index.vue @@ -114,8 +114,8 @@ async function getPageList() { reportNum.value = res.data.reportNum socialMedia.value = Array.isArray(res.data.socialMedia) ? res.data.socialMedia : [] //console.log(affirm.value) - console.log(id.value) - console.log(res.data) + console.log("web-Id:",id.value) + console.log('webData',res.data) } } catch (e) { message.error('获取声明内容失败') @@ -129,6 +129,8 @@ async function getPageList() { async function handleSearch() { try { showLoading() + console.log("id.value:", id.value) + await apis.webSite.updateWebData(id.value, { affirm: affirm.value, reportContent: reportContent.value,