商品详情

请求路由url

addons/litestore/api.goods/detail

请求方式

get

请求参数

参数 说明 类型 是否必要
goods_id 商品ID int

请求结果

{
    "code": 1,
    "msg": "",
    "time": "1642389490",
    "data": {
        "detail": {
            "goods_id": 23,
            "goods_name": "X-431 PRO5汽车诊断设备",//商品标题
            "short_desc": "",//商品短描述
            "store_id": 0,
            "category_id": 8,
            "images": "/uploads/20211229/4e227429c1fa17f259bfb09c828e1a3b.png,/uploads/20211229/34e6b4989cecb0e3d1ba31c4fd24c00e.png",//轮播图 不带链接
            "spec_type": "10",//10 单规格 20多规格
            "deduct_stock_type": "20",
            "content": "<p>商品介绍...........</p>",//商品介绍
            #"sales_initial": 0,#
            #"sales_actual": 12,#
            "goods_sort": 23,
            "delivery_id": 23,
            "goods_status": "10",
            "is_delete": "0",
            "createtime": 1541403061,
            "updatetime": 1640778402,
            "image": "http://cicp/uploads/20211229/4e227429c1fa17f259bfb09c828e1a3b.png",
            "specs_desc": "",//规格参数
            "service_desc": "",//商品服务
            "goods_files": "",//商品资料
            "imgs_url": [
      "http://cicp/uploads/20211229/4e227429c1fa17f259bfb09c828e1a3b.png",        "http://cicp/uploads/20211229/34e6b4989cecb0e3d1ba31c4fd24c00e.png"
            ],//轮播图 带链接
            "goods_score": 0,//评分
            "goods_evaluate": {
                "id": 6,//评价id
                "goods_id": 24,//商品id
                "order_id": 7,//所属订单
                "user_id": 2,//评价人
                "score": 1,//分数
                "express_score": 1,//物流分数
                "order_goods_id": 9,//订单详情id
                "info": "123",//评价内容
                "attachment_ids": "",//文件id
                "images": ['http://1.jpg','http://2.jpg'],//文件地址
                "likes": 0,//点赞数
                "create_time": "2022-01-11 13:54:31",
                "update_time": 1641880471,
                "goods_name": "车厘子智利进口",//商品名
                "goods_img": "https://her-family.oss-cn-qingdao.aliyuncs.com/addons_store_uploads/20181105/a460ffdbd534b10cdf40487189ccb6b7.jpg"//商品图片
                "comment_num": 1//评论数量
                "is_like": 0//当前用户对该评价是否点赞1:点赞,0:没点赞
            },
            {
                "id": 3,
                "goods_id": 24,
                "order_id": 5,
                "user_id": 2,
                "score": 1,
                "express_score": 1,//物流分数
                "order_goods_id": 5,
                "info": "123",
                "attachment_ids": "",
                "likes": 0,
                "create_time": "2022-01-11 13:54:31",
                "update_time": 1641630022"goods_name": "车厘子智利进口",//商品名
                "goods_img": "https://her-family.oss-cn-qingdao.aliyuncs.com/addons_store_uploads/20181105/a460ffdbd534b10cdf40487189ccb6b7.jpg"//商品图片
                "comment_num": 1"is_like": 0//当前用户对该评价是否点赞1:点赞,0:没点赞
            },//商品评价
            "goods_store": {
                "id": 1,
                "store_name": "Eden店铺",//店铺名字
                "store_des": "<h1 style=\"text-align: center; \"><span style=\"background-color: rgb(255, 0, 0);\">测试店铺</span></h1>",
                "store_short": "测试",//店铺一句话简介
                "store_tel": "0752-67555960",
                "store_avatar": "/uploads/20220106/6e4dd1c9f31a816710a1a5ba5c8900ae.jpg",//店铺LOGO
                "store_banner": "/uploads/20220106/49d116a2e57aadfc2148cef59569e9b5.png,/uploads/20220106/6e4dd1c9f31a816710a1a5ba5c8900ae.jpg",
                "store_addr": "广东省深圳市龙岗区",
                "status": 1,
                "create_time": 1641448791,
                "update_time": 1641778976,
                "delete_time": 0,
                "store_goods_total":99,//店铺商品数量
            },
            "is_collect": false,//是否已收藏 1、false 未收藏2、true 已收藏
            "spec": [//规格参数
                {
                    "goods_spec_id": 108,
                    "goods_id": 23,
                    "goods_no": "mac_0001",
                    "goods_price": "12688.00",//销售价/智慧价
                    "intellect_info": "",//智慧价说明
                    "line_price": "0.00",//原价(划线价格)
                    "stock_num": 989,
                    "goods_sales": 0,
                    "goods_weight": 1.2,
                    "spec_sku_id": "",
                    "spec_image": "",
                    "create_time": 1640778402,
                    "update_time": 1640778402
                }
            ],
            "spec_rel": [],
            "goods_sales": 12,//销量
            "car_num":1//购物车数量
        },
        "specData": null//多规格
    }
}

备注