请求URL:

POST/plugin.customer-manage.frontend.controllers.index

参数:

参数名 是否必须 类型 说明
username string 用户名
password string 密码

返回示例:

正确时返回:

 {
    "result": 1,
    "msg": "成功",
    "data": {
        "navs": [
            {
                "logo": "",
                "title": "我的客户",
                "url": "",
                "sort": 1
            },
            {
                "logo": "",
                "title": "公海客户",
                "url": "",
                "sort": 3
            }
        ],
        "statistics": {
            "self": {
                "now_total": 5,
                "new_total": 0,
                "loss_total": 0,
                "follow_total": 16,
                "opportunity_total": 5
            },
            "department": {
                "now_total": 8,
                "new_total": 0,
                "loss_total": 0,
                "follow_total": 16,
                "opportunity_total": 5
            }
        },
        "member": {
            "nickname": "刘备",
            "avatar": "http://yzhonshop.com/static/images/photo-mr.jpg",
            "avatar_image": "http://yzhonshop.com/static/images/photo-mr.jpg",
            "username": "刘备"
        }
    }
}

返回参数说明:

参数名 类型 说明
navs array 导航栏
statistics.self array 我的客户统计
statistics.department array 部门客户统计
statistics..now_total int 当前客户总数
statistics..new_total int 新增客户总数
statistics..loss_total int 流失客户总数
statistics..follow_total int 跟进记录总数
statistics..opportunity_total int 商机总数

备注:

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