From acb29181f07d9057b9ffb63fe34ccde7d25fbffb Mon Sep 17 00:00:00 2001 From: hly <2783385703@qq.com> Date: Tue, 12 Aug 2025 16:41:51 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E8=BD=AE=E6=92=AD?= =?UTF-8?q?=E5=9B=BE=E7=82=B9=E5=87=BB=E8=B7=B3=E8=BD=AC=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 添加对轮播图点击事件的处理逻辑,当banner包含appPath时进行页面跳转 --- pages/index/index.vue | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/pages/index/index.vue b/pages/index/index.vue index 2d4eed2..40f4ecb 100644 --- a/pages/index/index.vue +++ b/pages/index/index.vue @@ -143,7 +143,12 @@ }, // 点击轮播图 clickBanner(index) { - // const banner = this.bannerList[index]; + const banner = this.bannerList[index]; + if(banner.appPath){ + uni.navigateTo({ + url: banner.appPath + }) + } // console.log('点击了轮播图:', banner.title); // // 跳转到小说详情页 // uni.showToast({