ensure-coupon-unusable.hbs 1.32 KB
<div class="list-content">
    {{# unusableCoupon}}
        <div class="clearfix">
            <p class="unusable-title">{{name}}</p>
            {{# coupons}}
                <div class="coupon-item coupon-item-{{catalog}}">
                    {{#if is_overdue_soon}}
                        <div class="due-tig"></div>
                    {{/if}}
                    <div class="worth">
                        <p>
                            {{#if isFreight}}
                                <span class="freight">{{coupon_value_str}}</span>
                            {{^}}
                                <span class="price">{{coupon_value_str}}</span>
                                {{#if use_rule}}<br><span class="conditions">{{use_rule}}</span>{{/if}}
                            {{/if}}
                        </p>
                    </div>
                    <div class="coupon-info">
                        <p class="name"><span class="type type-s">[{{catalog_name}}]</span> {{coupon_name}}</p>
                        <p class="time">{{coupon_validity}}</p>
                        <p class="desc">{{desc}}</p>
                    </div>
                </div>
            {{/ coupons}}
        </div>
    {{/ unusableCoupon}}
    {{#unless unusableNum}}
        <p class="empty"><span>暂无优惠券</span></p>
    {{/unless}}
</div>