reset-success.hbs 2.21 KB
{{> sign-header}}
<div class="reset-success-page back-page passport-page yoho-page clearfix">

        <ul>
            <li class="clearfix">
                <div class="title">密码重置</div>
            </li>
            <div class="indicator">
                <li class="clearfix small">

                    <div class="draw">
                        <div class="step first cur-step">
                            <div class="circle"></div>
                        </div>
                        <div class="step">
                            <div class="line cur-step"></div>
                        </div>
                        <div class="step second">
                            <div class="circle"></div>
                        </div>
                        <div class="step">
                            <div class="line cur-step"></div>
                        </div>
                        <div class="step third cur-step">
                            <div class="circle"></div>
                        </div>
                    </div>

                </li>
                <li class="clearfix small">
                    <div class="text">
                        <div class="step first cur-step">验证身份</div>
                        <div class="step second cur-step">重置密码</div>
                        <div class="step third cur-step">重置成功</div>
                    </div>

                </li>
            </div>

            <li style="margin-bottom: 0">

            </li>

            <div class="success-text">
                <div class="title">恭喜您设置完成,请妥善保存您的密码!</div>
                <div class="time">页面将在&nbsp;<span id="count-down" class="blue">5</span>&nbsp;秒后将跳转至首页</div>
            </div>
        </ul>
</div>
<script type="text/javascript">
    (function () {
        var count = 5,
                countDown = document.getElementById('count-down');

        console.log(countDown);

        var timer = setInterval(function () {
            if (count > 1) {
                count--;
                countDown.innerHTML = count;
            } else {
                location.href = '/';
            }
        }, 1000);
    })();
</script>