From e4f6d1ddd228e18ecbb2d82fe808ac6144011e76 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E4=BA=8E=E8=82=96=E7=A3=8A?= <18851179580@163.com>
Date: Fri, 13 Mar 2026 14:08:36 +0800
Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=86=85=E5=AE=B9=E4=BF=A1?=
=?UTF-8?q?=E6=81=AF?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
components/u-popup/u-popup.vue | 11 ++++-
pages/plugins/video/components/search.vue | 2 +-
pages/plugins/video/detail/detail-nvue.css | 47 +++++++++++++---------
pages/plugins/video/detail/detail.css | 15 ++++++-
pages/plugins/video/detail/detail.nvue | 17 ++++----
pages/plugins/video/detail/detail.vue | 2 +-
6 files changed, 62 insertions(+), 32 deletions(-)
diff --git a/components/u-popup/u-popup.vue b/components/u-popup/u-popup.vue
index 76d6004b..de1968da 100644
--- a/components/u-popup/u-popup.vue
+++ b/components/u-popup/u-popup.vue
@@ -8,8 +8,8 @@
-
@@ -187,7 +187,7 @@
- {{mainItem.name}}
+ {{mainItem.name}}
@@ -202,7 +202,7 @@
- {{subItem}}
+ {{subItem}}
@@ -221,7 +221,7 @@
- is_add_comment = false" @confirm="send_comment" />
+ is_add_comment = false" @confirm="send_comment" />
@@ -586,7 +586,7 @@
// 逻辑说明:当是最后一个视频且需要播放下一个时,根据数组长度和新索引计算新的当前索引
// - 数组长度 > 2 时:新索引是最后一个元素则返回 2,是倒数第二个则返回 1,否则返回 0
// - 数组长度 <= 2 时:返回 length - 1
- this.current_index = is_next == 1 ? new_index : this.current_index;
+ // this.current_index = is_next == 1 ? new_index : this.current_index;
if (is_next == 1) {
setTimeout(() => {
@@ -607,6 +607,7 @@
// 实际的 swiper 切换处理逻辑
process_swiper_change(current) {
try {
+ console.log(current);
// 先暂停所有视频,确保不会有后台播放
this.pause_all_videos_except(current);
@@ -834,6 +835,7 @@
// const id = e?.currentTarget?.dataset?.id || '';
this.set_givethumbs_num(this.current_video_id);
}
+ e.stopPropagation();
} catch (error) {
console.error('handle_like error:', error);
}
@@ -1373,9 +1375,10 @@
}
},
// 返回上一页
- handle_back() {
+ handle_back(e) {
try {
app.globalData.page_back_prev_event();
+ e.stopPropagation();
} catch (error) {
console.error('handle_back error:', error);
}
@@ -1455,7 +1458,6 @@
} else {
this.active_dropdown_id = comment_id;
}
- console.log(this.active_dropdown_id);
} catch (error) {
console.error('handle_toggle_dropdown error:', error);
}
@@ -1586,7 +1588,6 @@
select_main_reason(e) {
try {
const index = e?.currentTarget?.dataset?.index || 0;
- console.log(index);
const main_index = parseInt(index);
if (main_index !== this.current_main_index) {
this.current_main_index = main_index;
diff --git a/pages/plugins/video/detail/detail.vue b/pages/plugins/video/detail/detail.vue
index c65aaddc..8257edc2 100644
--- a/pages/plugins/video/detail/detail.vue
+++ b/pages/plugins/video/detail/detail.vue
@@ -213,7 +213,7 @@
- is_add_comment = false" @confirm="send_comment" />
+ is_add_comment = false" @confirm="send_comment" />