Authored by 毕凯

增加新 YOHO 币页面

$vip: sprite-map("me/vip/*.png", $spacing: 10px);
$fav: sprite-map("me/fav/*.png", $spacing: 5px);
@import "home", "vip-grade", "order", "order-detail", "coupons", "personal-details", "yoho-coin", "fav", "suggest", "address", "online-service", "my-guang", "ihelp";
@import "home", "vip-grade", "order", "order-detail", "coupons", "personal-details", "yoho-coin", "yoho-coin-new", "fav", "suggest", "address", "online-service", "my-guang", "ihelp";
... ...
.yoho-coin-new-page {
padding-top: pxToRem(30px);
text-align: center;
.coin-num {
color: #d0021b;
font-size: pxToRem(66px);
font-weight: bold;
line-height: pxToRem(106px);
letter-spacing: pxToRem(8px);
}
.info {
color: #b0b0b0;
font-size: pxToRem(24px);
line-height: 1;
.dollar {
display: inline-block;
margin-right: pxToRem(6px);
vertical-align: middle;
width: pxToRem(24px);
height: pxToRem(24px);
background: image-url("me/yoho-coin/dollar.png") center center;
background-size: 100%;
}
}
.more {
display: inline-block;
margin: pxToRem(30px) 0;
color: #444;
font-size: pxToRem(24px);
line-height: pxToRem(36px);
width: pxToRem(152px);
height: pxToRem(36px);
text-align: center;
border: 1px solid #444;
border-radius: pxToRem(36px);
}
.coin-tip {
margin-bottom: pxToRem(30px);
padding: pxToRem(20px) pxToRem(30px);
font-size: pxToRem(24px);
line-height: pxToRem(32px);
color: #dc6870;
border-top: 1px solid #e0e0e0;
border-bottom: 1px solid #e0e0e0;
.icon {
display: inline-block;
width: pxToRem(32px);
height: pxToRem(32px);
font-weight: bold;
border: 2px solid #dc6870;
border-radius: 50%;
}
}
.banner {
margin-bottom: pxToRem(30px);
}
}
... ...
{{> layout/header}}
<div class="yoho-coin-new-page yoho-page">
<div class="coin">
<p class="coin-num">
7876
</p>
<p class="info">
<span class="dollar"></span>
YOHO
</p>
<a href="" class="more">查看明细</a>
<div class="coin-tip">
<span class="icon">!</span>
您有300个YOHO币即将于20171231日过期,请尽快使用
</div>
</div>
<div class="banner">
<a href="">
{{!-- 演示图片 --}}
<img src="http://temp.im/640x200" alt="">
</a>
</div>
{{> home/maybe_like}}
</div>
{{> layout/footer}}
... ...
... ... @@ -9,9 +9,9 @@ use Index\UserModel as UserModel;
/**
* 个人中心相关的控制器
*
*
* @name HomeController
* @package
* @package
* @copyright yoho.inc
* @version 1.0 (2015-10-28 16:28:32)
*/
... ... @@ -31,7 +31,7 @@ class HomeController extends AbstractAction
/*if (!$uid) {
$uid = $this->_uid = $this->get('uid', 8826435); //$this->getUid(true);
}*/
$action = $this->getRequest()->getActionName();
if (!$uid && $action !== 'index') {
$this->go(Helpers::url('/signin.html', array('refer' => $this->server('HTTP_REFERER', '/')) ) );
... ... @@ -61,7 +61,7 @@ class HomeController extends AbstractAction
$data += UserModel::getUserProfileData($uid);
$data += UserModel::getInfoNumData($uid);
}
$this->_view->display('index', $data);
}
... ... @@ -229,6 +229,21 @@ class HomeController extends AbstractAction
}
/**
* YOHO币
*/
public function currencyNewAction()
{
$this->setTitle('YOHO币');
$this->setNavHeader('YOHO币', true, false);
$uid = $this->getUid();
$currency = UserModel::getYohoCoinData($uid);
$currency['pageFooter'] = true;
$this->_view->display('currency-new', $currency);
}
/**
* 优惠券
*/
public function couponsAction()
... ... @@ -247,7 +262,7 @@ class HomeController extends AbstractAction
/**
* 我的消息
*
*
* 暂时使用老的,因后面APP、PC、WAP会进行一次改版
*/
public function messageAction()
... ... @@ -377,7 +392,7 @@ class HomeController extends AbstractAction
}
}
/**
/**
* 在线客服
*/
public function onlineServiceAction()
... ... @@ -536,7 +551,7 @@ class HomeController extends AbstractAction
$uid = $this->getUid();
$data = GradeModel::getGrade($gender, $channel, $uid);
$data['pageFooter'] = true;
$this->_view->display('vip-grade', $data);
}
... ... @@ -729,7 +744,7 @@ class HomeController extends AbstractAction
* 帮助列表页
*/
private function IHelpAction()
{
{
$this->setTitle('帮助中心');
$this->setNavHeader('帮助中心');
$data = array(
... ... @@ -749,4 +764,4 @@ class HomeController extends AbstractAction
);
$this->_view->display('i-help', $data);
}
}
}
... ...