简要描述:

  • 返回订单详情 (前台)

请求域名:

请求URL:

GET/route=plugin.hotel.frontend.hotel.detail

参数:

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

返回示例:

正确时返回:

{
    "result": 1,
    "msg": "ok",
    "data": {
        "id": 1,
        "uid": 1,
        "order_sn": "SH20170302032407269208",
        "price": 480,
        "goods_price": 600,
        "goods_total": 1,
        "create_time": 1488425047,
        "finish_time": 0,
        "pay_time": 0,
        "send_time": 0,
        "cancel_time": 0,
        "status_name": "待付款",
        "invoice_type":0,
        "rise_type":0,
        "call":"小小",
        "company_number":"",
        "invoice_state":0,
        "address_info": {
            "address":"地址",
            "mobile":"18545571024",
            "realname":"真实姓名"
        },
        "status_name": "待付款",
        "button_models": [
            {
                "name": "付款",
                "api": "/order/op/pay",
                "value": 1
            }, 
            {
                "name": "取消订单",
                "api": "/order/op/cancelPay",
                "value": 9
            }
        ], 
        "has_many_order_goods": [
            {
                "goods_id": 1,
                "is_course": 1,
                "goods_price": "300.00",
                "total": 1,
                "price": 300,
                "title": "外套",
                "thumb": "http://demo.yunzshop.com/attachment/images/sz_yi/3/2017/01/ckUQfl.jpg"
            },
            {
                "goods_id": 2,
                "is_course": 0,
                "goods_price": "100.00",
                "total": 3,
                "price": 300,
                "title": "T 恤",
                "thumb": "http://demo.yunzshop.com/attachment/images/sz_yi/1/2017/03/9usdl9.jpg"
            }
        ]
    }
}

错误时返回:

  • 缺少访问参数 -- order_id
{
    "result": 0,
    "msg": "缺少访问参数",
    "data": []
}
  • 未找到数据
{
	"result": 0,
	"msg": "未找到数据",
	"data": []
}

返回参数说明:

###酒店订单参数说明 hotel_order

参数名 类型 说明
enter_at string 开始租房时间
leave_at string 结束租房时间
参数名 类型 说明
id int 订单 ID
order_sn string 订单号
price int 订单金额(实际支付)
goods_price int 商品金额
goods_total int 所有商品的数量
goods_option_title int 规格标题
status_name string 订单状态
invoice_type int 发票类型(0:电子发票,1:纸质发票)
rise_type int 发票抬头(0:单位,1:个人)
call string 称呼
ncompany_numberote string 单位识别号
invoice_state int 发票状态 (0:未开启,1:已开启)
button_models array 按钮
has_many_order_goods array 该订单下的商品列表
dispatch_type_id int 订单配送方式(1快递, 2自提, 3门店配送)
button_models 类型 说明
name string 按钮文字
api string 按钮关联的 API 路径
value int 显示在 HTML 表单的 Value 值
button_models key 按钮名
1 支付
5 确认收货
8 查看物流
9 取消订单
10 评论
12 删除订单
13 申请退款
18 已退款/退款中
19 已评价
20 确认核销
21 转账信息
27 查看卡密
41 联系客服
has_many_order_goods 类型 说明
goods_id int 商品 ID
goods_price int 商品价格
total int 订单中该商品的数量
goods_option_title int 订单中该商品的规格标题
price int 实际支付的该商品的总价
title string 商品名称
thumb string 商品图片
addres_info参数名 类型 说明 dispatch_type_id 为 1 , 是快递
address string 地址
realname string 姓名
mobile string 手机号
addres_info参数名 类型 说明 dispatch_type_id 为 2 或者 3 , 是自提和门店配送
store_address string 地址
member_mobile string 手机号
member_realname string 姓名

| is_course | int | 0:不是课程商品 1:是课程商品 |

备注:

by 腾昌 18/12/14 修改(dispatch_type_id配送方式不同, address_info也不同)