简要描述:
- 分类商品
请求域名:
- http://xx.com
请求URL:
POST:plugin.supplier.frontend.shop.index.get-category-goods
参数:
参数名 | 是否必须 | 类型 | 说明 |
---|---|---|---|
supplier_id | 是 | int | 供应商id |
category_id | 是 | int | 分类id |
返回示例:
正确时返回:
{
"result":1,
"msg":"成功",
"data":{
"current_page":1,
"data":[
{
"goods_id":63,
"title":"14753",
"thumb":"http://shop-yunzshop-com.oss-cn-hangzhou.aliyuncs.com/image/a02b662c39528daa3e1e74a8c6ac79d2.jpg",
"price":"50.00",
"supplier_id":1,
"vip_price":"50.00",
"next_level_price":"50.00",
"has_many_goods_discount":[
]
},
{
"goods_id":64,
"title":"招商测试啊",
"thumb":"http://shop-yunzshop-com.oss-cn-hangzhou.aliyuncs.com/image/0c0cf1a46404a8aa8e3834bf96d2011e.jpg",
"price":"100.00",
"supplier_id":1,
"vip_price":"100.00",
"next_level_price":"100.00",
"has_many_goods_discount":[
]
},
{
"goods_id":63,
"title":"14753",
"thumb":"http://shop-yunzshop-com.oss-cn-hangzhou.aliyuncs.com/image/a02b662c39528daa3e1e74a8c6ac79d2.jpg",
"price":"50.00",
"supplier_id":1,
"vip_price":"50.00",
"next_level_price":"50.00",
"has_many_goods_discount":[
]
},
{
"goods_id":64,
"title":"招商测试啊",
"thumb":"http://shop-yunzshop-com.oss-cn-hangzhou.aliyuncs.com/image/0c0cf1a46404a8aa8e3834bf96d2011e.jpg",
"price":"100.00",
"supplier_id":1,
"vip_price":"100.00",
"next_level_price":"100.00",
"has_many_goods_discount":[
]
},
{
"goods_id":24,
"title":"测试招商",
"thumb":"http://shop-yunzshop-com.oss-cn-hangzhou.aliyuncs.com/image/7b0e6463398f1890ac02074b5962655b.jpg",
"price":"40.00",
"supplier_id":1,
"vip_price":"40.00",
"next_level_price":"40.00",
"has_many_goods_discount":[
]
},
{
"goods_id":79,
"title":"今晚报",
"thumb":"http://shop-yunzshop-com.oss-cn-hangzhou.aliyuncs.com/image/5629a11cae0977749b31b4ce0e0daafa.jpg",
"price":"10.00",
"supplier_id":1,
"vip_price":"10.00",
"next_level_price":"10.00",
"has_many_goods_discount":[
]
},
{
"goods_id":78,
"title":"1789",
"thumb":"http://shop-yunzshop-com.oss-cn-hangzhou.aliyuncs.com/images/1/2019/04/kWv7yw9IcPCxd6C94kDw797WYw6WD6.jpg",
"price":"1.00",
"supplier_id":1,
"vip_price":"1.00",
"next_level_price":"1.00",
"has_many_goods_discount":[
]
},
{
"goods_id":88,
"title":"折扣1",
"thumb":"http://shop-yunzshop-com.oss-cn-hangzhou.aliyuncs.com/image/42ff0686cbd1a30d4faf93a794de68a0.jpg",
"price":"50.00",
"supplier_id":1,
"vip_price":"50.00",
"next_level_price":"50.00",
"has_many_goods_discount":[
]
},
{
"goods_id":89,
"title":"159",
"thumb":"http://shop-yunzshop-com.oss-cn-hangzhou.aliyuncs.com/image/d33fe42a1d11c939acc4268882578c79.jpg",
"price":"50.00",
"supplier_id":1,
"vip_price":"50.00",
"next_level_price":"50.00",
"has_many_goods_discount":[
]
},
{
"goods_id":91,
"title":"1321213",
"thumb":"http://shop-yunzshop-com.oss-cn-hangzhou.aliyuncs.com/image/7af97280bdd29e27a82354ba100854bb.jpg",
"price":"66.00",
"supplier_id":1,
"vip_price":"66.00",
"next_level_price":"66.00",
"has_many_goods_discount":[
]
}
],
"first_page_url":"http://www.liao.com/admin/shop?page=1",
"from":1,
"last_page":2,
"last_page_url":"http://www.liao.com/admin/shop?page=2",
"next_page_url":"http://www.liao.com/admin/shop?page=2",
"path":"http://www.liao.com/admin/shop",
"per_page":10,
"prev_page_url":null,
"to":10,
"total":11
}
}
返回参数说明:
参数名 | 类型 | 说明 |
---|---|---|
data | object | 分类商品详情 |
goods_id | int | 商品id |
title | string | 商品名称 |
thum | string | 商品图片 |
price | stirng | 价格 |
vip_price | 会员价 |
备注:
- 更多返回错误代码请看首页的错误代码描述