简要描述:

  • 供应商店铺首页样式二

请求域名:

  • http://xx.com

请求URL:

POST:plugin.supplier.frontend.shop.index.getThird

参数:

参数名 是否必须 类型 说明
sid int 供应商id
goods_name string 商品名称
cate_id int 分类ID
sort_name int 排序方式 1-总和推荐 2-销量 3-价格
sort_status int 2-从大到小 1-从小到大

返回示例:

正确时返回:样式二

{
    "result": 1,
    "msg": "成功",
    "data": {
        "supplier": {
            "id": 3,
            "member_id": 17,
            "username": "碳酸果汁",
            "password": "123456",
            "realname": "123",
            "mobile": "13111223344",
            "status": 1,
            "apply_time": 0,
            "created_at": "2017-08-15 16:40:54",
            "updated_at": "2017-10-19 14:46:37",
            "deleted_at": 0,
            "uniacid": 3,
            "salt": "uFB2FTN4",
            "product": "0",
            "remark": "0",
            "uid": 6,
            "logo": "",
            "company_bank": "",
            "company_ali": "",
            "ali": "",
            "wechat": "",
            "diyform_data_id": 0,
            "bank_username": "",
            "bank_of_accounts": "",
            "opening_branch": "",
            "company_ali_username": "",
            "ali_username": "",
            "province_name": "",
            "city_name": "",
            "district_name": "",
            "grade": 0,
            "store_name": "null",
            "order_price": "0.00",
            "shop_commission": "0.00",
            "lng": "",
            "lat": "",
            "province_id": 0,
            "city_id": 0,
            "district_id": 0,
            "street_id": 0,
            "street_name": "",
            "address": "",
            "supplier_id": 3,
            "has_one_member": {
                "uid": 17,
                "uniacid": 3,
                "mobile": "13263635963",
                "email": "",
                "groupid": 3,
                "credit1": "1538.07",
                "credit2": "7443.99",
                "credit3": "0.00",
                "credit4": "0.00",
                "credit5": "0.00",
                "credit6": "0.00",
                "createtime": 1497516644,
                "realname": "cc",
                "nickname": "cc",
                "signature": null,
                "avatar": "",
                "qq": "",
                "vip": 0,
                "gender": 0,
                "birthyear": 0,
                "birthmonth": 0,
                "birthday": 0,
                "constellation": "",
                "zodiac": "",
                "telephone": "",
                "idcard": "440281199306263826",
                "studentid": "",
                "grade": "",
                "address": "",
                "zipcode": "",
                "nationality": "",
                "resideprovince": "省",
                "residecity": "市",
                "residedist": "",
                "graduateschool": "",
                "company": "",
                "education": "",
                "occupation": "",
                "position": "",
                "revenue": "",
                "affectivestatus": "",
                "lookingfor": "",
                "bloodtype": "",
                "height": "",
                "weight": "",
                "alipay": "",
                "msn": "",
                "taobao": "",
                "site": "",
                "bio": "",
                "interest": "",
                "avatar_image": "http://test-1251768088.cosgz.myqcloud.com/images/3/2018/01/u1TuWe8TE9G8ubSxBecU38E9WP8pbG.jpg",
                "username": "cc"
            },
            "has_one_wq_user": {
                "uid": 6,
                "username": "碳酸果汁"
            }
        },
        "slide": [],
        "supplier_link": "http://q.url.cn/s/cy2KHXm",
        "is_room": 0,
        "aggregate": 1,
        "category": [
            {
                "id": 63,
                "name": "测试32",
                "thumb": "http://test-1251768088.cosgz.myqcloud.com/image/b0b75ebf4d88c2597c37d8ebfde03608.png"
            },
            {
                "id": 60,
                "name": "分类23211",
                "thumb": ""
            },
            {
                "id": 23,
                "name": "2.2",
                "thumb": "http://test-1251768088.cosgz.myqcloud.com/images/3/2017/11/g8sJ98sSB4YMJ4pBd4SMbVYyBBdSdS.jpg"
            }
        ],
        "goods": {
            "total": 2,
            "per_page": 10,
            "current_page": 1,
            "last_page": 1,
            "next_page_url": null,
            "prev_page_url": null,
            "from": 1,
            "to": 2,
            "data": [
                {
                    "goods_id": 18,
                    "title": "1",
                    "thumb": "http://wq2.com/attachment/images/3/2017/05/hvY2fy99d22c9c2do19v1Reocohhyx.png",
                    "price": "100.00",
                    "market_price": "1.00",
                    "status_name": null
                },
                {
                    "goods_id": 32,
                    "title": "2",
                    "thumb": "http://wq2.com/attachment/images/3/2017/08/GRSI9Jj8Hgf42i2g64l568iIgOiGwW.jpg",
                    "price": "100.00",
                    "market_price": "0.00",
                    "status_name": null
                }
            ]
        }
    }
}

错误时返回:

    result: 0,
    msg: "你不是供应商!",
    data: [ ]

返回参数说明:

参数名 类型 说明
uid int 会员ID
list_is_hot array 热卖
list_is_recommand array 推荐
supplier array 供应商信息
slide array 幻灯片
advs array 广告位
supplier_link text 客服链接
aggregate text 0-现有样式 1-样式二

备注:

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