1.查看商品详情

简要描述
  • 商品详情接口
请求URL
  • http://101.34.87.143:8083/wx/goods/detail?id=1152161
请求方式
  • GET
参数
参数名 必选 类型 说明
id int 商品的id
返回示例
  {
    "errno": 0,
    "data": {
        "specificationList": [{
            "name": "规格",
            "valueList": [{
                "id": 238,
                "goodsId": 1152161,
                "specification": "规格",
                "value": "标准",
                "picUrl": "",
                "addTime": "2018-02-01 00:00:00",
                "updateTime": "2018-02-01 00:00:00",
                "deleted": false
            }]
        }],
        "groupon": [],
        "issue": [{
            "id": 1,
            "question": "购买运费如何收取?",
            "answer": "单笔订单金额(不含运费)满88元免邮费;不满88元,每单收取10元运费。\n(港澳台地区需满",
            "addTime": "2018-02-01 00:00:00",
            "updateTime": "2018-02-01 00:00:00",
            "deleted": false
        }, {
            "id": 2,
            "question": "使用什么快递发货?",
            "answer": "严选默认使用顺丰快递发货(个别商品使用其他快递),配送范围覆盖全国大部分地区(港澳台地区除",
            "addTime": "2018-02-01 00:00:00",
            "updateTime": "2018-02-01 00:00:00",
            "deleted": false
        }],
        "userHasCollect": 0,
        "shareImage": "",
        "comment": {
            "data": [],
            "count": 0
        },
        "share": false,
        "attribute": [{
            "id": 861,
            "goodsId": 1152161,
            "attribute": "材质",
            "value": "12%长麻/ 12%竹浆纤维/ 76%莱赛尔",
            "addTime": "2018-02-01 00:00:00",
            "updateTime": "2018-02-01 00:00:00",
            "deleted": false
        }, {
            "id": 862,
            "goodsId": 1152161,
            "attribute": "尺寸",
            "value": "1.5米床品: 被套 200*230cm/ 枕套:48*74cm*2/ 床单:245*250cm\n1.8米床品:被套 220*240cm/ 枕套:48*74cm*2/ 床单:245*270cm",
            "addTime": "2018-02-01 00:00:00",
            "updateTime": "2018-02-01 00:00:00",
            "deleted": false
        }],
        "brand": {},
        "productList": [{
            "id": 239,
            "goodsId": 1152161,
            "specifications": ["标准"],
            "price": 459.00,
            "number": 100,
            "url": "http://yanxuan.nosdn.127.net/977401e75113f7c8334c4fb5b4bf6215.png",
            "addTime": "2018-02-01 00:00:00",
            "updateTime": "2018-02-01 00:00:00",
            "deleted": false
        }],
        "info": {
            "id": 1152161,
            "goodsSn": "1152161",
            "name": "竹语丝麻印花四件套",
            "categoryId": 1008009,
            "brandId": 0,
            "gallery": ["http://yanxuan.nosdn.127.net/38a0b23950b79611fb565bae14351a11.jpg", "http://yanxuan.nosdn.127.net/810555afa6919c766a33422edefb1bc8.jpg", "http://yanxuan.nosdn.127.net/b97b54e854660fedabc4dd07d3215216.jpg", "http://yanxuan.nosdn.127.net/79200063ab5893cf3fdd16f428e4d505.jpg"],
            "keywords": "",
            "brief": "3重透气,清爽柔滑",
            "isOnSale": true,
            "sortOrder": 6,
            "picUrl": "http://yanxuan.nosdn.127.net/977401e75113f7c8334c4fb5b4bf6215.png",
            "shareUrl": "",
            "isNew": true,
            "isHot": false,
            "unit": "件",
            "counterPrice": 479.00,
            "retailPrice": 459.00,
            "addTime": "2018-02-01 00:00:00",
            "updateTime": "2018-02-01 00:00:00",
            "deleted": false,
            "detail": "<p><img src=\"http://yanxuan.nosdn.127.net/cf116e8989e4b81e0d50c5f319bc106f.jpg\" _src=\"http://yanxuan.nosdn.127.net/cf116e8989e4b81e0d50c5f319bc106f.jpg\" style=\"\"/>"
        }
    },
    "errmsg": "成功"
}
返回参数说明
参数名 类型 说明
errno int 业务响应码,0:请求成功;502:请求失败
specificationList jsonArray 该商品关联的规格列表
groupon jsonArray 该商品关联团购活动
issue jsonArray 该商品关联问题
userHasCollect jsonArray 该商品是否被搜藏
share jsonArray 该商品是否为分享商品
brand jsonArray 该商品所属品牌
productList jsonArray 该商品关联货品列表
info json 商品的详情
备注
  • 更多返回错误代码请看首页的错误代码描述