From 70fe080f5705997aa584a8ee13ee944276c61965 Mon Sep 17 00:00:00 2001 From: YunaiV Date: Sat, 17 Jun 2023 00:48:00 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90=E6=8B=BC=E5=9B=A2=E6=B4=BB=E5=8A=A8?= =?UTF-8?q?=E5=88=97=E8=A1=A8=E3=80=91=201.=20=E6=8E=A5=E5=85=A5=20banner?= =?UTF-8?q?=20=E6=B4=BB=E5=8A=A8=E9=A1=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- api/promotion/banner.js | 7 ++ api/promotion/combination.js | 7 ++ pages/activity/goods_combination/index.vue | 77 ++++++++++++---------- 3 files changed, 56 insertions(+), 35 deletions(-) create mode 100644 api/promotion/banner.js diff --git a/api/promotion/banner.js b/api/promotion/banner.js new file mode 100644 index 00000000..d2d78688 --- /dev/null +++ b/api/promotion/banner.js @@ -0,0 +1,7 @@ +import request from "@/utils/request.js"; + +export function getBannerList(position) { + return request.get("app-api/promotion/banner/list", { + position + }); +} diff --git a/api/promotion/combination.js b/api/promotion/combination.js index 1426d9f1..1ff8f705 100644 --- a/api/promotion/combination.js +++ b/api/promotion/combination.js @@ -34,3 +34,10 @@ export function getCombinationRecordDetail(id) { noAuth: true // TODO 芋艿:后续要做调整 }); } + +// 获得拼团活动的概要信息 +export function getCombinationSummary() { + return request.get("app-api/promotion/combination-record/get-summary", {}, { + noAuth: true // TODO 芋艿:后续要做调整 + }); +} diff --git a/pages/activity/goods_combination/index.vue b/pages/activity/goods_combination/index.vue index d1be99e4..b44164cf 100644 --- a/pages/activity/goods_combination/index.vue +++ b/pages/activity/goods_combination/index.vue @@ -6,36 +6,36 @@ - + - - + - + - - + + - + ··· - {{totalPeople}}人参与 + {{ summary.userCount || 0 }}人参与 @@ -69,17 +69,12 @@ -