diff --git a/sheep/api/promotion/combination.js b/sheep/api/promotion/combination.js
new file mode 100644
index 00000000..eeeb9a0a
--- /dev/null
+++ b/sheep/api/promotion/combination.js
@@ -0,0 +1,67 @@
+import request2 from "@/sheep/request2";
+
+// 拼团 API
+const CombinationApi = {
+ // 获得拼团活动列表
+ getCombinationActivityList: (count) => {
+ return request2({
+ url: "promotion/combination-activity/list",
+ method: 'GET',
+ params: {count}
+ });
+ },
+
+ // 获得拼团活动分页
+ getCombinationActivityPage: (params) => {
+ return request2({
+ url: "promotion/combination-activity/page",
+ method: 'GET',
+ params
+ });
+ },
+
+ // 获得拼团活动明细
+ getCombinationActivity: (id) => {
+ return request2({
+ url: "promotion/combination-activity/get-detail",
+ method: 'GET',
+ params: {
+ id
+ }
+ });
+ },
+
+ // 获得最近 n 条拼团记录(团长发起的)
+ getHeadCombinationRecordList: (activityId, status, count) => {
+ return request2({
+ url: "promotion/combination-record/get-head-list",
+ method: 'GET',
+ params: {
+ activityId,
+ status,
+ count
+ }
+ });
+ },
+
+ // 获得拼团记录明细
+ getCombinationRecordDetail: (id) => {
+ return request2({
+ url: "promotion/combination-record/get-detail",
+ method: 'GET',
+ params: {
+ id
+ }
+ });
+ },
+
+ // 获得拼团记录的概要信息
+ getCombinationRecordSummary: () => {
+ return request2({
+ url: "promotion/combination-record/get-summary",
+ method: 'GET',
+ });
+ }
+}
+
+export default CombinationApi
diff --git a/sheep/components/s-block-item/s-block-item.vue b/sheep/components/s-block-item/s-block-item.vue
index b39337b3..eec343c5 100644
--- a/sheep/components/s-block-item/s-block-item.vue
+++ b/sheep/components/s-block-item/s-block-item.vue
@@ -32,7 +32,7 @@
-
+
diff --git a/sheep/components/s-groupon-block/s-groupon-block.vue b/sheep/components/s-groupon-block/s-groupon-block.vue
index 3aea89c0..7ea1c8fd 100644
--- a/sheep/components/s-groupon-block/s-groupon-block.vue
+++ b/sheep/components/s-groupon-block/s-groupon-block.vue
@@ -2,13 +2,13 @@
-
+
@@ -73,13 +73,11 @@
diff --git a/sheep/components/s-seckill-block/s-seckill-block.vue b/sheep/components/s-seckill-block/s-seckill-block.vue
index 1eda0e7e..5b317257 100644
--- a/sheep/components/s-seckill-block/s-seckill-block.vue
+++ b/sheep/components/s-seckill-block/s-seckill-block.vue
@@ -100,12 +100,12 @@
// 购买按钮样式
const buyStyle = computed(() => {
let btnBuy = props.data.btnBuy;
- if (btnBuy.type === 'text') {
+ if (btnBuy?.type === 'text') {
return {
background: `linear-gradient(to right, ${btnBuy.bgBeginColor}, ${btnBuy.bgEndColor})`,
};
}
- if (btnBuy.type === 'img') {
+ if (btnBuy?.type === 'img') {
return {
width: '54rpx',
height: '54rpx',