Parcourir la Source

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

wangaidan 8 ans auparavant
Parent
commit
e1bbaea961
2 fichiers modifiés avec 35 ajouts et 7 suppressions
  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,7 +253,7 @@
253 253
    	<div class="proinfomation floatL">
254 254
    		<div class="clearfix">
255 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 257
    		</div>
258 258
			<div class="position"><span id="foot_protitle"></span><span></span ></div>				
259 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,7 +914,7 @@ if(resou==0&&ass==0){
914 914
				success:function(response){
915 915
					
916 916
					var myData = response["data"];
917
					console.log(myData);
917
//					console.log(myData);
918 918
					$("#foot_proname").html(myData["name"]);
919 919
					if(myData["address"]){
920 920
						$("#foot_proaddress").html(' | '+myData["address"]);
@ -937,11 +937,39 @@ if(resou==0&&ass==0){
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 975
					if(myData["hasHeadImage"] == 0){