QQ登录 账号密码登陆 官网首页

获取商品详情

URL地址

http://www.tpshop.com/index.php?m=Api&c=Goods&a=goodsInfo

请求方式

post

参数列表


参数

是否必须

说明

id

必须

商品ID

备注: 

商品促销活动信息的获取方式:

商品无规格时,促销信息默认在"activity"参数中返回, 

商品多规格时, 从"获取商品促销信息"接口获取


成功示例

{
    "status":1,
    "msg":"获取成功",
    "result":{
        "activity":{
            "prom_type":0,
            "data":[
                {
                    "title":"折扣",
                    "content":"满100元打90折"
                },
                {
                    "title":"优惠",
                    "content":"满200元优惠20元"
                }
            ],
            "server_current_time":1503733356
        },
        "goods":{
            "goods_id":184,
            "cat_id":100,
            "extend_cat_id":0,
            "goods_sn":"TP0000184",
            "goods_name":"pppppppppp",
            "click_count":40,
            "brand_id":0,
            "store_count":150,
            "comment_count":0,
            "weight":0,
            "market_price":"200.00",
            "shop_price":"90.00",
            "cost_price":"0.00",
            "price_ladder":"",
            "keywords":"",
            "goods_remark":"",
            "original_img":"",
            "is_real":1,
            "is_on_sale":1,
            "is_free_shipping":0,
            "on_time":1503730366,
            "sort":50,
            "is_recommend":0,
            "is_new":0,
            "is_hot":0,
            "last_update":0,
            "goods_type":33,
            "spec_type":33,
            "give_integral":0,
            "exchange_integral":0,
            "suppliers_id":0,
            "sales_sum":0,
            "prom_type":0,
            "prom_id":0,
            "commission":"0.00",
            "spu":"",
            "sku":"",
            "shipping_area_ids":"",
            "prom_is_able":0,
            "statistics":{
                "c0":0,
                "c1":0,
                "c2":0,
                "c3":0,
                "c4":0,
                "rate1":100,
                "rate2":0,
                "rate3":0
            },
            "is_collect":0,
            "point_rate":"1"
        },
        "goods_spec_list":[
            {
                "spec_name":"合约套餐",
                "spec_list":[
                    {
                        "item_id":106,
                        "item":"乐享4G套餐59元",
                        "src":null
                    },
                    {
                        "item_id":107,
                        "item":"乐享4G套餐79元",
                        "src":null
                    }
                ]
            },
            {
                "spec_name":"套餐",
                "spec_list":[
                    {
                        "item_id":112,
                        "item":"微型卡",
                        "src":null
                    },
                    {
                        "item_id":113,
                        "item":"普通卡",
                        "src":null
                    }
                ]
            }
        ],
        "spec_goods_price":[
            {
                "item_id":338,
                "goods_id":184,
                "key":"106_112",
                "key_name":"乐享4G套餐59元 微型卡 ",
                "price":"100.00",
                "store_count":50,
                "bar_code":"",
                "sku":"",
                "spec_img":"",
                "prom_id":0,
                "prom_type":0
            },
            {
                "item_id":339,
                "goods_id":184,
                "key":"106_113",
                "key_name":"乐享4G套餐59元 普通卡 ",
                "price":"120.00",
                "store_count":50,
                "bar_code":"",
                "sku":"",
                "spec_img":"",
                "prom_id":0,
                "prom_type":0
            },
            {
                "item_id":340,
                "goods_id":184,
                "key":"107_112",
                "key_name":"乐享4G套餐79元 微型卡 ",
                "price":"140.00",
                "store_count":50,
                "bar_code":"",
                "sku":"",
                "spec_img":"",
                "prom_id":0,
                "prom_type":0
            },
            {
                "item_id":341,
                "goods_id":184,
                "key":"107_113",
                "key_name":"乐享4G套餐79元 普通卡 ",
                "price":"160.00",
                "store_count":0,
                "bar_code":"",
                "sku":"",
                "spec_img":"",
                "prom_id":0,
                "prom_type":0
            }
        ],
        "gallery":[

        ],
        "comment":[

        ],
        "recommend_goods":[
            {
                "goods_id":116,
                "goods_name":"ROMOSS/罗马仕 sense6 20000M毫安充电宝 正品手机通用移动电源",
                "shop_price":"89.00"
            },
            {
                "goods_id":117,
                "goods_name":"小派M-20000超薄充电宝适用MIUI蘋果6s手机通用毫安移动电源便携",
                "shop_price":"69.90"
            },
            {
                "goods_id":118,
                "goods_name":"ROMOSS/罗马仕 sense4 正品10000+毫安移动电源 手机通用充电宝",
                "shop_price":"59.00"
            },
            {
                "goods_id":119,
                "goods_name":"小米旗舰店正品手机平板通用迷你充电宝 移动电源10000毫安大容量",
                "shop_price":"69.00"
            },
            {
                "goods_id":120,
                "goods_name":"小米旗舰店正品手机平板通用移动电源16000毫安大容量品牌充电宝",
                "shop_price":"129.00"
            },
            {
                "goods_id":121,
                "goods_name":"科智50000通用充电宝20000毫安冲手机蘋果6s超薄可爱便携移动电源",
                "shop_price":"69.90"
            },
            {
                "goods_id":122,
                "goods_name":"黛尔尼曼20000M蘋果6s手机通用超薄移动电源冲充电宝MIUI便携毫安",
                "shop_price":"69.90"
            },
            {
                "goods_id":145,
                "goods_name":"团购商品",
                "shop_price":"67.00"
            },
            {
                "goods_id":147,
                "goods_name":"流沙百剑",
                "shop_price":"66.00"
            }
        ],
        "consignee":{
            "address_id":0,
            "address":"请选择收货人",
            "district":0
        }
    }
}

附1图  spec_goods_price 键值对价格表