Fix:4139 【商城小程序】礼包领取页面转发功能关闭

This commit is contained in:
linxi
2025-08-08 10:01:52 +08:00
parent f32c04dc01
commit cd592355bf
+6 -1
View File
@@ -30,8 +30,9 @@ export default {
},
onLoad(opts) {
this.getGiftCard(opts.code)
},
onShow() {
onShow() {
this.giftChooseAddress = uni.getStorageSync('giftChooseAddress') || {}
},
onShareAppMessage() {
@@ -62,6 +63,10 @@ export default {
}).then(res => {
this.giftCard = res.data || {}
this.loading = false
if(this.giftCard.canTransfer === 0 ) {
uni.hideShareMenu()
return
}
}).catch(err => {
this.giftCard = {
canTransfer: 0,