Browse Source

分享相关修改完善

luyanan 7 years ago
parent
commit
edbe6aa5db
8 changed files with 11 additions and 7 deletions
  1. 3 1
      e/a.html
  2. 1 1
      e/c.html
  3. 1 1
      e/l.html
  4. 1 1
      e/p.html
  5. 2 1
      e/r.html
  6. 1 1
      e/z.html
  7. 1 0
      js/patentShow.js
  8. 1 1
      patentShow.html

+ 3 - 1
e/a.html

@ -171,8 +171,10 @@
171 171
						}else{
172 172
							document.getElementById('name').innerHTML = $data.name;
173 173
						}
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>'
174 176
						if($data.hasOrgLogo) {
175
							document.getElementById("messImg").style.backgroundImage = "url(../images/org/" + $data.id + ".jpg" + ")";
177
							document.getElementById("companyImg").src= baseUrl + "/images/org/" + $data.id + ".jpg";
176 178
						}
177 179
						if($data.authStatus == 3) {
178 180
							document.getElementById("auth").classList.add("authicon-com-ok");

+ 1 - 1
e/c.html

@ -156,7 +156,7 @@ $(document).ready(function() {
156 156
					document.title=$data.name + "-" + proOther; 
157 157
					//微信再次分享
158 158
					shareTitle = document.getElementById("companyName").innerText;
159
					descContent = document.getElementById("industryShow").innerText.substring(0,20);
159
					descContent = document.getElementById("industryShow").innerText.substring(0,40);
160 160
					if(document.getElementById("oimg").src !="../images/default-icon.jpg"){
161 161
						imgUrl= document.getElementById("oimg").src;
162 162
					}

+ 1 - 1
e/l.html

@ -121,7 +121,7 @@ $(document).ready(function() {
121 121
	function paperHtml($da) {
122 122
		//微信再次分享配置
123 123
		shareTitle = $da.name;
124
		descContent = $da.summary.substring(0,20);
124
		descContent = $da.summary.substring(0,40);
125 125
		
126 126
		document.title = $da.name; 
127 127
		document.getElementById("paperName").innerHTML = $da.name; //名字

+ 1 - 1
e/p.html

@ -203,7 +203,7 @@ $(document).ready(function() {
203 203
204 204
					//微信再次分享
205 205
					shareTitle = document.getElementById("proName").innerText;
206
					descContent = document.getElementById("subjectShow").innerText.substring(0,20);
206
					descContent = document.getElementById("subjectShow").innerText.substring(0,40);
207 207
					
208 208
				}
209 209
			},

+ 2 - 1
e/r.html

@ -210,8 +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 214
						if(mydata.organization.hasOrgLogo) {
214
							othisPic.style.backgroundImage = 'url(../images/org/' + mydata.organization.id + '.jpg)';
215
							document.getElementById("companyImg").src= baseUrl + "/images/org/" + mydata.organization.id + ".jpg";
215 216
						}
216 217
						if(mydata.organization.authStatus==3){
217 218
							oauthFlag.classList.add("authicon-com-ok");	

+ 1 - 1
e/z.html

@ -131,7 +131,7 @@ $(document).ready(function() {
131 131
	function patentHtml($da) {
132 132
		//微信再次分享配置
133 133
		shareTitle = $da.name;
134
		descContent = $da.summary.substring(0,20);
134
		descContent = $da.summary.substring(0,40);
135 135
		
136 136
		document.title = $da.name; 
137 137
		document.getElementById("patentName").innerHTML = $da.name; //名字

+ 1 - 0
js/patentShow.js

@ -84,6 +84,7 @@ $(document).ready(function() {
84 84
		}
85 85
		if($data.name) {
86 86
			$("#paperName").text($data.name);
87
			document.title=$data.name;
87 88
		}
88 89
		$("#pageview").text($data.pageViews);
89 90
		if($data.reqCode) {

+ 1 - 1
patentShow.html

@ -4,7 +4,7 @@
4 4
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
5 5
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
6 6
<meta http-equiv="X-UA-Compatible" content="IE=edge">
7
<title>浏览论文-科袖网</title>
7
<title>浏览专利-科袖网</title>
8 8
<link rel="shortcut icon" type="image/x-icon" href="images/favicon.png" media="screen" />
9 9
<link href="css/bootstrap.min.css" rel="stylesheet">
10 10
<link type="text/css" href="css/common.css" rel="stylesheet">