首页商品列表
基本信息
Path: /api/api/home/products
Method: GET
接口描述:
请求参数
Query
| 参数名称 | 是否必须 | 示例 | 备注 |
|---|---|---|---|
| ids | 否 | 商品id集合 | |
| selectId | 否 | 分类ID | |
| selectType | 是 | 类型 | |
| newsOrder | 否 | 最新排序 | |
| salesOrder | 否 | 销量排序 | |
| page | 是 | 分页参数起始值 | |
| limit | 是 | 分页数步长值 |
返回数据
| 名称 | 类型 | 是否必须 | 默认值 | 备注 | 其他信息 |
|---|---|---|---|---|---|
| status | number | 非必须 | |||
| msg | string | 非必须 | |||
| data | object | 非必须 | |||
| ├─ list | object [] | 非必须 | item 类型: object | ||
| ├─ id | number | 必须 | 商品id | ||
| ├─ store_name | string | 必须 | 商品名称 | ||
| ├─ cate_id | string | 必须 | 商品分类 | ||
| ├─ image | string | 必须 | 商品主图 | ||
| ├─ sales | string | 必须 | 商品销量 | ||
| ├─ price | string | 必须 | 商品最低价 | ||
| ├─ stock | number | 必须 | 商品总库存 | ||
| ├─ activity | string [] | 必须 | 商品活动显示排序 | item 类型: string | |
| ├─ | 非必须 | ||||
| ├─ ot_price | string | 必须 | 商品最低原价 | ||
| ├─ spec_type | number | 必须 | 是否多规格 | ||
| ├─ recommend_image | string | 必须 | 商品推荐图 | ||
| ├─ unit_name | string | 必须 | 商品单位 | ||
| ├─ is_vip | number | 必须 | 商品是否有付费会员价格 | ||
| ├─ vip_price | string | 必须 | 最低会员价 | ||
| ├─ description | string | 必须 | 商品详情 | ||
| ├─ checkCoupon | boolean | 必须 | 此商品是否可用优惠券 |



