select-coupon.phtml 1.11 KB
{{> layout/header}}
<div class="yoho-page select-coupon-page my-coupon-page">
    <div id="coupon-list" class="coupon-list"></div>
    <div class="not-avaliable-coupon-line hide">不可使用的优惠券</div>
    <div id="coupon-list-not" class="coupon-list"></div>
</div>
<script id="tmpl-coupon" type="text/tmpl">
\{{#coupons}}
    \{{^ notAvailable}}
    <a class="employ-main" href="/shoppingCart/orderEnsure?coupon_id={{ coupon_id}}">
        <span>\{{ money}}</span>
        <p class="coupon-name">\{{ coupon_name}}</p>
        <p>有效期:\{{ couponValidity}}</p>
    </a>
    \{{/ notAvailable}}
\{{/coupons}}
</script>
<script id="tmpl-coupon-not-avaliable" type="text/tmpl">
\{{# notAvailableCoupons}}
    <div class="employ-main not-avaliable">
        <span>\{{ money}}</span>
        <p class="coupon-name">\{{ coupon_name}}</p>
        <p>有效期:\{{ couponValidity}}</p>
    </div>
\{{/ notAvailableCoupons}}
</script>
<script id="tmpl-no-coupon" type="text/tmpl">
<div class="coupon-list">
    <div class="null">
        <i></i>
        <p>您还没有优惠券!</p>
    </div>
</div>
</script>
{{> layout/footer}}