From 733048e2c9486c678ce3c1b51415b14ffd5c8ee3 Mon Sep 17 00:00:00 2001 From: lifizer <913626195@qq.com> Date: Tue, 8 Sep 2026 15:23:29 +0800 Subject: [PATCH] =?UTF-8?q?Feat(=E9=80=81=E7=A4=BC):=E6=94=AF=E6=8C=81AI?= =?UTF-8?q?=E7=9A=84=E6=96=87=E7=94=9F=E5=9B=BE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- api/gift.js | 24 + .../views/gift/components/AiCoverPicker.vue | 155 +++++++ pkg_user/views/gift/gift.vue | 413 +++++++++++++++++- 3 files changed, 579 insertions(+), 13 deletions(-) create mode 100644 pkg_user/views/gift/components/AiCoverPicker.vue 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 @@