...
|
...
|
@@ -25,10 +25,10 @@ class HomeController extends AbstractAction |
|
|
$this->setTitle('个人中心');
|
|
|
$this->setNavHeader('个人中心', true, SITE_MAIN);
|
|
|
|
|
|
// $uid = $this->getUid();
|
|
|
$uid = 967016;
|
|
|
$data = \Index\UserModel::getUserProfileData($uid);
|
|
|
$data += \Index\UserModel::getInfoNumData($uid);
|
|
|
// $uid = $this->getUid();
|
|
|
$uid = 8826435;
|
|
|
$data = \Index\UserModel::getUserProfileData($uid);
|
|
|
$data += \Index\UserModel::getInfoNumData($uid);
|
|
|
|
|
|
// 优选新品数据
|
|
|
$channel = Helpers::getChannelByCookie();
|
...
|
...
|
@@ -41,50 +41,56 @@ class HomeController extends AbstractAction |
|
|
$this->_view->display('index', $data);
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
* 用户订单
|
|
|
*/
|
|
|
public function ordersAction() {
|
|
|
// $uid = $this->getUid();
|
|
|
// $type = $this->get('type', 1);
|
|
|
// $orders = \Index\UserModel::getUserOrderData(967016, $type);
|
|
|
|
|
|
$order = array(
|
|
|
'orders' => array(
|
|
|
array(
|
|
|
'orderNum' => '408539077',
|
|
|
'tradingStatus' => '交易成功',
|
|
|
'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'
|
|
|
)
|
|
|
),
|
|
|
'count' => 2,
|
|
|
'sumCost' => '699.00',
|
|
|
'unpaid' => true,
|
|
|
)
|
|
|
)
|
|
|
);
|
|
|
/**
|
|
|
* 用户订单
|
|
|
*/
|
|
|
public function ordersAction()
|
|
|
{
|
|
|
// 设置网站标题
|
|
|
$this->setTitle('我的订单');
|
|
|
$this->setNavHeader('我的订单', true, SITE_MAIN);
|
|
|
|
|
|
$uid = $this->getUid();
|
|
|
$uid = 8826435;
|
|
|
$type = $this->get('type', 1);
|
|
|
|
|
|
$order = \Index\UserModel::getUserOrderData($uid, $type);
|
|
|
|
|
|
$order = array(
|
|
|
'orders' => array(
|
|
|
array(
|
|
|
'orderNum' => '408539077',
|
|
|
'tradingStatus' => '交易成功',
|
|
|
'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'
|
|
|
)
|
|
|
),
|
|
|
'count' => 2,
|
|
|
'sumCost' => '699.00',
|
|
|
'unpaid' => true,
|
|
|
)
|
|
|
)
|
|
|
);
|
|
|
|
|
|
$this->_view->display('order', array('order' => $order, 'orderPage' => true));
|
|
|
// print_r($orders);
|
|
|
}
|
|
|
$this->_view->display('order', array('order' => $order, 'orderPage' => true));
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
* 用户收藏的商品
|
...
|
...
|
@@ -380,7 +386,6 @@ class HomeController extends AbstractAction |
|
|
/*
|
|
|
* 会员特权查看页
|
|
|
*/
|
|
|
|
|
|
public function preferentialAction() {
|
|
|
//设置网站seo信息
|
|
|
$this->setTitle('会员等级');
|
...
|
...
|
@@ -397,7 +402,6 @@ class HomeController extends AbstractAction |
|
|
/*
|
|
|
* 我的订单页面
|
|
|
*/
|
|
|
|
|
|
public function orderAction() {
|
|
|
//获取基本参数:type:1=>全部,2=>待付款,3=>待发货,4=>待收货,5=>待评论
|
|
|
$type = $this->get('type', 1);
|
...
|
...
|
@@ -426,7 +430,6 @@ class HomeController extends AbstractAction |
|
|
/*
|
|
|
* 我的订单-处理ajax请求页面(切换订单状态)
|
|
|
*/
|
|
|
|
|
|
public function orderAjaxAction() {
|
|
|
|
|
|
//判断是不是ajax请求
|
...
|
...
|
|