diff --git a/pkg_user/views/gift/receive.vue b/pkg_user/views/gift/receive.vue index 9de10a6..c26daa5 100644 --- a/pkg_user/views/gift/receive.vue +++ b/pkg_user/views/gift/receive.vue @@ -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,