From ccec7ad410aac5be9f072fad0c61711924719a59 Mon Sep 17 00:00:00 2001 From: puhui999 Date: Fri, 20 Oct 2023 15:35:01 +0800 Subject: [PATCH] =?UTF-8?q?SPU:=20=E5=AE=8C=E5=96=84=E4=BC=98=E6=83=A0?= =?UTF-8?q?=E5=8D=B7=E9=80=89=E6=8B=A9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit (cherry picked from commit 01d78429cc68139d87138c66db93f85aec94dc14) --- src/api/mall/product/spu.ts | 3 +- .../product/spu/form/OtherSettingsForm.vue | 55 +++++++++++++------ src/views/mall/product/spu/form/index.vue | 5 +- src/views/mall/product/spu/form/spu.data.ts | 2 +- 4 files changed, 43 insertions(+), 22 deletions(-) diff --git a/src/api/mall/product/spu.ts b/src/api/mall/product/spu.ts index 4ca9f2c8..75b3b433 100644 --- a/src/api/mall/product/spu.ts +++ b/src/api/mall/product/spu.ts @@ -60,7 +60,8 @@ export interface Spu { stock?: number // 商品库存 createTime?: Date // 商品创建时间 status?: number // 商品状态 - giveCouponTemplate?: GiveCouponTemplate[] + activityOrders: number[] // 活动排序 + giveCouponTemplates: GiveCouponTemplate[] // 优惠卷 } // 获得 Spu 列表 diff --git a/src/views/mall/product/spu/form/OtherSettingsForm.vue b/src/views/mall/product/spu/form/OtherSettingsForm.vue index 033806b6..d7217cfe 100644 --- a/src/views/mall/product/spu/form/OtherSettingsForm.vue +++ b/src/views/mall/product/spu/form/OtherSettingsForm.vue @@ -44,7 +44,7 @@ - + {{ coupon.name }} 选择优惠券 @@ -67,35 +71,49 @@ -