Fix:4139 【商城小程序】礼包领取页面转发功能关闭
This commit is contained in:
@@ -30,8 +30,9 @@ export default {
|
|||||||
},
|
},
|
||||||
onLoad(opts) {
|
onLoad(opts) {
|
||||||
this.getGiftCard(opts.code)
|
this.getGiftCard(opts.code)
|
||||||
|
|
||||||
},
|
},
|
||||||
onShow() {
|
onShow() {
|
||||||
this.giftChooseAddress = uni.getStorageSync('giftChooseAddress') || {}
|
this.giftChooseAddress = uni.getStorageSync('giftChooseAddress') || {}
|
||||||
},
|
},
|
||||||
onShareAppMessage() {
|
onShareAppMessage() {
|
||||||
@@ -62,6 +63,10 @@ export default {
|
|||||||
}).then(res => {
|
}).then(res => {
|
||||||
this.giftCard = res.data || {}
|
this.giftCard = res.data || {}
|
||||||
this.loading = false
|
this.loading = false
|
||||||
|
if(this.giftCard.canTransfer === 0 ) {
|
||||||
|
uni.hideShareMenu()
|
||||||
|
return
|
||||||
|
}
|
||||||
}).catch(err => {
|
}).catch(err => {
|
||||||
this.giftCard = {
|
this.giftCard = {
|
||||||
canTransfer: 0,
|
canTransfer: 0,
|
||||||
|
|||||||
Reference in New Issue
Block a user