...
|
...
|
@@ -2,6 +2,7 @@ |
|
|
|
|
|
use Action\AbstractAction;
|
|
|
use home\GradeModel;
|
|
|
use home\OrderModel;
|
|
|
use Plugin\Helpers;
|
|
|
|
|
|
/**
|
...
|
...
|
@@ -259,7 +260,7 @@ class HomeController extends AbstractAction |
|
|
|
|
|
/**
|
|
|
* 会员等级展示页
|
|
|
*/
|
|
|
*/
|
|
|
public function gradeAction(){
|
|
|
//设置网站seo信息
|
|
|
$this->setTitle('会员等级');
|
...
|
...
|
@@ -276,7 +277,7 @@ class HomeController extends AbstractAction |
|
|
}
|
|
|
/*
|
|
|
*会员特权查看页
|
|
|
*/
|
|
|
*/
|
|
|
public function preferentialAction(){
|
|
|
//设置网站seo信息
|
|
|
$this->setTitle('会员等级');
|
...
|
...
|
@@ -289,5 +290,32 @@ class HomeController extends AbstractAction |
|
|
$data['pageFooter'] = true;
|
|
|
$this -> _view -> display('privilege',$data);
|
|
|
}
|
|
|
|
|
|
|
|
|
/*
|
|
|
*我的订单页面
|
|
|
*/
|
|
|
public function orderAction(){
|
|
|
|
|
|
do{
|
|
|
//判断是不是ajax请求
|
|
|
// if(!$this -> isAjax()){
|
|
|
// break;
|
|
|
// }
|
|
|
//判断参数是否有效
|
|
|
$type = $this -> get('type',1);
|
|
|
$page = $this -> get('page',1);
|
|
|
$limit = $this -> get('limit',10);
|
|
|
$gender = Helpers::getGenderByCookie();
|
|
|
$yh_channel = $this -> get('yh_channel',1);
|
|
|
$uid = $this -> getUid();
|
|
|
if(!empty($type) && !is_numeric($type)){
|
|
|
break;
|
|
|
}
|
|
|
//$data = OrderModel::getOrder();
|
|
|
$data = OrderModel::getOrder($type,$page,$limit,$gender,$yh_channel,$uid);
|
|
|
//print_r($data);
|
|
|
}
|
|
|
while(false);
|
|
|
//$this -> _view -> display('order',$data);
|
|
|
}
|
|
|
} |
...
|
...
|
|