page.hbs 1.72 KB
<div class="coupon-new-page cpage-padding284">
    {{#couponNumStr}}
    <div class="filter-box">
        <span class="filter-btn-box">
            <span class="filter-btn no-used active" data-num="{{notuse}}">未使用{{#notEqualEither notuse '0'}}({{notuse}}){{/notEqualEither}}</span>
            <span class="iconfont icon-down show-filter-btn active"></span>
        </span>
        <span class="filter-btn-box">
            <span class="filter-btn used" data-num="{{use}}">已使用{{#notEqualEither use '0'}}{{use}}{{/notEqualEither}}</span>
        </span>
        <span class="filter-btn-box">
            <span class="filter-btn invalid" data-num="{{overtime}}">已失效{{#notEqualEither overtime '0'}}{{overtime}}{{/notEqualEither}}</span>
        </span>
    </div>
    {{/ couponNumStr}}
    {{#pageData}}
    <div class="filter-item hide">
        {{#filters}}
            <button data-id="{{filter_id}}">{{filter_name}}</button>
        {{/ filters}}
    </div>
    <div class="exchange-box">
        <input type="text" name="couponCodeInput" placeholder="请输入优惠券码">
        <button id="exchangeCouponBtn" class="exchange-coupon-btn">兑换</button>
    </div>
    <div class="coupon-list" id="couponList">
        {{#couponList}}
        {{> coupons/coupon}}
        {{/ couponList}}
    </div>
    <div class="used-tip hide">
        <hr>
        <span class="used">以上是近期已使用的优惠券</span>
        <span class="invalid">以上是近期已失效的优惠券</span>
        <hr>
    </div>
    <div class="no-conpon-now{{#if couponList}} hide{{/if}}">
        <div class="icon-not"></div>
        <p>暂无优惠券</p>
    </div>
    {{/ pageData}}
</div>
<input type="hidden" id="no-download">