企业🤖AI智能体构建引擎,智能编排和调试,一键部署,支持私有化部署方案 广告
**简要描述:** - 商品详情 **请求URL:** - `/shopapi/goods/detail` **请求方式:** - GET **参数:** |参数名 |必选 |类型 |说明 | |:----- |:----- | :----- |:----- | | id| 是 | integer |商品id| **返回示例** ``` { "code": 1, "show": 0, "msg": "", "data": { "id": 1, "code": "34269268", "name": "BlackBerry/黑莓 KEYONE国行安卓全键盘指纹双卡移动联通电信4G", "spec_type": 2, "image": "http://www.likeshopb2b2c.localhost/uploads/images/20210623161001b06287677.png", "video": "", "remark": "黑莓信仰无敌", "content": "<div id=\"attributes\" class=\"attributes\"><div id=\"tb_attributes\" class=\"tb-attributes\" data-spm-anchor-id=\"2013.1.0.i3.31bd13e8tVfozC\"><h3 data-spm=\"spu-attributes-more\" class=\"tb-attributes-title\" data-spm-anchor-id=\"2013.1.0.spu-attributes-more.31bd13e8tVfozC\">产品参数<a data-spm-click=\"gostr=/tbdetail;locaid=d1\" class=\"tb-attributes-more\">更多参数</a></h3><ul class=\"tb-attributes-list tb-attributes-fix\"><li><img src=\"https://gd1.alicdn.com/bao/uploaded/TB1hRW7IpXXXXXHXpXX760XFXXX\" alt=\"基本信息\"><p title=\"BlackBerry/黑莓\">品牌: BlackBerry/黑莓</p><p title=\"KEYONE\">黑莓型号: KEYONE</p></li><li><img src=\"https://gd1.alicdn.com/bao/uploaded/TB14LG.IpXXXXbfXpXX760XFXXX\" alt=\"屏幕\"><p title=\"1620x1080\">分辨率: 1620x1080</p></li><li><img src=\"https://gd1.alicdn.com/bao/uploaded/TB1kW11IpXXXXbVXFXX760XFXXX\" alt=\"网络\"><p title=\"4G\">网络类型: 4G</p><p title=\"双卡双待\">网络模式: 双卡双待</p></li><li><img src=\"https://gd1.alicdn.com/bao/uploaded/TB1LfniIpXXXXaYXXXX760XFXXX\" alt=\"CPU信息\"><p title=\"八核\">CPU核心数: 八核</p><p title=\"2.0G\">八核CPU频率: 2.0G</p></li><li><img src=\"https://gd1.alicdn.com/bao/uploaded/TB13LiTIpXXXXbPXVXX760XFXXX\" alt=\"存储\"><p title=\"4GB\">运行内存RAM: 4GB</p><p title=\"32GB 64GB\">存储容量: 32GB 64GB</p></li><li><img src=\"https://gd1.alicdn.com/bao/uploaded/TB10U53IpXXXXbrXFXX760XFXXX\" alt=\"拍照\"><p title=\"1200万\">后置摄像头: 1200万</p><p title=\"双摄像头(前后)\">摄像头类型: 双摄像头(前后)</p></li></ul><ul class=\"tb-attributes-sell tb-attributes-fix\"><li title=\"原封黑色 原封银色 原封棕榈金色 拆封黑色 拆封银色 拆封棕榈金色\">机身颜色: 原封黑色 原封银色 原封棕榈金色 拆封黑色 拆封银色 拆封棕榈金色</li><li title=\"官方标配\">套餐类型: 官方标配</li><li title=\"店铺三包\">售后服务: 店铺三包</li><li title=\"中国大陆\">版本类型: 中国大陆</li></ul></div></div><div id=\"tad_second_area\" class=\"tad-stage\" data-spm=\"4\"></div><div id=\"description\" class=\"J_DetailSection tshop-psm ke-post\"><div id=\"J_DivItemDesc\" class=\"content\"><p><img align=\"absmiddle\" src=\"https://img.alicdn.com/imgextra/i2/609934833/O1CN014VrfwX1lZYle3HYkp_!!609934833.png\"></p><p><img align=\"absmiddle\" src=\"https://img.alicdn.com/imgextra/i1/609934833/O1CN01rXQU3G1lZYlawCsYy_!!609934833.jpg\"><img align=\"absmiddle\" src=\"https://img.alicdn.com/imgextra/i2/609934833/O1CN01VQsch11lZYlaaLcz4_!!609934833.png\"></p><p><img align=\"absmiddle\" src=\"https://img.alicdn.com/imgextra/i4/609934833/O1CN01NeS8Xa1lZYlbYnky1_!!609934833.jpg\"><img align=\"absmiddle\" src=\"https://img.alicdn.com/imgextra/i3/609934833/O1CN01QDD9n81lZYlStpi7m_!!609934833.png\" class=\"\" width=\"800\" height=\"327\"></p><p><img align=\"absmiddle\" src=\"https://img.alicdn.com/imgextra/i3/609934833/O1CN01o9xvUK1lZYlcURrdv_!!609934833.png\" class=\"\" width=\"800\" height=\"956\"></p><p><img align=\"absmiddle\" src=\"https://img.alicdn.com/imgextra/i1/609934833/O1CN0104SQEm1lZYldUJeWB_!!609934833.jpg\" class=\"\" width=\"800\" height=\"768\"><img align=\"absmiddle\" src=\"https://img.alicdn.com/imgextra/i4/609934833/O1CN01AaqRGm1lZYlStvLmF_!!609934833.png\" class=\"\" width=\"861\" height=\"412\"></p><p><img align=\"absmiddle\" src=\"https://img.alicdn.com/imgextra/i1/609934833/O1CN01QLmQ8y1lZYlb4nFK3_!!609934833.jpg\" class=\"\" width=\"800\" height=\"800\"><img align=\"absmiddle\" src=\"https://img.alicdn.com/imgextra/i2/609934833/O1CN01BNuVRo1lZYlf7wQbi_!!609934833.png\" class=\"\" width=\"867\" height=\"269\"><img align=\"absmiddle\" src=\"https://img.alicdn.com/imgextra/i2/609934833/O1CN01IGwVup1lZYlaaWyRS_!!609934833.jpg\" class=\"\" width=\"800\" height=\"800\"><img align=\"absmiddle\" src=\"https://img.alicdn.com/imgextra/i1/609934833/O1CN01XIy78j1lZYldVgVoK_!!609934833.png\" class=\"\" width=\"800\" height=\"256\"></p><p><img align=\"absmiddle\" src=\"https://img.alicdn.com/imgextra/i1/609934833/O1CN01gc4mPo1lZYlf8c3Gr_!!609934833.jpg\" class=\"\" width=\"800\" height=\"768\"></p><p><img align=\"absmiddle\" src=\"https://img.alicdn.com/imgextra/i2/609934833/O1CN01euBEyk1lZYlcjWVAT_!!609934833.jpg\" class=\"\" width=\"800\" height=\"768\"></p><p><img align=\"absmiddle\" src=\"https://img.alicdn.com/imgextra/i4/609934833/O1CN015pUzOp1lZYlXaZlLA_!!609934833.jpg\" class=\"\" width=\"800\" height=\"768\"></p><div><br></div></div></div>", "market_price": "4399.00", "min_price": "3699.00", "max_price": "3699.00", "stock": 4065, "sales_actual": 22, "shop_id": 1, "goods_image": [ { "goods_id": 1, "uri": "http://www.likeshopb2b2c.localhost/uploads/images/2021062316100181cc98522.png" }, { "goods_id": 1, "uri": "http://www.likeshopb2b2c.localhost/uploads/images/20210623161001cba752706.png" }, { "goods_id": 1, "uri": "http://www.likeshopb2b2c.localhost/uploads/images/202106231610012e6d06145.png" }, { "goods_id": 1, "uri": "http://www.likeshopb2b2c.localhost/uploads/images/20210623161001b06287677.png" } ], "goods_item": [ { "id": 1, "goods_id": 1, "image": "http://www.likeshopb2b2c.localhost/uploads/images/20210623161001b06287677.png", "spec_value_ids": "1,3", "spec_value_str": "黑色,32GB", "market_price": "4399.00", "price": "3699.00", "stock": 1006, "chengben_price": "2000.00" }, { "id": 2, "goods_id": 1, "image": "http://www.likeshopb2b2c.localhost/uploads/images/20210623161001b06287677.png", "spec_value_ids": "1,4", "spec_value_str": "黑色,64GB", "market_price": "4399.00", "price": "3699.00", "stock": 1020, "chengben_price": "2000.00" }, { "id": 3, "goods_id": 1, "image": "http://www.likeshopb2b2c.localhost/uploads/images/20210623161001b06287677.png", "spec_value_ids": "2,3", "spec_value_str": "银色,32GB", "market_price": "4399.00", "price": "3699.00", "stock": 1020, "chengben_price": "2000.00" }, { "id": 4, "goods_id": 1, "image": "http://www.likeshopb2b2c.localhost/uploads/images/20210623161001b06287677.png", "spec_value_ids": "2,4", "spec_value_str": "银色,64GB", "market_price": "4399.00", "price": "3699.00", "stock": 1019, "chengben_price": "2000.00" } ], "shop": { "id": 1, "name": "好运便利店", "logo": "http://www.likeshopb2b2c.localhost/uploads/images/202106231553528575a5046.png", "type": 1, "star": 5, "score": 4.4, "intro": "这是一家专注于数码领域的独角兽公司,我们的征途的星辰大海!!!" }, "goods_spec": [ { "id": 1, "goods_id": 1, "name": " 颜色", "spec_value": [ { "id": 1, "goods_id": 1, "spec_id": 1, "value": "黑色" }, { "id": 2, "goods_id": 1, "spec_id": 1, "value": "银色" } ] }, { "id": 2, "goods_id": 1, "name": "存储容量", "spec_value": [ { "id": 3, "goods_id": 1, "spec_id": 2, "value": "32GB" }, { "id": 4, "goods_id": 1, "spec_id": 2, "value": "64GB" } ] } ] } } ``` **返回参数** |参数名 |类型 |说明 | |:----- | :----- |:----- | | code| int| 商品编码| | spec_type | int| 规格类型 1-统一规格 2-多规格| | image | string| 商品主图 | | content | string| 商品详情 | | min_price | string| 商品最低价 | | max_price | string| 商品最高价 | | market_price| string| 商品市场价 | | stock | int| 商品总库存 | | sales_actual | int| 商品实际销量 | |goods_image | array| 商品轮播图 | | goods_item| array| 商品规格信息| | goods_spec| array| 规格项信息| | shop| array| 店铺信息|