ソースを参照

点击机构浏览

jack 8 年 前
コミット
e79e064051
共有2 個のファイルを変更した10 個の追加3 個の削除を含む
  1. 1 1
      information-brow.html
  2. 9 2
      js/information.brow.js

+ 1 - 1
information-brow.html

@ -46,7 +46,7 @@
46 46
							<a class="named proName" id="nameS"></a>
47 47
							<a class="modify proModify"></a>
48 48
							<div class="position proPosition"><span id="office"></span ><span id="titleS"></span ></div>				
49
					<div class="science proScience"><span id="industryS"></span ><span id="orgNameS" style="cursor:pointer"></span ></div>			
49
					<div class="science proScience"><span id="industryS"></span ><span id="orgNameS"></span ></div>			
50 50
					<div class="address proAddress" id="address"></div>					
51 51
				</div>
52 52
				<div class="coulstbtn floatL" style="position: absolute;bottom: 20px;">

+ 9 - 2
js/information.brow.js

@ -2,7 +2,7 @@ $(function() {
2 2
	loginStatus();//判断个人是否登录
3 3
	var userid = $.cookie("userid");
4 4
	var professorId = GetQueryString("professorId");
5
	var name,orgId;
5
	var name,orgId,orgAuth;
6 6
	if(userid == professorId) {
7 7
		$("#conbtn,.attentBtn").hide();
8 8
	}
@ -434,6 +434,10 @@ $(function() {
434 434
			if($data.success) {
435 435
				var $info = $data.data;
436 436
				orgId=$info.orgId;
437
				orgAuth=$info.orgAuth;
438
				if(orgAuth==1){
439
					$("#orgNameS").css("cursor","pointer");
440
				}
437 441
				if($info) {
438 442
					if($info.authType == 1) {
439 443
						$(".yesshow").show();
@ -1175,7 +1179,10 @@ $(function() {
1175 1179
	}
1176 1180
/*点击机构名字进入企业浏览页面*/
1177 1181
$("#orgNameS").click(function(){
1178
	location.href="companybrowinfor.html?orgId="+orgId;
1182
	if(orgAuth==1){
1183
		location.href="companybrowinfor.html?orgId="+orgId;
1184
	}
1185
	
1179 1186
})
1180 1187
		
1181 1188
})