Feat:新增盲盒分享封面设置
This commit is contained in:
@@ -263,8 +263,7 @@ export default {
|
|||||||
},
|
},
|
||||||
couponTitle: '',
|
couponTitle: '',
|
||||||
showPopup: false,
|
showPopup: false,
|
||||||
blindImage: '',
|
blindImage: ''
|
||||||
shareImage: ''
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
watch: {
|
watch: {
|
||||||
@@ -272,17 +271,6 @@ export default {
|
|||||||
this.couponIndex = this.couponList['usable']?.findIndex(item => item.id === +value)
|
this.couponIndex = this.couponList['usable']?.findIndex(item => item.id === +value)
|
||||||
this.couponTitle = this.couponList['usable']?.[this.couponIndex]?.couponTitle
|
this.couponTitle = this.couponList['usable']?.[this.couponIndex]?.couponTitle
|
||||||
await this.computedPrice(this.goodsInfo.cartNum, 1)
|
await this.computedPrice(this.goodsInfo.cartNum, 1)
|
||||||
},
|
|
||||||
isBlind: {
|
|
||||||
handler(value) {
|
|
||||||
if(value) {
|
|
||||||
this.shareImage = this.blindImage
|
|
||||||
} else {
|
|
||||||
this.shareImage = this.giftImage
|
|
||||||
}
|
|
||||||
},
|
|
||||||
immediate: true,
|
|
||||||
deep: true
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
onLoad(opts) {
|
onLoad(opts) {
|
||||||
@@ -291,7 +279,12 @@ export default {
|
|||||||
this.discount = opts.discount
|
this.discount = opts.discount
|
||||||
this.getGift()
|
this.getGift()
|
||||||
},
|
},
|
||||||
computed: mapGetters(["userInfo"]),
|
computed: {
|
||||||
|
...mapGetters(["userInfo"]),
|
||||||
|
shareImage() {
|
||||||
|
return this.isBlind ? this.blindImage : this.giftImage
|
||||||
|
}
|
||||||
|
},
|
||||||
onShareAppMessage() {
|
onShareAppMessage() {
|
||||||
console.log('share');
|
console.log('share');
|
||||||
uni.updateShareMenu({
|
uni.updateShareMenu({
|
||||||
|
|||||||
Reference in New Issue
Block a user