list.phtml 4.17 KB
{{# goodList}}
    {{# search}}
        <div id="search-input" class="search-input">
            <form id="search-form" action="{{url}}" method="get">
                <i class="search-icon iconfont">&#xe60f;</i>
                <input type="text" value="{{default}}" name="query">
                <input type="hidden" value="search" name="from">
                <i class="clear-input iconfont hide">&#xe61a;</i>
                <button id="search" class="search" type="submit">搜索</button>
            </form>
        </div>
    {{/ search}}

    {{# brandWay}}
        <div class="brand-way">
            <a  href={{url}}>
                <img class="brand-thumb" src={{thumb}}>
                <span>{{name}}</span>
                <span class="entry">
                    进入品牌
                    <i class="iconfont">&#xe614;</i>
                </span>
            </a>
        </div>
    {{/ brandWay}}

    {{# brandHome}}
        <div id="brand-header" class="brand-header" data-id={{id}}>
            <img class="lazy" data-original={{banner}}>
            <a class="btn-intro" href="javascript:void(0);">
                品牌介绍
            </a>
            <a class="btn-col{{#if collected}} coled{{/if}}" href="javascript:void(0);">
                <span class="iconfont">&#xe622;</span>
                <span class="txt"></span>
            </a>
        </div>
        <div id="intro-box" class="brand-intro-box hide">
            <div id="brand-intro" class="brand-intro">
                <h2>品牌介绍</h2>
                <div class="con">
                    {{{intro}}}
                </div>
                <p class="fo">
                    <span class="iconfont">&#xe629;</span>
                    100%品牌授权正品
                </p>
                <span class="iconfont close-intro">&#xe623;</span>
            </div>
        </div>
    {{/ brandHome}}

    <ul id="list-nav" class="list-nav clearfix">
        <li class="new active">
            <a href="javascript:void(0);">
                <span class="nav-txt">最新</span>
                <span class="iconfont cur">&#xe616;</span>
            </a>
        </li>
        <li class="price">
            <a href="javascript:void(0);">
                <span class="nav-txt">价格</span>
                <span class="icon">
                    <i class="iconfont up">&#xe615;</i>
                    <i class="iconfont down cur">&#xe616;</i>
                </span>
            </a>
        </li>
        <li class="discount">
            <a href="javascript:void(0);">
                <span class="nav-txt">折扣</span>
                <span class="icon">
                    <i class="iconfont up">&#xe615;</i>
                    <i class="iconfont down cur">&#xe616;</i>
                </span>
            </a>
        </li>
        <li class="filter">
            <a href="javascript:void(0);">
                <span class="nav-txt">筛选</span>
                <span class="iconfont">&#xe613;</span>
            </a>
        </li>
    </ul>
    <div id="goods-container" class="goods-container">
        <div class="new-goods container clearfix"></div>
        <div class="price-goods container clearfix hide"></div>
        <div class="discount-goods container clearfix hide"></div>

        {{> filter}}
    </div>

    {{#if brand}}
        <input id="brand" type="hidden" value={{brand}}>
    {{/if}}

    {{#if gender}}
        <input id="gender" type="hidden" value={{gender}}>
    {{/if}}

    {{#if sort}}
        <input id="sort" type="hidden" value={{sort}}>
    {{/if}}

    {{#if msort}}
        <input id="msort" type="hidden" value={{msort}}>
    {{/if}}

    {{#if misort}}
        <input id="misort" type="hidden" value={{misort}}>
    {{/if}}

    {{#if color}}
        <input id="color" type="hidden" value={{color}}>
    {{/if}}

    {{#if size}}
        <input id="size" type="hidden" value={{size}}>
    {{/if}}

    {{#if price}}
        <input id="price" type="hidden" value={{price}}>
    {{/if}}

    {{#if discount}}
        <input id="discount" type="hidden" value={{discount}}>
    {{/if}}

    {{#if query}}
        <input id="query" type="hidden" value={{query}}>
    {{/if}}

    {{> product/suspend-cart}}
{{/ goodList}}