Commit 75ac958f by 冷斌

个人中心 - vip

parent 12113ae5
...@@ -138,6 +138,13 @@ class UserAction extends CommonAction ...@@ -138,6 +138,13 @@ class UserAction extends CommonAction
$videocount = intval($order_album + $order_classes + $order_line + $video_data['count'] + $live_data['count']); $videocount = intval($order_album + $order_classes + $order_line + $video_data['count'] + $live_data['count']);
// 关注的讲师和学员数 // 关注的讲师和学员数
$followcount = M('user_follow')->where(['uid'=>$uid])->count(); $followcount = M('user_follow')->where(['uid'=>$uid])->count();
// vip
$vip = '';
$userVip = M('zy_learncoin')->where(['uid'=>$uid])->getField('vip_type');
if (!empty($userVip['vip_type'])) {
$vipInfo = M('user_vip')->where(['id'=>$userVip['vip_type']])->getField('title');
$vip = $vipInfo['title'];
}
$this->assign("coupon_count", $coupon['count']); $this->assign("coupon_count", $coupon['count']);
$this->assign("invite_url", $invite_url); $this->assign("invite_url", $invite_url);
...@@ -146,6 +153,8 @@ class UserAction extends CommonAction ...@@ -146,6 +153,8 @@ class UserAction extends CommonAction
$this->assign('videocount', $videocount); $this->assign('videocount', $videocount);
$this->assign('followcount', $followcount); $this->assign('followcount', $followcount);
$this->assign('uid', $uid); $this->assign('uid', $uid);
$this->assign('vip', $vip);
// 测试用 // 测试用
if($_GET['aaa']){ if($_GET['aaa']){
$this->display('index1'); $this->display('index1');
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment