Showing
5 changed files
with
115 additions
and
11 deletions
static/img/me/yoho-coin/dollar.png
0 → 100644

1.33 KB
1 | $vip: sprite-map("me/vip/*.png", $spacing: 10px); | 1 | $vip: sprite-map("me/vip/*.png", $spacing: 10px); |
2 | $fav: sprite-map("me/fav/*.png", $spacing: 5px); | 2 | $fav: sprite-map("me/fav/*.png", $spacing: 5px); |
3 | 3 | ||
4 | -@import "home", "vip-grade", "order", "order-detail", "coupons", "personal-details", "yoho-coin", "fav", "suggest", "address", "online-service", "my-guang", "ihelp"; | ||
5 | - | 4 | +@import "home", "vip-grade", "order", "order-detail", "coupons", "personal-details", "yoho-coin", "yoho-coin-new", "fav", "suggest", "address", "online-service", "my-guang", "ihelp"; |
static/sass/me/_yoho-coin-new.scss
0 → 100644
1 | +.yoho-coin-new-page { | ||
2 | + padding-top: pxToRem(30px); | ||
3 | + text-align: center; | ||
4 | + | ||
5 | + .coin-num { | ||
6 | + color: #d0021b; | ||
7 | + font-size: pxToRem(66px); | ||
8 | + font-weight: bold; | ||
9 | + line-height: pxToRem(106px); | ||
10 | + letter-spacing: pxToRem(8px); | ||
11 | + } | ||
12 | + | ||
13 | + .info { | ||
14 | + color: #b0b0b0; | ||
15 | + font-size: pxToRem(24px); | ||
16 | + line-height: 1; | ||
17 | + | ||
18 | + .dollar { | ||
19 | + display: inline-block; | ||
20 | + margin-right: pxToRem(6px); | ||
21 | + vertical-align: middle; | ||
22 | + width: pxToRem(24px); | ||
23 | + height: pxToRem(24px); | ||
24 | + background: image-url("me/yoho-coin/dollar.png") center center; | ||
25 | + background-size: 100%; | ||
26 | + } | ||
27 | + } | ||
28 | + | ||
29 | + .more { | ||
30 | + display: inline-block; | ||
31 | + margin: pxToRem(30px) 0; | ||
32 | + color: #444; | ||
33 | + font-size: pxToRem(24px); | ||
34 | + line-height: pxToRem(36px); | ||
35 | + width: pxToRem(152px); | ||
36 | + height: pxToRem(36px); | ||
37 | + text-align: center; | ||
38 | + border: 1px solid #444; | ||
39 | + border-radius: pxToRem(36px); | ||
40 | + } | ||
41 | + | ||
42 | + .coin-tip { | ||
43 | + margin-bottom: pxToRem(30px); | ||
44 | + padding: pxToRem(20px) pxToRem(30px); | ||
45 | + font-size: pxToRem(24px); | ||
46 | + line-height: pxToRem(32px); | ||
47 | + color: #dc6870; | ||
48 | + border-top: 1px solid #e0e0e0; | ||
49 | + border-bottom: 1px solid #e0e0e0; | ||
50 | + | ||
51 | + .icon { | ||
52 | + display: inline-block; | ||
53 | + width: pxToRem(32px); | ||
54 | + height: pxToRem(32px); | ||
55 | + font-weight: bold; | ||
56 | + border: 2px solid #dc6870; | ||
57 | + border-radius: 50%; | ||
58 | + } | ||
59 | + } | ||
60 | + | ||
61 | + .banner { | ||
62 | + margin-bottom: pxToRem(30px); | ||
63 | + } | ||
64 | +} |
1 | +{{> layout/header}} | ||
2 | +<div class="yoho-coin-new-page yoho-page"> | ||
3 | + <div class="coin"> | ||
4 | + <p class="coin-num"> | ||
5 | + 7876 | ||
6 | + </p> | ||
7 | + <p class="info"> | ||
8 | + <span class="dollar"></span> | ||
9 | + 个 YOHO 币 | ||
10 | + </p> | ||
11 | + <a href="" class="more">查看明细</a> | ||
12 | + <div class="coin-tip"> | ||
13 | + <span class="icon">!</span> | ||
14 | + 您有300个YOHO币即将于2017年12月31日过期,请尽快使用 | ||
15 | + </div> | ||
16 | + </div> | ||
17 | + <div class="banner"> | ||
18 | + <a href=""> | ||
19 | + {{!-- 演示图片 --}} | ||
20 | + <img src="http://temp.im/640x200" alt=""> | ||
21 | + </a> | ||
22 | + </div> | ||
23 | + | ||
24 | + {{> home/maybe_like}} | ||
25 | +</div> | ||
26 | +{{> layout/footer}} |
@@ -9,9 +9,9 @@ use Index\UserModel as UserModel; | @@ -9,9 +9,9 @@ use Index\UserModel as UserModel; | ||
9 | 9 | ||
10 | /** | 10 | /** |
11 | * 个人中心相关的控制器 | 11 | * 个人中心相关的控制器 |
12 | - * | 12 | + * |
13 | * @name HomeController | 13 | * @name HomeController |
14 | - * @package | 14 | + * @package |
15 | * @copyright yoho.inc | 15 | * @copyright yoho.inc |
16 | * @version 1.0 (2015-10-28 16:28:32) | 16 | * @version 1.0 (2015-10-28 16:28:32) |
17 | */ | 17 | */ |
@@ -31,7 +31,7 @@ class HomeController extends AbstractAction | @@ -31,7 +31,7 @@ class HomeController extends AbstractAction | ||
31 | /*if (!$uid) { | 31 | /*if (!$uid) { |
32 | $uid = $this->_uid = $this->get('uid', 8826435); //$this->getUid(true); | 32 | $uid = $this->_uid = $this->get('uid', 8826435); //$this->getUid(true); |
33 | }*/ | 33 | }*/ |
34 | - | 34 | + |
35 | $action = $this->getRequest()->getActionName(); | 35 | $action = $this->getRequest()->getActionName(); |
36 | if (!$uid && $action !== 'index') { | 36 | if (!$uid && $action !== 'index') { |
37 | $this->go(Helpers::url('/signin.html', array('refer' => $this->server('HTTP_REFERER', '/')) ) ); | 37 | $this->go(Helpers::url('/signin.html', array('refer' => $this->server('HTTP_REFERER', '/')) ) ); |
@@ -61,7 +61,7 @@ class HomeController extends AbstractAction | @@ -61,7 +61,7 @@ class HomeController extends AbstractAction | ||
61 | $data += UserModel::getUserProfileData($uid); | 61 | $data += UserModel::getUserProfileData($uid); |
62 | $data += UserModel::getInfoNumData($uid); | 62 | $data += UserModel::getInfoNumData($uid); |
63 | } | 63 | } |
64 | - | 64 | + |
65 | $this->_view->display('index', $data); | 65 | $this->_view->display('index', $data); |
66 | } | 66 | } |
67 | 67 | ||
@@ -229,6 +229,21 @@ class HomeController extends AbstractAction | @@ -229,6 +229,21 @@ class HomeController extends AbstractAction | ||
229 | } | 229 | } |
230 | 230 | ||
231 | /** | 231 | /** |
232 | + * YOHO币 | ||
233 | + */ | ||
234 | + public function currencyNewAction() | ||
235 | + { | ||
236 | + $this->setTitle('YOHO币'); | ||
237 | + $this->setNavHeader('YOHO币', true, false); | ||
238 | + | ||
239 | + $uid = $this->getUid(); | ||
240 | + $currency = UserModel::getYohoCoinData($uid); | ||
241 | + | ||
242 | + $currency['pageFooter'] = true; | ||
243 | + $this->_view->display('currency-new', $currency); | ||
244 | + } | ||
245 | + | ||
246 | + /** | ||
232 | * 优惠券 | 247 | * 优惠券 |
233 | */ | 248 | */ |
234 | public function couponsAction() | 249 | public function couponsAction() |
@@ -247,7 +262,7 @@ class HomeController extends AbstractAction | @@ -247,7 +262,7 @@ class HomeController extends AbstractAction | ||
247 | 262 | ||
248 | /** | 263 | /** |
249 | * 我的消息 | 264 | * 我的消息 |
250 | - * | 265 | + * |
251 | * 暂时使用老的,因后面APP、PC、WAP会进行一次改版 | 266 | * 暂时使用老的,因后面APP、PC、WAP会进行一次改版 |
252 | */ | 267 | */ |
253 | public function messageAction() | 268 | public function messageAction() |
@@ -377,7 +392,7 @@ class HomeController extends AbstractAction | @@ -377,7 +392,7 @@ class HomeController extends AbstractAction | ||
377 | } | 392 | } |
378 | } | 393 | } |
379 | 394 | ||
380 | - /** | 395 | + /** |
381 | * 在线客服 | 396 | * 在线客服 |
382 | */ | 397 | */ |
383 | public function onlineServiceAction() | 398 | public function onlineServiceAction() |
@@ -536,7 +551,7 @@ class HomeController extends AbstractAction | @@ -536,7 +551,7 @@ class HomeController extends AbstractAction | ||
536 | $uid = $this->getUid(); | 551 | $uid = $this->getUid(); |
537 | $data = GradeModel::getGrade($gender, $channel, $uid); | 552 | $data = GradeModel::getGrade($gender, $channel, $uid); |
538 | $data['pageFooter'] = true; | 553 | $data['pageFooter'] = true; |
539 | - | 554 | + |
540 | $this->_view->display('vip-grade', $data); | 555 | $this->_view->display('vip-grade', $data); |
541 | } | 556 | } |
542 | 557 | ||
@@ -729,7 +744,7 @@ class HomeController extends AbstractAction | @@ -729,7 +744,7 @@ class HomeController extends AbstractAction | ||
729 | * 帮助列表页 | 744 | * 帮助列表页 |
730 | */ | 745 | */ |
731 | private function IHelpAction() | 746 | private function IHelpAction() |
732 | - { | 747 | + { |
733 | $this->setTitle('帮助中心'); | 748 | $this->setTitle('帮助中心'); |
734 | $this->setNavHeader('帮助中心'); | 749 | $this->setNavHeader('帮助中心'); |
735 | $data = array( | 750 | $data = array( |
@@ -749,4 +764,4 @@ class HomeController extends AbstractAction | @@ -749,4 +764,4 @@ class HomeController extends AbstractAction | ||
749 | ); | 764 | ); |
750 | $this->_view->display('i-help', $data); | 765 | $this->_view->display('i-help', $data); |
751 | } | 766 | } |
752 | -} | 767 | +} |
-
Please register or login to post a comment