From 19b9a268115d54df05762b3d223ebaa4dccd2fb9 Mon Sep 17 00:00:00 2001 From: lifizer <913626195@qq.com> Date: Fri, 14 Nov 2025 17:58:37 +0800 Subject: [PATCH] =?UTF-8?q?Feat(=E5=95=86=E5=93=81=E8=AF=A6=E6=83=85):?= =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E5=88=86=E4=BA=AB=E6=9C=8B=E5=8F=8B=E5=9C=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/shop/GoodsCon/index.vue | 37 +++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) diff --git a/pages/shop/GoodsCon/index.vue b/pages/shop/GoodsCon/index.vue index 03e485f..e3d6b4e 100644 --- a/pages/shop/GoodsCon/index.vue +++ b/pages/shop/GoodsCon/index.vue @@ -688,6 +688,43 @@ export default { } }) }, + onShareTimeline() { + uni.updateShareMenu({ + isPrivateMessage: false, + withShareTicket: false + }) + const storeName = this.storeInfo.storeName + const promise = new Promise(async (resolve, reject) => { + let result = null + let query = `id=${this.id}&partnerId=${this.userInfo.uid}` + if (this.source === 'famous') { + result = await famousGoodsShareImage(this.id) + } + if (this.source === 'kill') { + result = await secKillGoodsShareImage(this.activityId) + query += `&activityId=${this.activityId}` + } + if (result && result.status === 200) { + resolve({ + title: storeName, + query, + imageUrl: result.data + }) + } else { + resolve({ + title: storeName, + query, + imageUrl: this.storeInfo.image + }) + } + }) + return { + title: storeName, + query: `id=${this.id}&partnerId=${this.userInfo.uid}`, + imageUrl: this.storeInfo.image, + promise + } + }, onLoad(options) { // test data console.log("getLaunchOptionsSync", uni.getLaunchOptionsSync())