jack 7 年 前
コミット
bae8ec66aa
共有3 個のファイルを変更した27 個の追加9 個の削除を含む
  1. 19 7
      js/attention-list.js
  2. 2 0
      js/resourceIssue.js
  3. 6 2
      js/resourceShow.js

+ 19 - 7
js/attention-list.js

@ -146,15 +146,27 @@ $(function() {
146 146
	/*资源数据遍历*/
147 147
	function ResourcesEach(datalistd) {
148 148
		$.each(datalistd, function(index, item) {
149

149
			var oName;
150 150
			/*获取头像*/
151 151
			if(item.resource.images.length) {
152
				var img = "/images/resource/" + item.resource.resourceId + "_s.jpg";
152
				var img ='/data/resource/' + item.resource.images[0].imageSrc 
153 153
			} else {
154 154
				var img = "../images/default-resource.jpg";
155 155
			}
156

157
			var title = item.resource.editProfessor.title || "";
156
			if(item.resource.editProfessor) {
157
				var stl = autho(item.resource.editProfessor.authType,item.resource.editProfessor.orgAuth, item.resource.editProfessor.authStatus);
158
				oName=item.resource.editProfessor.name;
159
			}else {
160
				var stl={};
161
				stl.sty="";
162
				stl.title="";
163
					if(item.resource.organization.authStatus==3) {	
164
						stl.sty="authicon-com-ok";
165
						stl.title="认证企业";	
166
					}
167
					oName=item.resource.organization.name;
168
				 }
169
			/*var title = item.resource.editProfessor.title || "";
158 170
			var office = item.resource.editProfessor.office || "";
159 171
			var orgName = item.resource.editProfessor.orgName || "";
160 172
			var address = item.resource.editProfessor.address || "";
@ -170,7 +182,7 @@ $(function() {
170 182
			}
171 183
			if(address != "") {
172 184
				address = " | " + address;
173
			}
185
			}*/
174 186

175 187
			var li = document.createElement('li');
176 188

@ -179,8 +191,8 @@ $(function() {
179 191
				'<div class="mediaBody" style="float:left;width:450px;overflow:hidden;">' +
180 192
				'<span class=" ellipsisSty listtit">' + item.resource.resourceName + '</span>' +
181 193
				'<p class="ellipsisSty listtit2">' + item.resource.supportedServices + '</p>' +
182
				'<span class="listtit">' + item.resource.editProfessor.name + '<em class="authicon authicon-cu" style="position:absolute;margin:4px 0 0 2px ;"></em></span>' +
183
				'<p class="listtit2"><span>' + title + '</span><span>' + office + '</span><span>' + orgName + '</span><span>' + address + '</span></p>' +
194
				'<span class="listtit">' +oName+ '<em class="authiconNew '+stl.sty+'" title="'+stl.title+'"></em></span>' +
195
				//'<p class="listtit2"><span>' + title + '</span><span>' + office + '</span><span>' + orgName + '</span><span>' + address + '</span></p>' +
184 196
				'</div></a></li>';
185 197
			$("#resources").append(li);
186 198
			

+ 2 - 0
js/resourceIssue.js

@ -233,6 +233,8 @@ $(document).ready(function() {
233 233
								}
234 234
								$("#keyList ul").html(oSr);
235 235
							}
236
						}else {
237
							$("#keyList ul").html("");
236 238
						}
237 239
					},
238 240
					"data": {

+ 6 - 2
js/resourceShow.js

@ -222,8 +222,10 @@ $(document).ready(function() {
222 222
							if($html[n].article.articleType==1) {
223 223
								var stl = autho(data.data.authType, data.data.orgAuth, data.data.authStatus);
224 224
							}else {
225
								var stl={};
226
								stl.sty="";
227
								stl.title="";
225 228
								if(data.data.authStatus==3) {
226
									var stl={};
227 229
									stl.sty="authicon-com-ok";
228 230
									stl.title="认证企业";
229 231
								}
@ -294,8 +296,10 @@ $(document).ready(function() {
294 296
	function interestingResourcesHtml($respond) {
295 297
		for(var i = 0; i < $respond.length; i++) {
296 298
			if($respond[i].organization) {
299
				var stl={};
300
				stl.sty="";
301
				stl.title="";
297 302
				if($respond[i].organization.authStatus==3) {
298
					var stl={};
299 303
					stl.sty="authicon-com-ok";
300 304
					stl.title="认证企业";
301 305
				}