Feat(送礼):支持AI的文生图-4

This commit is contained in:
lifizer
2026-09-09 14:32:51 +08:00
parent 3523ce5599
commit a59d10e7dc
2 changed files with 13 additions and 0 deletions
@@ -64,6 +64,11 @@ export default {
watch: { watch: {
index(val) { index(val) {
this.currentIndex = val this.currentIndex = val
},
show(val) {
if (val) {
this.currentIndex = this.index
}
} }
}, },
methods: { methods: {
+8
View File
@@ -49,6 +49,7 @@
}" }"
mode="heightFix" mode="heightFix"
class="img-image" class="img-image"
@click="handleSelectAiCover(item)"
/> />
</view> </view>
</view> </view>
@@ -793,6 +794,13 @@ export default {
this.aiDefaultIndex = this.aiCoverImgsList.findIndex(item => item.id === cover.id) this.aiDefaultIndex = this.aiCoverImgsList.findIndex(item => item.id === cover.id)
} }
}, },
handleSelectAiCover(cover) {
this.selectedAiCoverImage = cover
this.aiDefaultIndex = this.aiCoverImgsList.findIndex(item => item.id === cover.id)
this.selectedCover = cover.cover
this.giftImage = cover.image
this.templateId = cover.id
},
showTips() { showTips() {
this.$refs.giftTips.showTips = true this.$refs.giftTips.showTips = true
}, },