From 7adf5dd257b7b6a38a2f5305ca6aeb8c643bc32c Mon Sep 17 00:00:00 2001 From: owen Date: Sun, 12 Nov 2023 19:29:24 +0800 Subject: [PATCH 01/12] =?UTF-8?q?=E8=90=A5=E9=94=80=EF=BC=9A=E9=80=82?= =?UTF-8?q?=E9=85=8D=E5=95=86=E5=9F=8E=E8=A3=85=E4=BF=AE=E7=BB=84=E4=BB=B6?= =?UTF-8?q?=E3=80=90=E5=B9=BF=E5=91=8A=E9=AD=94=E6=96=B9=E3=80=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- sheep/components/s-block-item/s-block-item.vue | 2 +- sheep/components/s-image-cube/s-image-cube.vue | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/sheep/components/s-block-item/s-block-item.vue b/sheep/components/s-block-item/s-block-item.vue index 3d19d856..e4e4f0b0 100644 --- a/sheep/components/s-block-item/s-block-item.vue +++ b/sheep/components/s-block-item/s-block-item.vue @@ -18,7 +18,7 @@ - + diff --git a/sheep/components/s-image-cube/s-image-cube.vue b/sheep/components/s-image-cube/s-image-cube.vue index 4d896641..a56669fa 100644 --- a/sheep/components/s-image-cube/s-image-cube.vue +++ b/sheep/components/s-image-cube/s-image-cube.vue @@ -3,10 +3,10 @@ - + @@ -49,7 +49,7 @@ const cell = computed(() => { return ( (windowWidth - - (props.styles.marginLeft + props.styles.marginRight + props.styles.padding * 2)) / + ((props.styles.marginLeft || 0) + (props.styles.marginRight || 0) + (props.styles.padding || 0) * 2)) / 4 ); }); From 99529e3b9ea5917285ad1edf739eeb3f7519b743 Mon Sep 17 00:00:00 2001 From: owen Date: Fri, 17 Nov 2023 09:56:50 +0800 Subject: [PATCH 02/12] =?UTF-8?q?=E8=90=A5=E9=94=80=EF=BC=9A=E9=80=82?= =?UTF-8?q?=E9=85=8D=E5=95=86=E5=9F=8E=E8=A3=85=E4=BF=AE=E7=BB=84=E4=BB=B6?= =?UTF-8?q?=E3=80=90=E5=95=86=E5=93=81=E5=8D=A1=E7=89=87=E3=80=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- sheep/api/product/spu.js | 36 ++++ .../components/s-block-item/s-block-item.vue | 2 +- .../components/s-goods-card/s-goods-card.vue | 170 ++++++++++++------ .../s-goods-column/s-goods-column.vue | 16 +- 4 files changed, 157 insertions(+), 67 deletions(-) create mode 100644 sheep/api/product/spu.js diff --git a/sheep/api/product/spu.js b/sheep/api/product/spu.js new file mode 100644 index 00000000..83766668 --- /dev/null +++ b/sheep/api/product/spu.js @@ -0,0 +1,36 @@ +import request from '@/sheep/request'; + +export default { + // 获得商品 SPU 列表 + getSpuList: (recommendType) => { + return request({ + url: '/app-api/product/spu/list', + method: 'GET', + params: {recommendType}, + }); + }, + // 获得商品 SPU 列表 + getSpuListByIds: (ids) => { + return request({ + url: '/app-api/product/spu/list-by-ids', + method: 'GET', + params: {ids}, + }); + }, + // 获得商品 SPU 分页 + getSpuPage: (data) => { + return request({ + url: '/app-api/product/spu/page', + method: 'GET', + data + }); + }, + // 查询商品 + getSpuDetail: (id) => { + return request({ + url: '/app-api/product/spu/get-detail', + method: 'GET', + params: { id }, + }); + } +}; diff --git a/sheep/components/s-block-item/s-block-item.vue b/sheep/components/s-block-item/s-block-item.vue index e4e4f0b0..e0be2c48 100644 --- a/sheep/components/s-block-item/s-block-item.vue +++ b/sheep/components/s-block-item/s-block-item.vue @@ -29,7 +29,7 @@ - + diff --git a/sheep/components/s-goods-card/s-goods-card.vue b/sheep/components/s-goods-card/s-goods-card.vue index 8aeba1f1..91441647 100644 --- a/sheep/components/s-goods-card/s-goods-card.vue +++ b/sheep/components/s-goods-card/s-goods-card.vue @@ -1,8 +1,8 @@