[TOC=3,3]
### 分类-品牌推荐
~~~[api]
post:/index.php?ctl=Goods_Brand&met=lists&typ=json
<<<
success
{
"cmd_id": -140,
"status": 200,
"msg": "success",
"data": {
"page": 1,
"total": 1,
"totalsize": "2",
"records": "2",
"items": [
{
"brand_id": "23",
"brand_name": "vans",
"brand_name_cn": "",
"cat_id": "171",
"brand_initial": "",
"brand_show_type": "0",
"brand_pic": "https://sass.local.yuanfeng021.com/image.php/shop/data/upload/media/387d536e023f4e709a49c33d94dd622f/10003/2/image/20180409/1523246525734558.jpg",
"brand_displayorder": "1",
"brand_enable": "1",
"brand_recommend": "1",
"shop_id": "2",
"brand_collect": "0",
"id": "23"
},
{
"brand_id": "24",
"brand_name": "add",
"brand_name_cn": "",
"cat_id": "169",
"brand_initial": "",
"brand_show_type": "0",
"brand_pic": "https://sass.local.yuanfeng021.com/image.php/shop/data/upload/media/387d536e023f4e709a49c33d94dd622f/10003/2/image/20180409/1523259865728464.jpg",
"brand_displayorder": "1",
"brand_enable": "1",
"brand_recommend": "1",
"shop_id": "2",
"brand_collect": "0",
"id": "24"
}
]
}
}
<<<
error
{
"cmd_id": -140,
"status": 250,
"msg": "failure",
"data": {}
}
~~~
### 分类-一级分类
~~~[api]
post:/index.php?ctl=Goods_Cat&met=cat&typ=json
*string:cat_parent_id=0#cat_parent_id
<<<
success
{
"cmd_id": -140,
"status": 200,
"msg": "success",
"data": {
"items": [
{
"cat_id": "179",
"cat_name": "苹果手机",
"cat_parent_id": "0",
"cat_pic": "https://sass.local.yuanfeng021.com/shop/static/default/images/seller/beijing.png",
"type_id": "29",
"cat_commission": "0",
"cat_is_wholesale": "0",
"cat_is_virtual": "0",
"cat_templates": "0",
"cat_displayorder": "0",
"cat_level": 2,
"cat_show_type": "0",
"shop_id": "2",
"id": "179",
"parent_id": "0",
"type_number": "trade",
"name": "苹果手机",
"level": 2,
"cat_icon": "ui-icon-star",
"expanded": false,
"loaded": true,
"is_leaf": true
}
]
}
}
<<<
error
{
"cmd_id": -140,
"status": 250,
"msg": "failure",
"data": {}
}
~~~
### 分类-二级分类
~~~[api]
post:/index.php?ctl=Goods_Cat&met=tree&typ=json
*string:cat_parent_id#cat_parent_id
<<<
success
{
"cmd_id": -140,
"status": 200,
"msg": "success",
"data": {
"items": []
}
}
<<<
error
{
"cmd_id": -140,
"status": 250,
"msg": "failure",
"data": {}
}
~~~