Blame view

apps/product/views/action/detail/detail.hbs 7.11 KB
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
{{# 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}}
郭成尧 authored
16
                    <p class="good-tag new-festival-tag">新品节</p>
17 18
                {{/ is_yohood}}
                {{# is_limited}}
郭成尧 authored
19
                    <p class="good-tag limit-tag">限量</p>
20 21 22 23
                {{/ is_limited}}
                {{# is_soon_sold_out}}
                    <p class="good-tag soon-sold-out-tag">即将售罄</p>
                {{/ is_soon_sold_out}}
lijing authored
24
                {{# is_presell}}
lijing authored
25
                    <p class="good-tag is-presell">预售</p>
lijing authored
26
                {{/ is_presell}}
27 28 29
            {{/ tags}}
        </div>
        {{# bannerTop}}
ccbikai authored
30
        {{> detail/banner-swiper-arrow}}
31 32 33 34 35 36 37 38 39 40 41 42
        {{/ bannerTop}}
    </div>
    {{# goodsName}}
    <h2 class="goods-name"><span>{{.}}</span></h2>
    {{/ goodsName}}

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

    <div class="price-date">
43 44 45
        <div class="goods-price data-bind">
            <h1 class="current-price"></h1>
            <h1 class="previous-price"></h1>
46
        </div>
47 48 49
        <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>
50 51 52 53 54 55 56 57
        {{#if periodOfMarket}}
        <div class="period-of-market">
            <h1>上市期:</h1>
            <h1 >{{periodOfMarket}}</h1>
        </div>
        {{/if}}
    </div>
58 59 60
    <div class="price-date data-bind">
        <div class="student-price">
            <i class="student-name">学生价</i><span class="student-value"></span>
weiqingting authored
61
        </div>
62
    </div>
weiqingting authored
63
64
    {{!-- {{#if studentCoinNum}}
65 66 67 68
        <div class="price-date">
            <div class="student-price">
                <i class="student-name">返</i> 学生返币{{ studentCoinNum}}个
            </div>
weiqingting authored
69
        </div>
weiqingting authored
70
    {{else}}
weiqingting authored
71 72 73 74 75 76 77
        {{#commodityReturn}}
            <div class="price-date">
                <div class="student-price">
                    <i class="student-name">返</i> 返{{studentCoinNum}}个YOHO币
                </div>
            </div>
        {{/commodityReturn}}
78
    {{/if}} --}}
weiqingting authored
79
80 81
    <ul class="vip-level data-bind clearfix">
        <li class="icons-item">
沈志敏 authored
82
            <span class="vip-img">
83 84 85 86 87
            </span>
            <span class="vip-price"></span>
        </li>
    </ul>
陈轩 authored
88
    {{! 品牌优惠券}}
陈轩 authored
89
    <div class="brand-coupon hide">
陈轩 authored
90
        <i class="iconfont font-right pull-right">&#xe614;</i>
陈轩 authored
91
        <i class="iconfont font-quan">&#xe902;</i><span>领取优惠券</span>
陈轩 authored
92
    </div>
93 94 95 96 97



    <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>
98
        <div class="discount-folder">
99
            <h1 class="folder-item tap-hightlight"></h1>
100 101 102 103 104
        </div>
    </div>

    {{# feedbacks}}
    <div class="feedback-list ">
yyq authored
105
        {{#if commentsNum}}
ccbikai authored
106
            {{> detail/feedback-tab}}
107
        {{else}}
yyq authored
108
            {{#if consultsNum}}
ccbikai authored
109
                {{> detail/feedback-tab}}
yyq authored
110 111 112 113 114 115
            {{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}}
116 117 118 119 120 121 122
        {{/if}}
    </div>
    {{/ feedbacks}}

    {{# enterStore}}
    <div id="enter-store" class="enter-store page-block tap-hightlight">
        <a class="store-logo" href="{{url}}" style="">
姜枫 authored
123
            <img class="lazy" data-original="{{image2 img w=47 h=47 q=60}}" alt="{{storeName}}">
124 125 126 127 128
        </a>
        <a class="store-name" href="{{url}}">{{storeName}}</a>
        <a class="store-link" href="{{url}}">进入店铺<span class="iconfont">&#xe604;</span></a>
    </div>
    {{/ enterStore}}
郭成尧 authored
129 130 131
    {{# bundleData}}
       {{> detail/bundle}}
    {{/ bundleData}}
132 133
    {{# discountBuy}}
        <input type="hidden" id="discount-buy" value="{{num}}">
郭成尧 authored
134
        <input type="hidden" id="promotion-phrase" value="{{promotionPhrase}}">
135
    {{/ discountBuy}}
zhangxiaoru authored
136
    <div id="productDesc" {{#if limit}}class="limit"{{/if}}> </div>
ccbikai authored
137
    {{> detail/recommend-for-you}}
138
    <div class="chose-panel"></div>
139
140
    <div class="cart-bar data-bind">
陈峰 authored
141 142 143
        {{#unless @root.wap.common.removeCartCount}}
            <input type="hidden" id="remove-cart-count" value="1">
        {{/unless}}
144 145 146 147 148
        <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>
zzzzzzz authored
149
        <a id="preSale" href="javascript:;" class="sold-out limit data-bind">即将开售</a>
150 151 152 153 154 155 156
        <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>
157 158 159 160 161 162 163
    </div>
    {{#if introUrl}}
    <input id="introUrl" type="hidden" value="{{introUrl}}">
    {{/if}}
    {{#if id}}
    <input id="productId" type="hidden" value="{{id}}">
    {{/if}}
164 165 166
    {{#if goodsId}}
    <input id="goodsId" type="hidden" value="{{goodsId}}">
    {{/if}}
167 168 169 170 171
    {{#if preferenceUrl}}
    <input id="preferenceUrl" type="hidden" value="{{preferenceUrl}}">
    {{/if}}

    <input id="productSkn" type="hidden" value="{{productSkn}}">
陈轩 authored
172
    <input id="brand-id" type="hidden" value="{{brandId}}">
173
    <input id="product-limit" type="hidden" value="{{isLimitBuy}}">
174
    <input id="product-coupon-switch" type="hidden" value="{{showCoupon}}">
175
176
    <input type="hidden" class="data-bind" name="loginUrl" id="loginUrl" value="">
177
178 179 180 181
    <form id="buyNowForm" class="data-bind" method="post" action="">
        <input type="hidden" name="productSku" id="productSku">
        <input type="hidden" name="buyNumber" id="buyNumber">
    </form>
郝肖肖 authored
182 183 184 185

    {{#if showPannel}}
        <input type="hidden" id="showPannel" value="1">
    {{/if}}
沈志敏 authored
186
    {{> common/suspend-home}}
187
</div>
188
{{/ result}}