index.hbs 4.21 KB
{{#realData}}
{{! 头部banner}}
<div class="stu-page">
    {{> common/main-banner}}
    <div class="center-content">
        {{! 分类导航}}
        <div class="sort-nav clearfix" urlLocation="">
            {{#sortItem}}
                <a class="sort-item {{#if @first}}first active{{/if}} {{#if @last}}last{{/if}}" href='#{{href}}'>{{title}}</a>
            {{/sortItem}}
        </div>
        
        {{! 学生权益}}
        <div class="stu-box">
            <div class="floor-header clearfix">
                <a name="stu-rights">
                    <h2 class="floor-title">学生权益</h2>
                </a>
                <span id="rights-dia" class="floor-more">更多细则</span>
            </div>
            <div class="commodity-list clearfix">
                {{> students/stu-rights}}
            </div>
        </div>

        {{! 身份验证}}
        <div class="stu-box ">
            <div class="floor-header clearfix">
                <a name="stu-identity">
                    <h2 class="floor-title">身份验证</h2>
                </a>
            </div>
            <div class="commodity-list clearfix">
                {{> students/stu-identity}}
            </div>
        </div>

        {{! 优惠券}}
        <div class="stu-box">
            <div class="floor-header clearfix">
                <a name="stu-coupon">
                    <h2 class="floor-title">优惠券</h2>
                </a>
                <span class="floor-more">
                    <a href="http://www.yohobuy.com/coupon/index?contentCode=bb7268bd46dd46d304c2917309814681">MORE</a>
                </span>
            </div>
            <div class="commodity-list clearfix">
                {{#each couponItem}}
                     {{> product/coupon}}
                {{/each}}
            </div>
        </div>

        {{! 热门单品}}
        <div class="stu-box">
            <div class="floor-header clearfix">
                <a name="stu-good">
                    <h2 class="floor-title">热门单品</h2>
                </a>
                <span class="floor-more">
                    <a target="_blank" href="http://list.yohobuy.com/new?gender=1,3&amp;order=s_t_desc">MORE</a>
                </span>
            </div>
            <div class="commodity-list clearfix">
                {{#each proItem}}
                     {{> product/good}}
                {{/each}}
            </div>
        </div>

        {{! 活动推荐}}
        <div class="stu-box">
            <div class="floor-header clearfix">
                <a name="stu-activity">
                    <h2 class="floor-title">活动推荐</h2>
                </a>
            </div>
            <div class="commodity-list clearfix">
                {{#activityItem}}
                    <a href="{{url}}"><img class="activity-item" src="{{image src 1150 283}}" /></a>
                {{/activityItem}}
            </div>
        </div>
    </div>
</div>

<div id="hide-template">
    <script type="text/html" id="stu-select">
        \{{#provData}}
        <li><a areaCode="\{{areaCode}}">\{{addresseeName}}</a></li>
        \{{/provData}}
        \{{#schoolData}}
        <li><a schoolCode="\{{schoolCode}}">\{{schoolName}}</a></li>
        \{{/schoolData}}
        \{{#eduData}}
        <li><a>\{{this}}</a></li>
        \{{/eduData}}
        \{{#yearData}}
        <li><a>\{{this}}</a></li>
        \{{/yearData}}
    </script>
    <script type="text/html" id="identity-back">
        \{{#success}}
            <div class="identity-back-icon"></div>
            <p class="identity-back-title">恭喜您,您的验证成功啦!</p>
            <p class="identity-back-subtitle">您是所在城市第<span>123456</span>位学生</p>
        \{{/success}}
        \{{#fail}}
            <div class="identity-back-icon"></div>
            <p class="identity-back-title">太遗憾了,您的学校信息未通过审核!</p>
            <p class="identity-back-subtitle">您可以<span>重新验证></span></p>
        \{{/fail}}
        \{{#wait}}
            <div class="identity-back-icon"></div>
            <p class="identity-back-title">请稍等,</p>
            <p class="identity-back-title">您是学校信息正在验证中!</p>
        \{{/wait}}
    </script>
</div>
{{/realData}}