Authored by xuqi

Review by: @梁志锋

@@ -86,12 +86,20 @@ $loginBtn.on('touchstart', function() { @@ -86,12 +86,20 @@ $loginBtn.on('touchstart', function() {
86 password: pwd 86 password: pwd
87 }, 87 },
88 success: function(data) { 88 success: function(data) {
  89 + var res;
  90 +
89 if (data.code === 200) { 91 if (data.code === 200) {
  92 + res = data.data;
  93 +
90 showErrTip('登录成功'); 94 showErrTip('登录成功');
91 95
  96 + $.ajax({
  97 + url: res.session
  98 + });
  99 +
92 //1s后跳转页面 100 //1s后跳转页面
93 setTimeout(function() { 101 setTimeout(function() {
94 - location.href = data.data; 102 + location.href = res.href;
95 }, 1000); 103 }, 1000);
96 } else { 104 } else {
97 showErrTip(data.message); 105 showErrTip(data.message);