Browse Source

调整【发现】、【资源浏览页】、【文章浏览页】的企业logo的显示样式为居中

luyanan 7 years ago
parent
commit
5b5a30e346
5 changed files with 34 additions and 24 deletions
  1. 2 0
      js/articalPreview.js
  2. 2 0
      js/articalShow.js
  3. 5 3
      js/discover.js
  4. 10 8
      js/resourcePreview.js
  5. 15 13
      js/resourceShow.js

+ 2 - 0
js/articalPreview.js

@ -79,6 +79,8 @@ $(function() {
79 79
					$("#Qname").text(data.data.name);
80 80
					if(data.data.hasOrgLogo) {
81 81
						$("#companyImg").attr("src", "/images/org/" + data.data.id + ".jpg");
82
					}else{
83
						$("#companyImg").attr("src", "/images/default-icon.jpg");
82 84
					}
83 85
					if(data.data.authStatus==3){
84 86
						$("#QauthFlag").addClass("authicon-com-ok").attr("title", "认证企业");;	

+ 2 - 0
js/articalShow.js

@ -121,6 +121,8 @@ $(function() {
121 121
						$(".userimg").attr("style","background: #fff;")
122 122
						$(".userimg").html('<div class="boxBlock" style="width:48px;height:48px"><img class="boxBlockimg" src="" id="companyImg2"></div>');
123 123
						$("#companyImg,#companyImg2").attr("src", "/images/org/" + data.data.id + ".jpg");
124
					}else{
125
						$("#companyImg,#companyImg2").attr("src", "/images/default-icon.jpg");
124 126
					}
125 127
					if(data.data.authStatus==3){
126 128
						$("#QauthFlag,.labels").addClass("authicon-com-ok").attr("title", "认证企业");;	

+ 5 - 3
js/discover.js

@ -145,10 +145,12 @@ $(function() {
145 145
					}else{
146 146
						$itemlist.find("#nameSpan").text(data.data.name);
147 147
					}
148
					$itemlist.find("#userimg").attr("style", "background:#fff");
149
					$itemlist.find("#userimg").html('<div class="boxBlock"><img class="boxBlockimg companyImg" src=""></div>');
148 150
					if(data.data.hasOrgLogo) {
149
						$itemlist.find("#userimg").attr("style", "background:#fff");
150
						$itemlist.find("#userimg").html('<div class="boxBlock"><img class="boxBlockimg" src="" id="companyImg"></div>');
151
						$itemlist.find("#companyImg").attr("src", "/images/org/" + data.data.id + ".jpg");
151
						$itemlist.find(".companyImg").attr("src", "/images/org/" + data.data.id + ".jpg");
152
					}else{
153
						$itemlist.find(".companyImg").attr("src", "/images/default-icon.jpg");
152 154
					}
153 155
					$itemlist.find("#userimg").attr("href", "cmpInforShow.html?orgid=" + data.data.id);
154 156
					$itemlist.find("#userUrl").attr("href", "cmpInforShow.html?orgid=" + data.data.id);

+ 10 - 8
js/resourcePreview.js

@ -83,14 +83,16 @@ $(document).ready(function() {
83 83
		}else {
84 84
			$("#enterprise,#resPerson").show();
85 85
			if($da.organization.hasOrgLogo) {
86
						$("#companyImg").attr("src", "/images/org/" + $da.organization.id + ".jpg");
87
					}
88
					if($da.organization.authStatus==3){
89
						$("#QauthFlag").addClass("authicon-com-ok").attr("title", "认证企业");	
90
					}
91
					$("#Qname").text($da.organization.name);
92
					$("#Qindustry").text($da.organization.subject);
93
					$("#QorgType").text(orgTypeShow[$da.organization.orgType])
86
				$("#companyImg").attr("src", "/images/org/" + $da.organization.id + ".jpg");
87
			}else{
88
				$("#companyImg").attr("src", "/images/default-icon.jpg");
89
			}
90
			if($da.organization.authStatus==3){
91
				$("#QauthFlag").addClass("authicon-com-ok").attr("title", "认证企业");	
92
			}
93
			$("#Qname").text($da.organization.name);
94
			$("#Qindustry").text($da.organization.subject);
95
			$("#QorgType").text(orgTypeShow[$da.organization.orgType])
94 96
		}
95 97
		if($da.spec) { //厂商型号
96 98
			$("#modelNumber").text($da.spec).parents("li").show();

+ 15 - 13
js/resourceShow.js

@ -87,19 +87,21 @@ $(document).ready(function() {
87 87
			$("#enterprise,#resPerson").show();
88 88
			$(".qiyego").attr("href","userInforShow.html?orgId="+$da.organization.id);
89 89
			if($da.organization.hasOrgLogo) {
90
						$("#companyImg").attr("src", "/images/org/" + $da.organization.id + ".jpg");
91
					}
92
					if($da.organization.authStatus==3){
93
						$("#QauthFlag").addClass("authicon-com-ok").attr("title", "认证企业");	
94
					}
95
					if($da.organization.forShort) {
96
						$("#Qname").text($da.organization.forShort).attr("href","cmpInforShow.html?orgId="+$da.organization.id);
97
					}else{
98
						$("#Qname").text($da.organization.name).attr("href","cmpInforShow.html?orgId="+$da.organization.id);
99
					}
100
					
101
					$("#Qindustry").text($da.organization.subject);
102
					$("#QorgType").text(orgTypeShow[$da.organization.orgType])
90
				$("#companyImg").attr("src", "/images/org/" + $da.organization.id + ".jpg");
91
			}else{
92
				$("#companyImg").attr("src", "/images/default-icon.jpg");
93
			}
94
			if($da.organization.authStatus==3){
95
				$("#QauthFlag").addClass("authicon-com-ok").attr("title", "认证企业");	
96
			}
97
			if($da.organization.forShort) {
98
				$("#Qname").text($da.organization.forShort).attr("href","cmpInforShow.html?orgId="+$da.organization.id);
99
			}else{
100
				$("#Qname").text($da.organization.name).attr("href","cmpInforShow.html?orgId="+$da.organization.id);
101
			}
102
			
103
			$("#Qindustry").text($da.organization.subject);
104
			$("#QorgType").text(orgTypeShow[$da.organization.orgType])
103 105
		}
104 106
		if($da.spec) { //厂商型号
105 107
			$("#modelNumber").text($da.spec).parents("li").show();