diff --git a/static/sass/me/_suggest.scss b/static/sass/me/_suggest.scss index 9aaf52e..14ac50f 100644 --- a/static/sass/me/_suggest.scss +++ b/static/sass/me/_suggest.scss @@ -39,10 +39,14 @@ $suggest: sprite-map("me/suggest/*.png",$spacing: 5px); border-top: 1px solid #e0e0e0; border-bottom: pxToRem(30px) solid #f0f0f0; - > img { - display: block; - overflow: hidden; + .suggest-item-img { width: 100%; + overflow: hidden; + > img { + display: block; + overflow: hidden; + width: 100%; + } } > h2 { diff --git a/template/m.yohobuy.com/actions/index/home/suggest.phtml b/template/m.yohobuy.com/actions/index/home/suggest.phtml index c1ee3e3..b514c06 100644 --- a/template/m.yohobuy.com/actions/index/home/suggest.phtml +++ b/template/m.yohobuy.com/actions/index/home/suggest.phtml @@ -10,18 +10,20 @@ {{# suggestContent}} <div class="suggest-item" data-id="{{suggest_id}}"> {{#if imgUrl}} + <div class="suggest-item-img"> <img class="lazy" data-original="{{imgUrl}}" alt=""/> + </div> {{/if}} <h2>{{title}}</h2> <p>{{content}}</p> - <div class="suggest-type suggest-good"> + <div class="suggest-type suggest-good {{#good}}show{{/good}}"> <div class="active"> <span class="iconfont"></span> <span>靠谱,谢谢您的反馈</span> </div> </div> - <div class="suggest-type suggest-bad"> + <div class="suggest-type suggest-bad {{# bad}}show{{/ bad}}"> <div class="active"> <span class="iconfont"></span> <span>不靠谱,谢谢您的反馈</span>