POST/plugin.customer-manage.frontend.controllers.customer.get-customer-opportunity-list

参数:

参数名 是否必须 类型 说明
customer_id int 客户id
search.status int 状态id
search.type_id int 类型id
search.name int 商机名称
search.staff string 创建人(名称,id,手机)

返回示例:

正确时返回:

{
    "result": 1,
    "msg": "成功",
    "data": {
        "current_page": 1,
        "data": [
            {
                "id": 8,
                "name": "测试商机",
                "business_id": 1,
                "staff_id": 3,
                "customer_id": 59,
                "status_id": 2,
                "type_id": 4,
                "file_id": "6,7",
                "created_at": "2026-02-13 17:50:02",
                "head_id": 3,
                "has_one_annex": null,
                "has_one_status": {
                    "id": 2,
                    "name": "收尾阶段"
                },
                "has_one_type": {
                    "id": 4,
                    "name": "进行中"
                },
                "has_one_customer": {
                    "id": 59,
                    "name": "13*******22",
                    "mobile": "13224511222"
                },
                "has_one_staff": {
                    "id": 3,
                    "name": "创始人(吴亦凡)",
                    "uid": 2,
                    "avatar": "http://wework.qpic.cn/bizmail/r4f9blWlVJOpCPlAticV65autpiaZW6bLc4qfIgnyc39WW9QqxDfb1iag/0",
                    "userid": null,
                    "avatar_mediaid": "http://wework.qpic.cn/bizmail/r4f9blWlVJOpCPlAticV65autpiaZW6bLc4qfIgnyc39WW9QqxDfb1iag/0"
                },
                "has_head_staff": {
                    "id": 3,
                    "name": "创始人(吴亦凡)",
                    "uid": 2,
                    "avatar": "http://wework.qpic.cn/bizmail/r4f9blWlVJOpCPlAticV65autpiaZW6bLc4qfIgnyc39WW9QqxDfb1iag/0",
                    "userid": null,
                    "avatar_mediaid": "http://wework.qpic.cn/bizmail/r4f9blWlVJOpCPlAticV65autpiaZW6bLc4qfIgnyc39WW9QqxDfb1iag/0"
                }
            }
        ],
        "first_page_url": "http://yzhonshop.com/addons/yun_shop/api.php?page=1",
        "from": 1,
        "last_page": 4,
        "last_page_url": "http://yzhonshop.com/addons/yun_shop/api.php?page=4",
        "links": [
            {
                "url": null,
                "label": "« 上一页",
                "active": false
            },
            {
                "url": "http://yzhonshop.com/addons/yun_shop/api.php?page=1",
                "label": "1",
                "active": true
            },
            {
                "url": "http://yzhonshop.com/addons/yun_shop/api.php?page=2",
                "label": "2",
                "active": false
            },
            {
                "url": "http://yzhonshop.com/addons/yun_shop/api.php?page=3",
                "label": "3",
                "active": false
            },
            {
                "url": "http://yzhonshop.com/addons/yun_shop/api.php?page=4",
                "label": "4",
                "active": false
            },
            {
                "url": "http://yzhonshop.com/addons/yun_shop/api.php?page=2",
                "label": "下一页 »",
                "active": false
            }
        ],
        "next_page_url": "http://yzhonshop.com/addons/yun_shop/api.php?page=2",
        "path": "http://yzhonshop.com/addons/yun_shop/api.php",
        "per_page": 1,
        "prev_page_url": null,
        "to": 1,
        "total": 4
    }
}

返回参数说明:

参数名 类型 说明
name string 商机名称