diff --git a/api/gift.js b/api/gift.js index 3f33c62..17e7767 100644 --- a/api/gift.js +++ b/api/gift.js @@ -124,3 +124,27 @@ export function computedSojoumGroupBuyGiftOrderPrice(params) { login: true }) } + +/** + * 文生图发起生成 + * @param {*} data + * @returns + */ + +export function aiGiftImageGenerate(data) { + return request.post("/aiGiftImage/generate", data, { + login: true + }) +} + +/** + * 文生图状态查询 + * @param {*} params + * @returns + */ + +export function aiGiftImageStatus(params) { + return request.get("/aiGiftImage/" + params.productId, { + login: true + }) +} diff --git a/pkg_user/views/gift/components/AiCoverPicker.vue b/pkg_user/views/gift/components/AiCoverPicker.vue new file mode 100644 index 0000000..5bc70a7 --- /dev/null +++ b/pkg_user/views/gift/components/AiCoverPicker.vue @@ -0,0 +1,155 @@ + + + + + diff --git a/pkg_user/views/gift/gift.vue b/pkg_user/views/gift/gift.vue index dd26b6a..53fa673 100644 --- a/pkg_user/views/gift/gift.vue +++ b/pkg_user/views/gift/gift.vue @@ -1,9 +1,81 @@