From 03c8097f4a7c220c6275002e48410fc4b53c6e4f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BA=8E=E8=82=96=E7=A3=8A?= <18851179580@163.com> Date: Thu, 26 Feb 2026 16:59:34 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E8=A7=86=E9=A2=91=E6=98=BE?= =?UTF-8?q?=E7=A4=BA=E5=A4=84=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/plugins/video/detail/detail.vue | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/pages/plugins/video/detail/detail.vue b/pages/plugins/video/detail/detail.vue index 1d3721fd..73da7b4d 100644 --- a/pages/plugins/video/detail/detail.vue +++ b/pages/plugins/video/detail/detail.vue @@ -50,7 +50,6 @@ - {{ video_item.show_goods }} @@ -353,8 +352,8 @@ }); }, onShow() { - if (!this.is_manual_pause && this.video_contexts != null) { - this.video_play_event(this.video_contexts[this.current_index], true); + if (!this.is_manual_pause && this.create_video_contexts[this.current_index]) { + this.video_play_event(this.create_video_contexts[this.current_index]); } }, onHide() { @@ -681,9 +680,6 @@ if (index !== exceptIndex && context) { try { context.pause(); - this.setData({ - is_manual_pause: false, - }); } catch (error) { console.warn(`暂停视频 ${index} 失败:`, error); } @@ -695,7 +691,7 @@ play_current_video_safely(index) { // 优先使用 uni.createVideoContext if (this.create_video_contexts[index]) { - this.video_play_event(this.create_video_contexts[index], false); + this.video_play_event(this.create_video_contexts[index]); return; } }, @@ -724,7 +720,7 @@ } } else { // 播放当前视频 - this.video_play_event(videoContext, false); + this.video_play_event(videoContext); } },