shop-coupon.phtml 1.75 KB
<div class="coupon-content">
<div class="swiper-wrapper">
    {{#if shopCouponsOne}}
        {{#each shopCoupons}}
        <div class="swiper-slide coupon-big" data-id = "{{id}}">
            <div class='coupon-left'>
            <span class="coupon-left-price">
                <span class="coupon-sign">¥</span>
                <span class="coupon-price">{{money}}</span>
            </span>
            <span class="coupon-left-name">
                {{name}}
            </span>
            </div>
            {{#if status}} 
                <div class='coupon-right receive-btn'>
                    立即领取
                </div>
            {{^}}
                <div class='coupon-right receive-btn'>
                    已领取
                </div>
            {{/if}}
        </div><!--/coupon-big-->
        {{/each}}
    {{^}}
        {{#each shopCoupons}}
            <div class="swiper-slide coupon-small" data-id = "{{id}}">
                <div class='coupon-left'>
                    <span class="coupon-left-price">
                        <span class="coupon-sign">¥</span>
                        <span class="coupon-price">{{money}}</span>
                    </span>
                    <span class="coupon-left-name">
                       {{name}}
                    </span>
                </div>
                {{#if status}} 
                    <div class='coupon-right receive-btn'>
                        立即领取
                    </div>
                {{^}}
                    <div class='coupon-right receive-btn'>
                        已领取
                    </div>
                {{/if}}
            </div><!--/coupon-small-->
        {{/each}}
    {{/if}}
</div>
</div>