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) }} - -