From 8755d646837de2cd1a6de1fb430cfa7733e6de79 Mon Sep 17 00:00:00 2001 From: owen Date: Fri, 1 Dec 2023 21:00:39 +0800 Subject: [PATCH] =?UTF-8?q?=E8=90=A5=E9=94=80=EF=BC=9A=E9=80=82=E9=85=8D?= =?UTF-8?q?=E5=95=86=E5=9F=8E=E8=A3=85=E4=BF=AE=E7=BB=84=E4=BB=B6=E3=80=90?= =?UTF-8?q?=E6=8B=BC=E5=9B=A2=E3=80=91=EF=BC=88=E5=BE=85=E9=87=8D=E5=86=99?= =?UTF-8?q?=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- sheep/api/promotion/combination.js | 67 +++++++++++++++++++ .../components/s-block-item/s-block-item.vue | 2 +- .../s-groupon-block/s-groupon-block.vue | 56 ++++++++-------- .../s-seckill-block/s-seckill-block.vue | 4 +- 4 files changed, 98 insertions(+), 31 deletions(-) create mode 100644 sheep/api/promotion/combination.js diff --git a/sheep/api/promotion/combination.js b/sheep/api/promotion/combination.js new file mode 100644 index 0000000..eeeb9a0 --- /dev/null +++ b/sheep/api/promotion/combination.js @@ -0,0 +1,67 @@ +import request2 from "@/sheep/request2"; + +// 拼团 API +const CombinationApi = { + // 获得拼团活动列表 + getCombinationActivityList: (count) => { + return request2({ + url: "promotion/combination-activity/list", + method: 'GET', + params: {count} + }); + }, + + // 获得拼团活动分页 + getCombinationActivityPage: (params) => { + return request2({ + url: "promotion/combination-activity/page", + method: 'GET', + params + }); + }, + + // 获得拼团活动明细 + getCombinationActivity: (id) => { + return request2({ + url: "promotion/combination-activity/get-detail", + method: 'GET', + params: { + id + } + }); + }, + + // 获得最近 n 条拼团记录(团长发起的) + getHeadCombinationRecordList: (activityId, status, count) => { + return request2({ + url: "promotion/combination-record/get-head-list", + method: 'GET', + params: { + activityId, + status, + count + } + }); + }, + + // 获得拼团记录明细 + getCombinationRecordDetail: (id) => { + return request2({ + url: "promotion/combination-record/get-detail", + method: 'GET', + params: { + id + } + }); + }, + + // 获得拼团记录的概要信息 + getCombinationRecordSummary: () => { + return request2({ + url: "promotion/combination-record/get-summary", + method: 'GET', + }); + } +} + +export default CombinationApi diff --git a/sheep/components/s-block-item/s-block-item.vue b/sheep/components/s-block-item/s-block-item.vue index b39337b..eec343c 100644 --- a/sheep/components/s-block-item/s-block-item.vue +++ b/sheep/components/s-block-item/s-block-item.vue @@ -32,7 +32,7 @@ - + diff --git a/sheep/components/s-groupon-block/s-groupon-block.vue b/sheep/components/s-groupon-block/s-groupon-block.vue index 3aea89c..7ea1c8f 100644 --- a/sheep/components/s-groupon-block/s-groupon-block.vue +++ b/sheep/components/s-groupon-block/s-groupon-block.vue @@ -2,13 +2,13 @@