Browse Source

个人用户为登录跳转登录页面

xuchunyang 7 years ago
parent
commit
17c6d74f74

+ 2 - 2
consult.html

23
		<div class="workmenu">
23
		<div class="workmenu">
24
			<a href="workspaces.html" class="workmenutit">工作台</a>
24
			<a href="workspaces.html" class="workmenutit">工作台</a>
25
			<a class="worksubmenu subcolor" id="gozixu">咨询</a>
25
			<a class="worksubmenu subcolor" id="gozixu">咨询</a>
26
			<a href="resourceList.html" class="worksubmenu nohide" style="display:none;">资源</a>
27
			<a href="articalList.html" class="worksubmenu nohide" style="display:none;">文章</a>
26
			<a href="resourceList.html" class="worksubmenu " >资源</a>
27
			<a href="articalList.html" class="worksubmenu " >文章</a>
28
			<a href="needList.html" class="worksubmenu">需求</a>
28
			<a href="needList.html" class="worksubmenu">需求</a>
29
		</div>
29
		</div>
30
		<div class="workcon">
30
		<div class="workcon">

+ 2 - 2
consultSure.html

25
		<div class="workmenu">
25
		<div class="workmenu">
26
			<a href="workspaces.html" class="workmenutit">工作台</a>
26
			<a href="workspaces.html" class="workmenutit">工作台</a>
27
			<a class="worksubmenu subcolor" id="gozixu">咨询</a>
27
			<a class="worksubmenu subcolor" id="gozixu">咨询</a>
28
			<a href="resourceList.html" class="worksubmenu nohide" style="display:none;">资源</a>
29
			<a href="articalList.html" class="worksubmenu nohide" style="display:none;">文章</a>
28
			<a href="resourceList.html" class="worksubmenu" >资源</a>
29
			<a href="articalList.html" class="worksubmenu" >文章</a>
30
			<a href="needList.html" class="worksubmenu">需求</a>
30
			<a href="needList.html" class="worksubmenu">需求</a>
31
		</div>
31
		</div>
32
		<div class="workcon">
32
		<div class="workcon">

+ 2 - 2
diloags.html

26
		<div class="workmenu">
26
		<div class="workmenu">
27
			<a href="workspaces.html" class="workmenutit">工作台</a>
27
			<a href="workspaces.html" class="workmenutit">工作台</a>
28
			<a class="worksubmenu subcolor" id="gozixu">咨询</a>
28
			<a class="worksubmenu subcolor" id="gozixu">咨询</a>
29
			<a href="resourceList.html" class="worksubmenu nohide" style="display:none;">资源</a>
30
			<a href="articalList.html" class="worksubmenu nohide" style="display:none;">文章</a>
29
			<a href="resourceList.html" class="worksubmenu" >资源</a>
30
			<a href="articalList.html" class="worksubmenu " >文章</a>
31
			<a href="needList.html" class="worksubmenu">需求</a>
31
			<a href="needList.html" class="worksubmenu">需求</a>
32
		</div>
32
		</div>
33
		<div class="workcon">
33
		<div class="workcon">

+ 2 - 1
js/articalIssue.js

1
$(function() {
1
$(function() {
2
	loginStatus(); //判断个人是否登录
2
	loginStatus(); //判断个人是否登录
3
	valUser();
3
	var experarray = [];
4
	var experarray = [];
4
	var resourcesarray = [];
5
	var resourcesarray = [];
5
	var $data = {};
6
	var $data = {};
6
	var articleId;
7
	var articleId;
7
	var fa = false;
8
	var fa = false;
8

9
  	var userid = $.cookie("userid");
9
	//校验标题
10
	//校验标题
10
	$("#newstitle").on({
11
	$("#newstitle").on({
11
		focus: function() {
12
		focus: function() {

+ 1 - 0
js/articalList.js

2
$(function() {
2
$(function() {
3
	$(".onlogin .headnavbtn li").eq(0).addClass("navcurrent");
3
	$(".onlogin .headnavbtn li").eq(0).addClass("navcurrent");
4
	loginStatus(); //判断个人是否登录
4
	loginStatus(); //判断个人是否登录
5
	valUser();
5
	var userid = $.cookie("userid");
6
	var userid = $.cookie("userid");
6
	var  falseno = false;
7
	var  falseno = false;
7
	articalList(10, 1, true, 1);
8
	articalList(10, 1, true, 1);

+ 1 - 0
js/articalModify.js

1
$(function() {
1
$(function() {
2
	loginStatus();//判断个人是否登录
2
	loginStatus();//判断个人是否登录
3
	valUser();
3
	var articleId = GetQueryString("articleId");
4
	var articleId = GetQueryString("articleId");
4
	var experarray = [];
5
	var experarray = [];
5
	var resourcesarray = [];
6
	var resourcesarray = [];

+ 1 - 1
js/articalPreview.js

1
/*文章预览*/
1
/*文章预览*/
2
$(function() {
2
$(function() {
3
	loginStatus();//判断个人是否登录
3
	loginStatus();//判断个人是否登录
4
	valUser();
4
	var articleId = GetQueryString("articleId");
5
	var articleId = GetQueryString("articleId");
5
	
6
	articleshow();
6
	articleshow();
7
	relevantExperts();
7
	relevantExperts();
8
	relevantResources(); 
8
	relevantResources(); 

+ 1 - 0
js/consult.js

1
$(function(){
1
$(function(){
2
	$(".onlogin .headnavbtn li").eq(0).addClass("navcurrent");
2
	$(".onlogin .headnavbtn li").eq(0).addClass("navcurrent");
3
	loginStatus();//判断个人是否登录
3
	loginStatus();//判断个人是否登录
4
	valUser();
4
})
5
})
5
//用户id
6
//用户id
6
var userid = $.cookie("userid");
7
var userid = $.cookie("userid");

+ 1 - 0
js/consultSure.js

1
$(function(){
1
$(function(){
2
	$(".onlogin .headnavbtn li").eq(0).addClass("navcurrent");
2
	$(".onlogin .headnavbtn li").eq(0).addClass("navcurrent");
3
	loginStatus();//判断个人是否登录
3
	loginStatus();//判断个人是否登录
4
	valUser();
4
})
5
})
5
//咨询确认
6
//咨询确认
6
$(function() {
7
$(function() {

+ 1 - 0
js/dialogs.js

2
$(function(){
2
$(function(){
3
	$(".onlogin .headnavbtn li").eq(0).addClass("navcurrent");
3
	$(".onlogin .headnavbtn li").eq(0).addClass("navcurrent");
4
	loginStatus();//判断个人是否登录
4
	loginStatus();//判断个人是否登录
5
	valUser();
5
})
6
})
6
var userid = $.cookie("userid");
7
var userid = $.cookie("userid");
7
var sendId = GetQueryString('sendId');
8
var sendId = GetQueryString('sendId');

+ 1 - 0
js/myConsult.js

1
$(function(){
1
$(function(){
2
	$(".onlogin .headnavbtn li").eq(0).addClass("navcurrent");
2
	$(".onlogin .headnavbtn li").eq(0).addClass("navcurrent");
3
	loginStatus();//判断个人是否登录
3
	loginStatus();//判断个人是否登录
4
	valUser();
4
})
5
})
5
//用户id
6
//用户id
6
var userid = $.cookie("userid");
7
var userid = $.cookie("userid");

+ 2 - 0
js/myDemand.js

1
$(document).ready(function() {
1
$(document).ready(function() {
2
	$(".onlogin .headnavbtn li").eq(0).addClass("navcurrent");
2
	$(".onlogin .headnavbtn li").eq(0).addClass("navcurrent");
3
	loginStatus(); //判断个人是否登录
3
	loginStatus(); //判断个人是否登录
4
	valUser();
5
	var userid = $.cookie("userid");
4
	var yesNo = "",
6
	var yesNo = "",
5
		oSortType = 0,
7
		oSortType = 0,
6
		demandType, orgId;
8
		demandType, orgId;

+ 1 - 0
js/needList.js

1
$(document).ready(function() {
1
$(document).ready(function() {
2
	$(".onlogin .headnavbtn li").eq(0).addClass("navcurrent");
2
	$(".onlogin .headnavbtn li").eq(0).addClass("navcurrent");
3
	loginStatus();//判断个人是否登录
3
	loginStatus();//判断个人是否登录
4
	valUser();
4
	var oDemandAim = "",
5
	var oDemandAim = "",
5
		oSortType = "";
6
		oSortType = "";
6
	/*需求列表*/
7
	/*需求列表*/

+ 1 - 0
js/needShow.js

3
	var demandId = GetQueryString("demandId");
3
	var demandId = GetQueryString("demandId");
4
	var consuId, demandTitle, demandContent, oDemandAim;
4
	var consuId, demandTitle, demandContent, oDemandAim;
5
	loginStatus();//判断个人是否登录
5
	loginStatus();//判断个人是否登录
6
	valUser();
6
	function angleDemand() {
7
	function angleDemand() {
7
		$.ajax({
8
		$.ajax({
8
			url: "/ajax/demand/queryOne",
9
			url: "/ajax/demand/queryOne",

+ 1 - 1
js/needSure.js

3
	var demandId = GetQueryString("demandId");
3
	var demandId = GetQueryString("demandId");
4
	var consuId, demandTitle, demandContent, oDemandAim;
4
	var consuId, demandTitle, demandContent, oDemandAim;
5
	loginStatus();//判断个人是否登录
5
	loginStatus();//判断个人是否登录
6
	
6
	valUser();
7
	function angleDemand() {
7
	function angleDemand() {
8
		$.ajax({
8
		$.ajax({
9
			url: "/ajax/demand/queryOne",
9
			url: "/ajax/demand/queryOne",

+ 1 - 0
js/resourceImport.js

1
$(document).ready(function(){
1
$(document).ready(function(){
2
	$(".onlogin .headnavbtn li").eq(0).addClass("navcurrent");
2
	$(".onlogin .headnavbtn li").eq(0).addClass("navcurrent");
3
	loginStatus(); //判断个人是否登录
3
	loginStatus(); //判断个人是否登录
4
	valUser();
4
	var userid = $.cookie("userid");
5
	var userid = $.cookie("userid");
5
	var resourceId;
6
	var resourceId;
6
	/*资源列表查询*/
7
	/*资源列表查询*/

+ 1 - 0
js/resourceIssue.js

5
		getRecourceMe();
5
		getRecourceMe();
6
	}
6
	}
7
	loginStatus(); //判断个人是否登录
7
	loginStatus(); //判断个人是否登录
8
	valUser();
8
	var userid = $.cookie("userid");
9
	var userid = $.cookie("userid");
9
	var temp = [];
10
	var temp = [];
10
	var array=[];
11
	var array=[];

+ 1 - 0
js/resourceList.js

1
$(document).ready(function(){
1
$(document).ready(function(){
2
	$(".onlogin .headnavbtn li").eq(0).addClass("navcurrent");
2
	$(".onlogin .headnavbtn li").eq(0).addClass("navcurrent");
3
	loginStatus(); //判断个人是否登录
3
	loginStatus(); //判断个人是否登录
4
	valUser();
4
	var userid = $.cookie("userid");
5
	var userid = $.cookie("userid");
5
	var resourceId;
6
	var resourceId;
6
	/*资源列表查询*/
7
	/*资源列表查询*/

+ 1 - 0
js/resourcePreview.js

1
$(document).ready(function() {
1
$(document).ready(function() {
2
	loginStatus(); //判断个人是否登录
2
	loginStatus(); //判断个人是否登录
3
	valUser();
3
	var userid = $.cookie("userid");
4
	var userid = $.cookie("userid");
4
	$(".jqzoom").imagezoom();
5
	$(".jqzoom").imagezoom();
5
	$("#thumblist").on("click", "li a", function() {
6
	$("#thumblist").on("click", "li a", function() {

+ 1 - 3
js/workindex.js

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

+ 2 - 2
needShow.html

25
        <div class="workmenu">
25
        <div class="workmenu">
26
            <a href="workspaces.html" class="workmenutit">工作台</a>
26
            <a href="workspaces.html" class="workmenutit">工作台</a>
27
            <a class="worksubmenu" id="gozixu">咨询</a>
27
            <a class="worksubmenu" id="gozixu">咨询</a>
28
            <a href="resourceList.html"  class="worksubmenu nohide" style="display:none;">资源</a>
29
            <a href="articalList.html"  class="worksubmenu nohide" style="display:none;">文章</a>
28
            <a href="resourceList.html"  class="worksubmenu" >资源</a>
29
            <a href="articalList.html"  class="worksubmenu " >文章</a>
30
            <a href="myDemand.html"  class="worksubmenu subcolor">需求</a>
30
            <a href="myDemand.html"  class="worksubmenu subcolor">需求</a>
31
        </div>
31
        </div>
32
        <div class="workcon">
32
        <div class="workcon">

+ 2 - 2
needSure.html

24
        <div class="workmenu">
24
        <div class="workmenu">
25
            <a href="workspaces.html" class="workmenutit">工作台</a>
25
            <a href="workspaces.html" class="workmenutit">工作台</a>
26
            <a class="worksubmenu" id="gozixu">咨询</a>
26
            <a class="worksubmenu" id="gozixu">咨询</a>
27
            <a href="resourceList.html"  class="worksubmenu nohide" style="display:none;">资源</a>
28
            <a href="articalList.html"  class="worksubmenu nohide" style="display:none;">文章</a>
27
            <a href="resourceList.html"  class="worksubmenu" >资源</a>
28
            <a href="articalList.html"  class="worksubmenu " >文章</a>
29
            <a href="needList.html"  class="worksubmenu subcolor">需求</a>
29
            <a href="needList.html"  class="worksubmenu subcolor">需求</a>
30
        </div>
30
        </div>
31
        <div class="workcon">
31
        <div class="workcon">