Authored by xuqi

guang info author

... ... @@ -249,7 +249,7 @@
share: false,
isFashionMan: true, //标签分类:isTip、isCollocation、isFashionMan、isFashionGood、isTopic
author: {
id: '',
url: '',
avatar: '',
name: ''
}
... ...
... ... @@ -5,6 +5,28 @@
border-bottom: 1px solid #e0e0e0;
background: #fff;
.info-author {
display: block;
width: 100%;
.avatar {
float: left;
margin-top: 20rem / $pxConvertRem;
width: 50rem / $pxConvertRem;
height: 50rem / $pxConvertRem;
margin-left: 30rem / $pxConvertRem;
@include border-radius(50%);
}
.name {
float: left;
margin-left: 30rem / $pxConvertRem;
padding: 30rem / $pxConvertRem 0;
font-size: 28rem / $pxConvertRem;
color: #000;
}
}
&:last-child {
margin-bottom: 0;
}
... ...
<div class="guang-info" data-id="{{id}}">
{{# author}}
<a class="info-author clearfix" href={{url}}>
<img class="lazy avatar" data-original={{avatar}}>
<span class="name">{{name}}</span>
</a>
{{/ author}}
<div class="info-img">
{{#if showTags}}
<a href="javascript:;" class="info-match">
... ...
... ... @@ -104,12 +104,6 @@
</script>
{{/if}}
<script>
seajs.use('js/homePage/index');
</script>
{{!-- 品类 --}}
{{#if categoryPage}}
<script>
... ...
... ... @@ -68,7 +68,12 @@ class ListController extends AbstractAction
'share' => true,
'url' => '',
'likeUrl' => '',
'isFashionMan' => true
'isFashionMan' => true,
'author' => array(
'url' => '',
'name' => 'LEO_LU',
'avatar' => 'http://img11.static.yhbimg.com/yhb-img02/2015/09/07/02/01a050445c64825eed381c4e049030c692.jpg?imageView/0/w/100/h/100'
)
),
array(
'id' => 1,
... ... @@ -86,7 +91,12 @@ class ListController extends AbstractAction
'share' => true,
'url' => '',
'likeUrl' => '',
'isTip' => true
'isTip' => true,
'author' => array(
'url' => '',
'name' => 'Kishi',
'avatar' => 'http://img13.static.yhbimg.com/yhb-img02/2015/06/12/10/0256020c504fb08a176c5457599bdf5b49.jpg?imageView/0/w/100/h/100'
)
)
)
),
... ... @@ -276,7 +286,7 @@ class ListController extends AbstractAction
)
);
$this->_view->assign('title', 'YOHO!有货');
$this->_view->display('index', array('modulePath' => 'guang/home', 'guang' => $data));
$this->_view->display('index', array('guangHome' => true, 'guang' => $data));
}
/**
... ...