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

首页商品数据

URL地址

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

请求方式

 get

 

看以下图


/*
    首页数据:
    (promotion_goods)促销商品为三个,
    (high_quality_goods)精品推荐、(new_goods)新品、(hot_goods)热销为九个,
    (ad)图片轮播广告位
*/

成功示例

{
    "status":1,
    "msg":"获取成功",
    "result":{
        "promotion_goods":[
            {
                "goods_id":"119",//商品id
                "goods_name":"小米旗舰店正品手机平板通用迷你充电宝 移动电源10000毫安大容量",//商品名称
                "price":"59.00",//促销价格
                "end_time":"1464624000"//促销截止时间戳
            },
            {
                "goods_id":"1",
                "goods_name":"Apple iPhone 6s Plus 16G 玫瑰金 移动联通电信4G手机",
                "price":"423.00",
                "end_time":"1472918400"
            },
            {
                "goods_id":"141",
                "goods_name":"三星 Galaxy A9高配版 (A9100) 精灵黑 全网通4G手机 双卡双待",
                "price":"465.00",
                "end_time":"1472918400"
            }
        ],
        "high_quality_goods":[
            {
                "goods_id":"148",//商品id
                "goods_name":"1111111",//商品名称
                "shop_price":"3.00"//商品价格
            },
            {
                "goods_id":"1",
                "goods_name":"Apple iPhone 6s Plus 16G 玫瑰金 移动联通电信4G手机",
                "shop_price":"200.00"
            },
            {
                "goods_id":"155",
                "goods_name":"22222",
                "shop_price":"0.00"
            },
            {
                "goods_id":"154",
                "goods_name":"11111",
                "shop_price":"0.00"
            },
            {
                "goods_id":"153",
                "goods_name":"测试",
                "shop_price":"0.00"
            },
            {
                "goods_id":"152",
                "goods_name":"11111111111",
                "shop_price":"0.00"
            },
            {
                "goods_id":"145",
                "goods_name":"",
                "shop_price":"0.00"
            },
            {
                "goods_id":"143",
                "goods_name":"haier海尔 BC-93TMPF 93升单门冰箱",
                "shop_price":"699.00"
            },
            {
                "goods_id":"142",
                "goods_name":"海尔(Haier)BCD-251WDGW 251升 无霜两门冰箱(白色)",
                "shop_price":"2699.00"
            }
        ],
        "new_goods":[
            {
                "goods_id":"155",
                "goods_name":"22222",
                "shop_price":"0.00"
            },
            {
                "goods_id":"154",
                "goods_name":"11111",
                "shop_price":"0.00"
            },
            {
                "goods_id":"153",
                "goods_name":"测试",
                "shop_price":"0.00"
            },
            {
                "goods_id":"152",
                "goods_name":"11111111111",
                "shop_price":"0.00"
            },
            {
                "goods_id":"145",
                "goods_name":"",
                "shop_price":"0.00"
            },
            {
                "goods_id":"104",
                "goods_name":"小米手机5,十余项黑科技,很轻狠快",
                "shop_price":"1999.00"
            },
            {
                "goods_id":"103",
                "goods_name":"珂兰钻石 18K金90分效果群镶钻石戒指 倾城 需定制",
                "shop_price":"1999.00"
            },
            {
                "goods_id":"77",
                "goods_name":"红衣主角2015冬装新款走秀款大气简约黄色羊毛呢大衣.",
                "shop_price":"500.00"
            },
            {
                "goods_id":"76",
                "goods_name":"韩文2015冬装新款女装红色双排扣配腰带毛呢大衣.",
                "shop_price":"289.00"
            }
        ],
        "hot_goods":[
            {
                "goods_id":"149",
                "goods_name":"111111111111",
                "shop_price":"11.00"
            },
            {
                "goods_id":"1",
                "goods_name":"Apple iPhone 6s Plus 16G 玫瑰金 移动联通电信4G手机",
                "shop_price":"200.00"
            },
            {
                "goods_id":"155",
                "goods_name":"22222",
                "shop_price":"0.00"
            },
            {
                "goods_id":"154",
                "goods_name":"11111",
                "shop_price":"0.00"
            },
            {
                "goods_id":"153",
                "goods_name":"测试",
                "shop_price":"0.00"
            },
            {
                "goods_id":"152",
                "goods_name":"11111111111",
                "shop_price":"0.00"
            },
            {
                "goods_id":"143",
                "goods_name":"haier海尔 BC-93TMPF 93升单门冰箱",
                "shop_price":"699.00"
            },
            {
                "goods_id":"142",
                "goods_name":"海尔(Haier)BCD-251WDGW 251升 无霜两门冰箱(白色)",
                "shop_price":"2699.00"
            },
            {
                "goods_id":"141",
                "goods_name":"三星 Galaxy A9高配版 (A9100) 精灵黑 全网通4G手机 双卡双待",
                "shop_price":"3499.00"
            }
        ],
        "ad":[
            {
                "ad_link":"http://dev.tpshop.cn/index.php?m=Home&c=Goods&a=goodsInfo&id=1",//广告位链接
                "ad_name":"首页banner轮播1",//广告位名称
                "ad_code":"http://dev.tpshop.cn/Public/upload/ad/2016/07-25/5795b12d78f4f.jpg"//广告图
            },
            {
                "ad_link":"http://dev.tpshop.cn/index.php?m=Home&c=Goods&a=goodsInfo&id=1",
                "ad_name":"首页banner轮播2",
                "ad_code":"http://dev.tpshop.cn/Public/upload/ad/2016/07-25/5795ab303cb65.jpg"
            }
        ]
    }
}