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("打开成功") } }) },