From 009436f3401487174256d9e692a08afaf74f66b5 Mon Sep 17 00:00:00 2001 From: fanfan Date: Thu, 17 Oct 2024 20:27:50 +0800 Subject: [PATCH] =?UTF-8?q?=E5=90=8C=E6=AC=BE=E6=AF=94?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/goods/detail.vue | 8 ++++++-- pages/goods/seckillDetail.vue | 8 ++++++-- 2 files changed, 12 insertions(+), 4 deletions(-) diff --git a/pages/goods/detail.vue b/pages/goods/detail.vue index 4ff40ac..ff8b02c 100644 --- a/pages/goods/detail.vue +++ b/pages/goods/detail.vue @@ -829,12 +829,16 @@ //跳转京东小程序详情 toJDdetal() { wx.navigateToMiniProgram({ - appId: 'wx91d27dbf599dff74', - path: '/pages/item/detail/detail?sku=' + this.goods_sku_no, + appId: 'wx91d27dbf599dff74', //app.json内容 + path: 'pages/union/proxy/proxy?spreadUrl=' + encodeURIComponent(this.goods.jd_short_url), + extraData: { + foo: 'bar' + }, envVersion: 'release', success(res) { // 打开成功 console.log(res); + console.log("打开成功") } }) }, diff --git a/pages/goods/seckillDetail.vue b/pages/goods/seckillDetail.vue index 06cc612..7505339 100644 --- a/pages/goods/seckillDetail.vue +++ b/pages/goods/seckillDetail.vue @@ -735,12 +735,16 @@ //跳转京东小程序详情 toJDdetal() { wx.navigateToMiniProgram({ - appId: 'wx91d27dbf599dff74', - path: '/pages/item/detail/detail?sku=' + this.goods_sku_no, + appId: 'wx91d27dbf599dff74', //app.json内容 + path: 'pages/union/proxy/proxy?spreadUrl=' + encodeURIComponent(this.goods.jd_short_url), + extraData: { + foo: 'bar' + }, envVersion: 'release', success(res) { // 打开成功 console.log(res); + console.log("打开成功") } }) },