Browse Source

专家信息底部咨询的认证bug

wangaidan 8 years ago
parent
commit
e1bbaea961
2 changed files with 35 additions and 7 deletions
  1. 1 1
      src/main/webapp/information-brow.html
  2. 34 6
      src/main/webapp/js/information.brow.js

+ 1 - 1
src/main/webapp/information-brow.html

253
    	<div class="proinfomation floatL">
253
    	<div class="proinfomation floatL">
254
    		<div class="clearfix">
254
    		<div class="clearfix">
255
    			<a class="authobject named" id="foot_proname"></a>
255
    			<a class="authobject named" id="foot_proname"></a>
256
    			<em class=" authicon-cu" id="foot_promodify"></em>
256
    			<a class="" id="foot_promodify"></a>
257
    		</div>
257
    		</div>
258
			<div class="position"><span id="foot_protitle"></span><span></span ></div>				
258
			<div class="position"><span id="foot_protitle"></span><span></span ></div>				
259
			<div class="science"><span id="foot_prodepar"></span><span id="foot_proorgname"></span ><span class="address" id="foot_proaddress"></span></div>								
259
			<div class="science"><span id="foot_prodepar"></span><span id="foot_proorgname"></span ><span class="address" id="foot_proaddress"></span></div>								

+ 34 - 6
src/main/webapp/js/information.brow.js

914
				success:function(response){
914
				success:function(response){
915
					
915
					
916
					var myData = response["data"];
916
					var myData = response["data"];
917
					console.log(myData);
917
//					console.log(myData);
918
					$("#foot_proname").html(myData["name"]);
918
					$("#foot_proname").html(myData["name"]);
919
					if(myData["address"]){
919
					if(myData["address"]){
920
						$("#foot_proaddress").html(' | '+myData["address"]);
920
						$("#foot_proaddress").html(' | '+myData["address"]);
937
					
937
					
938
					
938
					
939
					//是否认证
939
					//是否认证
940
					if(myData["authentication"] == true){
941
						$("#foot_promodify").addClass("authicon");
942
					}else {
943
						$("#foot_promodify").addClass("unauthicon");
944
					}
940
//					if(myData["authentication"] == true){
941
//						$("#foot_promodify").addClass("authicon");
942
//					}else {
943
//						$("#foot_promodify").addClass("unauthicon");
944
//					}
945
					if(myData.authType) {//专家
946
						
947
						$("#foot_promodify").addClass('authicon authicon-cu');
948
												
949
					} else {//普通用户
950
						if(myData.authStatus) {//身份已认证
951
							if(myData.authentication == 1) {//科研工作者
952
								
953
								$("#foot_promodify").addClass('authicon2 authicon-mana');
954
																		
955
							} else if(myData.authentication == 2) {//企业专家
956
								
957
								$("#foot_promodify").addClass('authicon2 authicon-staff');
958
								
959
							} else {//学生
960
								$("#foot_promodify").addClass('authicon2 authicon-stu');
961
																
962
							}
963
						}else{//身份未认证
964
							
965
						}
966
						
967
					};
968
					
969
					
970
					
971
					
972
					
945
					
973
					
946
					//头像
974
					//头像
947
					if(myData["hasHeadImage"] == 0){
975
					if(myData["hasHeadImage"] == 0){