From 40de907c2937c7bc32e7bc2359488e855a858a5d 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 17:06:21 +0800
Subject: [PATCH 1/3] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E6=90=9C=E7=B4=A2?=
=?UTF-8?q?=E6=98=BE=E7=A4=BA?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
pages/plugins/video/detail/detail.vue | 60 +++++++++++---------
pages/plugins/video/search/search-record.vue | 1 +
2 files changed, 34 insertions(+), 27 deletions(-)
diff --git a/pages/plugins/video/detail/detail.vue b/pages/plugins/video/detail/detail.vue
index 73da7b4d..e0bb8f8a 100644
--- a/pages/plugins/video/detail/detail.vue
+++ b/pages/plugins/video/detail/detail.vue
@@ -600,33 +600,39 @@
// 实际的swiper切换处理逻辑
process_swiper_change(current) {
// 先暂停所有视频,确保不会有后台播放
- this.pause_all_videos_except(current);
-
- const id = this.display_video_list[current].id;
- // 更新状态
- this.setData({
- current_index: current,
- paused: false,
- is_manual_pause: false,
- current_video_progress: 0,
- current_video_duration: 1,
- is_seeking: false,
- current_video_id: id, // 更新当前播放视频的ID
- });
- //#ifdef H5
- // 使用URLSearchParams处理当前查询参数
- const url = new URL(location.href);
- url.searchParams.set('id', id);
- // 替换URL路径,保持查询参数不变
- const pathname = location.href.split('?')[0];
- history.replaceState(null, '', pathname + url.search);
- //#endif
- const index = this.video_data_list.findIndex(item => item.id == id);
-
- // 数据预加载逻辑
- if (index < 2 && this.direction == 'prev') {
- this.get_last_or_next_data_list(this.video_data_list[0].id, 1, 0);
- } else if (index < this.video_data_list.length - 3 && this.direction == 'next') {
+ this.pause_all_videos_except(current);
+
+ const id = this.display_video_list[current].id;
+ // 更新状态
+ this.setData({
+ current_index: current,
+ paused: false,
+ is_manual_pause: false,
+ current_video_progress: 0,
+ current_video_duration: 1,
+ is_seeking: false,
+ current_video_id: id, // 更新当前播放视频的ID
+ });
+ //#ifdef H5
+ // 使用URLSearchParams处理当前查询参数
+ const url = new URL(location.href);
+ url.searchParams.set('id', id);
+ // 替换URL路径,保持查询参数不变
+ const pathname = location.href.split('?')[0];
+ history.replaceState(null, '', pathname + url.search);
+
+ // 更新页面标题
+ const currentVideo = this.video_data_list.find(item => item.id == id);
+ if (currentVideo && currentVideo.videoContent) {
+ document.title = currentVideo.videoContent;
+ }
+ //#endif
+ const index = this.video_data_list.findIndex(item => item.id == id);
+
+ // 数据预加载逻辑
+ if (index < 2 && this.direction == 'prev') {
+ this.get_last_or_next_data_list(this.video_data_list[0].id, 1, 0);
+ } else if (index < this.video_data_list.length - 3 && this.direction == 'next') {
this.get_last_or_next_data_list(this.video_data_list[this.video_data_list.length - 1].id, 0, 1);
}
// 获取视频详细信息
diff --git a/pages/plugins/video/search/search-record.vue b/pages/plugins/video/search/search-record.vue
index 2eb87500..ef290d48 100644
--- a/pages/plugins/video/search/search-record.vue
+++ b/pages/plugins/video/search/search-record.vue
@@ -338,6 +338,7 @@ export default {
/* 热门搜索 */
.hot-search {
padding: 40rpx;
+ background: #fff;
}
.hot-tabs {
From 748e78c0241758e4e129ae49aa50560ea880d0a6 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 17:11:50 +0800
Subject: [PATCH 2/3] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E9=A1=B5=E9=9D=A2?=
=?UTF-8?q?=E6=A0=87=E9=A2=98=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 | 74 +++++++++++++++------------
1 file changed, 41 insertions(+), 33 deletions(-)
diff --git a/pages/plugins/video/detail/detail.vue b/pages/plugins/video/detail/detail.vue
index e0bb8f8a..bf7d6d1d 100644
--- a/pages/plugins/video/detail/detail.vue
+++ b/pages/plugins/video/detail/detail.vue
@@ -542,6 +542,14 @@
this.update_display_data();
setTimeout(() => {
+ //#ifdef H5
+ // 更新页面标题
+ const current_video = this.video_data_list.find(item => item.id == id);
+ if (current_video && current_video.title) {
+ document.title = current_video.title;
+ }
+ //#endif
+
// // 更新分享信息
this.update_share_info(this.display_video_list[this.current_index]);
@@ -600,39 +608,39 @@
// 实际的swiper切换处理逻辑
process_swiper_change(current) {
// 先暂停所有视频,确保不会有后台播放
- this.pause_all_videos_except(current);
-
- const id = this.display_video_list[current].id;
- // 更新状态
- this.setData({
- current_index: current,
- paused: false,
- is_manual_pause: false,
- current_video_progress: 0,
- current_video_duration: 1,
- is_seeking: false,
- current_video_id: id, // 更新当前播放视频的ID
- });
- //#ifdef H5
- // 使用URLSearchParams处理当前查询参数
- const url = new URL(location.href);
- url.searchParams.set('id', id);
- // 替换URL路径,保持查询参数不变
- const pathname = location.href.split('?')[0];
- history.replaceState(null, '', pathname + url.search);
-
- // 更新页面标题
- const currentVideo = this.video_data_list.find(item => item.id == id);
- if (currentVideo && currentVideo.videoContent) {
- document.title = currentVideo.videoContent;
- }
- //#endif
- const index = this.video_data_list.findIndex(item => item.id == id);
-
- // 数据预加载逻辑
- if (index < 2 && this.direction == 'prev') {
- this.get_last_or_next_data_list(this.video_data_list[0].id, 1, 0);
- } else if (index < this.video_data_list.length - 3 && this.direction == 'next') {
+ this.pause_all_videos_except(current);
+
+ const id = this.display_video_list[current].id;
+ // 更新状态
+ this.setData({
+ current_index: current,
+ paused: false,
+ is_manual_pause: false,
+ current_video_progress: 0,
+ current_video_duration: 1,
+ is_seeking: false,
+ current_video_id: id, // 更新当前播放视频的ID
+ });
+ //#ifdef H5
+ // 使用URLSearchParams处理当前查询参数
+ const url = new URL(location.href);
+ url.searchParams.set('id', id);
+ // 替换URL路径,保持查询参数不变
+ const pathname = location.href.split('?')[0];
+ history.replaceState(null, '', pathname + url.search);
+
+ // 更新页面标题
+ const current_video = this.video_data_list.find(item => item.id == id);
+ if (current_video && current_video.title) {
+ document.title = current_video.title;
+ }
+ //#endif
+ const index = this.video_data_list.findIndex(item => item.id == id);
+
+ // 数据预加载逻辑
+ if (index < 2 && this.direction == 'prev') {
+ this.get_last_or_next_data_list(this.video_data_list[0].id, 1, 0);
+ } else if (index < this.video_data_list.length - 3 && this.direction == 'next') {
this.get_last_or_next_data_list(this.video_data_list[this.video_data_list.length - 1].id, 0, 1);
}
// 获取视频详细信息
From 7be692a07f8e0e4dc559e55ba67f5c7a187ed173 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 17:15:52 +0800
Subject: [PATCH 3/3] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E8=BD=AE=E6=92=AD?=
=?UTF-8?q?=E6=98=BE=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/index/index.vue | 10 +++++++++-
1 file changed, 9 insertions(+), 1 deletion(-)
diff --git a/pages/plugins/video/index/index.vue b/pages/plugins/video/index/index.vue
index 83929c83..8095c213 100644
--- a/pages/plugins/video/index/index.vue
+++ b/pages/plugins/video/index/index.vue
@@ -16,6 +16,10 @@
+
+
+
+
@@ -65,6 +69,7 @@