简要描述:

  • 会员订单详情

请求域名:

  • http://xx.com

请求URL:

plugin.live-install.frontend.order.orderDetail

参数:

参数名 是否必须 类型 说明
order_id int 订单id

返回示例:

正确时返回:

{
    "result": 1,
    "msg": "成功",
    "data": {
        "order_id": 1115,
        "order_sn": "SN20200618092146JO",
        "reserve_time": "2021-04-06 11:07",
        "state_name": "已完成",
        "service_amount":10,
        "button_group": [
            {
                "api": "plugin.live-install.frontend.order.getRefundList",
                "name": "查看售后",
                "code": "getRefundList",
                "beizhu": "会员查看售后列表"
            },
            {
                "api": "order.my-comment.paging",
                "name": "评价",
                "code": "comment",
                "beizhu": "会员评价订单"
            }
        ],
        "store_id": 1,
        "store_name": "bc的门店",
        "order_type_name": "货到付款",
        "note": "123方式方式发",
        "price": "120.00",
        "create_time": "2021-04-06 11:07",
        "pay_time": "2021-04-06 11:07",
        "worker_time": "2021-04-12 16:45",
        "take_time": "2021-04-12 17:53",
        "install_start_time": "2021-04-15 11:54",
        "finish_time": "2021-04-15 11:54",
        "delivery_pay_time": "",
        "install_comment":'这是安装备注hhhhh',
        "finish_image": [
            "http://zouye.yunzmall.com/static/upload/newimage/87c5556d5201962a35abaa1f3e371554.png",
            "http://zouye.yunzmall.com/static/upload/newimage/234f4166d69287eb17560af22e8b28e4.png"
        ],
        "refund_orders": [],
        "worker_mobile": "13711106018",
        "worker_name": "许师傅",
        "cancel_time": "",
        "goods_list": [
            {
                "install_order_goods_id": 1,
                "goods_id": 1079,
                "title": "购物赠送余额测试123154655133",
                "goods_option_title": "hhh22faffaff上三个三个是",
                "thumb": "http://zouye.yunzmall.com/static/upload/newimage/5207761395c74705f9a56d9aeb973e08.jpg",
                "total": 2,
                "button_group": [
                    {
                        "api": "",
                        "name": "售后中",
                        "code": "goodsRefunding",
                        "beizhu": "订单详情商品列表售后状态描述,点击无效"
                    }
                ]
            }
        ],
        "goods_count": 2
    }
}

错误时返回:

{
    "result": 0,
    "msg": "具体错误原因",
    "data": {}
}

返回参数说明:

参数名 类型 说明
data->order_id int 订单id
data->order_sn string 订单号
data->reserve_time string 预约安装时间
data->button_group arr 按钮组,可能出现的code:orderRefunding,getRefundList,orderPay,orderApplyRefund,orderClose,orderPay,comment
data->goods_list arr 订单商品列表
data->goods_list[ ]->goods_id int 订单商品id
data->goods_list[ ]->title string 订单商品名
data->goods_list[ ]->thumb string 订单商品图片
data->goods_list[ ]->total int 该订单商品的数量
data->goods_list[ ]->button_group arr 操作按钮组,可能出现的code:goodsRefunding,goodsApplyRefund
data->worker_mobile string 安装师傅手机号
data->worker_name string 安装师傅姓名
data->goods_count int 订单商品总数
data->store_id int 门店id
data->store_name string 门店名
data->note string 订单备注
data->price float 实付价格
data->service_amount float 订单服务费
data->order_type_name string 支付方式
data->create_time string 创建时间
data->pay_time string 支付时间
data->worker_time string 接单时间
data->take_time string 取货时间
data->install_start_time string 上门安装时间
data->finish_time string 安装完成时间
data->delivery_pay_time string 货到付款时间
data->install_comment string 安装备注
data->finish_image arr 完成图片
data->cancel_time string 订单关闭时间

二开追加参数说明:

参数名 类型 说明
data->order_replace int 是否代客点单 1是 0不是,当是代客点单订单时,隐藏页面的取货时间,改为付款时间
data->order_pay_time string 付款时间,未付款时为空字符串