ensure-coupon-usable.hbs 2.28 KB
<div class="head-msg fw300">{{{headMsg}}}</div>
<div class="list-content">
    {{#each usableCoupon}}
        <div class="list-{{@key}} type-content clearfix">
            {{#each this}}
                {{#if show}}
                    {{#if is_selected_support}}
                        <div class="coupon-item coupon-item-{{catalog}}{{#if selected}} active{{/if}}" data-code="{{coupon_code}}">
                    {{^}}
                        <div class="coupon-item coupon-item-{{catalog}} mutex">
                    {{/if}}
                        {{#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">[{{catalog_name}}]</span> {{coupon_name}}</p>
                            <p class="time">{{coupon_validity}}</p>
                            {{#if desc}}
                                <p class="mutex-tip">{{desc}}</p>
                            {{/if}}
                        </div>

                        {{#if selected}}
                            <span class="iconfont check-icon coupon-check-btn">&#xe622;</span>
                        {{^}}
                            {{#if is_selected_support}}
                                <span class="iconfont coupon-check-btn">&#xe6c3;</span>
                            {{^}}
                                <span class="iconfont disable-icon coupon-check-btn">&#xe6f2;</span>
                            {{/if}}
                        {{/if}}
                    </div>
                {{/if}}
            {{/each}}
        </div>
    {{/each}}
    {{#unless usableNum}}
        <p class="empty"><span>暂无优惠券</span></p>
    {{/unless}}
</div>