Blame view

public/hbs/cart/index/cart-content.hbs 4.99 KB
陈峰 authored
1 2
<div class="normal-box">
    {{#goodPools}}
陈峰 authored
3
    <div class="cart-brand box good-pools-data">
陈峰 authored
4 5 6
        {{#if isPromotion}}
            <div class="promotion-header {{#if promotionMore}}more-box{{/if}}">
                {{#promotions}}
陈峰 authored
7
                    <div class="promo-item" data-id="{{promotionId}}" data-title="{{promotionOriginTitle}}" data-type="{{promotionType}}" data-status="{{status}}">
陈峰 authored
8
                        <div class="info"><i class="iconfont cuxiao"></i><span>{{promotionTitle}}</span></div>
9
                        <div class="opt to-gift {{#if noStorage}}no-storage{{/if}}">
陈峰 authored
10
                            <a href="javascript:;">{{optTitle}}</a><i class="iconfont to-arrow"></i>
陈峰 authored
11 12 13 14 15 16 17 18 19 20 21
                        </div>
                    </div>
                {{/promotions}}
                <div class="down-arrow">
                    <i class="iconfont arrow"></i>
                </div>
            </div>
            {{#sub_pool}}
                {{#if isPromotion}}
                     <div class="promos {{#if promotionMore}}more-box{{/if}}">
                        {{#promotions}}
陈峰 authored
22
                            <div class="promo-item" data-id="{{promotionId}}" data-title="{{promotionOriginTitle}}" data-type="{{promotionType}}" data-status="{{status}}">
陈峰 authored
23
                                <div class="info">
陈峰 authored
24
                                    <span class="flag">{{promotionFlag}}</span>{{promotionTitle}}
陈峰 authored
25
                                </div>
26
                                <div class="opt to-gift {{#if noStorage}}no-storage{{/if}}">
陈峰 authored
27
                                    <a href="javascript:;">{{optTitle}}</a><i class="iconfont to-arrow"></i>
陈峰 authored
28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47
                                </div>
                            </div>
                        {{/promotions}}
                        <div class="down-arrow">
                            <i class="iconfont arrow"></i>
                        </div>
                    </div>
                {{/if}}
                {{#goods}}
                    {{> cart-good}}
                {{/goods}}
            {{/sub_pool}}
        {{/if}}
        {{#if isBrand}}
            <div class="good-list">
                {{#goods}}
                    {{> cart-good}}
                {{/goods}}
            </div>
        {{/if}}
郭成尧 authored
48
        {{#if isBundle}}
郭成尧 authored
49
           {{> cart-bundle}}
郭成尧 authored
50
        {{/if}}
陈峰 authored
51 52 53
    </div>
    {{/goodPools}}
    {{#goods}}
陈峰 authored
54
    <div class="cart-brand box goods-data">
陈峰 authored
55 56 57 58 59 60 61 62
        <div class="good-list">
            {{> cart-good}}
        </div>
    </div>
    {{/goods}}
</div>
{{#if freebieOrAdvanceBuy}}
<div class="all-gift-box box">
陈峰 authored
63
    {{#if freebie.length}}
64
    <div class="gift-item freebie">
陈峰 authored
65
        <div class="flag">
66
            <i class="iconfont gift"></i>
陈峰 authored
67 68
        </div>
        <div class="content">
69 70 71
            <div class="info">赠品</div>
            <div class="opt to-gift {{#ifnot giftHasStorage}}no-storage{{/ifnot}}">
                <a href="javascript:;">{{#if giftHasStorage}}领赠品{{^}}已抢光{{/if}}</a><i class="iconfont to-arrow"></i>
陈峰 authored
72 73 74 75
            </div>
        </div>
    </div>
    {{/if}}
陈峰 authored
76
    {{#if advanceBuy.length}}
77
    <div class="gift-item advanceBuy">
陈峰 authored
78
        <div class="flag">
79
            <i class="iconfont price-gift"></i>
陈峰 authored
80 81
        </div>
        <div class="content">
lijing authored
82
            <div class="info">全场加价购</div>
83 84
            <div class="opt to-gift {{#ifnot advanceHasStorage}}no-storage{{/ifnot}}">
                <a href="javascript:;">{{#if advanceHasStorage}}去换购{{^}}已抢光{{/if}}</a><i class="iconfont to-arrow"></i>
陈峰 authored
85 86 87 88 89 90 91 92
            </div>
        </div>
    </div>
    {{/if}}
</div>
{{/if}}
{{#if hasNoSaleGoods}}
<div class="disable-box box">
陈峰 authored
93 94 95
    {{#notValidGoods}}
        {{> cart-good}}
    {{/notValidGoods}}
郭成尧 authored
96 97 98
    {{#notValidPool}}
        {{> cart-bundle}}
    {{/notValidPool}}
陈峰 authored
99 100 101
    {{#offShelveGoods}}
        {{> cart-good}}
    {{/offShelveGoods}}
lijing authored
102
陈峰 authored
103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136
    <div class="remove-all">
        <button class="btn btn-remove">清空失效商品</button>
    </div>
</div>
{{/if}}
<div class="total box">
    {{#if promotionInfo.length}}
        <div class="activity-title">
            <h1>已参与活动</h1>
        </div>
        <div class="activity">
            <ul>
                {{#promotionInfo}}
                    <li>{{name}}</li>
                {{/promotionInfo}}
            </ul>
        </div>
    {{/if}}
    <div class="price-compute">
        <p>{{formulaPrice}}</p>
    </div>
</div>
<div class="cart-footer">
    <div class="check-all">
        <i class="iconfont chk select {{#if isAllSelected}}checked{{/if}}"></i>
        <i class="iconfont chk edit"></i>
        <p>全选</p>
    </div>
    <div class="opts edit">
        <button class="btn btn-gray btn-fav">移入<br>收藏夹</button>
        <button class="btn btn-red btn-del">删除</button>
    </div>
    <div class="opts bill ">
        <div class="total">
陈峰 authored
137
            <p class="price">总计:¥{{sumPrice}}&nbsp;&nbsp;({{count}}件)</p>
陈峰 authored
138 139
            <p class="intro">不含运费</p>
        </div>
陈峰 authored
140
        <button class="btn btn-red btn-balance">结算</button>
陈峰 authored
141
    </div>
lijing authored
142
</div>