Authored by yangyang

会员等级页面,username获取ok

... ... @@ -421,7 +421,7 @@ class HomeController extends AbstractAction
//显示网站导航头部信息
$this->setNavHeader('会员等级');
$uid = $this->getUid();
$uid = '10064'; //临时测试用
$uid = '3566171'; //临时测试用
$data = GradeModel::getGrade($uid);
$data['pageFooter'] = true;
$this->_view->display('vip-grade', $data);
... ...
... ... @@ -58,8 +58,8 @@ class GradeModel
//消费总计
$result['vipGrade']['sumCost'] = $data['costInfo']['total'];
//username 调用获取用户基本信息数据,获得username;
//var_dump(UserData::userData($uid));
$result['vipGrade']['name'] = '杨阳';
$userData = UserData::userData($uid);
$result['vipGrade']['name'] = $userData['username'];
//跳转url(会员特权详情)
$result['vipGrade']['allUrl'] = Helpers::url('/Home/preferential', null);
//当前vip等级享受的特权
... ...