From cdf956c98a910afab859c10974711a90bd6a3bb3 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:46:28 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E9=A1=B5=E9=9D=A2=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/components/search.vue | 2 +- pages/plugins/video/detail/detail-nvue.css | 15 +++++++- pages/plugins/video/detail/detail.nvue | 45 +++++++++++----------- 3 files changed, 36 insertions(+), 26 deletions(-) diff --git a/pages/plugins/video/components/search.vue b/pages/plugins/video/components/search.vue index 23692899..ec40916b 100644 --- a/pages/plugins/video/components/search.vue +++ b/pages/plugins/video/components/search.vue @@ -115,7 +115,7 @@ input { margin: 16rpx 0; margin-left: 20rpx; box-sizing: border-box; - background-color: #eee; + background-color: #aaa; } .search-button { font-weight: 500; diff --git a/pages/plugins/video/detail/detail-nvue.css b/pages/plugins/video/detail/detail-nvue.css index 65b6d348..77d5406b 100644 --- a/pages/plugins/video/detail/detail-nvue.css +++ b/pages/plugins/video/detail/detail-nvue.css @@ -112,8 +112,9 @@ width: 100%; height: 100%; background: #000; - background-size: cover; - background-position: center; +} + +.video-bg-image { transform: scale(3); filter: blur(100rpx); opacity: 0.7; @@ -306,6 +307,16 @@ font-size: 28rpx; } +.mb-10 { + margin-bottom: 20rpx; +} +.ml-10 { + margin-left: 20rpx; +} +.mr-10 { + margin-right: 20rpx; +} + .report-required { color: #e74c3c; font-size: 30rpx; diff --git a/pages/plugins/video/detail/detail.nvue b/pages/plugins/video/detail/detail.nvue index 549a0237..fdd90d45 100644 --- a/pages/plugins/video/detail/detail.nvue +++ b/pages/plugins/video/detail/detail.nvue @@ -5,7 +5,11 @@ - + + + @@ -35,12 +39,12 @@ - + - - {{ video_item.goods.title }} + + {{ video_item.goods.title }} ¥{{ video_item.goods.price }} @@ -50,7 +54,7 @@ - {{$t('common.buy')}} {{$t('common.goods')}} + {{$t('common.buy')}} {{$t('common.goods')}} @@ -72,7 +76,7 @@ - + @@ -158,7 +162,7 @@ - + @@ -183,11 +187,11 @@ {{$t('video-detail.video-detail.rfsdfg')}}* - - + + - {{mainItem.name}}{{ current_main_index === main_index }} + {{mainItem.name}} @@ -198,11 +202,11 @@ {{$t('video-detail.video-detail.fsdf33')}}* - - + + - {{subItem}}{{ current_sub_index === sub_index }} + {{subItem}} @@ -607,7 +611,6 @@ // 实际的 swiper 切换处理逻辑 process_swiper_change(current) { try { - console.log(current); // 先暂停所有视频,确保不会有后台播放 this.pause_all_videos_except(current); @@ -1587,12 +1590,10 @@ // 直接选择主原因(用于一行显示的点击) select_main_reason(e) { try { - const index = e?.currentTarget?.dataset?.index || 0; + const index = e?.detail?.value || 0; const main_index = parseInt(index); - if (main_index !== this.current_main_index) { - this.current_main_index = main_index; - this.current_sub_index = 0; // 默认选中第一个子类型 - } + this.current_main_index = main_index; + this.current_sub_index = 0; // 默认选中第一个子类型 } catch (error) { console.error('select_main_reason error:', error); } @@ -1601,11 +1602,9 @@ // 直接选择子类型(用于一行显示的点击) select_sub_reason(e) { try { - const index = e?.currentTarget?.dataset?.index || 0; + const index = e?.detail?.value || 0; const sub_index = parseInt(index); - if (sub_index !== this.current_sub_index) { - this.current_sub_index = sub_index; - } + this.current_sub_index = sub_index; } catch (error) { console.error('select_sub_reason error:', error); }