stu-identity.hbs 6.15 KB
<div class="stu-identity clearfix">
	<div class="identity-count">
		<div class="yoho-circle"></div>
		<p class="give-coin">验证成功即送<span>{{identityItem.sendCoin}}</span>个有货币</p>
		<p class="identity-info">目前全国已有</p>
		<div class="stu-num">
			{{#identityItem.stuNum}}
				<span>{{this}}</span>
			{{/identityItem.stuNum}}
		</div>
		<p class="stu-ident"><i class="iconfont star-icon">&#xe623;</i>学生已认证<i class="iconfont star-icon">&#xe623;</i></p>
	</div>
    {{#unless @root.pc.user.removeStudentIdentification}}
        <div id="identity-wrap" class="identity-wrap">
            <form id="identity-form" class="identity-form {{#if verifyRusult}} hide {{/if}}">
                <div class="form-group">
                    <label><span class="star">*</span>真实姓名:</label>
                    <input id="stu-name" class="ident-inp" type="text" name="stu-name" placeholder="请输入您的姓名">
                </div>
                <div class="form-group">
                    <label><span class="star">*</span>身份证号:</label>
                    <input id="stu-idNum" class="ident-inp" type="text" name="stu-idNum" placeholder="请输入您的身份证号">
                </div>
                <div class="form-group select-group">
                    <label><span class="star">*</span>学校地区:</label>
                    <input id="stu-province" class="ident-inp" type="text" name="stu-province">
                    <div class="ident-select-wrap gray-p ">
                        <i class="iconfont arrow-down">&#xe61d;</i>
                        <div id="stu-province-show" class="select-value" >请选择省份</div>
                        <ul id="stu-province-ul"  class="select-ul select-more-line clearfix"></ul>
                    </div>
                </div>
                <div class="form-group select-group">
                    <label><span class="star">*</span>学校名称:</label>
                    <input id="stu-school" class="ident-inp long-inp" type="text" name="stu-school">
                    <div class="ident-select-wrap gray-p long-sel" >
                        <i class="iconfont arrow-down">&#xe61d;</i>
                        <div id="stu-school-show" class="select-value">请选择您所在学校</div>
                        <ul id="stu-school-ul" class="select-ul select-one-line"></ul>
                    </div>
                </div>
                <div class="form-group select-group">
                    <label><span class="star">*</span>学历程度:</label>
                    <input id="stu-edu" class="ident-inp long-inp" type="text" name="stu-edu">
                    <div class="ident-select-wrap gray-p long-sel">
                        <i class="iconfont arrow-down">&#xe61d;</i>
                        <div id="stu-edu-show" class="select-value">请选择您的学历</div>
                        <ul id="stu-edu-ul" class="select-ul select-one-line"></ul>
                    </div>
                </div>
                <div class="form-group select-group">
                    <label><span class="star">*</span>入学年份:</label>
                    <input id="stu-entrance-year" class="ident-inp " type="text" name="stu-entrance-year">
                    <div class="ident-select-wrap gray-p long-sel">
                        <i class="iconfont arrow-down">&#xe61d;</i>
                        <div id="stu-entrance-year-show" class="select-value">请选择您的入学年份</div>
                        <ul id="stu-entrance-year-ul" class="select-ul select-one-line"></ul>
                    </div>
                </div>
                <div class="form-group agreen-group">
                    <span id="agreen-show" class="iconfont ck-sel active">&#xe622;</span>
                    <span>同意<a id="coupon-dia">Yoho!有货学生认证协议</a></span>
                </div>
                <p id="prompt" class="prompt"></p>
                <div class="form-group">
                    <div id="identity-Btn" class="validate-btn">立即验证</div>
                </div>
            </form>
            {{#verifyRusult}}
            <div class="identity-back-wrap">
                {{#resultParams}}
                    <span class="hide result-uid">{{uid}}</span>
                    <span class="hide result-birthDay">{{birthDay}}</span>
                    <span class="hide result-sex">{{sex}}</span>
                    <span class="hide result-provName">{{provName}}</span>
                    <span class="hide result-collegeName">{{collegeName}}</span>
                    <span class="hide result-educationDegree">{{educationDegree}}</span>
                    <span class="hide result-enrollmentYear">{{enrollmentYear}}</span>
                {{/resultParams}}
                {{#if isError}}
                    <div id="identity-fail" class="identity-back-icon fail-icon"></div>
                    <p id="identity-fail-text" class="identity-back-title">{{errorMsg}}</p>
                    <p class="identity-back-subtitle">您可以<span class="backForm">重新验证></span></p>
                {{else}}
                    {{#if isStudent}}
                        <div id="identity-success" class="identity-back-icon success-icon"></div>
                        <p class="identity-back-title">恭喜您,您的验证成功啦!</p>
                        <p class="identity-back-subtitle"><span>{{prompt}}</span></p>
                    {{else}}
                        <div id="identity-fail" class="identity-back-icon fail-icon"></div>
                        <p id="identity-fail-text" class="identity-back-title">太遗憾了,您的学校信息未通过审核!</p>
                        <p class="identity-back-subtitle">您可以<span class="backForm">重新验证></span></p>
                    {{/if}}
                {{/if}}
            </div>
            {{/verifyRusult}}
        </div>
    {{^}}
        <div class="identity-wrap">
            <p class="close-identity-text">学生认证功能暂时关闭</p>
        </div>
    {{/unless}}
    <div class="identity-ad">
		{{#if adImg}}
		<a target="_blank" href="{{url}}"><img src="{{image2 adImg w=401 h=360}}"></a>
		{{/if}}
	</div>
</div>