Authored by 王水玲

star

@@ -110,6 +110,24 @@ exports.index = (req, res) => { @@ -110,6 +110,24 @@ exports.index = (req, res) => {
110 url: '', 110 url: '',
111 src: 'http://img10.static.yhbimg.com/yhb-img01/2016/05/07/16/01c4d65c836f3c210e192630109bb32e43.png?imageView/2/w/{width}/h/{height}' 111 src: 'http://img10.static.yhbimg.com/yhb-img01/2016/05/07/16/01c4d65c836f3c210e192630109bb32e43.png?imageView/2/w/{width}/h/{height}'
112 } 112 }
  113 + ],
  114 + articles: [
  115 + {
  116 + articleId: '48187',
  117 + src: 'http://img11.static.yhbimg.com/yhb-img02/2016/04/28/02/01c3e9be0e46915b124962b97d752557cd.jpg?imageView/0/w/{width}/h/{height}',
  118 + name: 'DREAMER',
  119 + title: 'dangerous people 跟着薛之谦维护世界和平T恤',
  120 + url: 'http://guang.m.yohobuy.com/info/index?id=48187',
  121 + articeTxt: '薛之谦以Dangerous People为主题,以暗黑街头的风格为主线,透过纸袋人的形象,从反面讽刺了社会的种种丑陋与黑暗现象, 从而反映出那些“边缘人物” 想让大家看到真实自我的渴望与期待世界和平的美好憧憬。 作为新一代潮流的引领人,薛之谦也有着自身对潮流文化的理解, Dangerous People的产品系列主要以黑白为主,在产品质量上也力求做到最好。',
  122 + articeImg: [
  123 + 'http://img12.static.yhbimg.com/goodsimg/2016/06/01/03/02b9522beb59efd9863d67e246a7793de8.jpg?imageView/2/w/{width}/h/{height}',
  124 + 'http://img11.static.yhbimg.com/goodsimg/2016/06/01/03/015720dbe0dfd866a0cdf8701b19f4eebf.jpg?imageView/2/w/{width}/h/{height}',
  125 + 'http://img12.static.yhbimg.com/goodsimg/2016/06/01/03/024f7d9704e5a545e90125432db69cae5c.jpg?imageView/2/w/{width}/h/{height}',
  126 + 'http://img12.static.yhbimg.com/goodsimg/2016/06/01/03/02b246a819d5de16a0a22316fe8f668926.jpg?imageView/2/w/{width}/h/{height}'
  127 + ],
  128 + publishTime: '6月1日 11:30',
  129 + viewsNum: '7694'
  130 + }
113 ] 131 ]
114 })); 132 }));
115 }); 133 });
@@ -8,19 +8,6 @@ @@ -8,19 +8,6 @@
8 {{/if}} 8 {{/if}}
9 {{/content}} 9 {{/content}}
10 10
11 -{{!-- <div class="avatar-swiper swiper-container">  
12 - <ul class="swiper-wrapper">  
13 - {{#each starAvatar}}  
14 - <li class="swiper-slide">  
15 - <a href="{{url}}">  
16 - <img class="swiper-lazy" data-src="{{image src 180 180}}">  
17 - </a>  
18 - <div class="swiper-lazy-preloader"></div>  
19 - </li>  
20 - {{/each}}  
21 - </ul>  
22 - </div> --}}  
23 -  
24 <div class="avatar-swiper"> 11 <div class="avatar-swiper">
25 <ul class="clearfix swiper-wrapper"> 12 <ul class="clearfix swiper-wrapper">
26 {{# starAvatar}} 13 {{# starAvatar}}
@@ -32,5 +19,34 @@ @@ -32,5 +19,34 @@
32 </li> 19 </li>
33 {{/ starAvatar}} 20 {{/ starAvatar}}
34 </ul> 21 </ul>
35 - </div> 22 + </div>
  23 +
  24 + <ul class="star-info">
  25 + {{#each articles}}
  26 + <li data-id="{{articleId}}">
  27 + <div class="star-avatar">
  28 + <img class="lazy" data-original="{{image src 100 100}}" />
  29 + <p>{{name}}</p>
  30 + </div>
  31 + <div class="star-article">
  32 + <i class="article-arrow"></i>
  33 + <h2 class="article-title">{{title}}</h2>
  34 + <div class="artice-cont">
  35 + <a href="{{url}}">
  36 + <p>{{articeTxt}}</p>
  37 + <ul class="artice-imgs">
  38 + {{#each articeImg}}
  39 + <li><img src="{{image . 130 130}}" /></li>
  40 + {{/each}}
  41 + </ul>
  42 + </a>
  43 + </div>
  44 + <div class="artice-o">
  45 + <span class="time"><i class="iconfont time-ico">&#xe603;</i>{{publishTime}}</span>
  46 + <span class="see"><i class="iconfont see-ico">&#xe602;</i>{{viewsNum}}</span>
  47 + </div>
  48 + </div>
  49 + </li>
  50 + {{/each}}
  51 + </ul>
36 </div> 52 </div>
@@ -133,5 +133,85 @@ @@ -133,5 +133,85 @@
133 margin-top: 27px; 133 margin-top: 27px;
134 } 134 }
135 } 135 }
  136 +
  137 + .star-info {
  138 + margin-top: 30px;
  139 + }
  140 +
  141 + .star-avatar {
  142 + width: 150px;
  143 + text-align: center;
  144 + padding-left: 30px;
  145 + box-sizing: border-box;
  146 + float: left;
  147 +
  148 + img {
  149 + width: 104px;
  150 + height: 104px;
  151 + border-radius: 50%;
  152 + }
  153 + }
  154 +
  155 + .star-article {
  156 + width: 472px;
  157 + height: 439px;
  158 + position: relative;
  159 + border-radius: 8px;
  160 + background: #282828;
  161 + float: left;
  162 + padding: 30px;
  163 + box-sizing: border-box;
  164 +
  165 + .article-arrow {
  166 + position: absolute;
  167 + left: -13px;
  168 + width: 0;
  169 + height: 0;
  170 + border-top: 13px solid transparent;
  171 + border-bottom: 13px solid transparent;
  172 + border-right: 13px solid #282828;
  173 + }
  174 +
  175 + .article-title {
  176 + font-size: 28px;
  177 + line-height: 38px;
  178 + color: #fff;
  179 + }
  180 +
  181 + .artice-cont {
  182 + margin-top: 20px;
  183 +
  184 + p {
  185 + font-size: 18px;
  186 + color: #3e3a39;
  187 + }
  188 + }
  189 +
  190 + .artice-imgs {
  191 + margin: 30px 0;
  192 + width: 100%;
  193 +
  194 + li {
  195 + float: left;
  196 + margin-left: 6px;
  197 + }
  198 +
  199 + li:first {
  200 + margin-left: 0;
  201 + }
  202 +
  203 + img {
  204 + width: 130px;
  205 + height: 130px;
  206 + border-radius: 4px;
  207 + }
  208 + }
  209 +
  210 + .artice-o {
  211 + width: 100%;
  212 +
  213 + border-top: 1px solid #b0b0b0;
  214 + }
  215 + }
136 } 216 }
137 217