Authored by hf

code review by hf: format currency and detail code

... ... @@ -835,17 +835,24 @@ class HomeController extends AbstractAction
// 审判跳转登录页
$this->auditJumpLogin();
/* 判断订单号是否传 */
$orderCode = $this->get('order_code');
if (empty($orderCode)) {
$this->error();
}
/* 订单信息不存在 */
$orderDetail = OrderModel::orderDetail($orderCode, $this->_uid, $this->_usession);
if (empty($orderDetail)) {
$this->error();
}
$this->setTitle('订单详情');
$this->setNavHeader('订单详情');
$this->_view->display('order-detail', array(
'orderDetailPage' => true,
'orderDetail' => OrderModel::orderDetail($orderCode, $this->_uid, $this->_usession),
'orderDetail' => $orderDetail,
));
}
... ... @@ -854,13 +861,12 @@ class HomeController extends AbstractAction
*/
public function helpAction()
{
$service = Home\HelpModel::serviceInfo();
$this->setTitle('帮助中心');
$this->setNavHeader('帮助中心');
$data = array(
'iHelp' => $service,
);
$this->_view->display('help', $data);
$this->_view->display('help', array(
'iHelp' => Home\HelpModel::serviceInfo(),
));
}
/**
... ...