API接口文档

首页列表

创建于 2021-09-29 / 最近更新于 2021-10-10 / 557

简要描述

首页

接口版本

版本号 制定人 制定日期 修订日期
1.0.0 Devil 2020-09-29

请求URL

index/index

请求方式

POST

公共参数

参数名 是否必须 类型 默认值 描述
application string web 请求应用、参考公共中详解
application_client_type string pc 请求客户端、参考公共中详解
token string token

请求参数

返回示例

正确时返回

{
    "msg": "success",
    "code": 0,
    "data": {
        "navigation": [
            {
                "id": "1",
                "name": "分类",
                "images_url": "https://d1.shopxo.vip/static/upload/images/app_nav/2018/11/19/2018111915461980516.png",
                "event_value": "/pages/goods-category/goods-category",
                "event_type": "1",
                "bg_color": "#48CFAE",
                "is_need_login": "0",
                "images_url_old": "/static/upload/images/app_nav/2018/11/19/2018111915461980516.png"
            }
        ],
        "banner_list": [
            {
                "name": "浪漫七夕",
                "images_url": "https://d1.shopxo.vip/static/upload/images/slide/2021/09/22/1632294292653666.png",
                "event_value": "/pages/goods-search/goods-search?keywords=iphone",
                "event_type": "1",
                "bg_color": "",
                "images_url_old": "/static/upload/images/slide/2021/09/22/1632294292653666.png"
            }
        ],
        "data_list": [
            {
                "id": "1",
                "pid": "0",
                "icon": "https://d1.shopxo.vip/static/upload/images/goods_category/2018/08/20180814174251211789.png",
                "name": "数码办公",
                "vice_name": "天天新品,科技带来快乐!",
                "describe": "iphoneX新品发布了",
                "bg_color": "#23acff",
                "big_images": "https://d1.shopxo.vip/static/upload/images/goods_category/2018/08/20180814180843848554.png",
                "sort": "0",
                "is_home_recommended": "1",
                "seo_title": "数码办公标题",
                "seo_keywords": "数码办公,笔记本,手机",
                "seo_desc": "数码办公周边产品",
                "goods_ids": [
                    "13",
                    "6",
                    "5",
                    "4",
                    "3",
                    "2",
                    "1"
                ],
                "goods": [
                    {
                        "id": "13",
                        "shop_id": "14",
                        "shop_user_id": "340",
                        "shop_category_id": "12",
                        "shop_settle_price": "0.00",
                        "shop_settle_rate": "0.00",
                        "brand_id": "0",
                        "site_type": "0",
                        "title": "【订书机】得力0358手握式订书机",
                        "title_color": "",
                        "simple_desc": "的",
                        "model": "0358",
                        "place_origin": "0",
                        "inventory": "36",
                        "inventory_unit": "个",
                        "images": "https://d1.shopxo.vip/static/upload/images/plugins_shop/user_goods/340/2021/08/17/1629201953330242.jpg",
                        "original_price": "16.00",
                        "min_original_price": "20.00",
                        "max_original_price": "20.00",
                        "price": "8.80",
                        "min_price": "8.80",
                        "max_price": "8.80",
                        "give_integral": "0",
                        "buy_min_number": "1",
                        "buy_max_number": "0",
                        "is_deduction_inventory": "1",
                        "is_shelves": "1",
                        "content_web": "


", "photo_count": "5", "sales_count": "0", "access_count": "1033", "video": "", "is_exist_many_spec": "0", "spec_base": "", "plugins_membershiplevelvip_price_extends": "{\"4\":{\"min_price\":\"1.00\",\"max_price\":\"1.00\",\"price\":\"1.00\"},\"5\":{\"min_price\":\"1.00\",\"max_price\":\"1.00\",\"price\":\"1.00\"}}", "seo_title": "", "seo_keywords": "", "seo_desc": "", "is_delete_time": "0", "add_time": "2021-08-17 20:06:23", "upd_time": "2021-08-17 20:06:31", "price_container": { "price": "16.00", "min_price": "16.00", "max_price": "16.00", "original_price": "20.00", "min_original_price": "20.00", "max_original_price": "20.00" }, "goods_url": "https://d1.shopxo.vip/goods/index/id/13.html", "images_old": "/static/upload/images/plugins_shop/user_goods/340/2021/08/17/1629201953330242.jpg", "video_old": "", "place_origin_name": null, "brand_name": null, "show_field_original_price_text": "原价", "show_field_price_text": "秒杀价", "plugins_view_panel_data": [], "plugins_view_icon_data": [] } ], "items": [ { "id": "58", "pid": "1", "icon": "https://d1.shopxo.vip/static/upload/images/goods_category/2018/11/20/2018112015245128143.jpeg", "name": "手机通讯", "vice_name": "", "describe": "", "bg_color": "", "big_images": "", "sort": "0", "is_home_recommended": "1", "seo_title": "", "seo_keywords": "", "seo_desc": "" } ], "config_keywords": [ "手机", "iphone", "小米" ] } ], "common_cart_total": 6, "plugins_limitedtimediscount_data": { "base": { "application_name": "限时秒杀", "goods_list_title": "", "goods_detail_icon": "", "goods_detail_title": "", "content_notice": "新品秒杀...", "time_start": "2021-04-12 01:00:18", "time_end": "2021-10-10 13:05:46", "is_actas_price_original": "1", "is_home_show": "1" }, "time": { "hours": 259, "minutes": 24, "seconds": "04", "status": 1, "msg": "进行中" }, "goods": [ { "id": "13", "title": "【订书机】得力0358手握式订书机", "images": "https://d1.shopxo.vip/static/upload/images/plugins_shop/user_goods/340/2021/08/17/1629201953330242.jpg", "min_price": "8.80", "price": "8.80", "original_price": "16.00", "min_original_price": "20.00", "price_container": { "price": "16.00", "min_price": "16.00", "max_price": 0, "original_price": "20.00", "min_original_price": "20.00", "max_original_price": 0 }, "goods_url": "https://d1.shopxo.vip/goods/index/id/13.html", "images_old": "/static/upload/images/plugins_shop/user_goods/340/2021/08/17/1629201953330242.jpg", "show_field_original_price_text": "原价", "show_field_price_text": "秒杀价", "plugins_view_panel_data": [], "plugins_view_icon_data": [], "plugins_discount": "0.55", "plugins_price": "0.00", "goods_id": "13" } ], "is_valid": 1 }, "plugins_salerecords_data": { "base": { "order_random_max_number": "", "home_bottom_number": "14", "home_bottom_title": "", "home_bottom_desc": "看看大家都买了那些", "goods_detail_number": "", "goods_detail_time_pause": "", "goods_detail_time_interval": "", "goods_detail_tips": "刚刚,1分钟前,3分钟前,2分钟前,30秒前,5分钟前,10分钟前,8分钟前,20秒前", "goods_detail_tips_location": "bottom-center", "is_home_bottom": "1", "is_goods_detail": "1", "order_status": [], "order_status_text": "", "goods_detail_tips_location_text": "下中" }, "data": [ { "user_id": "1", "order_id": "158", "goods_id": "12", "title": "ZK星星绣花雪纺连衣裙中长款sukol裙少女心温柔超仙女chic裙子夏", "images": "https://d1.shopxo.vip/static/upload/images/goods/2019/01/14/1547455890402147.jpg", "buy_number": "2", "add_time": "09-28 15:45", "goods_url": "https://d1.shopxo.vip/goods/index/id/12.html", "user": { "username": "qqqqqq", "nickname": "qqqqqq", "mobile": "", "email": "", "avatar": "https://d1.shopxo.vip/static/index/default/images/default-user-avatar.jpg", "province": "", "city": "", "id": "1", "mobile_security": "", "email_security": "", "user_name_view": "q***q" }, "unit": "箱", "tips": "q***q刚刚购买了2箱!" } ] } } }

错误时返回

{
    "msg": "error",
    "code": -1,
    "data": []
}

返回参数说明 -> data

参数名 是否必须 类型 描述
navigation array icon导航
banner_list array 轮播
data_list array 楼层数据
common_cart_total int 购物车总数
plugins_limitedtimediscount_data array 限时秒杀 - 插件
plugins_salerecords_data array 购买记录 - 插件

备注

更多返回错误代码请看首页的错误代码描述

0 人点赞过