Feat(送礼):支持AI的文生图-4
This commit is contained in:
@@ -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: {
|
||||||
|
|||||||
@@ -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
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user