Showing
1 changed file
with
3 additions
and
3 deletions
@@ -109,11 +109,11 @@ $loginBtn.on('touchstart', function() { | @@ -109,11 +109,11 @@ $loginBtn.on('touchstart', function() { | ||
109 | 109 | ||
110 | validate.type === 2 && validate.refresh(); | 110 | validate.type === 2 && validate.refresh(); |
111 | if (data.code === 200) { | 111 | if (data.code === 200) { |
112 | - res = result.data; | 112 | + res = data.data; |
113 | showErrTip('登录成功'); | 113 | showErrTip('登录成功'); |
114 | 114 | ||
115 | // 3秒后强制跳转 | 115 | // 3秒后强制跳转 |
116 | - setTimeout(function() { | 116 | + setTimeout(() => { |
117 | location.href = res.href; | 117 | location.href = res.href; |
118 | }, 1500); | 118 | }, 1500); |
119 | 119 | ||
@@ -124,7 +124,7 @@ $loginBtn.on('touchstart', function() { | @@ -124,7 +124,7 @@ $loginBtn.on('touchstart', function() { | ||
124 | ((data.changeCaptcha && validate.type !== 2) && validate.refresh()); | 124 | ((data.changeCaptcha && validate.type !== 2) && validate.refresh()); |
125 | } | 125 | } |
126 | 126 | ||
127 | - showErrTip(result.message); | 127 | + showErrTip(data.message); |
128 | resetForm(); | 128 | resetForm(); |
129 | } | 129 | } |
130 | }, | 130 | }, |
-
Please register or login to post a comment