Authored by yangyang

会员等级中姓名数据,等待用户详情接口

@@ -421,7 +421,7 @@ class HomeController extends AbstractAction @@ -421,7 +421,7 @@ class HomeController extends AbstractAction
421 //显示网站导航头部信息 421 //显示网站导航头部信息
422 $this->setNavHeader('会员等级'); 422 $this->setNavHeader('会员等级');
423 $uid = $this->getUid(); 423 $uid = $this->getUid();
424 - $uid = '8826435'; //临时测试用 424 + $uid = '10064'; //临时测试用
425 $data = GradeModel::getGrade($uid); 425 $data = GradeModel::getGrade($uid);
426 $data['pageFooter'] = true; 426 $data['pageFooter'] = true;
427 $this->_view->display('vip-grade', $data); 427 $this->_view->display('vip-grade', $data);
@@ -4,6 +4,7 @@ namespace Home; @@ -4,6 +4,7 @@ namespace Home;
4 4
5 use Configs\CacheConfig; 5 use Configs\CacheConfig;
6 use LibModels\Wap\Home\GradeData; 6 use LibModels\Wap\Home\GradeData;
  7 +use LibModels\Wap\Home\UserData;
7 use Plugin\Cache; 8 use Plugin\Cache;
8 use Plugin\Helpers; 9 use Plugin\Helpers;
9 10
@@ -57,7 +58,7 @@ class GradeModel @@ -57,7 +58,7 @@ class GradeModel
57 //消费总计 58 //消费总计
58 $result['vipGrade']['sumCost'] = $data['costInfo']['total']; 59 $result['vipGrade']['sumCost'] = $data['costInfo']['total'];
59 //username 调用获取用户基本信息数据,获得username; 60 //username 调用获取用户基本信息数据,获得username;
60 - //$userProfile = GradeData::getUserProfileData($gender,$uid,$channel); 61 + //var_dump(UserData::userData($uid));
61 $result['vipGrade']['name'] = '杨阳'; 62 $result['vipGrade']['name'] = '杨阳';
62 //跳转url(会员特权详情) 63 //跳转url(会员特权详情)
63 $result['vipGrade']['allUrl'] = Helpers::url('/Home/preferential', null); 64 $result['vipGrade']['allUrl'] = Helpers::url('/Home/preferential', null);