Feat(送礼):支持AI的文生图-4
This commit is contained in:
@@ -64,6 +64,11 @@ export default {
|
||||
watch: {
|
||||
index(val) {
|
||||
this.currentIndex = val
|
||||
},
|
||||
show(val) {
|
||||
if (val) {
|
||||
this.currentIndex = this.index
|
||||
}
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
|
||||
@@ -49,6 +49,7 @@
|
||||
}"
|
||||
mode="heightFix"
|
||||
class="img-image"
|
||||
@click="handleSelectAiCover(item)"
|
||||
/>
|
||||
</view>
|
||||
</view>
|
||||
@@ -793,6 +794,13 @@ export default {
|
||||
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() {
|
||||
this.$refs.giftTips.showTips = true
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user