info.hbs 1.66 KB
<div class="guang-info" data-id="{{id}}">
    {{# author}}
        <a class="info-author clearfix" href={{url}}>
            <img class="lazy avatar" data-original="{{avatar}}?imageView2/2/w/100/h/100/q/70">
            <span class="name">{{name}}</span>
        </a>
    {{/ author}}

    <div class="info-img">
        {{#if showTags}}
            <a href="javascript:;" class="info-match">
                {{# isTip}}
                    小贴士
                    <div class="info-tag tip"></div>
                {{/ isTip}}
                {{# isCollocation}}
                    搭配
                    <div class="info-tag collocation"></div>
                {{/ isCollocation}}
                {{# isFashionMan}}
                    潮人
                    <div class="info-tag fashion-man"></div>
                {{/ isFashionMan}}
                {{# isFashionGood}}
                    潮品
                    <div class="info-tag fashion-good"></div>
                {{/ isFashionGood}}
                {{# isTopic}}
                    话题
                    <div class="info-tag topic"></div>
                {{/ isTopic}}
                {{# isSpecialTopic}}
                    专题
                    <div class="info-tag special-topic"></div>
                {{/ isSpecialTopic}}
            </a>
        {{/if}}
        <a href="{{url}}">
            <img class="lazy" data-original="{{img}}" alt="{{alt}}">
        </a>
    </div>

    <div class="info-deps">
        <a class="info-title-container" href="{{url}}">
            <h2 class="info-title">{{title}}</h2>
        </a>
        <p class="info-text">{{text}}</p>
        {{> tvls}}
    </div>
</div>