From b88b260ac298cc2d83c88ea5fb7b28ce8c3496a2 Mon Sep 17 00:00:00 2001 From: YunaiV Date: Mon, 19 Jun 2023 20:36:58 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90=E9=A6=96=E9=A1=B5=E3=80=91=201.=20?= =?UTF-8?q?=E7=A0=8D=E4=BB=B7=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/activity.js | 62 --------- api/promotion/bargain.js | 17 +++ pages/activity/goods_bargain/index.vue | 122 +++++++----------- .../activity/goods_bargain_details/index.vue | 29 +---- pages/index/components/c_bargain.vue | 52 ++++---- 5 files changed, 92 insertions(+), 190 deletions(-) create mode 100644 api/promotion/bargain.js diff --git a/api/activity.js b/api/activity.js index ed96defe..6bdba9eb 100644 --- a/api/activity.js +++ b/api/activity.js @@ -96,31 +96,6 @@ export function postBargainHelpList(params,data) { return request.get("bargain/help/list?limit="+params.limit+"&page="+params.page, data,{}); } -/** - * 秒杀产品时间区间 - * -*/ -export function getSeckillIndexTime(){ - return request.get('seckill/index',{},{noAuth:true}); -} - -/** - * 秒杀产品列表 - * @param int time - * @param object data -*/ -export function getSeckillList(time,data){ - return request.get('seckill/list/'+time,data,{noAuth:true}); -} - -/** - * 秒杀产品详情 - * @param int id -*/ -export function getSeckillDetail(id){ - return request.get('seckill/detail/'+id); -} - /** * 砍价海报 * @param object data @@ -160,46 +135,9 @@ export function scombinationCode(id) { return request.get("combination/code/"+id); } -/** - * 秒杀产品时间区间 - * @param int id -*/ -export function getSeckillHeaderApi(){ - return request.get('seckill/header',{},{noAuth:true}); -} - -/** - * 首页秒杀产品列表 -*/ -export function getSeckillIndexApi(){ - return request.get('seckill/index',{},{noAuth:true}); -} - - -/** - * 首页拼团产品列表 -*/ -export function getCombinationIndexApi(){ - return request.get('combination/index',{},{noAuth:true}); -} - -/** - * 首页砍价产品列表 -*/ -export function getBargainIndexApi(){ - return request.get('bargain/index',{},{noAuth:true}); -} - /** * 首页砍价产品列表 */ export function bargainHeaderApi(){ return request.get('bargain/header'); } - -/** - * 拼图列表头部 -*/ -export function combinationHeaderApi(){ - return request.get('combination/header'); -} diff --git a/api/promotion/bargain.js b/api/promotion/bargain.js new file mode 100644 index 00000000..cf5e3369 --- /dev/null +++ b/api/promotion/bargain.js @@ -0,0 +1,17 @@ +import request from "@/utils/request.js"; + +// 获得砍价活动列表 +export function getBargainActivityList(count) { + return request.get("app-api/promotion/bargain-activity/list", { + count + }, { + noAuth: true // TODO 芋艿:后续要做调整 + }); +} + +// 获得砍价记录的概要信息 +export function getBargainRecordSummary() { + return request.get("app-api/promotion/bargain-record/get-summary", {}, { + noAuth: true // TODO 芋艿:后续要做调整 + }); +} diff --git a/pages/activity/goods_bargain/index.vue b/pages/activity/goods_bargain/index.vue index b178ab54..5bc2181b 100644 --- a/pages/activity/goods_bargain/index.vue +++ b/pages/activity/goods_bargain/index.vue @@ -5,6 +5,7 @@ + @@ -14,17 +15,19 @@ - {{$util.formatName(item.nickName)}} + {{ item.nickname }} 拿了 - {{item.title}} + {{ item.activityName }} - 已有{{bargainTotal}}人砍成功 + 已有{{ bargainTotal }}人砍成功 + + {{item.title}} - + 后结束 @@ -46,76 +48,63 @@ 已售罄 - 最低: ¥{{item.minPrice}} - 参与砍价 - 已售罄 + 参与砍价 + 已售罄 - {{loadTitle}} + {{loadTitle}} - - - -