From 0546bc0207c9aefe1bcf195348092f65b3ca4e83 Mon Sep 17 00:00:00 2001 From: riverflow <3011499946@qq.com> Date: Mon, 25 Aug 2025 17:12:49 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E9=A6=96=E9=A1=B5=E7=80=91?= =?UTF-8?q?=E5=B8=83=E6=B5=81=E5=B7=A6=E4=BE=A7=E5=9B=BE=E7=89=87=E8=B7=B3?= =?UTF-8?q?=E8=BD=AC=E8=AF=A6=E6=83=85=E5=8F=82=E6=95=B0=E9=94=99=E8=AF=AF?= =?UTF-8?q?bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- order-app/src/pages/index/index.vue | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/order-app/src/pages/index/index.vue b/order-app/src/pages/index/index.vue index 3c9855c..4975cc9 100644 --- a/order-app/src/pages/index/index.vue +++ b/order-app/src/pages/index/index.vue @@ -91,12 +91,13 @@ flowList.value = res.data; } } - //跳转详情 + //跳转详情 - 修改后的函数 const toDetails = (item) => { console.log(item) - //在起始页面跳转到details.vue页面并传递参数 + // 对参数进行编码 + const encodedGoods = encodeURIComponent(JSON.stringify(item)) uni.navigateTo({ - url: '../detail/detail?goods=' + JSON.stringify(item) + url: '../detail/detail?goods=' + encodedGoods }); } onLoad(() => {