更改了CacheCofig.php:增加了会员等级缓存配置代码;
更改了GradeData.php:增加了获取会员等级数据,获取会员等级详情数据; 微调privilege.phtml和vip-grade.phtml; 修改了Home.php:增加了会员等级展示页和会员特权查看页数据; 修改了Grade.php:增加了getGrade,和getPreferential;
Showing
20 changed files
with
555 additions
and
38 deletions
@@ -155,7 +155,7 @@ class TemplateLayout implements View_Interface | @@ -155,7 +155,7 @@ class TemplateLayout implements View_Interface | ||
155 | $template = file_get_contents($viewName, false, null); | 155 | $template = file_get_contents($viewName, false, null); |
156 | $phpStr = LightnCandy::compile($template, array( | 156 | $phpStr = LightnCandy::compile($template, array( |
157 | // DEBUG: LightnCandy::FLAG_RENDER_DEBUG | LightnCandy::FLAG_ERROR_EXCEPTION | 157 | // DEBUG: LightnCandy::FLAG_RENDER_DEBUG | LightnCandy::FLAG_ERROR_EXCEPTION |
158 | - 'flags' => LightnCandy::FLAG_ERROR_EXCEPTION | LightnCandy::FLAG_MUSTACHE | LightnCandy::FLAG_HANDLEBARS, // 使用MUSTACHE和HANDLEBARS的模板格式 | 158 | + 'flags' => LightnCandy::FLAG_RENDER_DEBUG | LightnCandy::FLAG_ERROR_EXCEPTION | LightnCandy::FLAG_MUSTACHE | LightnCandy::FLAG_HANDLEBARS, // 使用MUSTACHE和HANDLEBARS的模板格式 |
159 | 'basedir' => array($config->template->partials), // 模板里使用 {{> partial_name}} 时查找的目录 | 159 | 'basedir' => array($config->template->partials), // 模板里使用 {{> partial_name}} 时查找的目录 |
160 | 'fileext' => array($tplExt), // 允许查找文件的后缀 | 160 | 'fileext' => array($tplExt), // 允许查找文件的后缀 |
161 | 'lcrun' => 'Plugin\LCRun3', // 指定编译模板的runtime | 161 | 'lcrun' => 'Plugin\LCRun3', // 指定编译模板的runtime |
static/img/me/employ/employ.jpg
0 → 100644

11.4 KB
@@ -33,6 +33,4 @@ navHammer.on('tap', function(e) { | @@ -33,6 +33,4 @@ navHammer.on('tap', function(e) { | ||
33 | 33 | ||
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 | -}); | ||
37 | - | ||
38 | - | 36 | +}); |
1 | -.mine-page { | 1 | +$vip: sprite-map("me/vip/*.png"); |
2 | +.my-page { | ||
3 | + background: #f0f0f0; | ||
4 | + | ||
2 | .user-info { | 5 | .user-info { |
6 | + position: relative; | ||
3 | padding: 0 30rem / $pxConvertRem; | 7 | padding: 0 30rem / $pxConvertRem; |
4 | color: #fff; | 8 | color: #fff; |
5 | background: #ccc; | 9 | background: #ccc; |
6 | font-size: 34rem / $pxConvertRem; | 10 | font-size: 34rem / $pxConvertRem; |
7 | line-height: 164rem / $pxConvertRem; | 11 | line-height: 164rem / $pxConvertRem; |
8 | height: 164rem / $pxConvertRem; | 12 | height: 164rem / $pxConvertRem; |
13 | + | ||
9 | .user-avatar { | 14 | .user-avatar { |
10 | - display: inline; | 15 | + display: inline-block; |
16 | + width: 132rem / $pxConvertRem; | ||
17 | + height: 132rem / $pxConvertRem; | ||
18 | + vertical-align: middle; | ||
19 | + border-radius: 50%; | ||
20 | + border: 8rem / $pxConvertRem solid #a7a8a9; | ||
21 | + } | ||
22 | + | ||
23 | + .username { | ||
24 | + padding: 0 16rem / $pxConvertRem; | ||
25 | + } | ||
26 | + | ||
27 | + .vip-icon { | ||
28 | + display: inline-block; | ||
29 | + width: pxToRem(70px); | ||
30 | + height: pxToRem(30px); | ||
31 | + vertical-align: middle; | ||
32 | + } | ||
33 | + | ||
34 | + .vip-3 { | ||
35 | + @include rem-sprite($vip, vip-3); | ||
36 | + } | ||
37 | + | ||
38 | + .vip-2 { | ||
39 | + @include rem-sprite($vip, vip-2); | ||
40 | + } | ||
41 | + | ||
42 | + .vip-1 { | ||
43 | + @include rem-sprite($vip, vip-1); | ||
44 | + } | ||
45 | + | ||
46 | + .more-icon { | ||
47 | + position: absolute; | ||
48 | + top: 0; | ||
49 | + right: 30rem / $pxConvertRem; | ||
50 | + } | ||
51 | + } | ||
52 | + | ||
53 | + .my-link { | ||
54 | + margin-bottom: pxToRem(30px); | ||
55 | + padding: pxToRem(6px) 0; | ||
56 | + text-align: center; | ||
57 | + background: #121314; | ||
58 | + height: pxToRem(76px); | ||
59 | + | ||
60 | + .link-item { | ||
61 | + float: left; | ||
62 | + color: #fff; | ||
63 | + font-size: pxToRem(22px); | ||
64 | + line-height: pxToRem(38px); | ||
65 | + width: pxToRem(213px); | ||
66 | + | ||
67 | + } | ||
68 | + } | ||
69 | + | ||
70 | + .my-order { | ||
71 | + margin-bottom: pxToRem(30px); | ||
72 | + border-top: 1px solid #e0e0e0; | ||
73 | + border-bottom: 1px solid #e0e0e0; | ||
74 | + background: #fff; | ||
75 | + | ||
76 | + .order-title { | ||
77 | + padding: 0 pxToRem(30px); | ||
78 | + font-size: pxToRem(32px); | ||
79 | + line-height: pxToRem(88px); | ||
80 | + | ||
81 | + span { | ||
82 | + color: #e0e0e0; | ||
83 | + float: right; | ||
84 | + } | ||
85 | + } | ||
86 | + | ||
87 | + .order-type { | ||
88 | + padding: pxToRem(20px) pxToRem(30px); | ||
89 | + text-align: center; | ||
90 | + border-top: 1px solid #e0e0e0; | ||
91 | + | ||
92 | + .type-item { | ||
93 | + float: left; | ||
94 | + color: #444; | ||
95 | + font-size: pxToRem(28px); | ||
96 | + line-height: 1.5; | ||
97 | + width: pxToRem(193px); | ||
98 | + } | ||
99 | + | ||
100 | + .iconfont { | ||
101 | + font-size: pxToRem(60px); | ||
102 | + } | ||
103 | + } | ||
104 | + } | ||
105 | + | ||
106 | + .group-list { | ||
107 | + margin-bottom: pxToRem(30px); | ||
108 | + border-top: 1px solid #e0e0e0; | ||
109 | + border-bottom: 1px solid #e0e0e0; | ||
110 | + background: #fff; | ||
111 | + | ||
112 | + .list-item { | ||
113 | + position: relative; | ||
114 | + padding: 0 pxToRem(30px); | ||
115 | + font-size: pxToRem(32px); | ||
116 | + line-height: pxToRem(88px); | ||
117 | + &:after { | ||
118 | + content: ''; | ||
119 | + position: absolute; | ||
120 | + right: 0; | ||
121 | + bottom: 0; | ||
122 | + width: pxToRem(540px); | ||
123 | + height: 0; | ||
124 | + border-top: 1px solid #e0e0e0; | ||
125 | + } | ||
126 | + | ||
127 | + &:last-child:after { | ||
128 | + content: none; | ||
129 | + } | ||
130 | + } | ||
131 | + | ||
132 | + .icon { | ||
133 | + margin-right: pxToRem(10px); | ||
134 | + font-size: pxToRem(50px); | ||
135 | + } | ||
136 | + | ||
137 | + .num { | ||
138 | + color: #e0e0e0; | ||
139 | + float: right; | ||
11 | } | 140 | } |
12 | } | 141 | } |
13 | } | 142 | } |
@@ -30,9 +30,10 @@ | @@ -30,9 +30,10 @@ | ||
30 | .head-portrait{ | 30 | .head-portrait{ |
31 | width:90rem / $pxConvertRem; | 31 | width:90rem / $pxConvertRem; |
32 | height: 90rem / $pxConvertRem; | 32 | height: 90rem / $pxConvertRem; |
33 | + overflow: hidden; | ||
33 | float: right; | 34 | float: right; |
34 | border-radius:50%; | 35 | border-radius:50%; |
35 | - background: #000; | 36 | + border:1px solid #eee; |
36 | } | 37 | } |
37 | .grade{ | 38 | .grade{ |
38 | width:85rem / $pxConvertRem; | 39 | width:85rem / $pxConvertRem; |
@@ -40,8 +41,18 @@ | @@ -40,8 +41,18 @@ | ||
40 | overflow: hidden; | 41 | overflow: hidden; |
41 | display: inline-block; | 42 | display: inline-block; |
42 | margin-top: 25rem / $pxConvertRem; | 43 | margin-top: 25rem / $pxConvertRem; |
43 | - @include rem-sprite($vip, vip-1); | ||
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/_recommend-for-you.scss
0 → 100644
1 | +.recommend-for-you { | ||
2 | + padding: pxToRem(30px) 0 pxToRem(10px); | ||
3 | + border-top: 1px solid #e0e0e0; | ||
4 | + border-bottom: 1px solid #e0e0e0; | ||
5 | + background: #fff; | ||
6 | + | ||
7 | + .title { | ||
8 | + font-size: pxToRem(32px); | ||
9 | + line-height: pxToRe(88px); | ||
10 | + text-align: center; | ||
11 | + color: #444; | ||
12 | + font-weight: bold; | ||
13 | + } | ||
14 | + | ||
15 | + .swiper-recommend { | ||
16 | + padding: pxToRem(20px) pxToRem(30px); | ||
17 | + } | ||
18 | + | ||
19 | + .img-box { | ||
20 | + display: table-cell; | ||
21 | + width: pxToRem(156px); | ||
22 | + height: pxToRem(206px); | ||
23 | + vertical-align: middle; | ||
24 | + text-align: center; | ||
25 | + } | ||
26 | + | ||
27 | + .price { | ||
28 | + margin-top: pxToRem(20px); | ||
29 | + font-size: pxToRem(20px); | ||
30 | + line-height: 1; | ||
31 | + | ||
32 | + .sale-price { | ||
33 | + color: #d9134f; | ||
34 | + } | ||
35 | + | ||
36 | + .old-price { | ||
37 | + float: right; | ||
38 | + color: #ededed; | ||
39 | + } | ||
40 | + | ||
41 | + .no-price { | ||
42 | + color: #444; | ||
43 | + } | ||
44 | + } | ||
45 | +} |
static/sass/me/_yoho-coin.scss
0 → 100644
1 | +.yoho-coin-page { | ||
2 | + padding: 1em; | ||
3 | + | ||
4 | + .coin-num { | ||
5 | + font-size: 1.4em; | ||
6 | + text-align: center; | ||
7 | + | ||
8 | + em { | ||
9 | + font-size: 4em; | ||
10 | + color: #f00; | ||
11 | + } | ||
12 | + } | ||
13 | + | ||
14 | + section p { | ||
15 | + line-height: 1.5em; | ||
16 | + } | ||
17 | + | ||
18 | + .title { | ||
19 | + font-size: 16px; | ||
20 | + line-height: 20px; | ||
21 | + font-weight: bold; | ||
22 | + } | ||
23 | + | ||
24 | + .sub-title { | ||
25 | + display: block; | ||
26 | + font-size: 14px; | ||
27 | + line-height: 28px; | ||
28 | + font-weight: bold; | ||
29 | + } | ||
30 | + | ||
31 | + .path { | ||
32 | + color: #f60; | ||
33 | + } | ||
34 | + | ||
35 | + .remark { | ||
36 | + color: #666; | ||
37 | + | ||
38 | + span { | ||
39 | + color: #9c3; | ||
40 | + } | ||
41 | + } | ||
42 | +} |
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 | +} |
@@ -38,12 +38,12 @@ | @@ -38,12 +38,12 @@ | ||
38 | text-align: center; | 38 | text-align: center; |
39 | font-size: 22rem / $pxConvertRem; | 39 | font-size: 22rem / $pxConvertRem; |
40 | color: #fff; | 40 | color: #fff; |
41 | - background: image-url("sale-icon/rank.png") no-repeat; | 41 | + // background: image-url("sale-icon/rank.png") no-repeat; |
42 | background-position: center top; | 42 | background-position: center top; |
43 | background-size: auto 100%; | 43 | background-size: auto 100%; |
44 | 44 | ||
45 | &.top { | 45 | &.top { |
46 | - background: image-url("sale-icon/rank-t.png") no-repeat; | 46 | + // background: image-url("sale-icon/rank-t.png") no-repeat; |
47 | background-position: center top; | 47 | background-position: center top; |
48 | background-size: 100%; | 48 | background-size: 100%; |
49 | line-height: 58rem / $pxConvertRem; | 49 | line-height: 58rem / $pxConvertRem; |
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}} |
1 | {{> layout/header}} | 1 | {{> layout/header}} |
2 | - <div class="mine-page yoho-page"> | ||
3 | - <div class="mine-header"> | 2 | + <div class="my-page yoho-page"> |
3 | + <div class="my-header"> | ||
4 | <div class="user-info"> | 4 | <div class="user-info"> |
5 | <img class="user-avatar" src="{{head_ico}}"> | 5 | <img class="user-avatar" src="{{head_ico}}"> |
6 | <span class="username">{{profile_name}}</span> | 6 | <span class="username">{{profile_name}}</span> |
7 | - {{#user_info}} | ||
8 | - <span class="user-level user-level-{{cur_level}}"></span> | ||
9 | - {{/user_info}} | 7 | + {{#vip_info}} |
8 | + <span class="vip-icon vip-{{next_level}}"></span> | ||
9 | + {{/vip_info}} | ||
10 | + <div class="iconfont more-icon"></div> | ||
10 | </div> | 11 | </div> |
11 | - <div class="iconfont more-icon">2</div> | ||
12 | </div> | 12 | </div> |
13 | + <div class="my-link clearfix"> | ||
14 | + <a class="link-item" href="/home"> | ||
15 | + 15 | ||
16 | + <p>收藏的商品</p> | ||
17 | + </a> | ||
18 | + <a class="link-item" href="/home"> | ||
19 | + 6 | ||
20 | + <p>收藏的品牌</p> | ||
21 | + </a> | ||
22 | + <a class="link-item" href="/home"> | ||
23 | + 8 | ||
24 | + <p>浏览记录</p> | ||
25 | + </a> | ||
26 | + </div> | ||
27 | + <div class="my-order"> | ||
28 | + <div class="order-title"> | ||
29 | + 我的订单 | ||
30 | + <span class="iconfont"> | ||
31 | + 查看全部订单  | ||
32 | + </span> | ||
33 | + </div> | ||
34 | + <div class="order-type clearfix"> | ||
35 | + <a class="type-item" href="/home/order"> | ||
36 | + <span class="iconfont"></span> | ||
37 | + <br>代付款 | ||
38 | + </a> | ||
39 | + <a class="type-item" href="/home/order"> | ||
40 | + <span class="iconfont"></span> | ||
41 | + <br>代发货 | ||
42 | + </a> | ||
43 | + <a class="type-item" href="/home/order"> | ||
44 | + <span class="iconfont"></span> | ||
45 | + <br>代收货 | ||
46 | + </a> | ||
47 | + </div> | ||
48 | + </div> | ||
49 | + <div class="group-list"> | ||
50 | + <div class="list-item"> | ||
51 | + <span class="iconfont icon"></span> | ||
52 | + 地址管理 | ||
53 | + <span class="iconfont num">3 </span> | ||
54 | + </div> | ||
55 | + </div> | ||
56 | + <div class="group-list"> | ||
57 | + <div class="list-item"> | ||
58 | + <span class="iconfont icon"></span> | ||
59 | + 优惠券 | ||
60 | + <span class="iconfont num">6 </span> | ||
61 | + </div> | ||
62 | + <div class="list-item"> | ||
63 | + <span class="iconfont icon"></span> | ||
64 | + YOHO 币 | ||
65 | + <span class="iconfont num">8 </span> | ||
66 | + </div> | ||
67 | + </div> | ||
68 | + <div class="group-list"> | ||
69 | + <div class="list-item"> | ||
70 | + <span class="iconfont icon"></span> | ||
71 | + 消息 | ||
72 | + <span class="iconfont num">3 </span> | ||
73 | + </div> | ||
74 | + </div> | ||
75 | + <div class="group-list"> | ||
76 | + <div class="list-item"> | ||
77 | + <span class="iconfont icon"></span> | ||
78 | + 在线客服 | ||
79 | + <span class="iconfont num">3 </span> | ||
80 | + </div> | ||
81 | + </div> | ||
82 | + <div class="group-list"> | ||
83 | + <div class="list-item"> | ||
84 | + <span class="iconfont icon"></span> | ||
85 | + 帮助 | ||
86 | + <span class="iconfont num">3 </span> | ||
87 | + </div> | ||
88 | + </div> | ||
89 | + | ||
90 | + {{> me/recommend-for-you}} | ||
13 | </div> | 91 | </div> |
14 | {{> layout/footer}} | 92 | {{> layout/footer}} |
1 | {{> layout/header}} | 1 | {{> layout/header}} |
2 | - {{ #personalDetails}} | ||
3 | - <div class="personal-details"> | ||
4 | - <ul> | ||
5 | - <li><span>头像</span><span><i class="head-portrait"></i></span></li> | ||
6 | - <li><span>昵称</span><span>{{ name }}</span></li> | ||
7 | - <li><span>性别</span><span>{{ sex }}</span></li> | ||
8 | - <li><span>生日</span><span>{{ time }}</span></li> | ||
9 | - <li><span>会员等级</span><span><i class="grade"></i>></span></li> | ||
10 | - </ul> | ||
11 | - </div> | ||
12 | - {{ /personalDetails}} | 2 | + <div class="personal-details"> |
3 | + <ul> | ||
4 | + <li><span>头像</span><span><i class="head-portrait"><img src="{{ head_ico }}"></i></span></li> | ||
5 | + <li><span>昵称</span><span>{{ username }}</span></li> | ||
6 | + <li><span>性别</span><span></span></li> | ||
7 | + <li><span>生日</span><span>{{ birthday }}</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> | ||
15 | + </ul> | ||
16 | + </div> | ||
13 | {{> layout/footer}} | 17 | {{> layout/footer}} |
1 | +{{> layout/header}} | ||
2 | +<div class="yoho-coin-page yoho-page"> | ||
3 | + {{# yohoCoin}} | ||
4 | + <p class="coin-num"> | ||
5 | + <em>{{coinNum}}</em> | ||
6 | + YOHO币 | ||
7 | + </p> | ||
8 | + | ||
9 | + <section> | ||
10 | + <p class="title">YOHO币</p> | ||
11 | + <hr> | ||
12 | + <p> | ||
13 | + <span class="sub-title">YOHO币是什么,有什么用?</span> | ||
14 | + YOHO币是有货商城的虚拟货币,与现金比例1:1,没有任何使用期限,YOHO币可直接用于有货线上购物使用,不可转让他人,不可兑换为现金。使用YOHO币支付的金额不可计入消费金额。 | ||
15 | + </p> | ||
16 | + <p> | ||
17 | + <span class="sub-title">如何查看自己的YOHO币?</span> | ||
18 | + <span class="path">登录 > 个人中心 > 我的YOHO币</span> | ||
19 | + </p> | ||
20 | + <p> | ||
21 | + <span class="sub-title">YOHO币如何购买支付?</span> | ||
22 | + 在购买支付页面输入您要使用的YOHO币金额即可完成支付 | ||
23 | + | ||
24 | + <div class="remark"> | ||
25 | + <span>※ </span> | ||
26 | + 如果超过了我们约定的期限的非正常退货,我们将会于您的退款金额中直接扣除赠送YOHO币等值的金额。赠送给您的YOHO币还将保留在您的账户中,敬请谅解。 | ||
27 | + </div> | ||
28 | + </p> | ||
29 | + </section> | ||
30 | + {{/ yohoCoin}} | ||
31 | +</div> | ||
32 | +{{> 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> |
1 | -{{#pageHeader}} | ||
2 | -{{# isShow}} | 1 | +{{#pageHeader}} |
3 | <header class="yoho-header{{#if boys}} boys{{/if}}{{#if girls}} girls{{/if}}{{#if kids}} kids{{/if}}{{#if lifeStyle}} life-style{{/if}}"> | 2 | <header class="yoho-header{{#if boys}} boys{{/if}}{{#if girls}} girls{{/if}}{{#if kids}} kids{{/if}}{{#if lifeStyle}} life-style{{/if}}"> |
4 | {{#if navBack}} | 3 | {{#if navBack}} |
5 | <a href="javascript:history.go(-1);" class="nav-back"></a> | 4 | <a href="javascript:history.go(-1);" class="nav-back"></a> |
@@ -11,5 +10,4 @@ | @@ -11,5 +10,4 @@ | ||
11 | <p class="nav-title">{{.}}</p> | 10 | <p class="nav-title">{{.}}</p> |
12 | {{/navTitle}} | 11 | {{/navTitle}} |
13 | </header> | 12 | </header> |
14 | -{{/ isShow}} | ||
15 | {{/pageHeader}} | 13 | {{/pageHeader}} |
1 | +{{# recommendForYou}} | ||
2 | + <div class="recommend-for-you"> | ||
3 | + <div class="title">为您优选新品</div> | ||
4 | + <div class="swiper-recommend"> | ||
5 | + <div class="swiper-wrapper"> | ||
6 | + <div class="swiper-slider"> | ||
7 | + <div class="img-box"> | ||
8 | + <img src="http://temp.im/156x206"> | ||
9 | + </div> | ||
10 | + <div class="price"> | ||
11 | + <span class="sale-price">¥199</span> | ||
12 | + <span class="old-price">¥233</span> | ||
13 | + </div> | ||
14 | + </div> | ||
15 | + </div> | ||
16 | + </div> | ||
17 | + </div> | ||
18 | +{{/ recommendForYou}} |
@@ -20,17 +20,40 @@ class HomeController extends AbstractAction | @@ -20,17 +20,40 @@ class HomeController extends AbstractAction | ||
20 | */ | 20 | */ |
21 | public function indexAction() | 21 | public function indexAction() |
22 | { | 22 | { |
23 | - // $uid = $uid = $this->getUid(); | 23 | + // $uid = $this->getUid(); |
24 | $uid = 967016; | 24 | $uid = 967016; |
25 | 25 | ||
26 | $data = \Index\UserModel::getUserProfileData($uid); | 26 | $data = \Index\UserModel::getUserProfileData($uid); |
27 | 27 | ||
28 | // print_r($data); | 28 | // print_r($data); |
29 | - $data['homeHeader'] = array('searchUrl' => Helpers::url('/search', null, 'search')); | 29 | + $data['homeHeader'] = array( |
30 | + 'myHomePage' => true, | ||
31 | + 'searchUrl' => Helpers::url('/search', null, 'search') | ||
32 | + ); | ||
33 | + | ||
34 | + $data['recommendForYou'] = array( | ||
35 | + 'recommendList' => array( | ||
36 | + array( | ||
37 | + 'img' => '' | ||
38 | + ), | ||
39 | + array( | ||
40 | + 'img' => '' | ||
41 | + ), | ||
42 | + array( | ||
43 | + 'img' => '' | ||
44 | + ), | ||
45 | + array( | ||
46 | + 'img' => '' | ||
47 | + ), | ||
48 | + array( | ||
49 | + 'img' => '' | ||
50 | + ) | ||
51 | + ) | ||
52 | + ); | ||
30 | $data['pageFooter'] = true; | 53 | $data['pageFooter'] = true; |
31 | 54 | ||
32 | // 设置网站标题 | 55 | // 设置网站标题 |
33 | - $this->setTitle('男生首页'); | 56 | + $this->setTitle('个人中心'); |
34 | 57 | ||
35 | $this->_view->display('index', $data); | 58 | $this->_view->display('index', $data); |
36 | } | 59 | } |
@@ -105,6 +128,21 @@ class HomeController extends AbstractAction | @@ -105,6 +128,21 @@ class HomeController extends AbstractAction | ||
105 | $favBrands = \Index\UserModel::getFavBrandData($uid, $gender); | 128 | $favBrands = \Index\UserModel::getFavBrandData($uid, $gender); |
106 | 129 | ||
107 | print_r($favBrands); | 130 | print_r($favBrands); |
131 | + | ||
132 | + } | ||
133 | + | ||
134 | + /** | ||
135 | + * 个人信息 | ||
136 | + */ | ||
137 | + public function personalDetailsAction() | ||
138 | + { | ||
139 | + // $uid = $this->getUid(); | ||
140 | + $uid = 967016; | ||
141 | + $data = \Index\UserModel::getUserProfileData($uid); | ||
142 | + $data['pageFooter'] = true; | ||
143 | + $this->_view->display('personal-details', $data); | ||
144 | + | ||
145 | + | ||
108 | } | 146 | } |
109 | 147 | ||
110 | /** | 148 | /** |
@@ -112,11 +150,14 @@ class HomeController extends AbstractAction | @@ -112,11 +150,14 @@ class HomeController extends AbstractAction | ||
112 | */ | 150 | */ |
113 | public function currencyAction() | 151 | public function currencyAction() |
114 | { | 152 | { |
115 | - $uid = $this->getUid(); | 153 | + // $uid = $this->getUid(); |
116 | 154 | ||
155 | + $uid = 967016; | ||
117 | $favBrands = \Index\UserModel::getYohoCoinData($uid); | 156 | $favBrands = \Index\UserModel::getYohoCoinData($uid); |
118 | 157 | ||
119 | print_r($favBrands); | 158 | print_r($favBrands); |
159 | + | ||
160 | + $this->_view->display('yoho-coin', array('yohoCoin' => array('coinNum' => 0))); | ||
120 | } | 161 | } |
121 | 162 | ||
122 | /** | 163 | /** |
@@ -124,12 +165,15 @@ class HomeController extends AbstractAction | @@ -124,12 +165,15 @@ class HomeController extends AbstractAction | ||
124 | */ | 165 | */ |
125 | public function couponsAction() | 166 | public function couponsAction() |
126 | { | 167 | { |
127 | - $uid = $this->getUid(); | 168 | + // $uid = $this->getUid(); |
169 | + | ||
170 | + $uid = 967016; | ||
128 | $status = $this->get('status', 0); | 171 | $status = $this->get('status', 0); |
129 | 172 | ||
130 | $coupons = \Index\UserModel::getCouponData($uid, $status); | 173 | $coupons = \Index\UserModel::getCouponData($uid, $status); |
131 | 174 | ||
132 | - print_r($coupons); | 175 | + $this->_view->display('coupons', $coupons); |
176 | + | ||
133 | } | 177 | } |
134 | 178 | ||
135 | /** | 179 | /** |
-
Please register or login to post a comment