Browse Source

咨询入口专家信息,逗号bug

dell 8 years ago
parent
commit
b65703eb21
1 changed files with 10 additions and 7 deletions
  1. 10 7
      src/main/webapp/js/information.brow.js

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

@ -753,23 +753,26 @@ if(resou==0&&ass==0){
753 753
					var myData = response["data"];
754 754
					console.log(myData);
755 755
					$("#foot_proname").html(myData["name"]);
756
					if(myData["address"]){
757
						$("#foot_proaddress").html(' | '+myData["address"]);
758
					}
756 759
					if(myData["title"]) {
757 760
						$("#foot_protitle").html(myData["title"]);
758 761
					}
759 762
					if(myData["department"]){
760
						if(myData["title"]){
761
							$("#foot_prodepar").html(','+myData["department"]);
762
						}
763
						
763 764
						$("#foot_prodepar").html(myData["department"]);
764 765
					}
765 766
					if(myData["orgName"]){
766
						$("#foot_proorgname").html(','+myData["orgName"]);
767
					}
768
					if(myData["address"]){
769
						$("#foot_proaddress").html(' | '+myData["address"]);
767
						if(myData["department"] == null || myData["department"] ==''){
768
							$("#foot_proorgname").html(myData["orgName"]);
769
						}else {
770
							$("#foot_proorgname").html(''+myData["orgName"]);
771
						}
770 772
					}
771 773
					
772 774
					
775
					
773 776
					//是否认证
774 777
					if(myData["authentication"] == true){
775 778
						$("#foot_promodify").addClass("authicon");