Parcourir la Source

分享页面企业logo路径错误问题

luyanan 7 ans auparavant
Parent
commit
bcd181178f
7 fichiers modifiés avec 40 ajouts et 15 suppressions
  1. 2 2
      articalShow.html
  2. 1 1
      css/genindex.css
  3. 2 2
      e/a.html
  4. 1 1
      e/c.html
  5. 2 2
      e/p.html
  6. 2 2
      e/r.html
  7. 30 5
      js/information.js

+ 2 - 2
articalShow.html

@ -81,7 +81,7 @@
81 81
								</li>
82 82
								<li><a href id="weibo" target="_blank"><em class="operateicon icon-sina"></em></a></li>
83 83
								<!--<li><em class="operateicon icon-qq"></em></li>-->
84
								<li><em class="operateicon icon-totop upTop"></em></li>
84
								<!--<li><em class="operateicon icon-totop upTop"></em></li>-->
85 85
							</ul>
86 86
						</div>
87 87
						<div class="share-bottom"></div>
@ -176,7 +176,7 @@
176 176
<script type="text/javascript" src="js/articalShow.js"></script>
177 177
<script type="text/javascript">
178 178
	$(function() {
179
		$('.upTop').click(function(){$('html,body').animate({scrollTop: '0px'}, 800);}); //置顶
179
//		$('.upTop').click(function(){$('html,body').animate({scrollTop: '0px'}, 800);}); //置顶
180 180
		$('.wordHave').click(function(){$('html,body').animate({scrollTop: ($('.offmsg').outerHeight(true)+60)+'px'}, 800);}); //留言
181 181
		$('.shareWeixin').hover(function(){$('.shareCode').stop(true,false).fadeToggle();});//微信分享
182 182
		//微信分享

+ 1 - 1
css/genindex.css

@ -354,7 +354,7 @@ ul.tagList>li .h2Font{color:#666}
354 354
.shareInfo .madiaInfo .h1Font{display:inline-block;max-width: 200px;font-size: 16px;color:#fff;}
355 355
.shareInfo .madiaInfo .authiconNew{top:-8px;}
356 356
.shareBlock>ul.shareWays{width:50%;cursor: pointer;text-align:right;}
357
.shareBlock>ul.shareWays>li{float:left;padding:16px 0 10px;width:19%;color:#fff;}
357
.shareBlock>ul.shareWays>li{float:left;padding:16px 0 10px;width:24%;color:#fff;}
358 358
.shareBlock>ul.shareWays>li .message{position:relative;top:-5px;left:6px;}
359 359
/*白色icon*/
360 360
.operateicon.icon-message{background-image:url(../images/g_article_button_liuyan_nor.png);}

+ 2 - 2
e/a.html

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

+ 1 - 1
e/c.html

@ -168,7 +168,7 @@ $(document).ready(function() {
168 168
			}
169 169
		});
170 170
	}
171
	/*应用行业及领域及企业质*/
171
	/*应用行业及领域及企业质*/
172 172
	function indu(oString, oSelector) {
173 173
		var arr = oString.split(",");
174 174
		var oArr = new Array();

+ 2 - 2
e/p.html

@ -390,7 +390,7 @@ $(document).ready(function() {
390 390
							var oString = '<div class="flexCenter OflexCenter clearfix">'
391 391
							oString += '<div class="madiaHead paperHead"></div>'
392 392
							oString += '<div class="madiaInfo OmadiaInfo"><p class="ellipsisSty h1Font">' + obj[i].name + '</p>'
393
							oString += '<p class="ellipsisSty h2Font">作者:' + obj[i].authors + '</p>'
393
							oString += '<p class="ellipsisSty h2Font">作者:' + obj[i].authors.substring(0, obj[i].authors.length - 1) + '</p>'
394 394
							oString += '</div></div>'
395 395
							liItem.innerHTML = oString;
396 396
							document.getElementById("paperShow").appendChild(liItem);
@ -430,7 +430,7 @@ $(document).ready(function() {
430 430
							var oString = '<div class="flexCenter OflexCenter clearfix">'
431 431
							oString += '<div class="madiaHead patentHead"></div>'
432 432
							oString += '<div class="madiaInfo OmadiaInfo"><p class="ellipsisSty h1Font">' + obj[i].name + '</p>'
433
							oString += '<p class="ellipsisSty h2Font">发明人:' + obj[i].authors + '</p>'
433
							oString += '<p class="ellipsisSty h2Font">发明人:' + obj[i].authors.substring(0, obj[i].authors.length - 1) + '</p>'
434 434
							oString += '</div></div>'
435 435
							liItem.innerHTML = oString;
436 436
							document.getElementById("patentShow").appendChild(liItem);

+ 2 - 2
e/r.html

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

+ 30 - 5
js/information.js

@ -1,9 +1,7 @@
1 1
$(function() {
2 2
	loginStatus();//判断个人是否登录
3 3
	//1获取数据
4
	var nameD;
5
	var orgD;
6
	var authSD
4
	var authSD;
7 5
	var userid = $.cookie("userid");
8 6
	if(userid) {
9 7
		//获取数据,填充页面
@ -17,6 +15,7 @@ $(function() {
17 15
			if($data.success) {
18 16
				console.log($data);
19 17
				var $info = $data.data;
18
				authSD = $info.orgAuth;
20 19
				if($info) {
21 20
					//展示专家的信息
22 21
					if($info.hasHeadImage){
@ -167,9 +166,33 @@ $(function() {
167 166
//				return;
168 167
//			}
169 168
//		}
170
		personUpdata();
169
		if(authSD==1) {
170
			$.MsgBox.Confirm("提示", "您修改了所在机构,员工认证即将失效,确认修改?", personUpdata);
171
			return;
172
		} else {
173
			personUpdata();
174
		}
175
		
171 176
	});
177
	function upStatus() {
178
		$.ajax({
179
			url:"/ajax/professor/removeOrgAuth",
180
			dataType: 'json', //数据格式类型
181
			type: 'post', //http请求类型
182
			data: {
183
				id: userid
184
			},
185
			timeout: 10000, //超时设置				
186
			success: function(data) {
187
				console.log(data);
188
				if(data.success) {
189
					
190
				} else {
172 191

192
				}
193
			}
194
		})
195
	}
173 196
	function personUpdata() {
174 197
		var $data = {};
175 198
		$data.name = $("#name").text();
@ -185,7 +208,9 @@ $(function() {
185 208
		if($("#City input[name=cho_City]").val() != "请选择城市") {
186 209
			$data.address = $("#City input[name=cho_City]").val(); //市
187 210
		}
188
		
211
		if(authSD==1) {
212
			upStatus();
213
		}
189 214
		var userid = $.cookie("userid");
190 215
		if(userid) {
191 216
			$data.id = userid;