From 322e7fb21fc63dd76356f5e2d3efe15db97dd6f2 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 Feb 2026 15:22:50 +0800 Subject: [PATCH 1/4] =?UTF-8?q?loading=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 | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/pages/plugins/video/detail/detail.vue b/pages/plugins/video/detail/detail.vue index c7b097cc..ff348886 100644 --- a/pages/plugins/video/detail/detail.vue +++ b/pages/plugins/video/detail/detail.vue @@ -196,7 +196,7 @@ - + @@ -210,6 +210,7 @@ const app = getApp(); import { get_math, isEmpty, video_get_top_left_padding } from '@/common/js/common/common.js'; import commentInfoComponent from '@/pages/plugins/video/components/comment-info.vue'; + import loadingComponent from '@/pages/plugins/video/components/loading.vue'; import commentMoreComponent from '@/pages/plugins/video/components/comment-more.vue'; import searchComponent from '@/pages/plugins/video/components/search.vue'; import componentSharePopup from '@/components/share-popup/share-popup'; @@ -229,7 +230,8 @@ componentSharePopup, componentNoData, componentBottomLine, - componentPopup + componentPopup, + loadingComponent }, data() { return { From b0725ea0c5f19fe999d0cf94f82a61cb16c338c3 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 Feb 2026 16:11:14 +0800 Subject: [PATCH 2/4] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=95=B0=E6=8D=AE?= =?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 | 65 ++++++++++++++++---- pages/plugins/video/search/search-record.vue | 27 ++++++-- 2 files changed, 75 insertions(+), 17 deletions(-) diff --git a/pages/plugins/video/detail/detail.vue b/pages/plugins/video/detail/detail.vue index ff348886..d796ca91 100644 --- a/pages/plugins/video/detail/detail.vue +++ b/pages/plugins/video/detail/detail.vue @@ -139,7 +139,13 @@ - + + @{{ comments_data.user.user_name_view }}:{{ comments_data.content }} + + + + + @@ -195,10 +201,27 @@ - + - - + + + @{{ comments_data.user.user_name_view }}:{{ comments_data.content }} + + + + + + + + + + + + + + + + @@ -293,6 +316,7 @@ is_add_comment: false, // 监听键盘高度变化事件 listener_height: 0, + comments_data: {} }; }, computed: { @@ -838,7 +862,7 @@ }, // 评论输入图片删除 comment_input_img_close(e) { - const { index } = e.currentTarget.dataset; + const index = e?.currentTarget?.dataset?.index || 0; var list = this.form_images_list; list.splice(index, 1); this.setData({ @@ -1249,11 +1273,15 @@ this.active_dropdown_id = null; if (!isEmpty(comments)) { this.setData({ - input_placeholder: `@${comments.user.user_name_view}`, comments_data: comments, }); } }, + comment_data_delete() { + this.setData({ + comments_data: {}, + }); + }, // 评论点赞 comment_like(id) { this.active_dropdown_id = null; @@ -1858,17 +1886,20 @@ .comment-input-content { flex: 1; border: 2rpx solid #eee; - border-radius: 8rpx; - padding-right: 16rpx; + border-radius: 16rpx; + // padding-right: 16rpx; font-size: 28rpx; } + .pr-16 { + padding-right: 16rpx; + } .comment-input-img-container { padding: 10rpx 16rpx 16rpx 16rpx; } .comment-input-img-close { position: absolute; - right: -10rpx; - top: -10rpx; + right: -15rpx; + top: -15rpx; z-index: 2; } .comment-input-img { @@ -1944,12 +1975,20 @@ left: 0; z-index: 99; background: #fff; - padding: 20rpx 16rpx; + padding: 20rpx; box-sizing: border-box; } .keyboard-input-border { - padding: 16rpx 22rpx; border: 2rpx solid #ddd; - border-radius: 50rpx; + border-radius: 16rpx; + } + .keyboard-input-content { + padding: 16rpx 22rpx; + } + .comment-reply-content { + background-color: rgba(0, 0, 0, 0.6); + padding: 10rpx; + border-radius: 16rpx; + color: #fff; } diff --git a/pages/plugins/video/search/search-record.vue b/pages/plugins/video/search/search-record.vue index 121cda25..8b691200 100644 --- a/pages/plugins/video/search/search-record.vue +++ b/pages/plugins/video/search/search-record.vue @@ -44,14 +44,22 @@ - + {{ index + 1 }} {{ item.title }} - 热度 {{ item.hotness }} + + + + {{ item[search_history_data[hot_current_tab].field] }} + @@ -183,8 +191,19 @@ export default { this.handle_search(value); }, delete_history(e) { - const index = e.currentTarget.dataset.index; - this.search_history.splice(index, 1); + const index = e?.currentTarget?.dataset?.index; + const data = this.show_search_history[index]; + if (!isEmpty(data)) { + const newIndex = this.search_history.findIndex(item => item == data); + this.search_history.splice(newIndex, 1); + } + this.show_search_history.splice(index, 1); + }, + perform_url(e) { + const url = e?.currentTarget?.dataset?.url || ''; + if (!isEmpty(url)) { + app.globalData.url_open(url); + } }, view_more_history() { // 查看更多历史逻辑 From 8940f17b09c2782fc829bf5c1d11cb8887facfc8 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 Feb 2026 16:12:44 +0800 Subject: [PATCH 3/4] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E6=90=9C=E7=B4=A2?= =?UTF-8?q?=E9=80=BB=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/plugins/video/components/search.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pages/plugins/video/components/search.vue b/pages/plugins/video/components/search.vue index 18409e6c..0a97c596 100644 --- a/pages/plugins/video/components/search.vue +++ b/pages/plugins/video/components/search.vue @@ -4,7 +4,7 @@ - + 搜索 From 4cb144684fefda059f3c2bf9d617e2dd842e1777 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 Feb 2026 17:11:10 +0800 Subject: [PATCH 4/4] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=88=87=E6=8D=A2?= =?UTF-8?q?=E9=80=BB=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/plugins/video/detail/detail.vue | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pages/plugins/video/detail/detail.vue b/pages/plugins/video/detail/detail.vue index d796ca91..a2265b60 100644 --- a/pages/plugins/video/detail/detail.vue +++ b/pages/plugins/video/detail/detail.vue @@ -1807,9 +1807,11 @@ .comment-modal { position: fixed; top: 0; - left: 0; + left: 50%; + transform: translateX(-50%); width: 100%; height: 100%; + max-width: 1600rpx; background-color: rgba(0, 0, 0, 0.5); z-index: 99; display: flex;