Showing
10 changed files
with
147 additions
and
8 deletions
static/img/me/employ/employ.jpg
0 → 100644
11.4 KB
@@ -34,5 +34,3 @@ navHammer.on('tap', function(e) { | @@ -34,5 +34,3 @@ navHammer.on('tap', function(e) { | ||
34 | $curContainer.addClass('hide'); | 34 | $curContainer.addClass('hide'); |
35 | $curContainer = $orderContainer.children(':eq(' + index + ')').removeClass('hide'); | 35 | $curContainer = $orderContainer.children(':eq(' + index + ')').removeClass('hide'); |
36 | }); | 36 | }); |
37 | - | ||
38 | - |
@@ -42,6 +42,17 @@ | @@ -42,6 +42,17 @@ | ||
42 | display: inline-block; | 42 | display: inline-block; |
43 | margin-top: 25rem / $pxConvertRem; | 43 | margin-top: 25rem / $pxConvertRem; |
44 | } | 44 | } |
45 | + .vip-3 { | ||
46 | + @include rem-sprite($vip, vip-3); | ||
47 | + } | ||
48 | + | ||
49 | + .vip-2 { | ||
50 | + @include rem-sprite($vip, vip-2); | ||
51 | + } | ||
52 | + | ||
53 | + .vip-1 { | ||
54 | + @include rem-sprite($vip, vip-1); | ||
55 | + } | ||
45 | &:last-of-type{ | 56 | &:last-of-type{ |
46 | color: #b0b0b0; | 57 | color: #b0b0b0; |
47 | text-align: right; | 58 | text-align: right; |
static/sass/me/coupons.scss
0 → 100644
1 | +.employ{ | ||
2 | + width: 100%; | ||
3 | + height: 90rem / $pxConvertRem; | ||
4 | + overflow: hidden; | ||
5 | + border-bottom:1px solid #e0e0e0; | ||
6 | + span{ | ||
7 | + width: 49%; | ||
8 | + height: 48rem / $pxConvertRem; | ||
9 | + line-height: 48rem / $pxConvertRem; | ||
10 | + overflow: hidden; | ||
11 | + border-right: 2px solid #e0e0e0; | ||
12 | + margin: 21rem / $pxConvertRem 0; | ||
13 | + float: left; | ||
14 | + text-align: center; | ||
15 | + font-size: 48em / $pxConvertRem; | ||
16 | + color: #b0b0b0; | ||
17 | + &:last-of-type{ | ||
18 | + border:none; | ||
19 | + } | ||
20 | + &.active{ | ||
21 | + color: #444444; | ||
22 | + } | ||
23 | + } | ||
24 | +} | ||
25 | +.employ-list{ | ||
26 | + width:100%; | ||
27 | + height: auto; | ||
28 | + overflow:hidden; | ||
29 | + .employ-main{ | ||
30 | + width: 90.625%; | ||
31 | + height: 180rem / $pxConvertRem; | ||
32 | + overflow: hidden; | ||
33 | + margin: 20rem / $pxConvertRem auto; | ||
34 | + background: url('../img/me/employ/employ.jpg') top center no-repeat; | ||
35 | + background-size: 100% 100%; | ||
36 | + color: #fff; | ||
37 | + span{ | ||
38 | + width: 34.482759%; | ||
39 | + height: 100%; | ||
40 | + float: left; | ||
41 | + text-align: center; | ||
42 | + line-height: 180rem / $pxConvertRem; | ||
43 | + font-size: 180em / $pxConvertRem; | ||
44 | + } | ||
45 | + p{ | ||
46 | + width: 55.517241%; | ||
47 | + height: auto; | ||
48 | + padding: 0 5% 10em / $pxConvertRem;; | ||
49 | + float: left; | ||
50 | + font-size: 44em / $pxConvertRem; | ||
51 | + &:first-of-type{ | ||
52 | + padding-top:30em / $pxConvertRem; | ||
53 | + font-size: 60em / $pxConvertRem; | ||
54 | + } | ||
55 | + } | ||
56 | + } | ||
57 | + | ||
58 | +} | ||
59 | +.none{ | ||
60 | + display: none; | ||
61 | +} |
1 | +{{> layout/header}} | ||
2 | +<div class="employ"> | ||
3 | + <span class="active">未使用</span> | ||
4 | + <span>已使用</span> | ||
5 | +</div> | ||
6 | +<div class="employ-list"> | ||
7 | + <div class="employ-main"> | ||
8 | + <span>50</span> | ||
9 | + <p>【summer sale】下装满¥399减¥50券</p> | ||
10 | + <p>有效期:2014.07.28 - 2014.09.15</p> | ||
11 | + </div> | ||
12 | +</div> | ||
13 | +<div class="employ-list not none"> | ||
14 | + <div class="employ-main"> | ||
15 | + <span>60</span> | ||
16 | + <p>【summer sale】下装满¥399减¥60券</p> | ||
17 | + <p>有效期:2014.07.28 - 2014.09.15</p> | ||
18 | + </div> | ||
19 | +</div> | ||
20 | +{{> layout/not-footer}} |
@@ -3,9 +3,15 @@ | @@ -3,9 +3,15 @@ | ||
3 | <ul> | 3 | <ul> |
4 | <li><span>头像</span><span><i class="head-portrait"><img src="{{ head_ico }}"></i></span></li> | 4 | <li><span>头像</span><span><i class="head-portrait"><img src="{{ head_ico }}"></i></span></li> |
5 | <li><span>昵称</span><span>{{ username }}</span></li> | 5 | <li><span>昵称</span><span>{{ username }}</span></li> |
6 | - <li><span>性别</span><span>{{ sex }}</span></li> | 6 | + <li><span>性别</span><span></span></li> |
7 | <li><span>生日</span><span>{{ birthday }}</span></li> | 7 | <li><span>生日</span><span>{{ birthday }}</span></li> |
8 | - <li><span>会员等级</span><span><i class="grade vip-icon"></i></span></li> | 8 | + <li><span>会员等级</span> |
9 | + <span> | ||
10 | + {{# vip_info}} | ||
11 | + <i class="grade vip-icon vip-{{ next_level }}"></i> | ||
12 | + {{/ vip_info}} | ||
13 | + </span> | ||
14 | + </li> | ||
9 | </ul> | 15 | </ul> |
10 | </div> | 16 | </div> |
11 | {{> layout/footer}} | 17 | {{> layout/footer}} |
1 | + | ||
2 | +{{#if hasWxShare}} | ||
3 | + <script type="text/javascript" charset="utf-8" src="http://res.wx.qq.com/open/js/jweixin-1.0.0.js"></script> | ||
4 | +{{/if}} | ||
5 | +{{#if rlsEnv}} | ||
6 | +<script src="http://cdn.yoho.cn/myohobuy/{{version}}/lib.js"></script> | ||
7 | +<script src="http://cdn.yoho.cn/myohobuy/{{version}}/index.js"></script> | ||
8 | +{{/if}} | ||
9 | +{{#if preEnv}} | ||
10 | +<script src="http://cdn.yoho.cn/myohobuy/{{version}}/lib.js"></script> | ||
11 | +<script src="http://cdn.yoho.cn/myohobuy/{{version}}/index.js"></script> | ||
12 | +{{/if}} | ||
13 | +{{#if testEnv}} | ||
14 | +<script src="http://static.buy.test.yoho.cn/dist/myohobuy/{{version}}/lib.js"></script> | ||
15 | +<script src="http://static.buy.test.yoho.cn/dist/myohobuy/{{version}}/index-debug.js"></script> | ||
16 | +{{/if}} | ||
17 | +{{#if devEnv}} | ||
18 | +<script src="http://localhost:8000/static/js/sea.js?nowrap"></script> | ||
19 | +<script>seajs.config({base: 'http://localhost:8000/'});</script> | ||
20 | +{{/if}} | ||
21 | + | ||
22 | +<script type="text/javascript"> | ||
23 | + (function(w,d,s,j,f){ | ||
24 | + w['YohoAcquisitionObject']=f; | ||
25 | + w[f]=function(){w[f].p=arguments;}; | ||
26 | + var a=d.createElement(s); | ||
27 | + var m=d.getElementsByTagName(s)[0]; | ||
28 | + a.async=1; | ||
29 | + a.src=j; | ||
30 | + m.parentNode.insertBefore(a,m); | ||
31 | + })(window,document,'script','http://cdn.yoho.cn/yas-jssdk/1.0.8/yas.js','_yas'); | ||
32 | +</script> | ||
33 | + | ||
34 | +{{> layout/use}} | ||
35 | + | ||
36 | +{{> layout/analysis}} | ||
37 | +</body> | ||
38 | +</html> |
@@ -115,6 +115,7 @@ class HomeController extends AbstractAction | @@ -115,6 +115,7 @@ class HomeController extends AbstractAction | ||
115 | // $uid = $this->getUid(); | 115 | // $uid = $this->getUid(); |
116 | $uid = 967016; | 116 | $uid = 967016; |
117 | $data = \Index\UserModel::getUserProfileData($uid); | 117 | $data = \Index\UserModel::getUserProfileData($uid); |
118 | + $data['pageFooter'] = true; | ||
118 | $this->_view->display('personal-details', $data); | 119 | $this->_view->display('personal-details', $data); |
119 | 120 | ||
120 | 121 | ||
@@ -125,8 +126,9 @@ class HomeController extends AbstractAction | @@ -125,8 +126,9 @@ class HomeController extends AbstractAction | ||
125 | */ | 126 | */ |
126 | public function currencyAction() | 127 | public function currencyAction() |
127 | { | 128 | { |
128 | - $uid = $this->getUid(); | 129 | + // $uid = $this->getUid(); |
129 | 130 | ||
131 | + $uid = 967016; | ||
130 | $favBrands = \Index\UserModel::getYohoCoinData($uid); | 132 | $favBrands = \Index\UserModel::getYohoCoinData($uid); |
131 | 133 | ||
132 | print_r($favBrands); | 134 | print_r($favBrands); |
@@ -139,12 +141,15 @@ class HomeController extends AbstractAction | @@ -139,12 +141,15 @@ class HomeController extends AbstractAction | ||
139 | */ | 141 | */ |
140 | public function couponsAction() | 142 | public function couponsAction() |
141 | { | 143 | { |
142 | - $uid = $this->getUid(); | 144 | + // $uid = $this->getUid(); |
145 | + | ||
146 | + $uid = 967016; | ||
143 | $status = $this->get('status', 0); | 147 | $status = $this->get('status', 0); |
144 | 148 | ||
145 | $coupons = \Index\UserModel::getCouponData($uid, $status); | 149 | $coupons = \Index\UserModel::getCouponData($uid, $status); |
146 | 150 | ||
147 | - print_r($coupons); | 151 | + $this->_view->display('coupons', $coupons); |
152 | + | ||
148 | } | 153 | } |
149 | 154 | ||
150 | /** | 155 | /** |
-
Please register or login to post a comment