From 9521d4b5570ab13897ed74c2c5023f91f86e76c7 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E5=8D=A2=E8=B6=8A?= <552369664@qq.com>
Date: Sun, 8 Sep 2024 11:39:28 +0800
Subject: [PATCH] =?UTF-8?q?=E3=80=90=E5=8A=9F=E8=83=BD=E4=BF=AE=E5=A4=8D?=
=?UTF-8?q?=E3=80=91=E7=A7=92=E6=9D=80=E8=A3=85=E4=BF=AE=E9=87=8D=E6=9E=84?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
sheep/api/promotion/seckill.js | 19 +-
.../s-groupon-block/s-groupon-block.vue | 1 -
.../s-seckill-block/s-seckill-block.vue | 477 ++++++++++++------
3 files changed, 325 insertions(+), 172 deletions(-)
diff --git a/sheep/api/promotion/seckill.js b/sheep/api/promotion/seckill.js
index 4d41e8b7..f57e054d 100644
--- a/sheep/api/promotion/seckill.js
+++ b/sheep/api/promotion/seckill.js
@@ -1,4 +1,4 @@
-import request from "@/sheep/request";
+import request from '@/sheep/request';
const SeckillApi = {
// 获得秒杀时间段列表
@@ -16,6 +16,17 @@ const SeckillApi = {
return request({ url: 'promotion/seckill-activity/page', method: 'GET', params });
},
+ // 获得秒杀活动列表,基于活动编号数组
+ getSeckillActivityListByIds: (ids) => {
+ return request({
+ url: '/promotion/seckill-activity/list-by-ids',
+ method: 'GET',
+ params: {
+ ids,
+ },
+ });
+ },
+
/**
* 获得秒杀活动明细
* @param {number} id 秒杀活动编号
@@ -25,9 +36,9 @@ const SeckillApi = {
return request({
url: 'promotion/seckill-activity/get-detail',
method: 'GET',
- params: { id }
+ params: { id },
});
- }
-}
+ },
+};
export default SeckillApi;
diff --git a/sheep/components/s-groupon-block/s-groupon-block.vue b/sheep/components/s-groupon-block/s-groupon-block.vue
index 59b63c17..1a5a5918 100644
--- a/sheep/components/s-groupon-block/s-groupon-block.vue
+++ b/sheep/components/s-groupon-block/s-groupon-block.vue
@@ -145,7 +145,6 @@
import sheep from '@/sheep';
import CombinationApi from '@/sheep/api/promotion/combination';
import SpuApi from '@/sheep/api/product/spu';
- import spu from '@/sheep/api/product/spu';
// 布局类型
const LayoutTypeEnum = {
diff --git a/sheep/components/s-seckill-block/s-seckill-block.vue b/sheep/components/s-seckill-block/s-seckill-block.vue
index bfc61be0..68f58075 100644
--- a/sheep/components/s-seckill-block/s-seckill-block.vue
+++ b/sheep/components/s-seckill-block/s-seckill-block.vue
@@ -1,182 +1,325 @@
-
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
+ .goods-md-box,
+ .goods-sl-box,
+ .goods-lg-box {
+ position: relative;
+
+ .cart-btn {
+ position: absolute;
+ bottom: 18rpx;
+ right: 20rpx;
+ z-index: 11;
+ height: 50rpx;
+ line-height: 50rpx;
+ padding: 0 20rpx;
+ border-radius: 25rpx;
+ font-size: 24rpx;
+ color: #fff;
+ }
+ }
+