student.hbs 5.53 KB
{{#unless isApp}}
<header class="yoho-header">
    <a href="javascript:history.go(-1);" class="iconfont nav-back"></a>
    <p class="nav-title">有货学生专享优惠</p>
</header>
{{/unless}}
<div class="mobile-container">
    <div class="mobile-wrap yoho-page student">
        {{! 头部banner}}
        {{#banner}}
            {{> resources/banner-top}}
        {{/banner}}

        {{#icons}}
        <section class='s-section clearfix' data-template-id="{{template_id}}">
            <h1>学生权益<a class='more s-quan' href='//m.yohobuy.com/activity/student/detail/quanyi?openby:yohobuy={"action":"go.h5","params":{"islogin":"N","url":"{{../http}}//m.yohobuy.com/activity/student/detail/quanyi"}}'>更多权益</a></h1>
            <div class='s-content'>
                {{#each data.list}}
                <div class='s-section'>
                <a href="javascript:void(0)">
                    <img src='{{image src 357 174}}' title="{{title}}">
                </a>
                </div>
                {{/each}}
            </div>
        </section>
        {{/icons}}

        {{#coupons}}
        <section class='s-section clearfix' data-template-id="{{template_id}}">
            <h1>领券中心
                <a class='more' href="{{link}}">...</a>
            </h1>
            <div class='s-coupon-contain'>
            {{#each data}}
                <div class="coupon-floor" coupon-id="{{couponID}}">
                    <div class="floor-main" style="background-image: url({{image image.src 0 0}});">
                        <a href="{{image.url}}" class="main-left"></a>

                        <a href="{{image.url}}" class="main-right-use" >
                            {{#isEqual status 1}}
                            <span class="on-receive on-lingqu" style="color: #fff;background-image: none;">
                                <p>可以</p>
                                <p>领取</p>
                            </span>
                            {{/isEqual}}
                            {{#isEqual status 2}}
                                <span class="zero"></span>
                            {{/isEqual}}
                            {{#isEqual status 3}}
                                <span class="received"></span>
                            {{/isEqual}}
                            {{#isEqual status 4}}
                                <span class="on-receive" style="color: #fff;background-image: none;">
                                    <p>已经</p>
                                    <p>过期</p>
                                </span>
                            {{/isEqual}}
                        </a>
                    </div>
                </div>
            {{/each}}
            </div>
        </section>
        {{/coupons}}

        {{#activities}}
        <section class='s-section clearfix' data-template-id="{{template_id}}">
            <h1>学生专属活动</h1>
            {{#each data.list}}
                <a class='s-activity' href="{{url}}">
                    <img src='{{image src 750 234}}' title='{{title}}'>
                </a>
            {{/each}}
        </section>
        {{/activities}}

        <section class='s-section  clearfix'>
            <h1>学生专享商品<a class="more" href="//search.m.yohobuy.com/?students=1&title=学生专享商品&app_version=1">...</a></h1>
            <div class='goods-list clearfix'>
            {{#each goods}}
            <div class="good-info">
                <div class="tag-container clearfix">
                    {{# tags}}
                        {{# isNew}}
                            <p class="good-tag new-tag">NEW</p>
                        {{/ isNew}}
                        {{# isAdvance}}
                            <p class="good-tag renew-tag">再到着</p>
                        {{/ isAdvance}}
                        {{# isDiscount}}
                            <p class="good-tag sale-tag">SALE</p>
                        {{/ isDiscount}}
                        {{# isYohoood}}
                            <p class="good-tag running-man-tag">跑男同款</p>
                        {{/ isYohoood}}
                        {{# isLimited}}
                            <p class="good-tag limit-tag">限量商品</p>
                        {{/ isLimited}}
                    {{/ tags}}
                </div>
                <div class="good-detail-img">
                    <a class="good-thumb" href="{{url}}">
                        <img class="lazy" data-original="{{image default_images 235 314}}">
                    </a>
                </div>
                <div class="good-detail-text">
                    <div class="name">
                        <a href="{{url}}">{{product_name}}</a>
                    </div>
                    <div class="price">
                        <span class="sale-price">¥{{round student_price}} <i class='s-biaoqian'>学生价</i></span>
                        <p class="s-price-block">
                            <span class="market-price">¥{{round market_price}}</span>
                        </p>
                    </div>
                </div>
            </div>
            {{/each}}
            </div>
            <a class='s-more' href='//search.m.yohobuy.com/?students=1&title=学生专享商品&app_version=1'>查看更多</a>
        </section>

        {{#loginUrl}}
        <div class='s-layout'>
            快来认证吧,认证通过即可享受专属优惠!
            <a class='s-renzhen' href='{{.}}'>立即认证</a>
        </div>
            <div class="s-replace"></div>
        {{/loginUrl}}

    </div>
</div>