From b8dd02b4a7338dd01d68f5d1891602fa4f86ec38 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E9=BB=84=E6=B3=BD=E7=BE=A4?= <1986070059@qq.com>
Date: Fri, 23 Jan 2026 15:55:56 +0800
Subject: [PATCH] =?UTF-8?q?feat:=20=E5=88=86=E4=BA=AB?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../other_package/components/share-popup.vue | 2 +-
.../other_package/productInfo/productInfo.vue | 44 ++++++++++++++++++-
2 files changed, 44 insertions(+), 2 deletions(-)
diff --git a/pages/other_package/components/share-popup.vue b/pages/other_package/components/share-popup.vue
index 2164cd4..960ed7f 100644
--- a/pages/other_package/components/share-popup.vue
+++ b/pages/other_package/components/share-popup.vue
@@ -99,7 +99,7 @@
},
onWxBtn(index){
console.log('微信分享',index);
- this.$emit('share',index)
+ this.$emit('wxShare',index)
},
onBtn(index){
if(index == 2){
diff --git a/pages/other_package/productInfo/productInfo.vue b/pages/other_package/productInfo/productInfo.vue
index e38aba4..40f87f8 100644
--- a/pages/other_package/productInfo/productInfo.vue
+++ b/pages/other_package/productInfo/productInfo.vue
@@ -551,6 +551,49 @@ export default {
});
},
getValue,
+ // 微信小程序环境分享
+ onWxShare(index) {
+ console.log("分享", index);
+ // const shareParams = {
+ // title: this.orderInfo.name || "商品分享",
+ // path: `/pages/other_package/productInfo/productInfo?id=${this.id}${this.orderInfo.name}`,
+ // imageUrl: this.swiperList.length > 0 ? this.swiperList[0] : "",
+ // };
+ // if (index == 0) {
+ // uni.share({
+ // provider: "weixin",
+ // scene: "WXSceneSession", // 好友场景
+ // title: shareParams.title,
+ // path: shareParams.path,
+ // imageUrl: shareParams.imageUrl,
+ // success: (res) => {
+ // console.log("分享好友成功", res);
+ // uni.showToast({ title: "分享成功", icon: "success" });
+ // },
+ // fail: (err) => {
+ // console.log("分享好友失败", err);
+ // uni.showToast({ title: "分享取消", icon: "none" });
+ // },
+ // });
+ // } else {
+ // // 分享到微信朋友圈
+ // uni.share({
+ // provider: "weixin",
+ // scene: "WXSceneTimeline", // 朋友圈场景
+ // title: shareParams.title,
+ // path: shareParams.path,
+ // imageUrl: shareParams.imageUrl,
+ // success: (res) => {
+ // console.log("分享朋友圈成功", res);
+ // uni.showToast({ title: "分享成功", icon: "success" });
+ // },
+ // fail: (err) => {
+ // console.log("分享朋友圈失败", err);
+ // uni.showToast({ title: "分享取消", icon: "none" });
+ // },
+ // });
+ // }
+ },
onShare(index) {
let tmp = `【信任桥】消费共享数字化权益 ${SHARE_URL}/#/pages/other_package/productInfo/productInfo?id=${this.id} ${this.orderInfo.name}`;
if (index == 0) {
@@ -907,7 +950,6 @@ export default {
/
]*?)>/gi,
'
'
);
-
}
},
/**