Browse Source

Merge remote-tracking branch 'origin/test'

Conflicts:
	e/a.html
jack 7 years ago
parent
commit
490d0b9c91
3 changed files with 12 additions and 6 deletions
  1. 2 1
      cmp-portal/js/cmp-updateinfo.js
  2. 6 2
      e/a.html
  3. 4 3
      e/r.html

+ 2 - 1
cmp-portal/js/cmp-updateinfo.js

@ -19,8 +19,9 @@ $(document).ready(function() {
19 19
					console.log(data);
20 20
					var $data = data.data;
21 21
					$(".h1Font").text($data.name);
22
					var num=new Date().getTime();
22 23
					if($data.hasOrgLogo) {
23
						$("#oimg").attr("src", "/images/org/" + $data.id + ".jpg");
24
						$("#oimg").attr("src", "/images/org/" + $data.id + ".jpg?"+num);
24 25
					}
25 26
					if($data.orgUrl) {
26 27
						$("#inteAddress").val($data.orgUrl);

+ 6 - 2
e/a.html

@ -170,10 +170,14 @@
170 170
							document.getElementById('name').innerHTML = $data.forShort;
171 171
						}else{
172 172
							document.getElementById('name').innerHTML = $data.name;
173
						}
173
174
						}
175
						var mgimg="../images/default-icon.jpg";
174 176
						if($data.hasOrgLogo) {
175
							document.getElementById("companyImg").src= "/images/org/" + $data.id + ".jpg";
177
							mgimg="/images/org/" + $data.id + ".jpg";
176 178
						}
179
						document.getElementById("messImg").classList.add("cmpHead");
180
						document.getElementById("messImg").innerHTML='<div class="boxBlock" style="width:50px;height:50px;"><img class="boxBlockimg" id="companyImg" src="'+ mgimg+'"></div>'
177 181
						if($data.authStatus == 3) {
178 182
							document.getElementById("auth").classList.add("authicon-com-ok");
179 183
						}

+ 4 - 3
e/r.html

@ -208,11 +208,12 @@ $(document).ready(function() {
208 208
						if(mydata.organization.subject){
209 209
							othisOther.innerHTML = (mydata.organization.subject).replace(/,/, " | ");
210 210
						}
211
						othisPic.classList.add("cmpHead");
212
						othisPic.innerHTML='<div class="boxBlock" style="width:50px;height:50px;"><img class="boxBlockimg" id="companyImg" src="../images/default-icon.jpg"></div>'
211
						var mgimg="../images/default-icon.jpg";
213 212
						if(mydata.organization.hasOrgLogo) {
214
							document.getElementById("companyImg").src= "/images/org/" + mydata.organization.id + ".jpg";
213
							mgimg="/images/org/" + mydata.organization.id + ".jpg";
215 214
						}
215
						othisPic.classList.add("cmpHead");
216
						othisPic.innerHTML='<div class="boxBlock" style="width:50px;height:50px;"><img class="boxBlockimg" id="companyImg" src="'+ mgimg+'"></div>'
216 217
						if(mydata.organization.authStatus==3){
217 218
							oauthFlag.classList.add("authicon-com-ok");	
218 219
						}