Authored by xuqi

guang info author

@@ -249,7 +249,7 @@ @@ -249,7 +249,7 @@
249 share: false, 249 share: false,
250 isFashionMan: true, //标签分类:isTip、isCollocation、isFashionMan、isFashionGood、isTopic 250 isFashionMan: true, //标签分类:isTip、isCollocation、isFashionMan、isFashionGood、isTopic
251 author: { 251 author: {
252 - id: '', 252 + url: '',
253 avatar: '', 253 avatar: '',
254 name: '' 254 name: ''
255 } 255 }
@@ -5,6 +5,28 @@ @@ -5,6 +5,28 @@
5 border-bottom: 1px solid #e0e0e0; 5 border-bottom: 1px solid #e0e0e0;
6 background: #fff; 6 background: #fff;
7 7
  8 + .info-author {
  9 + display: block;
  10 + width: 100%;
  11 +
  12 + .avatar {
  13 + float: left;
  14 + margin-top: 20rem / $pxConvertRem;
  15 + width: 50rem / $pxConvertRem;
  16 + height: 50rem / $pxConvertRem;
  17 + margin-left: 30rem / $pxConvertRem;
  18 + @include border-radius(50%);
  19 + }
  20 +
  21 + .name {
  22 + float: left;
  23 + margin-left: 30rem / $pxConvertRem;
  24 + padding: 30rem / $pxConvertRem 0;
  25 + font-size: 28rem / $pxConvertRem;
  26 + color: #000;
  27 + }
  28 + }
  29 +
8 &:last-child { 30 &:last-child {
9 margin-bottom: 0; 31 margin-bottom: 0;
10 } 32 }
1 <div class="guang-info" data-id="{{id}}"> 1 <div class="guang-info" data-id="{{id}}">
  2 + {{# author}}
  3 + <a class="info-author clearfix" href={{url}}>
  4 + <img class="lazy avatar" data-original={{avatar}}>
  5 + <span class="name">{{name}}</span>
  6 + </a>
  7 + {{/ author}}
  8 +
2 <div class="info-img"> 9 <div class="info-img">
3 {{#if showTags}} 10 {{#if showTags}}
4 <a href="javascript:;" class="info-match"> 11 <a href="javascript:;" class="info-match">
@@ -104,12 +104,6 @@ @@ -104,12 +104,6 @@
104 </script> 104 </script>
105 {{/if}} 105 {{/if}}
106 106
107 -  
108 -<script>  
109 - seajs.use('js/homePage/index');  
110 -</script>  
111 -  
112 -  
113 {{!-- 品类 --}} 107 {{!-- 品类 --}}
114 {{#if categoryPage}} 108 {{#if categoryPage}}
115 <script> 109 <script>
@@ -68,7 +68,12 @@ class ListController extends AbstractAction @@ -68,7 +68,12 @@ class ListController extends AbstractAction
68 'share' => true, 68 'share' => true,
69 'url' => '', 69 'url' => '',
70 'likeUrl' => '', 70 'likeUrl' => '',
71 - 'isFashionMan' => true 71 + 'isFashionMan' => true,
  72 + 'author' => array(
  73 + 'url' => '',
  74 + 'name' => 'LEO_LU',
  75 + 'avatar' => 'http://img11.static.yhbimg.com/yhb-img02/2015/09/07/02/01a050445c64825eed381c4e049030c692.jpg?imageView/0/w/100/h/100'
  76 + )
72 ), 77 ),
73 array( 78 array(
74 'id' => 1, 79 'id' => 1,
@@ -86,7 +91,12 @@ class ListController extends AbstractAction @@ -86,7 +91,12 @@ class ListController extends AbstractAction
86 'share' => true, 91 'share' => true,
87 'url' => '', 92 'url' => '',
88 'likeUrl' => '', 93 'likeUrl' => '',
89 - 'isTip' => true 94 + 'isTip' => true,
  95 + 'author' => array(
  96 + 'url' => '',
  97 + 'name' => 'Kishi',
  98 + 'avatar' => 'http://img13.static.yhbimg.com/yhb-img02/2015/06/12/10/0256020c504fb08a176c5457599bdf5b49.jpg?imageView/0/w/100/h/100'
  99 + )
90 ) 100 )
91 ) 101 )
92 ), 102 ),
@@ -276,7 +286,7 @@ class ListController extends AbstractAction @@ -276,7 +286,7 @@ class ListController extends AbstractAction
276 ) 286 )
277 ); 287 );
278 $this->_view->assign('title', 'YOHO!有货'); 288 $this->_view->assign('title', 'YOHO!有货');
279 - $this->_view->display('index', array('modulePath' => 'guang/home', 'guang' => $data)); 289 + $this->_view->display('index', array('guangHome' => true, 'guang' => $data));
280 } 290 }
281 291
282 /** 292 /**