Authored by 周少峰

Merge branch 'feature/analysis' into gray

... ... @@ -295,6 +295,8 @@ let success = (req, res, next) => {
regService.getRegData().then((result) => {
res.render('reg/success', {
title: '注册成功',
module: 'passport',
page: 'reg-success',
simpleHeader: simpleHeaderModel.setSimpleHeaderData(),
passport: {
goUrl: goUrl,
... ...
require('../common');
var $ = require('yoho-jquery'), // eslint-disable-line
yas = require('../common/data-yas');
var $countDown = $('#count-down'), // eslint-disable-line
$successBtn = $('.success-btn'),
countDown = 5,
clearT; // 注册成功页面5秒后跳转
if ($('.success-box').length > 0) {
clearT = setInterval(function() {
if (countDown === 0) {
window.location.href = $successBtn.attr('data-url');
clearInterval(clearT);
}
$countDown.text(countDown--);
}, 1000);
}
$(function() {
yas.givePoint('YB_REGISTER_SUCCESS_L');
});
... ...
... ... @@ -13,10 +13,6 @@ var $registerPage = $('.register-page'),
$pwdTip1 = $pwdTips.find('#pwd-tip1'),
$errTip = $('#err-tip'),
$registerBtn = $('#register-btn'),
$countDown = $('#count-down'),
$successBtn = $('.success-btn'),
countDown = 5,
clearT,
captchaImage = new Captcha('#captcha-img').init();
var $sendCaptcha = $('#send-captcha'),
... ... @@ -641,18 +637,4 @@ exports.init = function(page) {
});
}
});
// 注册成功页面5秒后跳转
if ($('.success-box').length > 0) {
clearT = setInterval(function() {
if (countDown === 0) {
window.location.href = $successBtn.attr('data-url');
clearInterval(clearT);
}
$countDown.text(countDown--);
}, 1000);
}
};
... ...