detail.hbs 6.85 KB
{{# result}}
<div class="good-detail-page yoho-page">
    <div class="banner-container">
        <div class="tag-container">
            {{# tags}}
                {{# is_new}}
                    <p class="good-tag new-tag">NEW</p>
                {{/ is_new}}
                {{# is_advance}}
                    <p class="good-tag renew-tag">再到着</p>
                {{/ is_advance}}
                {{# is_discount}}
                    <p class="good-tag sale-tag">SALE</p>
                {{/ is_discount}}
                {{# is_yohood}}
                    <p class="good-tag new-festival-tag">新品节</p>
                {{/ is_yohood}}
                {{# is_limited}}
                    <p class="good-tag limit-tag">限量</p>
                {{/ is_limited}}
                {{# is_soon_sold_out}}
                    <p class="good-tag soon-sold-out-tag">即将售罄</p>
                {{/ is_soon_sold_out}}
                {{# is_presell}}
                    <p class="good-tag is-presell">预售</p>
                {{/ is_presell}}
            {{/ tags}}
        </div>
        {{# bannerTop}}
        {{> detail/banner-swiper-arrow}}
        {{/ bannerTop}}
    </div>
    {{# goodsName}}
    <h2 class="goods-name"><span>{{.}}</span></h2>
    {{/ goodsName}}

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

    <div class="price-date">

        <div class="goods-price data-bind">
            <h1 class="current-price"></h1>
            <h1 class="previous-price"></h1>
        </div>
        <button class="limit-sale data-can-get-limit-code data-bind" id='limit-sale'>获取限购码</button>
        <button class="got-limit-sale data-code-empty data-bind">限购码已被抢光</button>
        <button class="got-limit-sale data-got-code data-bind">已获取限购码</button>
        {{#if periodOfMarket}}
        <div class="period-of-market">
            <h1>上市期:</h1>
            <h1 >{{periodOfMarket}}</h1>
        </div>
        {{/if}}
    </div>

    <div class="price-date data-bind">
        <div class="student-price">
            <i class="student-name">学生价</i><span class="student-value"></span>
        </div>
    </div>

    {{!-- {{#if studentCoinNum}}
        <div class="price-date">
            <div class="student-price">
                <i class="student-name">返</i> 学生返币{{ studentCoinNum}}个
            </div>
        </div>
    {{else}}
        {{#commodityReturn}}
            <div class="price-date">
                <div class="student-price">
                    <i class="student-name">返</i> 返{{studentCoinNum}}个YOHO币
                </div>
            </div>
        {{/commodityReturn}}
    {{/if}} --}}

    <ul class="vip-level data-bind clearfix">
        <li class="icons-item">
            <span class="vip-img">
            </span>
            <span class="vip-price"></span>
        </li>
    </ul>

    {{! 品牌优惠券}}
    <div class="brand-coupon hide">
        <i class="iconfont font-right pull-right">&#xe614;</i>
        <i class="iconfont font-quan">&#xe900;</i><span>领取优惠券</span>
    </div>



    <div class="goods-discount data-bind" id="goodsDiscount">
        <h1 class="first-item short-text tap-hightlight"><span class="icon-down iconfont dropdown">&#xe609;</span></h1>
        <div class="discount-folder">
            <h1 class="folder-item tap-hightlight"></h1>
        </div>
    </div>

    {{# feedbacks}}
    <div class="feedback-list ">
        {{#if commentsNum}}
            {{> detail/feedback-tab}}
        {{else}}
            {{#if consultsNum}}
                {{> detail/feedback-tab}}
            {{else}}
                <div class="nodata tap-hightlight" id="goto-consult">
                <span>暂无商品评价和咨询</span>
                <a href="{{consultsUrl}}" class="go-consult">我要咨询<span class="iconfont">&#xe604;</span></a>
                </div>
            {{/if}}
        {{/if}}
    </div>
    {{/ feedbacks}}

    {{# enterStore}}
    <div id="enter-store" class="enter-store page-block tap-hightlight">
        <a class="store-logo" href="{{url}}" style="">
            <img class="lazy" data-original="{{image img 47 47}}" 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 id="productDesc" {{#if limit}}class="limit"{{/if}}> </div>
    {{> detail/recommend-for-you}}
    <div class="chose-panel"></div>

    <div class="cart-bar data-bind">
        {{#unless @root.wap.common.removeCartCount}}
            <input type="hidden" id="remove-cart-count" value="1">
        {{/unless}}
        <a href="" class="num-incart iconfont"><span class="num-tag hide"></span>&#xe62c;</a>
        <a id="addtoCart" href="javascript:;" class="addto-cart add-to-cart-url data-bind"></a>
        <a id="soldOut" href="javascript:;" class="sold-out data-bind">已售罄</a>
        <a id="notForSale" href="javascript:;" class="sold-out data-bind">非卖品</a>
        <a id="limitNotForSale" href="javascript:;" class="sold-out limit data-bind">即将发售</a>
        <a id="preSale" href="javascript:;" class="sold-out limit data-bind">即将开售</a>
        <a href="javascript:;" id="addtoCart" class="addto-cart can-buy-limit data-bind">立即购买</a>
        <a id="noLimitCode" href="javascript:;" class="sold-out limit data-bind">立即购买</a>
        <input type="hidden" id="limitCodeUrl" name="limitCodeUrl" value="">
        <input type="hidden" id="limitProductPay" name="limitProductPay" value="">
        <input type="hidden" id="limitProductCode" class="data-bind" name="limitProductCode" value="">

        <a href="javascript:;" id="likeBtn" class="favorite iconfont ">&#xe605;</a>
    </div>
    {{#if introUrl}}
    <input id="introUrl" type="hidden" value="{{introUrl}}">
    {{/if}}
    {{#if id}}
    <input id="productId" type="hidden" value="{{id}}">
    {{/if}}
    {{#if goodsId}}
    <input id="goodsId" type="hidden" value="{{goodsId}}">
    {{/if}}
    {{#if preferenceUrl}}
    <input id="preferenceUrl" type="hidden" value="{{preferenceUrl}}">
    {{/if}}

    <input id="productSkn" type="hidden" value="{{productSkn}}">
    <input id="brand-id" type="hidden" value="{{brandId}}">
    <input id="product-limit" type="hidden" value="{{isLimitBuy}}">
    <input id="product-coupon-switch" type="hidden" value="{{showCoupon}}">

    <input type="hidden" class="data-bind" name="loginUrl" id="loginUrl" value="">

    <form id="buyNowForm" class="data-bind" method="post" action="">
        <input type="hidden" name="productSku" id="productSku">
        <input type="hidden" name="buyNumber" id="buyNumber">
    </form>

    {{#if showPannel}}
        <input type="hidden" id="showPannel" value="1">
    {{/if}}
    {{> common/suspend-home}}
</div>
{{/ result}}