Authored by xuqi

location page login

@@ -86,9 +86,7 @@ likeHammer.on('tap', function(e) { @@ -86,9 +86,7 @@ likeHammer.on('tap', function(e) {
86 if (data.code === 200) { 86 if (data.code === 200) {
87 $this.toggleClass('like'); 87 $this.toggleClass('like');
88 } else if (data.code === 400 || data.code === 412) { 88 } else if (data.code === 400 || data.code === 412) {
89 -  
90 - //code:412 用户ID不正确,即未登录  
91 - tip.show('未登录'); 89 + location.href = data.data; //未登录跳转登录页面
92 } else { 90 } else {
93 tip.show(data.message); 91 tip.show(data.message);
94 } 92 }
@@ -401,7 +401,7 @@ if ($brandHeader.length > 0) { @@ -401,7 +401,7 @@ if ($brandHeader.length > 0) {
401 if (data.code === 200) { 401 if (data.code === 200) {
402 $this.toggleClass('coled'); 402 $this.toggleClass('coled');
403 } else if (data.code === 400 || data.code === 412) { 403 } else if (data.code === 400 || data.code === 412) {
404 - tip.show('未登录'); 404 + location.href = data.data;//未登录跳转登录页
405 } else { 405 } else {
406 tip.show(data.message); 406 tip.show(data.message);
407 } 407 }