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; + } + } +