From d81a6ff4962edefbb43d975d5cf2f9d0fb4be68f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BA=8E=E8=82=96=E7=A3=8A?= <18851179580@163.com> Date: Tue, 10 Mar 2026 18:37:13 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=A4=9A=E8=AF=AD=E8=A8=80?= =?UTF-8?q?=E5=A4=84=E7=90=86=E5=92=8C=E5=95=86=E5=93=81=E6=98=BE=E7=A4=BA?= =?UTF-8?q?=E5=85=B3=E9=97=AD=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/plugins/video/detail/detail.nvue | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/pages/plugins/video/detail/detail.nvue b/pages/plugins/video/detail/detail.nvue index 8c4e656a..3bf23938 100644 --- a/pages/plugins/video/detail/detail.nvue +++ b/pages/plugins/video/detail/detail.nvue @@ -1625,15 +1625,15 @@ // 关闭推荐商品 product_close_event(e) { try { - const id = e?.currentTarget?.dataset?.id || ''; this.video_data_list.forEach((item) => { - if (item.id == id) { + if (item.id == this.current_video_id) { item.show_goods = false; } }); - // this.video_data_list = this.video_data_list; - this.$set(this, 'video_data_list', this.video_data_list) + this.$set(this, 'video_data_list', this.video_data_list); + console.log(this.video_data_list); + e.stopPropagation(); } catch (error) { console.error('product_close_event error:', error); } @@ -1702,11 +1702,9 @@ // 处理不同操作 if (obj.type == 'delete') { // 确认删除 - const tips = t('common.warm_tips'); - const content = t('common.delete_confirm_tips'); uni.showModal({ - title: tips, - content: content, + title: t('common_warm_tips'), + content: t('common_delete_confirm_tips'), success: (res) => { if (res.confirm) { // 调用删除接口