info.hbs 2.59 KB
<div class="guang-info" data-id="{{id}}">
    {{# author}}
        <a class="info-author clearfix"{{#if url}} href="{{url}}"{{/if}}>
            <img class="lazy avatar" data-original="{{image2 avatar mode=2 q=60}}">
            <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}}
                {{# isVideo}}
                    视频
                    <div class="info-tag video"></div>
                {{/ isVideo}}
                {{# isShow}}
                    SHOW
                    <div class="info-tag show"></div>
                {{/ isShow}}
            </a>
        {{/if}}
        <a class="img-box"{{#unless isShow}} href="{{url}}"{{/unless}}>
            {{#if @first}}
            <img src="{{image2 img q=60}}" alt="{{alt}}">
            {{^}}
            <img class="lazy" data-original="{{image2 img q=60}}" alt="{{alt}}">
            {{/if}}
            {{#if isVideo}}
            <div class="play"></div>
            {{/if}}
        </a>
    </div>

    <div class="info-deps">
        <a class="info-title-container"{{#unless isShow}} href="{{url}}"{{/unless}}>
            <div class="info-title">{{#if top}}<span class="top-tag">置顶</span>{{/if}}{{title}}</div>
        </a>
        <p class="info-text">{{text}}</p>
        {{> index/tvls}}
    </div>

    {{#unless @root.isApp}}
        {{#if productList}}
        <div class="product-list-box">
            <ul class="product-list">
                {{#productList}}
                    {{> index/product-list}}
                {{/productList}}
            </ul>
        </div>
        {{/if}}
    {{/unless}}
</div>