diff --git a/api/gift.js b/api/gift.js index 17e7767..7664480 100644 --- a/api/gift.js +++ b/api/gift.js @@ -148,3 +148,15 @@ export function aiGiftImageStatus(params) { login: true }) } + +/** + * 获取商品以前使用过的AI礼品卡图片 + * @param {*} params + * @returns + */ + +export function aiGiftImageHistory(params) { + return request.get("/giftCard/aiGiftImages/history?productId=" + params.productId, { + login: true + }) +} diff --git a/pkg_user/views/gift/components/AiHistoryCoverPicker.vue b/pkg_user/views/gift/components/AiHistoryCoverPicker.vue new file mode 100644 index 0000000..2782b1f --- /dev/null +++ b/pkg_user/views/gift/components/AiHistoryCoverPicker.vue @@ -0,0 +1,164 @@ + + + + + diff --git a/pkg_user/views/gift/gift.vue b/pkg_user/views/gift/gift.vue index 0329c7e..6c88272 100644 --- a/pkg_user/views/gift/gift.vue +++ b/pkg_user/views/gift/gift.vue @@ -36,49 +36,96 @@ > - -