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 @@