From e92709da70ecba7b95a64de9eebc08ef5f921ce5 Mon Sep 17 00:00:00 2001 From: YunaiV Date: Tue, 3 Oct 2023 18:41:57 +0800 Subject: [PATCH] =?UTF-8?q?promotion=EF=BC=9A=E4=BC=98=E5=8C=96=E7=A7=92?= =?UTF-8?q?=E6=9D=80=E6=B4=BB=E5=8A=A8=E7=9A=84=E7=95=8C=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit (cherry picked from commit 7c491ff62a619854cc24c029fc36bff208527c8f) --- .../mall/promotion/seckill/seckillActivity.ts | 5 + .../mall/promotion/seckill/activity/index.vue | 307 ++++++++++++------ 2 files changed, 219 insertions(+), 93 deletions(-) diff --git a/src/api/mall/promotion/seckill/seckillActivity.ts b/src/api/mall/promotion/seckill/seckillActivity.ts index 42c1c31c..e8346410 100644 --- a/src/api/mall/promotion/seckill/seckillActivity.ts +++ b/src/api/mall/promotion/seckill/seckillActivity.ts @@ -57,6 +57,11 @@ export const updateSeckillActivity = async (data: SeckillActivityVO) => { return await request.put({ url: '/promotion/seckill-activity/update', data }) } +// 关闭秒杀活动 +export const closeSeckillActivity = async (id: number) => { + return await request.put({ url: '/promotion/seckill-activity/close?id=' + id }) +} + // 删除秒杀活动 export const deleteSeckillActivity = async (id: number) => { return await request.delete({ url: '/promotion/seckill-activity/delete?id=' + id }) diff --git a/src/views/mall/promotion/seckill/activity/index.vue b/src/views/mall/promotion/seckill/activity/index.vue index 2ecdd506..695d8162 100644 --- a/src/views/mall/promotion/seckill/activity/index.vue +++ b/src/views/mall/promotion/seckill/activity/index.vue @@ -1,94 +1,205 @@ -