feat: update

parent d6d3490e
...@@ -275,9 +275,10 @@ export class AppService implements OnInit { ...@@ -275,9 +275,10 @@ export class AppService implements OnInit {
this._router.navigate([document.location.pathname]); this._router.navigate([document.location.pathname]);
} }
// jQuery('angular2').show(); // jQuery('angular2').show();
} else if (document.location.pathname === '/luna/connect') {
User.logined = true;
} else { } else {
// this.browser(); // this.browser();
if (document.location.pathname !== '/luna/connect') {
this._http.get_user_profile() this._http.get_user_profile()
.subscribe( .subscribe(
data => { data => {
...@@ -321,24 +322,34 @@ export class AppService implements OnInit { ...@@ -321,24 +322,34 @@ export class AppService implements OnInit {
} }
} }
} }
} else {
this._router.navigate(['FOF']);
// jQuery('angular2').show();
}
} }
browser() { else {
this;
.
_router;
.
navigate(['FOF']);
// jQuery('angular2').show();
}
}
browser();
{
this._http.report_browser(); this._http.report_browser();
} }
getQueryString(name) { getQueryString(name);
{
const reg = new RegExp('(^|&)' + name + '=([^&]*)(&|$)', 'i'); const reg = new RegExp('(^|&)' + name + '=([^&]*)(&|$)', 'i');
const r = window.location.search.substr(1).match(reg); const r = window.location.search.substr(1).match(reg);
if (r != null) { if (r != null) {
return unescape(r[2]); return unescape(r[2]);
} }
return null; return null;
} }
// //
// //
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment