index.phtml 3.03 KB
{{> layout/header}}
<div class="good-detail-page yoho-page">
    <div class="banner-container">
        <h1 class="is-new-lable">NEW</h1>
        {{# bannerTop}}
        {{> product/banner_swiper_arrow}}
        {{/ bannerTop}}
    </div>

    {{# goodsName}}
    <h2 class="goodsName"><span>{{.}}</span></h2>
    {{/ goodsName}}

    {{# goodsSubtitle}}
    <h1 class="goodsSubtitle"><span>{{.}}</span></h1>
    {{/ goodsSubtitle}}

    <div class="price-date">
     {{#goodsPrice}}
     <div class="goodsPrice">
        <h1 class="currentPrice">{{currentPrice}}</h1>
        <h1 class="previousPrice">{{previousPrice}}</h1>
    </div>
    {{/goodsPrice}}

    {{#periodOfMarket}}
    <div class="periodOfMarket">
        <h1>上市期:</h1>
        <h1 >{{.}}</h1>
    </div>
    {{/periodOfMarket}}
</div>

{{# vipLevel}}
<div class="vipLevel">
 {{# list}}
<span class="vip-img">
    <div class="img" alt="" style="background-size:cover;"></div>
</span>
 <span class="vip-price">{{text}}</span>
 {{/ list}}           
</div>
{{/ vipLevel}}

    {{#goodsDiscount}}
    <div class="goodsDiscount">
        {{#list}}
            {{#if @first}}
                <h1 class="first-item">{{text}}<span class="icon-down iconfont dropdown">&#xe609;</span></h1>
                <div class="discount-folder">
                {{else}}
                <h1 class="folder-item">{{text}}</h1>
            {{/if}}
        {{/list}}
        </div>
    </div>
    {{/goodsDiscount}}

    <div class="feedback-list ">
        {{# feedbacks}}
        {{#if commentsNum}}
               {{> product/feedback-tab}}
            {{^}}
             {{#if consultsNum}}
                    {{> product/feedback-tab}}
             {{^}}
            <div class="nodata">
                <span>暂无商品评价和咨询</span>
                <a class="go-consult">我要咨询<span class="iconfont">&#xe604;</span></a>
            </div>
             {{/if}}
        {{/if}}
        {{/ feedbacks}}
    </div>

    <div class="gap-block"></div>

    {{# enterStore}}       
    <div id="enter-store" class="enter-store page-block">
        <a class="store-logo" href="{{url}}" style="">
            <img class="lazy" data-original="{{img}}" alt="{{storeName}}">
        </a>
        <a class="store-name" href="{{url}}">{{storeName}}</a>
        <a class="store-link" href="{{url}}">进入店铺<span class="iconfont">&#xe604;</span></a>
    </div> 
    {{/ enterStore}}

    <div class="gap-block"></div>


    <div id="productDesc"></div>


    {{#cartInfo}}
    <div class="cart-bar">
        {{#if numInCart}}
        <span class="num-tag">{{numInCart}}</span>
        {{/if}}
        <a href="" class="num-incart iconfont">&#xe62c;</a>
        {{#if goodsInstore}}
        <a href="" class="addto-cart ">加入购物车</a>
          {{else}}
          <a href="" class="sold-out">已售罄</a>
        {{/if}}
        <a href="" class="favorite iconfont">&#xe605;</a>
    </div>
    {{/cartInfo}}

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

</div>
{{> layout/footer}}