简要描述:

  • 安装师傅订单详情

请求域名:

  • http://xx.com

请求URL:

plugin.live-install.frontend.worker-order.orderDetail

参数:

参数名 是否必须 类型 说明
longitude float 经度
latitude float 纬度
order_id int 订单id

返回示例:

正确时返回:

{
    "result": 1,
    "msg": "成功",
    "data": {
        "order_id": 1115,
        "order_sn": "SN20200618092146JO",
        "reserve_time": "2021-04-06 11:07",
        "state_name": "待取货",
        "button_group": [
            {
                "api": "plugin.live-install.frontend.worker-order.takeCode",
                "name": "取货码",
                "code": "takeCode",
                "beizhu": "安装师傅订单列表或详情,点击展示取货码"
            }
        ],
        "service_amount": 20,
        "reward_amount": 10,
        "longitude": "20.000000",
        "latitude": "20.000000",
        "distance": "3115.93km",
        "address": "广东省 广州市 白云区 棠景街道 测试",
        "nickname": "莉莉娅",
        "mobile": "15219025049",
        "store_id": 1,
        "store_name": "bc的门店",
        "store_address": "百信广场",
        "store_longitude": "113.266943",
        "store_latitude": "23.191411",
        "store_province": "北京",
        "store_city": "北京市",
        "store_district": "东城区",
        "store_street": "东华门街道",
        "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-06 13:52",
        "install_start_time": "2021-04-15 11:54",
        "finish_time": "2021-04-06 11:07",
        "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": [
            {
                "refund_id": 3,
                "refund_time": "2021-04-06 17:41",
                "finish_time": 1617702100,
                "refund_image": [
                    "http://zouye.yunzmall.com/static/upload/newimage/87c5556d5201962a35abaa1f3e371554.png",
                    "http://zouye.yunzmall.com/static/upload/newimage/234f4166d69287eb17560af22e8b28e4.png"
                ],
                "refund_reason": "概述概述个不是本身vsvsvsvsv",
                "goods_id": 1079,
                "title": "购物赠送余额测试123154655133",
                "goods_option_title": "hhh22faffaff上三个三个是",
                "thumb": "http://zouye.yunzmall.com/static/upload/newimage/5207761395c74705f9a56d9aeb973e08.jpg",
                "total": 2,
                "state_name": "售后中",
                "button_group": [
                    {
                        "api": "plugin.live-install.frontend.worker-order.finishRefund",
                        "name": "售后完成",
                        "code": "finishRefund",
                        "beizhu": "安装师傅点击完成售后"
                    }
                ]
            }
        ],
        "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": []
            }
        ],
        "goods_count": 2,
        "pay_code_button": {
            "api": "plugin.live-install.frontend.worker-order.payCode",
            "name": "收款",
            "code": "payCode",
            "beizhu": "安装师傅订单列表或详情,点击展示收款码"
        }
    }
}

错误时返回:

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

返回参数说明:

参数名 类型 说明
data->order_id int 订单id
data->order_sn string 订单号
data->nickname string 会员昵称
data->address string 地址
data->reserve_time string 预约安装时间
data->longitude float 经度
data->latitude float 纬度
data->distance string 距离
data->service_amount float 服务费
data->reward_amount float 分红
data->button_group arr 按钮组
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 操作按钮组,安装师傅这边固定为空数组不用管
data->refund_orders arr 订单售后列表
data->refund_orders[ ]->refund_id int 售后id
data->refund_orders[ ]->refund_time string 售后申请时间
data->refund_orders[ ]->finish_time string 售后完成时间
data->refund_orders[ ]->refund_image arr 售后申请图片数组
data->refund_orders[ ]->refund_reason string 售后原因
data->refund_orders[ ]->goods_id int 售后商品id
data->refund_orders[ ]->title string 售后商品名
data->refund_orders[ ]->goods_option_title string 售后商品规格名
data->refund_orders[ ]->thumb string 商品图片
data->refund_orders[ ]->total string 商品数量
data->refund_orders[ ]->state_name string 售后状态名
data->refund_orders[ ]->button_group arr 操作按钮组,可能出现的code:orderRefunding,workerChoose,takeCode,installFinish,installStart
data->goods_count int 订单商品总数
data->store_id int 门店id
data->store_name string 门店名
data->store_address string 门店地址
data->store_longitude float 门店经度,为空字符串时为无
data->store_latitude float 门店纬度,为空字符串时为无
data->store_province string 门店省份
data->store_city string 门店市区
data->store_district string 门店区域
data->store_street string 门店街道
data->note string 订单备注
data->price 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->pay_code_button arr 付款码按钮组,不存在时为null

二开追加参数说明:

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