...
|
...
|
@@ -65,6 +65,9 @@ class OrdersController extends WebAction |
|
|
//历史订单/普通订单
|
|
|
$orderKey = ($type == ChannelConfig::$historyType) ? 'historyOrders' : 'orders';
|
|
|
$data[$orderKey] = $orders;
|
|
|
//取消订单原因列表
|
|
|
$resons = OrderData::closeReasons();
|
|
|
$data['cancelReason'] = isset($resons['data']) ? $resons['data'] : '';
|
|
|
$this->_view->display('orders', array('meOrdersPage' => true, 'meOrders' => $data));
|
|
|
}
|
|
|
|
...
|
...
|
@@ -98,7 +101,7 @@ class OrdersController extends WebAction |
|
|
'userThumb' => UserModel::getUserHeadImg($uid),
|
|
|
'homeNav' => $leftNav
|
|
|
);
|
|
|
$packages=false;
|
|
|
$packages = false;
|
|
|
if ($detail) {
|
|
|
$data += array(
|
|
|
'orderNum' => $detail['orderNum'],
|
...
|
...
|
@@ -185,8 +188,10 @@ class OrdersController extends WebAction |
|
|
break;
|
|
|
}
|
|
|
$uid = $this->auditJumpLogin();
|
|
|
$orderCode = trim($this->post('orderCode', ''));
|
|
|
$data = OrderData::cancelUserOrder($uid, $orderCode);
|
|
|
$orderCode = trim($this->post('orderCode', ''));//订单编号
|
|
|
$reason = $this->get('reason', ''); //取消订单原因
|
|
|
$reasonid = $this->get('reasonId', ''); //取消原因id
|
|
|
$data = OrderData::cancelUserOrder($uid, $orderCode, $reason, $reasonid);
|
|
|
if (!isset($data['code'])) {
|
|
|
break;
|
|
|
}
|
...
|
...
|
|