简要描述:

  • 藏品中心列表

请求域名:

  • http://xx.com

请求URL:

POST/plugin.collection-center.frontend.controllers.goods.goods.index

参数:

参数名 是否必须 类型 说明
search.keyword string 关键字
search.parentid int 一级分类id
search.childid int 二级分类id
order_by.price string 价格 asc升序,desc降序
order_by.real_sales string 库存 asc升序,desc降序
order_by.comment_num string asc升序,desc降序

返回示例:

正确时返回:

  {
    "result": 1,
    "msg": "ok",
    "data": {
        "goods_list": {
            "current_page": 1,
            "data": [
                {
                    "price": "10.00",
                    "title": "测试1-藏品1-1",
                    "thumb": "https://img0.baidu.com/it/u=1937665916,307154246&fm=253&fmt=auto&app=138&f=JPEG?w=500&h=333",
                    "id": 112,
                    "status_name": null
                },
                {
                    "price": "642.00",
                    "title": "测试4-藏品1-2",
                    "thumb": "https://img0.baidu.com/it/u=1937665916,307154246&fm=253&fmt=auto&app=138&f=JPEG?w=500&h=333",
                    "id": 110,
                    "status_name": null
                }
            ],
            "first_page_url": "http://yzhonshop.com/addons/yun_shop/api.php?page=1",
            "from": 1,
            "last_page": 1,
            "last_page_url": "http://yzhonshop.com/addons/yun_shop/api.php?page=1",
            "next_page_url": null,
            "path": "http://yzhonshop.com/addons/yun_shop/api.php",
            "per_page": 15,
            "prev_page_url": null,
            "to": 2,
            "total": 2
        }
    }
}

错误时返回:

  {
    "errcode": 500,
    "errmsg": "invalid appid"
  }

返回参数说明:

参数名 类型 说明
goods_list.price flot 价格
goods_list.id int 商品id
goods_list.title string 商品名称
goods_list.thumb string 商品图片

备注:

  • 更多返回错误代码请看首页的错误代码描述