Showing
5 changed files
with
106 additions
and
2 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}} |
@@ -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() |
-
Please register or login to post a comment