浏览代码

专家信息浏览页面底部咨询专家标识

luyanan 8 年之前
父节点
当前提交
0aa779689d
共有 2 个文件被更改,包括 30 次插入7 次删除
  1. 1 1
      information-brow.html
  2. 29 6
      js/information.brow.js

+ 1 - 1
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
    			<em class="" id="foot_promodify"></em>
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>								

+ 29 - 6
js/information.brow.js

@ -923,7 +923,7 @@ if(resou==0&&ass==0){
923 923
				success:function(response){
924 924
					
925 925
					var myData = response["data"];
926
					console.log(myData);
926
					//console.log(myData);
927 927
					$("#foot_proname").html(myData["name"]);
928 928
					if(myData["address"]){
929 929
						$("#foot_proaddress").html(' | '+myData["address"]);
@ -946,11 +946,34 @@ if(resou==0&&ass==0){
946 946
					
947 947
					
948 948
					//是否认证
949
					if(myData["authentication"] == true){
950
						$("#foot_promodify").addClass("authicon");
951
					}else {
952
						$("#foot_promodify").addClass("unauthicon");
953
					}
949
//					if(myData["authentication"] == true){
950
//						$("#foot_promodify").addClass("authicon");
951
//					}else {
952
//						$("#foot_promodify").addClass("unauthicon");
953
//					}
954
					if(myData.authType) {//专家
955
						
956
						$("#foot_promodify").addClass('authicon authicon-cu');
957
												
958
					} else {//普通用户
959
						if(myData.authStatus) {//身份已认证
960
							if(myData.authentication == 1) {//科研工作者
961
								
962
								$("#foot_promodify").addClass('authicon2 authicon-mana');
963
																		
964
							} else if(myData.authentication == 2) {//企业专家
965
								
966
								$("#foot_promodify").addClass('authicon2 authicon-staff');
967
								
968
							} else {//学生
969
								$("#foot_promodify").addClass('authicon2 authicon-stu');
970
																
971
							}
972
						}else{//身份未认证
973
							
974
						}
975
						
976
					};
954 977
					
955 978
					//头像
956 979
					if(myData["hasHeadImage"] == 0){