3 Star 0 Fork 0

商城项目 / doc.weecot.com

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
home.md 6.43 KB
一键复制 编辑 原始数据 按行查看 历史
sannnnn 提交于 2021-03-02 17:07 . 首页

home

接口描述:

  • home(home)

接口版本:

版本号 制定人 制定日期 修订日期
1.0.0 wanganlin 2017-03-20 2017-03-25

请求URL:

请求方式:

  • GET

请求头:

参数名 是否必须 类型 说明
Content-Type String 请求类型: application/json
token String 请求内容签名

请求参数:

参数名 是否必须 默认值 类型 说明
ru_id 0 Number 店铺id
type index String 类型

返回示例:

正确时返回:

{
    "status": "success",
    "data": {
        "is_search": "1",
        "index_tag": "假一赔十,品质优选,买贵必赔,售后无忧",
        "index_tag_list": [
            "假一赔十",
            "品质优选",
            "买贵必赔",
            "售后无忧"
        ],
        "is_notice": "1",
        "index_hot": "热销推荐",
        "index_hot_code": "CATALOG_INDEX_HOT",
        "index_catalog": "精选,入门推荐\r\n洗护,日常必备\r\n服饰,品质好物\r\n美食,吃货必备",
        "index_catalog_list": [
            {
                "catalog_code": "CATALOG_INDEX_0",
                "catalog_name": "精选",
                "catalog_subtitle": "入门推荐"
            },
            {
                "catalog_code": "CATALOG_INDEX_1",
                "catalog_name": "洗护",
                "catalog_subtitle": "日常必备"
            },
            {
                "catalog_code": "CATALOG_INDEX_2",
                "catalog_name": "服饰",
                "catalog_subtitle": "品质好物"
            },
            {
                "catalog_code": "CATALOG_INDEX_3",
                "catalog_name": "美食",
                "catalog_subtitle": "吃货必备"
            }
        ],
        "home_icon": [
            {
                "ad_id": 709,
                "position_id": 345,
                "ad_name": "wholesale_ad1",
                "ad_link": "https://www.dscmall.cn/",
                "ad_code": "http://local.weecot.com/storage/data/afficheimg/1499903444738603335.jpg",
                "type": ""
            },
            {
                "ad_id": 718,
                "position_id": 345,
                "ad_name": "充值通道",
                "ad_link": "",
                "ad_code": "http://local.weecot.com/storage/data/afficheimg/1601179882620643921.png",
                "type": ""
            },
            {
                "ad_id": 719,
                "position_id": 345,
                "ad_name": "积分商城",
                "ad_link": "https://widget-test.linkution.com/#/searchList?type=5",
                "ad_code": "http://local.weecot.com/storage/data/afficheimg/1601179861149509732.png",
                "type": "CATALOG_HOME_5"
            },
            {
                "ad_id": 720,
                "position_id": 345,
                "ad_name": "万联通",
                "ad_link": "https://widget-test.linkution.com/#/goods/6583",
                "ad_code": "http://local.weecot.com/storage/data/afficheimg/1601179926237990150.png",
                "type": ""
            },
            {
                "ad_id": 721,
                "position_id": 345,
                "ad_name": "合伙人招募",
                "ad_link": "https://widget-test.linkution.com/#/partner",
                "ad_code": "http://local.weecot.com/storage/data/afficheimg/1601179953993644939.png",
                "type": ""
            },
            {
                "ad_id": 722,
                "position_id": 345,
                "ad_name": "超值专区",
                "ad_link": "https://widget-test.linkution.com/#/searchList?type=4",
                "ad_code": "http://local.weecot.com/storage/data/afficheimg/1601179974608049938.png",
                "type": "CATALOG_HOME_4"
            },
            {
                "ad_id": 723,
                "position_id": 345,
                "ad_name": "优选榜单",
                "ad_link": "https://widget-test.linkution.com/#/searchList?type=1",
                "ad_code": "http://local.weecot.com/storage/data/afficheimg/1601180016040136053.png",
                "type": "CATALOG_HOME_1"
            },
            {
                "ad_id": 724,
                "position_id": 345,
                "ad_name": "新品首发",
                "ad_link": "https://widget-test.linkution.com/#/searchList?type=2",
                "ad_code": "http://local.weecot.com/storage/data/afficheimg/1601180041264583408.png",
                "type": "CATALOG_HOME_2"
            },
            {
                "ad_id": 725,
                "position_id": 345,
                "ad_name": "防伪溯源",
                "ad_link": "https://widget-test.linkution.com/#/searchList?type=6",
                "ad_code": "http://local.weecot.com/storage/data/afficheimg/1601180108900303107.png",
                "type": "CATALOG_HOME_6"
            },
            {
                "ad_id": 726,
                "position_id": 345,
                "ad_name": "一村一品",
                "ad_link": "https://widget-test.linkution.com/#/searchList?type=7",
                "ad_code": "http://local.weecot.com/storage/data/afficheimg/1601180128694563727.png",
                "type": "CATALOG_HOME_7"
            },
            {
                "ad_id": 727,
                "position_id": 345,
                "ad_name": "爆款推荐",
                "ad_link": "https://widget-test.linkution.com/#/searchList?type=3",
                "ad_code": "http://local.weecot.com/storage/data/afficheimg/1601180158860101719.png",
                "type": "CATALOG_HOME_3"
            }
        ],
        "home_ad": [
            {
                "ad_id": 728,
                "position_id": 346,
                "ad_name": "ad1",
                "ad_link": "",
                "ad_code": "http://local.weecot.com/storage/data/afficheimg/1604526289988184998.png",
                "type": ""
            }
        ]
    }
}

错误时返回:

{
    "status": 'failed',
    "errors": {
        "code": 404,
        "message": "message"
    },
    "time": 1553515084
}

返回参数说明:

参数名 类型 说明
data array 可视化数据

备注:

  • 更多返回错误代码请看首页的错误代码描述
其他
1
https://gitee.com/dscmall_test/doc.weecot.com.git
git@gitee.com:dscmall_test/doc.weecot.com.git
dscmall_test
doc.weecot.com
doc.weecot.com
master

搜索帮助

53164aa7 5694891 3bd8fe86 5694891