From 3d4f7e9a099fafdcbcb1e4969894015e9463de37 Mon Sep 17 00:00:00 2001 From: YunaiV Date: Sun, 10 Dec 2023 19:52:54 +0800 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20=E5=95=86=E5=93=81=E8=AF=A6?= =?UTF-8?q?=E6=83=85=EF=BC=9A=E6=8E=A5=E5=85=A5=E8=90=A5=E9=94=80=E6=B4=BB?= =?UTF-8?q?=E5=8A=A8=20API?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../components/detail/detail-activity-tip.vue | 39 +++++++++++-------- pages/goods/index.vue | 32 +++++++++------ sheep/api/promotion/activity.js | 16 ++++++++ 3 files changed, 58 insertions(+), 29 deletions(-) create mode 100644 sheep/api/promotion/activity.js diff --git a/pages/goods/components/detail/detail-activity-tip.vue b/pages/goods/components/detail/detail-activity-tip.vue index d4282993..755d1bd3 100644 --- a/pages/goods/components/detail/detail-activity-tip.vue +++ b/pages/goods/components/detail/detail-activity-tip.vue @@ -1,52 +1,57 @@ diff --git a/sheep/api/promotion/activity.js b/sheep/api/promotion/activity.js new file mode 100644 index 00000000..efa0e1e9 --- /dev/null +++ b/sheep/api/promotion/activity.js @@ -0,0 +1,16 @@ +import request2 from '@/sheep/request2'; + +const ActivityApi = { + // 获得单个商品,近期参与的每个活动 + getActivityListBySpuId: (spuId) => { + return request2({ + url: '/app-api/promotion/activity/list-by-spu-id', + method: 'GET', + params: { + spuId, + }, + }); + }, +}; + +export default ActivityApi;