Browse Source

Merge branch 'master' of http://121.42.53.174:3000/bulomakaka/ekexiu.com.portal.git

bulomakaka 8 years ago
parent
commit
2ff86265f5
2 changed files with 32 additions and 19 deletions
  1. 16 10
      src/main/webapp/js/information.brow.js
  2. 16 9
      src/main/webapp/js/information.js

+ 16 - 10
src/main/webapp/js/information.brow.js

@ -391,9 +391,10 @@ loginStatus();//读取用户头像
391 391
								$("a:contains('个人简介')").hide();
392 392
							}							
393 393
							//展示专家的学科							
394
							if($info.subject){
395
								if($info.authentication == 1){
394
							if($info.authentication == 1){
395
								if($info.subject){
396 396
									subjectShow($info.subject);
397
									
397 398
								}else{
398 399
									$("span:contains('学术领域')").parents(".introduction").hide();
399 400
									$("a:contains('学术领域')").hide();
@ -404,23 +405,27 @@ loginStatus();//读取用户头像
404 405
								$("a:contains('学术领域')").hide();
405 406
							}
406 407
							
407
							//研究方向						
408
							if ($info.researchAreas.length) {
409
								if($info.authentication == 1) {
408
							
409
							//研究方向	
410
							if($info.authentication == 1) {
411
								if ($info.researchAreas.length) {
410 412
									researchAreaShow($info.researchAreas,$info.editResearchAreaLogs);
411
								}else{
413
									
414
								}else{							
412 415
									$("span:contains('研究方向')").parents(".introduction").hide();
413 416
									$("a:contains('研究方向')").hide();
414 417
								}
415 418
								
416
							}else{							
419
							}else{
417 420
								$("span:contains('研究方向')").parents(".introduction").hide();
418 421
								$("a:contains('研究方向')").hide();
419 422
							}
420
							//展示专家的行业							
421
							if($info.industry){
422
								if($info.authentication == 1){
423
							
424
							//展示专家的行业
425
							if($info.authentication == 1){
426
								if($info.industry){
423 427
									industryShow($info.industry);
428
									
424 429
								}else{
425 430
									$("span:contains('应用行业')").parents(".introduction").hide();
426 431
									$("a:contains('应用行业')").hide();
@ -431,6 +436,7 @@ loginStatus();//读取用户头像
431 436
								$("a:contains('应用行业')").hide();
432 437
							}
433 438
							
439
							
434 440
							//教育北京						
435 441
							if ($info.edus.length) {
436 442
								eduBgShow($info.edus);

+ 16 - 9
src/main/webapp/js/information.js

@ -586,35 +586,42 @@ $.get("/ajax/professor/info/" + userid, function($data) {
586 586
			}else{
587 587
				$("#descpS").css("min-height","0px");
588 588
			}
589
			if($info.subject){
590
				if($info.authentication == 1){					
589
			console.log($info.authentication);
590
			
591
				if($info.authentication == 1){	
592
					if($info.subject){
591 593
					subjectShow($info.subject);
592
				}else{
594
					}
595
				}else{					
593 596
					$("span:contains('学术领域')").parents(".introduction").hide();
594 597
					$("a:contains('学术领域')").hide();
595 598
				}
596 599
				
597
			}			
600
						
598 601
			//研究方向						
599
			if ($info.researchAreas.length) {
602
			
600 603
				if($info.authentication == 1) {
604
					if ($info.researchAreas.length) {
601 605
					researchAreaShow($info.researchAreas,$info.editResearchAreaLogs);
606
					}
602 607
				}else{
603 608
					$("span:contains('研究方向')").parents(".introduction").hide();
604 609
					$("a:contains('研究方向')").hide();
605 610
				}
606 611
				
607
			}
612
			
608 613
			//展示专家的行业							
609
			if($info.industry){
614
			
610 615
				if($info.authentication == 1){
616
					if($info.industry){
611 617
					industryShow($info.industry);
612
				}else{
618
					}	
619
				}else{					
613 620
					$("span:contains('应用行业')").parents(".introduction").hide();
614 621
					$("a:contains('应用行业')").hide();
615 622
				}
616 623
				
617
			}						
624
								
618 625
			//教育背景
619 626
			if ($info.edus) {
620 627
				eduBgShow($info.edus);