Browse Source

样式及工作台未登录跳转登录页面

jack 7 years ago
parent
commit
7b6aa93162
2 changed files with 5 additions and 1 deletions
  1. 1 0
      js/common.js
  2. 4 1
      js/workindex.js

+ 1 - 0
js/common.js

@ -492,6 +492,7 @@ function sendConsultHandler(professorId){
492 492
				$(".blackcover").remove();
493 493
				$("body").css("position","");
494 494
				$.MsgBox.Alert("消息提醒","咨询申请成功");
495
				$("#mb_msgicon").css("background", 'url("images/sign_icon_chenggong_nor.png") 0% 0% / contain');
495 496
			},
496 497
		});
497 498
	}

+ 4 - 1
js/workindex.js

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