From 9e74d2a70449f3e02168808d4667049a61ee736c Mon Sep 17 00:00:00 2001 From: YunaiV Date: Sat, 10 Jun 2023 22:00:41 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90=E7=A7=92=E6=9D=80=E5=95=86=E5=93=81?= =?UTF-8?q?=E8=AF=A6=E6=83=85=E3=80=91=201.=20=E6=95=B4=E7=90=86=E4=B8=8B?= =?UTF-8?q?=E6=95=B4=E4=BD=93=E7=95=8C=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- api/promotion/seckill.js | 8 + .../activity/goods_seckill_details/index.vue | 364 +++++++++++------- pages/goods_details/index.vue | 10 +- 3 files changed, 238 insertions(+), 144 deletions(-) create mode 100644 api/promotion/seckill.js diff --git a/api/promotion/seckill.js b/api/promotion/seckill.js new file mode 100644 index 00000000..6d96f257 --- /dev/null +++ b/api/promotion/seckill.js @@ -0,0 +1,8 @@ +import request from "@/utils/request.js"; + +// 获得秒杀活动明细 +export function getSeckillActivity(id) { + return request.get("app-api/promotion/seckill-activity/get-detail", { + id + }); +} diff --git a/pages/activity/goods_seckill_details/index.vue b/pages/activity/goods_seckill_details/index.vue index fcaaba7d..1ee7f3fb 100644 --- a/pages/activity/goods_seckill_details/index.vue +++ b/pages/activity/goods_seckill_details/index.vue @@ -1,6 +1,6 @@ @@ -1044,7 +1134,7 @@ top: 0; width: 100%; height: 100%; - + image { width: 100%; height: 100%; @@ -1303,7 +1393,7 @@ z-index: -5; opacity: 0; } - + .poster-pop { width: 450rpx; height: 714rpx; @@ -1314,13 +1404,13 @@ top: 50%; margin-top: -357rpx; } - + .poster-pop image { width: 100%; height: 100%; display: block; } - + .poster-pop .close { width: 46rpx; height: 75rpx; @@ -1329,7 +1419,7 @@ top: -73rpx; display: block; } - + .poster-pop .save-poster { background-color: #df2d0a; font-size: :22rpx; @@ -1339,14 +1429,14 @@ line-height: 76rpx; width: 100%; } - + .poster-pop .keep { color: #fff; text-align: center; font-size: 25rpx; margin-top: 10rpx; } - + .mask { position: fixed; top: 0; @@ -1361,7 +1451,7 @@ top: 20rpx !important; /* #endif */ } - + .home-nav { color: #fff; position: fixed; @@ -1377,13 +1467,13 @@ color: #333; } } - + .home-nav .line { width: 1rpx; height: 24rpx; background: rgba(255, 255, 255, 0.25); } - + .home-nav .icon-xiangzuo { width: auto; font-size: 28rpx; diff --git a/pages/goods_details/index.vue b/pages/goods_details/index.vue index 4ce2248e..72a2c9c2 100644 --- a/pages/goods_details/index.vue +++ b/pages/goods_details/index.vue @@ -21,8 +21,7 @@ - - + @@ -277,9 +276,6 @@