Feat:新增盲盒分享封面设置
This commit is contained in:
@@ -262,7 +262,9 @@ export default {
|
|||||||
usable: []
|
usable: []
|
||||||
},
|
},
|
||||||
couponTitle: '',
|
couponTitle: '',
|
||||||
showPopup: false
|
showPopup: false,
|
||||||
|
blindImage: '',
|
||||||
|
shareImage: ''
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
watch: {
|
watch: {
|
||||||
@@ -270,6 +272,17 @@ 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) {
|
||||||
@@ -288,7 +301,7 @@ export default {
|
|||||||
return {
|
return {
|
||||||
title: '礼笺轻启,礼藏心意',
|
title: '礼笺轻启,礼藏心意',
|
||||||
path: `/pkg_user/views/gift/receive?code=${this.giftKey}`,
|
path: `/pkg_user/views/gift/receive?code=${this.giftKey}`,
|
||||||
imageUrl: this.giftImage
|
imageUrl: this.shareImage
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
// onReady() {
|
// onReady() {
|
||||||
@@ -413,6 +426,7 @@ export default {
|
|||||||
this.templateId = res.data.specialGiftCardTemplate.id
|
this.templateId = res.data.specialGiftCardTemplate.id
|
||||||
this.selectedCover = res.data.specialGiftCardTemplate.cover
|
this.selectedCover = res.data.specialGiftCardTemplate.cover
|
||||||
this.giftImage = res.data.specialGiftCardTemplate.image
|
this.giftImage = res.data.specialGiftCardTemplate.image
|
||||||
|
this.blindImage = res.data.giftCardBlindBoxShareImage
|
||||||
this.defaultIndex = this.coverList.findIndex(item => item.id === this.templateId)
|
this.defaultIndex = this.coverList.findIndex(item => item.id === this.templateId)
|
||||||
// if(!this.couponId) {
|
// if(!this.couponId) {
|
||||||
// this.couponId = res.data.couponList.usable[0] && res.data.couponList.usable[0].id || ''
|
// this.couponId = res.data.couponList.usable[0] && res.data.couponList.usable[0].id || ''
|
||||||
|
|||||||
Reference in New Issue
Block a user