From a89d01483611de57669879a9c4df108dd26564ba Mon Sep 17 00:00:00 2001 From: YunaiV Date: Sun, 18 Jun 2023 02:01:24 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90=E9=A6=96=E9=A1=B5=E3=80=91=201.=20?= =?UTF-8?q?=E7=A7=92=E6=9D=80=E6=B4=BB=E5=8A=A8=E7=BB=84=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- api/promotion/seckill.js | 7 ++++ pages/index/components/a_seckill.vue | 62 +++++++++++++++------------- 2 files changed, 41 insertions(+), 28 deletions(-) diff --git a/api/promotion/seckill.js b/api/promotion/seckill.js index 83986fe7..25a56af5 100644 --- a/api/promotion/seckill.js +++ b/api/promotion/seckill.js @@ -1,5 +1,12 @@ import request from "@/utils/request.js"; +// 获得当前秒杀活动 +export function getNowSeckillActivity(id) { + return request.get("app-api/promotion/seckill-activity/get-now", {}, { + noAuth: true // TODO 芋艿:后续要做调整 + }); +} + // 获得秒杀活动明细 export function getSeckillActivity(id) { return request.get("app-api/promotion/seckill-activity/get-detail", { diff --git a/pages/index/components/a_seckill.vue b/pages/index/components/a_seckill.vue index 6614f477..1c2e95c0 100644 --- a/pages/index/components/a_seckill.vue +++ b/pages/index/components/a_seckill.vue @@ -9,34 +9,34 @@ {{point}} 场 + :datatime="datatime" :is-col="true" :bgColor="bgColor" /> - GO + + GO + - + - {{item.title}} - ¥{{item.price}} - ¥{{item.otPrice}} + {{ item.name }} + ¥{{ fen2yuan(item.seckillPrice ) }} + ¥{{ fen2yuan(item.marketPrice) }} - -