From 2cfa4bdc5340f45973d0e7c2d92b317548b045d7 Mon Sep 17 00:00:00 2001 From: zoujiandong <10130823232@qq.com> Date: Mon, 17 Nov 2025 16:05:14 +0800 Subject: [PATCH] =?UTF-8?q?viddeo=E9=A1=B5=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages_app/videoDetail/videoDetail.vue | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/pages_app/videoDetail/videoDetail.vue b/pages_app/videoDetail/videoDetail.vue index 991a5b4..8a0546d 100644 --- a/pages_app/videoDetail/videoDetail.vue +++ b/pages_app/videoDetail/videoDetail.vue @@ -29,10 +29,10 @@ @@ -204,6 +204,7 @@ const notEnoughVisible = ref(false); const notEnoughContent = ref(""); const welfareNum = ref(0); const showVideo = ref(false); +const videoWidth = ref(350); //import DomVideoPlayer from 'uniapp-video-player' const notEnoughConfirm = () => { notEnoughVisible.value = false; @@ -506,6 +507,12 @@ const shareToWeibo = () => { // 使用uni-app的onLoad生命周期 onLoad((options) => { console.log(options); + uni.getSystemInfo({ + success: function (res) { + videoWidth.value = res.windowWidth; // 窗口宽度 + + } +}); video_uuid.value = options.id; addVideoWatchRecord(); VideoDownloadRecord(); @@ -673,10 +680,8 @@ $theme-color: #8b2316; position: fixed; top:calc(var(--status-bar-height) + 44px); left: 0; - right: 0; z-index:0; - width: 100%; - height: 220px; + height: 220px!important; overflow: hidden; } .share-img {