简要描述:

  • 获取企业公共参数

请求域名:

  • http://xx.com

请求URL:

xx.com/business/{公众号id}/admin/getBusinessCommonData

参数:

参数名 是否必须 类型 说明
is_business int 是否获取企业权限相关参数,需要管理企业后再获取,否则会触发跳转回企业管理列表的错误返回

返回示例:

正确时返回:

{
    "result": 1,
    "msg": "成功",
    "data": {
        "member": {
            "nickname": "莉莉娅",
            "realname": "xxx",
            "avatar": "http://wx.qlogo.cn/mmopen/vi_32/zs9mjh65RUyAyEH9GEKakpokzf6askhga7sKkaqjhT7M13XhbciaEq7CoDicVEN7ut3zC9dCmvlfiaCpNX8v4E1QA/0",
            "uid": 5,
            "avatar_image": "https://wx.qlogo.cn/mmopen/vi_32/zs9mjh65RUyAyEH9GEKakpokzf6askhga7sKkaqjhT7M13XhbciaEq7CoDicVEN7ut3zC9dCmvlfiaCpNX8v4E1QA/0",
            "username": "莉莉娅"
        },
        "identity": 5,
        "tab": [
            {
                "name": "概况",
                "route": "overview",
                "child": []
            },
            {
                "name": "设置",
                "route": "settingInformation",
                "child": [
                    {
                        "name": "企业信息",
                        "route": "settingInformation",
                        "child": []
                    },
                    {
                        "name": "企业微信设置",
                        "route": "businessSetQyInformation",
                        "child": []
                    }
                ]
            },
            {
                "name": "员工管理",
                "route": "staffIndex",
                "child": [
                    {
                        "name": "员工管理",
                        "route": "staffIndex",
                        "child": []
                    }
                ]
            },
            {
                "name": "应用中心",
                "route": "application",
                "child": [
                    {
                        "name": "办公管理",
                        "route": "",
                        "child": []
                    },
                    {
                        "name": "销售管理",
                        "route": "",
                        "child": []
                    },
                    {
                        "name": "工具软件",
                        "route": "",
                        "child": []
                    }
                ]
            }
        ],
        "page_route": {
            "admin": [
                {
                    "route": "overview",
                    "module": "admin",
                    "can": 1,
                    "identity": 1
                },
                {
                    "route": "settingInformation",
                    "module": "admin",
                    "can": 1,
                    "identity": 1
                },
                {
                    "route": "businessSetQyInformation",
                    "module": "admin",
                    "can": 1,
                    "identity": 1
                },
                {
                    "route": "departmentIndex",
                    "module": "admin",
                    "can": 1,
                    "identity": 1
                },
                {
                    "route": "staffIndex",
                    "module": "admin",
                    "can": 1,
                    "identity": 1
                },
                {
                    "route": "application",
                    "module": "admin",
                    "can": 1,
                    "identity": 1
                },
                {
                    "route": "businessStaff",
                    "module": "admin",
                    "can": 1,
                    "identity": 2
                }
            ]
        },
        "plat_setting": {
            "open_state": 1,
            "pc_title": "555",
            "pc_logo": "newimage/b07dd638cc903b793d71ad7378130558.png",
            "pc_favorite_icon": "newimage/ca6134bf9159c4db324b27bcca2bf12d.png",
            "pc_login_left_banner": "https://images.renrencai.cn/sku_goods_img/2020/09/d9c3bf493a2adc4bf8b1b16f5f58c716.jpg",
            "pc_logo_url": "http://zouye.yunzmall.com/static/upload/newimage/b07dd638cc903b793d71ad7378130558.png",
            "pc_favorite_icon_url": "http://zouye.yunzmall.com/static/upload/newimage/ca6134bf9159c4db324b27bcca2bf12d.png",
            "pc_login_left_banner_url": "https://images.renrencai.cn/sku_goods_img/2020/09/d9c3bf493a2adc4bf8b1b16f5f58c716.jpg",
            "copyright": "<p>eee</p>\n<p><img src=\"https://images.renrencai.cn/sku_goods_img/2020/09/596df722c02dfda82a33ad160aeaf999.jpg\" width=\"50\" height=\"100\" /></p>\n<p>&nbsp;</p>\n<p>sd</p>",
			customer_link: "https://www.baidu.com",
            customer_mobile: "https://www.baidu.com",
            customer_qrcode: "https://dev15.yunzmall.com/static/upload/newimage/fe2315c3fb15527c80c5cc693ab2fcfe.jpeg"
        }
    }
}

错误时返回:


返回参数说明:

参数名 类型 说明
名称 类型 说明
data.member object 用户信息
data.identity int 身份标识 0无身份 1员工 2管理员 3创建人 4法人 5法人+创建人
data.tab arr 侧边栏
data.tab[].name string 侧边栏名称
data.tab[].route string 侧边栏路由
data.tab[].child arr 侧边栏子级栏目
data.page_route arr 前端路由列表
data.page_route[].route string 前端路由
data.page_route[].can int 是否可以访问 0不可以 1可以 更换管理的企业后需要重新获取
data.plat_setting object 平台设置