Blame view

template/m.yohobuy.com/actions/product/detail/index.phtml 4.66 KB
梁志锋 authored
1 2
{{> layout/header}}
<div class="good-detail-page yoho-page">
lynnic authored
3
    <div class="banner-container">
Lynnic authored
4 5 6
        <div class="tag-container">
            {{# tags}}
                {{# is_new}}
7
                    <p class="good-tag new-tag">NEW</p>
Lynnic authored
8 9 10 11 12 13 14
                {{/ 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}}
梁志锋 authored
15
                {{# is_yohood}}
16
                    <div class="good-tag yohood-tag">新品节</div>
17
                {{/ is_yohood}}
Lynnic authored
18 19 20
                {{# is_limited}}
                    <p class="good-tag limit-tag">限量商品</p>
                {{/ is_limited}}
Lynnic authored
21 22 23
                {{# is_soon_sold_out}}
                    <p class="good-tag soonSoldOut-tag">即将售罄</p>
                {{/ is_soon_sold_out}}
Lynnic authored
24 25
            {{/ tags}}
        </div>
lynnic authored
26
        {{# bannerTop}}
27
        {{> product/banner-swiper-arrow}}
lynnic authored
28 29 30 31 32
        {{/ bannerTop}}
    </div>
    {{# goodsName}}
    <h2 class="goodsName"><span>{{.}}</span></h2>
    {{/ goodsName}}
33
lynnic authored
34 35 36 37
    {{# goodsSubtitle}}
    <h1 class="goodsSubtitle"><span>{{.}}</span></h1>
    {{/ goodsSubtitle}}
Lynnic authored
38
    <div class="price-date">
39 40
        {{# goodsPrice}}
        <div class="goodsPrice">
xuqi authored
41 42
            <h1 class="currentPrice">{{currentPrice}}</h1>
            <h1 class="previousPrice">{{previousPrice}}</h1>
43 44
        </div>
        {{/ goodsPrice}}
45
46
        {{#if periodOfMarket}}
47 48
        <div class="periodOfMarket">
            <h1>上市期:</h1>
Lynnic authored
49
            <h1 >{{periodOfMarket}}</h1>
50
        </div>
51
        {{/if}}
lynnic authored
52 53
    </div>
Lynnic authored
54
    {{# vipLevel}}
55 56
    <ul class="vip-level clearfix">
        {{# list}}
57 58
        <li class="icons-item {{#if currentLevel}}current-level{{/if}}">
            <span class="vip-img " style="background-size:contain;">
59
            </span>
xuqi authored
60
            <span class="vip-price ">{{text}}</span>
61
        </li>
62
        {{/ list}}
63
    </ul>
Lynnic authored
64
    {{/vipLevel}}
65
66
    {{# goodsDiscount}}
67
    <div class="goodsDiscount" id="goodsDiscount">
68
        {{# list}}
69
        {{#if @first}}
70
        {{#if text}}
71
        <h1 class="first-item short-text tap-hightlight">{{text}}<span class="icon-down iconfont dropdown">&#xe609;</span></h1>
72
        {{/if}}
73
        {{/if}}
74
        {{/ list}}
75
        <div class="discount-folder">
76 77
        {{# list}}
        {{#if @first}}
78
        {{else}}
79
        {{#if text}}
80
        <h1 class="folder-item tap-hightlight">{{text}}</h1>
81
        {{/if}}
82 83
        {{/if}}
        {{/list}}
84
        </div>
85
    </div>
86
    {{/ goodsDiscount}}
Lynnic authored
87
88
    {{# feedbacks}}
89
    <div class="feedback-list ">
90 91 92 93 94 95
      {{#if commentsNum}}
        {{> product/feedback-tab}}
      {{else}}
        {{#if consultsNum}}
          {{> product/feedback-tab}}
        {{else}}
96
        <div class="nodata tap-hightlight" id="goto-consult">
97
            <span>暂无商品评价和咨询</span>
98
            <a href="{{consultsUrl}}" class="go-consult">我要咨询<span class="iconfont">&#xe604;</span></a>
99
        </div>
100
        {{/if}}
101
      {{/if}}
102
    </div>
103
    {{/ feedbacks}}
104 105

    {{# enterStore}}
106
    <div id="enter-store" class="enter-store page-block tap-hightlight">
107 108 109 110 111
        <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>
112
    </div>
113
    {{/ enterStore}}
lynnic authored
114
115
    <div id="productDesc"> </div>
Lynnic authored
116
    {{> product/recommend-for-you}}
Lynnic authored
117
    {{> cart/chose-panel}}
Lynnic authored
118
119
    {{#cartInfo}}
120
    <div class="cart-bar">
121
        <a href="{{cartUrl}}" class="num-incart iconfont"><span class="num-tag hide"></span>&#xe62c;</a>
122
123
        {{#if addToCartUrl}}
124 125
           <!--  <a  id="addtoCart" href="{{addToCartUrl}}"  class="addto-cart">加入购物车</a> -->
           <a  id="addtoCart" href="javascript:;"  class="addto-cart">加入购物车</a>
126 127 128 129
        {{/if}}

        {{#if soldOut}}
            <a href="javascript:;"   class="sold-out">已售罄</a>
130
        {{/if}}
131 132 133 134 135

        {{#if notForSale}}
            <a href="javascript:;"   class="sold-out">非卖品</a>
        {{/if}}
136
        <a href="javascript:;" id="likeBtn" class="favorite iconfont {{#isCollect}}liked{{/isCollect}}">&#xe605;</a>
137 138
    </div>
    {{/cartInfo}}
梁志锋 authored
139
    {{#if introUrl}}
140
    <input id="introUrl" type="hidden" value="{{introUrl}}">
梁志锋 authored
141
    {{/if}}
Lynnic authored
142
    {{#if id}}
143
    <input id="productId" type="hidden" value="{{id}}">
Lynnic authored
144
    {{/if}}
145 146
    {{#if preferenceUrl}}
    <input id="preferenceUrl" type="hidden" value="{{preferenceUrl}}">
147 148
    {{/if}}
梁志锋 authored
149
</div>
150
{{> layout/footer}}