Authored by 郭成尧

signin

... ... @@ -13,7 +13,7 @@ module.exports = (req, res, next) => {
return res.json({
code: 400,
message: '抱歉,您暂未登录!',
redirect: '/passport/login'
redirect: '/signin.html'
});
} else if (req.yoho.isApp) {
return next({
... ...
... ... @@ -3,11 +3,11 @@ const $ = require('yoho-jquery');
let reLoginBtn = $('#reLogin');
reLoginBtn.on('click', function() {
window.location.href = '/passport/login';
window.location.href = '/signin.html';
});
$(function() {
setTimeout(function() {
window.location.href = '/passport/login';
window.location.href = '/signin.html';
}, 3000);
});
... ...
... ... @@ -2,7 +2,6 @@
* @Author: Targaryen
* @Date: 2017-04-13 14:43:19
* @Last Modified by: Targaryen
* @Last Modified time: 2017-04-19 14:51:03
*/
/* ***************
... ... @@ -115,7 +114,7 @@ $sureResetBtn.on('click', function() {
}
if (result.code === 402) {
window.location.href = '/passport/login';
window.location.href = '/signin.html';
}
},
error: function() {
... ...