简要描述:

  • 企业需求订单列表

请求域名:

  • http://xx.com

请求URL:

GET/&route=plugin.be-within-call.frontend.order.enterprise-need.index

参数:

参数名 是否必须 类型 说明
tab string 选项卡状态
tab 参数对应值:
待支付订单 = wait_pay
待审核订单 = wait_check
已完成订单 = completed
已关闭订单 = close

返回示例:

正确时返回:

{
    "result": 1,
    "msg": "ok",
    "data": {
        "current_page": 1,
        "data": [
            {
                "id": 2,
                "uniacid": 6,
                "member_id": 2462,
                "order_id": 938,
                "category_id": 3,
                "package_id": 1,
                "mark": "",
                "order_sn": "SN2303221701387DDC",
                "title": "广告",
                "pic": "images/6/2022/01/17fd5908dcc2d363548243c47ef3e97d.jpg",
                "content": "本企业发布实打实的第三方",
                "headline_fee": "10.00",
                "is_headline": 1,
                "is_hide": 0,
                "status": 2,
                "pay_time": "2023-03-22 17:59:37",
                "audit_time": "2023-03-22 17:59:45",
                "close_time": null,
                "created_at": "2023-03-22 17:01:23",
                "amount": "20.00",
                "button_models": [],
                "status_name": "完成",
                "pic_url": "http://demo.yun.cn/static/upload/images/6/2022/01/17fd5908dcc2d363548243c47ef3e97d.jpg",
                "has_one_order": {
                    "id": 938,
                    "status": 3,
                    "pay_type_id": 5,
                    "price": "20.00",
                    "refund_id": 0,
                    "plugin_id": 64,
                    "shop_name": "出刀",
                    "create_time": "2023-03-22 17:01:23",
                    "pay_time": "2023-03-22 17:59:37",
                    "status_name": "交易完成",
                    "pay_type_name": "后台",
                    "process": [],
                    "has_one_pay_type": {
                        "id": 5,
                        "name": "后台",
                        "plugin_id": 0,
                        "code": "backend",
                        "type": 1,
                        "unit": "元",
                        "updated_at": "2019-04-15 12:07:20",
                        "created_at": null,
                        "deleted_at": null,
                        "setting_key": "",
                        "need_password": 0,
                        "group_id": 4
                    },
                    "has_one_behalf_pay": null
                },
                "has_one_package": {
                    "id": 1,
                    "pay_type_id": 0,
                    "pay_sn": "",
                    "operate_name": "后端修改",
                    "type": 11,
                    "fee": "10.00",
                    "desc": "单次单条信息费用10元/条",
                    "status": 1,
                    "status_name": "使用中",
                    "type_name": "按单次单条信息费用",
                    "pay_type_name": "后端修改"
                },
                "has_one_category": {
                    "id": 3,
                    "title": "企业分类",
                    "thumb_url": ""
                }
            }
        ],
        "first_page_url": "http://demo.yun.cn/addons/yun_shop/api.php?page=1",
        "from": 1,
        "last_page": 1,
        "last_page_url": "http://demo.yun.cn/addons/yun_shop/api.php?page=1",
        "next_page_url": null,
        "path": "http://demo.yun.cn/addons/yun_shop/api.php",
        "per_page": 20,
        "prev_page_url": null,
        "to": 1,
        "total": 1
    }
}

返回参数说明:

返回参数说明(分页):

参数名 类型 说明
current_page int 当前页数
per_page int 每页条数
to int 当前页条数
total int 总条数(直推人数)
data array 内容数据

data参数说明:

参数名 类型 说明
id int 需求ID
order_id int 订单ID
member_id int 会员ID
order_sn string 订单编号
title string 需求标题
content string 内容描述
amount int 发布支付金额
has_one_category.thumb_url string 分类图片
button_models array 订单按钮

button_models参数说明:

参数名 类型 说明
name string 按钮名称
api string 按钮路由
value string 按钮标识

button_models参数说明:

name value api
支付 pay order.merge-pay
取消 enterprise-cancel-pay plugin.be-within-call.frontend.need-order-operate.enterprise-cancel-pay

备注: