From 33507a5bb07aaac35da7df56d7ceafa4d1508068 Mon Sep 17 00:00:00 2001 From: donqi Date: Wed, 2 Aug 2023 21:57:54 +0800 Subject: [PATCH] =?UTF-8?q?=E5=95=86=E5=93=81=E8=AF=A6=E6=83=85=E5=88=86?= =?UTF-8?q?=E4=BA=AB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/product/product-detail.vue | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/pages/product/product-detail.vue b/pages/product/product-detail.vue index 92204f8..bd39229 100644 --- a/pages/product/product-detail.vue +++ b/pages/product/product-detail.vue @@ -283,6 +283,26 @@ onPageScroll(e) { this.showTopNav = e.scrollTop > 250 ? true : false; this.changeSwiperHeight = e.scrollTop > 50 ? true: false; + }, + onShareAppMessage(e) { + let params = { + goodsId: this.inParam.goodsId + } + return { + title: this.productDetail.goodsName, + path: '/pages/product/product-detail?params=' + encodeURIComponent(JSON.stringify(params)), + // imageUrl: productDetail + } + }, + onShareTimeline(e) { + let params = { + goodsId: this.inParam.goodsId + } + return { + title: this.productDetail.goodsName, + path: '/pages/product/product-detail?params=' + encodeURIComponent(JSON.stringify(params)), + imageUrl: this.productDetail.goodsImgUrl + } }, methods: { async loadData() {