...
|
...
|
@@ -41,14 +41,14 @@ class HomeController extends AbstractAction |
|
|
{
|
|
|
// 设置网站标题
|
|
|
$this->setTitle('个人中心');
|
|
|
$this->setNavHeader('个人中心', SITE_MAIN . '/?go=1');
|
|
|
$this->setNavHeader('个人中心', SITE_MAIN . '/?go=1', '', true);
|
|
|
|
|
|
$data = array(
|
|
|
'myIndexPage' => true,
|
|
|
'showDownloadApp' => true,
|
|
|
'pageFooter' => true,
|
|
|
'cartUrl' => Helpers::url('/cart/index/index', null),
|
|
|
'signinUrl' => Helpers::url('/signin.html', array('refer' => Helpers::url('/home'))),
|
|
|
'signinUrl' => Helpers::url('/signin.html', array('refer' => Helpers::url('/home')) ),
|
|
|
);
|
|
|
$uid = $this->getUid(false);
|
|
|
if ($uid) {
|
...
|
...
|
@@ -781,14 +781,14 @@ class HomeController extends AbstractAction |
|
|
// 审判跳转登录页
|
|
|
$this->auditJumpLogin();
|
|
|
|
|
|
$this->setTitle('支付中心');
|
|
|
$this->setNavHeader('支付中心');
|
|
|
|
|
|
$orderCode = $this->get('order_code');
|
|
|
if (empty($orderCode)) {
|
|
|
$this->error();
|
|
|
}
|
|
|
|
|
|
$this->setTitle('支付中心');
|
|
|
$this->setNavHeader('支付中心');
|
|
|
|
|
|
$this->_view->display('pay', array(
|
|
|
'payCenterPage' => true,
|
|
|
'payAppInfo' => array(
|
...
|
...
|
@@ -814,40 +814,89 @@ class HomeController extends AbstractAction |
|
|
));
|
|
|
}
|
|
|
|
|
|
// /*
|
|
|
// * 我的订单-确认收货
|
|
|
// */
|
|
|
// private function confirmAction(){
|
|
|
// //
|
|
|
// $gender = Helpers::getGenderByCookie();
|
|
|
// $order_code = $this->get('id');
|
|
|
// $order_code = '';
|
|
|
// $yh_channel = $this->get('yh_channel', 1);
|
|
|
// $data = OrderData::confirmData($gender,$order_code,$yh_channel,$this->_uid);
|
|
|
// $this->echoJson($data);
|
|
|
// }
|
|
|
|
|
|
/**
|
|
|
* 订单详情页
|
|
|
*/
|
|
|
public function orderDetailAction()
|
|
|
{
|
|
|
// 审判跳转登录页
|
|
|
$this->auditJumpLogin();
|
|
|
|
|
|
$orderCode = $this->get('order_code', 1507880870);
|
|
|
if (empty($orderCode)) {
|
|
|
$this->error();
|
|
|
}
|
|
|
|
|
|
$this->setTitle('订单详情');
|
|
|
$this->setNavHeader('订单详情');
|
|
|
|
|
|
$this->_view->display('order-detail', array(
|
|
|
'orderDetailPage' => true,
|
|
|
'orderDetail' => OrderModel::orderDetail($orderCode, 967016/*$this->_uid*/, 'a3aadd4cce408f8ee062a9add02e8faa'/*$this->_session*/),
|
|
|
));
|
|
|
$data = array(
|
|
|
'name' => '毛毛莉Lydia',
|
|
|
'phoneNum' => '18600001133',
|
|
|
'address' => '南京市建邺区嘉陵江东街18号国家广告产业园5栋17楼',
|
|
|
'orderStatus' => '订单取消',
|
|
|
'orderNum' => '418358063',
|
|
|
'orderTime' => '2014-03-10 17:25:10',
|
|
|
'orderCancel' => true,
|
|
|
'goods' => array(
|
|
|
array(
|
|
|
'id' => 1,
|
|
|
'thumb' => 'http://img11.static.yhbimg.com/goodsimg/2015/11/04/05/01ce2aff32fc3c90584f516167cd526d91.jpg?imageMogr2/thumbnail/235x314/extent/235x314/background/d2hpdGU=/position/center/quality/90',
|
|
|
'name' => 'Adidas Originals ZX FLUXM22508',
|
|
|
'color' => '黄',
|
|
|
'size' => '43',
|
|
|
'price' => '699.00',
|
|
|
'count' => '2'
|
|
|
),
|
|
|
array(
|
|
|
'id' => 1,
|
|
|
'thumb' => 'http://img10.static.yhbimg.com/goodsimg/2015/11/04/05/0188f1aca49ac478a565ec029b5d2d4a6c.jpg?imageMogr2/thumbnail/235x314/extent/235x314/background/d2hpdGU=/position/center/quality/90',
|
|
|
'name' => 'B.Duck浴室玩伴mini浮水鸭',
|
|
|
'gift' => true,
|
|
|
'color' => '黄',
|
|
|
'size' => '43',
|
|
|
'price' => '0.00',
|
|
|
'count' => '1'
|
|
|
)
|
|
|
),
|
|
|
'sumPrice' => 799,
|
|
|
'salePrice' => 80,
|
|
|
'freight' => 5,
|
|
|
'coupon' => 0,
|
|
|
'yohoCoin' => 5,
|
|
|
'price' => 719
|
|
|
);
|
|
|
$this->_view->display('order-detail', array('orderDetail' => $data, 'orderDetailPage' => true));
|
|
|
}
|
|
|
|
|
|
// /**
|
|
|
// * 帮助列表页
|
|
|
// */
|
|
|
// public function helpAction()
|
|
|
// {
|
|
|
// $this->setTitle('帮助中心');
|
|
|
// $this->setNavHeader('帮助中心');
|
|
|
// $data = array(
|
|
|
// 'iHelp' => array(
|
|
|
// array('name' => '新用户注册', 'url' => 'http://m.dev.yohobuy.com/'),
|
|
|
// )
|
|
|
// );
|
|
|
// $this->_view->display('i-help', $data);
|
|
|
// }
|
|
|
/**
|
|
|
* 帮助列表页
|
|
|
*/
|
|
|
public function helpAction()
|
|
|
{
|
|
|
$service = Home\HelpModel::serviceInfo();
|
|
|
$this->setTitle('帮助中心');
|
|
|
$this->setNavHeader('帮助中心');
|
|
|
$data = array(
|
|
|
'iHelp' =>$service,
|
|
|
);
|
|
|
$this->_view->display('i-help', $data);
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
* 帮助列表页
|
|
|
*/
|
|
|
public function helpDetailAction()
|
|
|
{
|
|
|
$this->setTitle('帮助中心');
|
|
|
$this->setNavHeader('帮助中心');
|
|
|
$data = array(
|
|
|
'iHelp' => array(
|
|
|
array('name' => '新用户注册'),
|
|
|
)
|
|
|
);
|
|
|
$this->_view->display('helpDetail', $data);
|
|
|
}
|
|
|
} |
...
|
...
|
|