public function myconcerned($uid = 0, $page = 1, $lastId = 0) { if ($page == 1) { $result = $this->weiboApi->listMyFollowingWeibo($page, null, '', 1, $lastId); $this->assign('lastId', $result['lastId']); $this->assign('list', $result['list']); } //载入我关注的微博 $total_count = $this->weiboApi->listMyFollowingWeiboCount($page, 0, '', 1, $lastId); $this->assign('total_count', $total_count['total_count']); $this->assign('page', $page); //显示页面 $this->assign('tab', 'concerned'); $this->assign('loadMoreUrl', U('loadConcernedWeibo')); $this->assignSelf(); $this->setTitle('我关注的——微博'); $this->assign('filter_tab', '我关注的'); $this->assign('tox_money_name', getToxMoneyName()); $this->assign('tox_money', getMyToxMoney()); $this->display('index'); }
function getToxMoneyTip($before, $after) { $tox_money_change = $after - $before; $tip = ''; if ($tox_money_change) { $tip = getToxMoneyName() . ($tox_money_change > 0 ? '加 ' . $tox_money_change : '减 ' . $tox_money_change) . ' 。'; } return $tip; }