From b42c15158552cc34e1034ea096243ad83270e48b 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 09:55:34 +0800
Subject: [PATCH 1/5] =?UTF-8?q?=E3=80=90=E5=8A=9F=E8=83=BD=E4=BF=AE?=
=?UTF-8?q?=E5=A4=8D=E3=80=91=E8=AE=A2=E5=8D=95=E7=A1=AE=E8=AE=A4=E9=A1=B5?=
=?UTF-8?q?=E7=9A=84=E5=8F=AF=E7=94=A8=E4=BC=98=E6=83=A0=E5=88=B8=E6=95=B0?=
=?UTF-8?q?=E9=87=8F=E7=BB=9F=E8=AE=A1?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
pages/order/confirm.vue | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/pages/order/confirm.vue b/pages/order/confirm.vue
index 6c49bb1e..b7e814f8 100644
--- a/pages/order/confirm.vue
+++ b/pages/order/confirm.vue
@@ -126,7 +126,9 @@
v-else
>
{{
- state.couponInfo.length > 0 ? state.couponInfo.length + ' 张可用' : '暂无可用优惠券'
+ state.couponInfo.length > 0
+ ? state.couponInfo.filter((coupon) => coupon.match).length + ' 张可用'
+ : '暂无可用优惠券'
}}
From 5f8ed35521d141d1036643fdfe3711ba382acef8 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 09:56:21 +0800
Subject: [PATCH 2/5] =?UTF-8?q?=E3=80=90=E5=8A=9F=E8=83=BD=E4=BF=AE?=
=?UTF-8?q?=E5=A4=8D=E3=80=91=E8=AE=A2=E5=8D=95=E7=A1=AE=E8=AE=A4=E9=A1=B5?=
=?UTF-8?q?=E7=9A=84=E5=8F=AF=E7=94=A8=E4=BC=98=E6=83=A0=E5=88=B8=E6=95=B0?=
=?UTF-8?q?=E9=87=8F=E7=BB=9F=E8=AE=A1?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
pages/order/confirm.vue | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/pages/order/confirm.vue b/pages/order/confirm.vue
index b7e814f8..7b264fcf 100644
--- a/pages/order/confirm.vue
+++ b/pages/order/confirm.vue
@@ -126,7 +126,7 @@
v-else
>
{{
- state.couponInfo.length > 0
+ state.couponInfo.filter((coupon) => coupon.match).length > 0
? state.couponInfo.filter((coupon) => coupon.match).length + ' 张可用'
: '暂无可用优惠券'
}}
From dbc192faa75dd28c18e883e450844c725f22f997 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 10:06:15 +0800
Subject: [PATCH 3/5] =?UTF-8?q?=E3=80=90=E5=8A=9F=E8=83=BD=E4=BF=AE?=
=?UTF-8?q?=E5=A4=8D=E3=80=91=E4=BF=AE=E6=AD=A3=E2=80=9C=E6=9A=82=E6=97=A0?=
=?UTF-8?q?=E5=8F=AF=E7=94=A8=E4=BC=98=E6=83=A0=E5=88=B8=E2=80=9D=E5=AD=97?=
=?UTF-8?q?=E4=BD=93=E9=A2=9C=E8=89=B2?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
pages/order/confirm.vue | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/pages/order/confirm.vue b/pages/order/confirm.vue
index 7b264fcf..32bf1513 100644
--- a/pages/order/confirm.vue
+++ b/pages/order/confirm.vue
@@ -122,7 +122,11 @@
{{
From 27af994667d87e0be0e8185600c1c15a9ac0a7de 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 10:27:46 +0800
Subject: [PATCH 4/5] =?UTF-8?q?=E3=80=90=E5=8A=9F=E8=83=BD=E4=BF=AE?=
=?UTF-8?q?=E5=A4=8D=E3=80=91=E4=BF=AE=E6=AD=A3=E8=AE=A2=E5=8D=95=E4=BC=98?=
=?UTF-8?q?=E6=83=A0=E5=88=B8=E9=80=89=E6=8B=A9=E5=88=97=E8=A1=A8=E4=B8=AD?=
=?UTF-8?q?=EF=BC=8C=E5=8F=AF=E7=94=A8=E5=92=8C=E4=B8=8D=E5=8F=AF=E7=94=A8?=
=?UTF-8?q?=E4=BC=98=E6=83=A0=E5=88=B8=E7=9A=84=E9=A2=9C=E8=89=B2?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
sheep/components/s-coupon-list/s-coupon-list.vue | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/sheep/components/s-coupon-list/s-coupon-list.vue b/sheep/components/s-coupon-list/s-coupon-list.vue
index 1c76e701..17b083e1 100644
--- a/sheep/components/s-coupon-list/s-coupon-list.vue
+++ b/sheep/components/s-coupon-list/s-coupon-list.vue
@@ -76,7 +76,7 @@
if (props.type === 'coupon') {
return false;
}
- return props.data.status !== 1;
+ return props.disabled;
});
// 接受参数
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 5/5] =?UTF-8?q?=E3=80=90=E5=8A=9F=E8=83=BD=E4=BF=AE?=
=?UTF-8?q?=E5=A4=8D=E3=80=91=E7=A7=92=E6=9D=80=E8=A3=85=E4=BF=AE=E9=87=8D?=
=?UTF-8?q?=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;
+ }
+ }
+