mip-product-list.hbs 3.05 KB
{{#if fuzzyWord}}
    <div class="word-content">
        <div class="list-too-little">
            {{# fuzzyWord}}
                <span class="word"><a data-type="mip" href="{{link}}?union_type=100000000013130">{{name}}</a></span>
            {{/ fuzzyWord}}
        </div>
    </div>
{{/if}}
{{#if list}}
    {{#list}}
    <div class="good-info {{#if @root.saleViplogin}}sale-vip{{/if}}" data-id="{{productSkn}}" data-bp-id="guang_goodList_{{productName}}_false">
        <div class="tag-container clearfix">
            {{#each tags}}
                {{#if isNew}}
                    <p class="good-tag new-tag">NEW</p>
                {{/if}}
                {{#if isAdvance}}
                    <p class="good-tag renew-tag">再到着</p>
                {{/if}}
                {{#if isDiscount}}
                    <p class="good-tag sale-tag">SALE</p>
                {{/if}}
                {{#if isYohoood}}
                    <p class="good-tag running-man-tag">跑男同款</p>
                {{/if}}
                {{#if isLimited}}
                    <p class="good-tag limit-tag">限量商品</p>
                {{/if}}
                {{# isPresell}}
                    <p class="good-tag is-presell">预售</p>
                {{/ isPresell}}
            {{/each}}
        </div>
        <div class="good-detail-img">
            <a class="good-thumb" href="//m.yohobuy.com/product/{{productSkn}}.html?union_type=100000000013130">
                <mip-img src="{{image2 defaultImages w=235 h=314}}"></mip-img>
            </a>
            {{!-- {{log isSoonSoldOut}} --}}
            {{#if isSoonSoldOut}}
                <p class="few-tag">即将售罄</p>
            {{/if}}

            {{#if noStorage}}
                <div class="no-storage">
                    <div class="no-storage-img"></div>
                </div>
            {{/if}}
        </div>
        <div class="good-detail-text">
            <div class="name">
                <a href="//m.yohobuy.com/product/{{productSkn}}.html?union_type=100000000013130">{{productName}}</a>
            </div>
            <div class="price">
                {{#if @root.saleViplogin}}
                    <i class="vip-grade vip-grade-{{@root.vipLevel}}"></i>
                    <span class="sale-price {{^marketPrice}}no-price{{/marketPrice}}">¥
                        {{#if @root.vipPrice1}}{{round vip1Price}}{{/if}}
                        {{#if @root.vipPrice2}}{{round vip2Price}}{{/if}}
                        {{#if @root.vipPrice3}}{{round vip3Price}}{{/if}}
                    </span>
                {{else}}
                    <span class="sale-price {{^marketPrice}}no-price{{/marketPrice}}">¥{{round salesPrice}}</span>
                {{/if}}
                {{#marketPrice}}
                    <span class="market-price">¥{{round .}}</span>
                {{/marketPrice}}
            </div>
            {{#if @root.saleVip}}
                <div class="vip-info">
                    <i class="vip-icon"></i>更优惠
                </div>
            {{/if}}
        </div>
    </div>
    {{/list}}
{{/if}}