From 35b5b35048c2b7e360c868bf5eafb66d40fd7b6a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B5=B5=E5=BF=A0=E6=9E=97?= <170083662@qq.com> Date: Sun, 17 Aug 2025 19:29:49 +0800 Subject: [PATCH] =?UTF-8?q?feat(shopGift):=20=E4=BC=98=E5=8C=96=E7=A4=BC?= =?UTF-8?q?=E5=93=81=E5=8D=A1=E7=94=9F=E6=88=90=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 新增礼品卡预览功能 - 添加使用地址字段 - 优化商品选择界面 - 增加备注信息字段 - 改进表单样式和布局 --- .env.development | 2 +- src/api/shop/shopGift/model/index.ts | 12 +- src/views/passport/register2/index.vue | 804 ++++++++++++++++++ .../shop/shopGift/components/makeCard.vue | 417 +++++++-- src/views/shop/shopGift/components/search.vue | 11 +- .../shop/shopGift/components/shopGiftEdit.vue | 772 +++++++++-------- src/views/shop/shopGift/index.vue | 30 +- 7 files changed, 1580 insertions(+), 468 deletions(-) create mode 100644 src/views/passport/register2/index.vue diff --git a/.env.development b/.env.development index b8ccd8b..fbcc74b 100644 --- a/.env.development +++ b/.env.development @@ -1,5 +1,5 @@ VITE_APP_NAME=后台管理(开发环境) -#VITE_API_URL=http://127.0.0.1:9200/api +VITE_API_URL=http://127.0.0.1:9200/api #VITE_SERVER_API_URL=http://127.0.0.1:8000/api diff --git a/src/api/shop/shopGift/model/index.ts b/src/api/shop/shopGift/model/index.ts index 84dca6a..2f5280d 100644 --- a/src/api/shop/shopGift/model/index.ts +++ b/src/api/shop/shopGift/model/index.ts @@ -14,8 +14,16 @@ export interface ShopGift { goodsId?: number; // 领取时间 takeTime?: string; - // 操作人 + // 核销时间 + verificationTime?: string; + // 操作人ID operatorUserId?: number; + // 操作人 + operatorUserName?: string; + // 操作备注 + operatorRemarks?: string; + // 使用地址 + useLocation?: string; // 是否展示 isShow?: boolean; // 状态, 0上架 1待上架 2待审核 3审核不通过 @@ -26,6 +34,8 @@ export interface ShopGift { sortNumber?: number; // 用户ID userId?: number; + // 昵称 + nickName?: string; // 是否删除, 0否, 1是 deleted?: number; // 租户id diff --git a/src/views/passport/register2/index.vue b/src/views/passport/register2/index.vue new file mode 100644 index 0000000..eca38fd --- /dev/null +++ b/src/views/passport/register2/index.vue @@ -0,0 +1,804 @@ + + + + + diff --git a/src/views/shop/shopGift/components/makeCard.vue b/src/views/shop/shopGift/components/makeCard.vue index d29cb27..962797e 100644 --- a/src/views/shop/shopGift/components/makeCard.vue +++ b/src/views/shop/shopGift/components/makeCard.vue @@ -20,10 +20,10 @@ " > - + - + + + + +
+ {{ goods.name }} + ¥{{ goods.price || 0 }} +
+
+ +
+ {{ goodsLoading ? '加载中...' : '暂无商品数据' }} +
+
+
+
- + + + + + + + + +
+ + 礼品卡预览 + +
+
+
{{ form.name }}
+
+ + 领取时间:{{ formatTime(form.takeTime) }} + 未领取 + +
+
+
+
+ 卡密: + {{ form.code || '自动生成' }} +
+
+ 关联商品: + {{ selectedGoods.name }} + ¥{{ selectedGoods.price }} +
+
+ 使用地址: + {{ form.useLocation }} +
+
+ +
+
+ + diff --git a/src/views/shop/shopGift/components/search.vue b/src/views/shop/shopGift/components/search.vue index f175c25..ed2556b 100644 --- a/src/views/shop/shopGift/components/search.vue +++ b/src/views/shop/shopGift/components/search.vue @@ -1,13 +1,16 @@