/*
订单详情
author:咔咔
time:2018.6.12
*/
public function foodorderdetail(){
// 获取订单id
$orderId = I('id');
// 订单信息
$orderDatail = D('foodorder')->where([
'id'=>$orderId
])->find();
// 订单地址
$address_data = D('foodaddress')->where([
'id'=>$orderDatail['address_id']
])->find();
// 商品详情
$order_detail = json_decode($orderDatail['cartorder'],true);
// dump($order_detail);die;
$this->assign([
// 订单详情
'order_detail'=>$order_detail,
// 订单信息
'orderDatail'=>$orderDatail,
// 订单地址
'address_data'=>$address_data
]);
$this->display();
}