Browse Source

未登录跳登录页面

jack 7 years ago
parent
commit
b611346f09
1 changed files with 4 additions and 1 deletions
  1. 4 1
      js/workindex.js

+ 4 - 1
js/workindex.js

@ -1,7 +1,10 @@
1 1
$(function() {
2
	var userid = $.cookie("userid");
3
	if(userid=="null"){
4
		location.href="login.html"
5
	}
2 6
	$(".onlogin .headnavbtn li").eq(0).addClass("navcurrent");
3 7
	loginStatus();//判断个人是否登录
4
	var userid = $.cookie("userid");
5 8
	var oAuthType=0;
6 9
	/*工作台专家的数据*/
7 10
	getProfessorData(userid);