coupons.hbs 3.01 KB
<div class="me-coupons-page me-page yoho-page clearfix">
    {{> path}}
    {{> navigation}}
    <div class="me-main">
        <div class="coupons {{#if unUse}} un-use-coupons{{/if}}{{#if used}} used-coupons{{/if}}{{#if noValid}} no-valid-coupons{{/if}} block">
            <h2 class="title">优惠券</h2>

            <div class="coupon-tabs">
                <div class="tab-wrap">
                    {{> tabs}}

                    <button class="code-sure-btn right">兑换</button>
                    <input type="text" class="code-input right" placeholder="请输入优惠券码">
                </div>
                {{#if filters}}
                <div class="type-wrap">
                    {{#  filters}}
                        <a href="{{url}}" class="type-item{{#if active}} active{{/if}}">{{filter_name}}</a>
                    {{/ filters}}
                </div>
                {{/if}}
            </div>
            <div class="coupons-wrap clearfix">
                {{# couponList}}
                    <div class="coupon-item coupon-item-{{catalog}}{{#if isUsed}} used{{/if}}{{#if isOvertime}} over-time{{/if}}{{#if isUseless}} useless{{/if}}">
                        {{#isY is_overdue_soon}}
                            <div class="due-tig"></div>
                        {{/isY}}
                        <div class="worth">
                            {{#isEqual catalog 300}}
                                <p><span class="freight">{{../coupon_value_str}}</span></p>
                            {{^}}
                                <p><span class="price">{{../coupon_value_str}}</span>
                                    {{#if ../use_rule}}<br><span class="conditions">{{../use_rule}}</span>{{/if}}
                                </p>
                            {{/isEqual}}
                        </div>
                        <div class="coupon-info">
                            <p class="name"><span class="type type-{{catalog}}">[{{catalog_name}}]</span>{{coupon_name}}</p>
                            <p class="time">{{coupon_validity}}</p>
                            {{#if notes}}
                                <label class="explain">
                                    使用说明<i class="iconfont explain-icon">&#xe60c;</i>
                                    <p class="explain-wrap">
                                        {{# notes}}
                                            {{{.}}}<br>
                                        {{/ notes}}
                                    </p>
                                </label>
                            {{/if}}
                        </div>
                        {{# toUse}}
                            <a href="{{.}}" class="use-now-btn" target="_blank">立即使用</a>
                        {{/ toUse}}
                    </div>
                {{/ couponList}}

                {{#unless couponList}}
                    <p class="empty-tip">暂无优惠券</p>
                {{/unless}}
            </div>
            {{> pager}}
        </div>
    </div>
</div>