Feat:礼品卡消息不允许转发

This commit is contained in:
linxi
2025-06-05 15:52:38 +08:00
3 changed files with 13 additions and 0 deletions
+5
View File
@@ -191,6 +191,11 @@ export default {
}, },
computed: mapGetters(["userInfo"]), computed: mapGetters(["userInfo"]),
onShareAppMessage() { onShareAppMessage() {
console.log('share');
uni.updateShareMenu({
isPrivateMessage: true,
withShareTicket: true
})
return { return {
title: this.message || '礼笺轻启,礼藏心意', title: this.message || '礼笺轻启,礼藏心意',
path: `/pkg_user/views/gift/receive?code=${this.giftKey}`, path: `/pkg_user/views/gift/receive?code=${this.giftKey}`,
+4
View File
@@ -35,6 +35,10 @@ export default {
this.giftChooseAddress = uni.getStorageSync('giftChooseAddress') || {} this.giftChooseAddress = uni.getStorageSync('giftChooseAddress') || {}
}, },
onShareAppMessage() { onShareAppMessage() {
uni.updateShareMenu({
isPrivateMessage: true,
withShareTicket: true
})
return { return {
title: this.giftCard.message || '礼笺轻启,礼藏心意', title: this.giftCard.message || '礼笺轻启,礼藏心意',
path: `/pkg_user/views/gift/receive?code=${this.giftCard.code}`, path: `/pkg_user/views/gift/receive?code=${this.giftCard.code}`,
+4
View File
@@ -247,6 +247,10 @@ export default {
this.getGiftCardSendList() this.getGiftCardSendList()
}, },
onShareAppMessage() { onShareAppMessage() {
uni.updateShareMenu({
isPrivateMessage: true,
withShareTicket: true
})
return { return {
title: this.giftItem.message || '礼笺轻启,礼藏心意', title: this.giftItem.message || '礼笺轻启,礼藏心意',
path: `/pkg_user/views/gift/receive?code=${this.giftItem.code}`, path: `/pkg_user/views/gift/receive?code=${this.giftItem.code}`,