|
@@ -33,19 +33,21 @@
|
|
|
token: r.data.token
|
|
|
};
|
|
|
localStorage.setItem('userInfo',JSON.stringify(userData));
|
|
|
- toPage();
|
|
|
+ tobeforePage();
|
|
|
}else{
|
|
|
if (wx_mode===2 && r.code===-4){
|
|
|
//微信绑定页面
|
|
|
window.location.href = '/bind.html';
|
|
|
+ }else if (wx_mode===1) {
|
|
|
+ tobeforePage();
|
|
|
}else{
|
|
|
CAIMEI.Alert(r.msg,'确定',true, function(){
|
|
|
- toPage();
|
|
|
+ tobeforePage();
|
|
|
});
|
|
|
}
|
|
|
}
|
|
|
});
|
|
|
- function toPage(){
|
|
|
+ function tobeforePage(){
|
|
|
var loginBeforePath = getBaseCookie("loginBeforePath");
|
|
|
if (loginBeforePath && loginBeforePath!='undefined' && loginBeforePath.indexOf('.html')>0) {
|
|
|
delBaseCookie("loginBeforePath");
|