Browse Source

本地暂存

luyanan 7 years ago
parent
commit
c57bcc0576
5 changed files with 244 additions and 29 deletions
  1. 21 3
      cmpInforShow.html
  2. 1 1
      e/a.html
  3. 189 19
      e/c.html
  4. 3 3
      e/p.html
  5. 30 3
      userInforShow.html

+ 21 - 3
cmpInforShow.html

@ -187,9 +187,27 @@
187 187
						<span id="attenNum">68</span>
188 188
					</div>
189 189
				</div>
190
				<ul class="advertItem">
191
					<li><a href="download.html" target="_blank"><img src="images/find_img_xiazai_nor.png" /></a></li>
192
				</ul>
190
				<div class="conBlock conItem">
191
					<div class="form-item otherBlock">
192
						<div class="aboutTit">相关文章</div>
193
						<div class="form-result aboutRes">
194
							<ul id="relateArt">
195
							</ul>
196
						</div>
197
					</div>	
198
				</div>
199
				<div class="conBlock conItem">
200
					<div class="form-item otherBlock">
201
						<div class="aboutTit">您可能感兴趣的企业</div>
202
						<div class="form-result aboutRes">
203
							<ul id="relateCmp">
204
							</ul>
205
						</div>
206
					</div>
207
				</div>
208
				<!--<ul class="advertItem">
209
					<li><a href="download.html" target="_blank"><img src="images/find_img_xiazai_nor.png" /></a></li>
210
				</ul>-->
193 211
			</div>
194 212
		</div>
195 213
	</div>

+ 1 - 1
e/a.html

@ -97,7 +97,7 @@
97 97

98 98
<script type="text/javascript">
99 99
	$(document).ready(function() {
100
		var imgUrl ="";
100
		var imgUrl ="http://www.ekexiu.com/images/logo180.png";
101 101
		var lineLink = document.location.href;
102 102
		var descContent="";
103 103
		var shareTitle;

+ 189 - 19
e/c.html

@ -47,36 +47,43 @@
47 47
			</div>
48 48
		</div>
49 49
		<div class="mainbox">
50
			<div class="infocontit">资源 (<span id="resourceNum">0</span>)</div>
50
			<div class="infocontit">资源</div>
51 51
			<div class="infocon madiaBlock">
52 52
				<ul class="mui-table-view" id="resourceShow">
53 53
			    </ul>
54 54
			</div>
55
			<div class="seeMore displayNone" id="seeMoreResource"><em>查看更多</em></div>
55
			<div class="seeMore displayNone" id="seeMoreResource"><em>查看全部<span id="resourceNum">0</span>个</em></div>
56 56
		</div>
57 57
		<div class="mainbox">
58
			<div class="infocontit">文章 (<span id="articalNum">0</span>)</div>
58
			<div class="infocontit">文章</div>
59 59
			<div class="infocon madiaBlock">
60 60
				<ul class="mui-table-view" id="articelShow">
61 61
			    </ul>
62 62
			</div>
63
			<div class="seeMore displayNone" id="seeMoreArtical"><em>查看更多</em></div>
63
			<div class="seeMore displayNone" id="seeMoreArtical"><em>查看全部<span id="articalNum">0</span>篇</em></div>
64 64
		</div>
65
	    <div class="shareEcode" style="background: #FFFFFF;">
66
	    	<div class="Ecodebox">
67
				<div class="Ecodecon clearfix">
68
					<img src="../images/weixin_code.jpg" />
69
					<div class="codecon">
70
						<h1>「 科袖 」</h1>
71
						<h2>搭建企业与专家的桥梁</h2>
72
						<h3>长按识别科袖公众号</h3>
73
					</div>
74
				</div>
65
		<!--相关文章-->
66
		<div class="mainbox displayNone">
67
			<div class="infocontit">相关文章</div>
68
			<div class="infocon madiaBlock">
69
				<ul class="mui-table-view" id="oArticle">
70
			    </ul>
71
			</div>
72
		</div>
73
		<!--您可能感兴趣的qiye-->
74
		<div class="mainbox displayNone">
75
			<div class="infocontit">您可能感兴趣的企业</div>
76
			<div class="infocon madiaBlock">
77
				<ul class="mui-table-view" id="cmpList">
78
			    </ul>
75 79
			</div>
76
			<div style="margin:20px auto;">
80
		</div>
81
	    <div class="shareEcode">
82
			<img class="Ecodecon" src="../images/ecordCard.jpg" />
83
			<div style="margin:-50px 10px 20px;">
77 84
				<a href="http://a.app.qq.com/o/simple.jsp?pkgname=com.ekexiu.app"><button class="frmbtn frmactive">下载移动客户端</button></a>
78 85
			</div>
79
	    </div>
86
		</div>
80 87
	</div>
81 88
<script type="text/javascript">
82 89
$(document).ready(function() {
@ -87,7 +94,6 @@ $(document).ready(function() {
87 94
	var appid = '';
88 95
	
89 96
	var orgId = GetQueryString("id");
90
	//orgId = "A93B9348F2094D12A6DC9A23F16E1246";
91 97
	companyMessage(orgId);
92 98
	getArticel();
93 99
	getResource();
@ -104,7 +110,6 @@ $(document).ready(function() {
104 110
			if(data.success) {}
105 111
		},
106 112
		"error": function() {
107
			//$.MsgBox.Alert('提示', '链接服务器超时')
108 113
		}
109 114
	});
110 115
	
@ -146,7 +151,7 @@ $(document).ready(function() {
146 151
					
147 152
					/*所在城市*/
148 153
					if($data.city){
149
						document.getElementById("address").innerHTML ='<em class="mui-icon iconfontnew icon-address"></em> ' + $data.city;
154
						document.getElementById("address").innerHTML ='<em class="iconfontnew icon-address"></em> ' + $data.city;
150 155
					}
151 156
					else {
152 157
						document.getElementById("address").style.display = "none";
@ -155,6 +160,8 @@ $(document).ready(function() {
155 160
					/*企业简介*/
156 161
					if($data.descp) {
157 162
						document.getElementById("breifinfo").innerText = $data.descp;
163
					}else{
164
						document.getElementById("breifinfo").parentNode.style.display = "none";
158 165
					}
159 166
					/*应用行业*/
160 167
					var proOther = "";
@ -282,6 +289,169 @@ $(document).ready(function() {
282 289
			}
283 290
		})
284 291
	}
292
    
293
    /*相关文章*/
294
	function relatedArticles() {
295
		$.ajax({
296
			"url": "../ajax/resource/articles",
297
			"type": "GET",
298
			"success": function(data) {
299
				console.log(data);
300
				if(data.success) {
301
					if(data.data.length == 0) {
302
						return;
303
					}
304
					$("#oArticle").parent().removeClass("displayNone");
305
					relatedArticlesHtml(data.data);
306
				}
307
			},
308
			"data": {
309
				"resourceId": resourceId,
310
				"rows": 5
311
			},
312
			dataType: "json",
313
			'error': function() {
314
				$.MsgBox.Alert('提示', '服务器连接超时!');
315
			}
316
		});
317
	}
318
	relatedArticles();
319
	/*相关文章html*/
320
	function relatedArticlesHtml($html) {
321
		for(var i = 0; i < $html.length; i++) {
322
			(function(n) {
323
				var oURL;
324
				if($html[i].article.articleType==1) {
325
					oURL="../ajax/professor/baseInfo/" + $html[i].article.professorId;
326
				}else{
327
					oURL="../ajax/org/" + $html[i].article.orgId;
328
				}
329
				$.ajax({
330
					"url":oURL,
331
					"type": "GET",
332
					"success": function(data) {
333
						if(data.success) {
334
							var cmpname="";
335
							if(data.data.forShort){
336
								cmpname=data.data.forShort;
337
							}else{
338
								cmpname=data.data.name;
339
							}
340
							if($html[n].article.articleType==1) {
341
								var stl = autho(data.data.authType, data.data.orgAuth, data.data.authStatus);
342
							}else {
343
								var stl={};
344
								stl.sty="";
345
								stl.title="";
346
								if(data.data.authStatus==3) {
347
									stl.sty="authicon-com-ok";
348
									stl.title="认证企业";
349
								}
350
							}
351
							var str = ""
352
							str += '<li class="flexCenter OflexCenter" data-id="' + $html[n].article.articleId + '">'
353
							if($html[n].article.articleImg) {
354
								str += '<div class="madiaHead artHead" style="background-image: url(/data/article/' + $html[n].article.articleImg + ')"></div>'
355
							} else {
356
								str += '<div class="madiaHead artHead"></div>'
357
							}
358
							str += '<div class="madiaInfo OmadiaInfo">'
359
							str += '<p class="h1Font ellipsisSty">' + $html[n].article.articleTitle + '</p>'
360
							str += '<p><span class="h2Font">' + cmpname + '</span><em class="authiconNew ' + stl.sty + '" title="' + stl.title + '"></em></p>'
361
							str += '</div></li>'
362
							$("#oArticle").append(str);
363
						}
364
					},
365
					'dataType': "json",
366
					'error': function() {
367
						$.MsgBox.Alert('提示', '服务器连接超时!');
368
					}
369
				});
370
			})(i);
371
372
		}
373
	}
374
	/*文章跳转*/
375
	$("#oArticle").on("click", "li", function() {
376
		location.href="http://" + window.location.host + "/e/a.html?id=" + $(this).attr("data-id");
377
	})
378
    
379
    function interestingQiye(arry,oId,oNu) {
380
		var oUrl;
381
		var $in={};
382
		$in.keys= arry;
383
		$in.resourceId= resourceId;
384
		
385
		if(oNu==0) {
386
				$in.professorId= oId;
387
				oUrl="../ajax/resource/ralateRes";
388
		}else {
389
			$in.orgId= oId;
390
			oUrl="../ajax/resource/orgRalateRes";
391
		}
392
		$.ajax({
393
			"url": oUrl,
394
			"type": "GET",
395
			"success": function(data) {
396
				console.log(data);
397
				if(data.success) {
398
					if(data.data.length == 0) {
399
						return;
400
					}
401
					$("#resourceList").parent().removeClass("displayNone");
402
					interestingQiyeHtml(data.data);
403
				}
404
			},
405
			"data":$in,
406
			"traditional": true,
407
			dataType: "json",
408
			'error': function() {
409
				$.MsgBox.Alert('提示', '服务器连接超时!');
410
			}
411
		});
412
	}
413
	/*感兴趣资源的html*/
414
	function interestingQiyeHtml($respond) {
415
		for(var i = 0; i < 5; i++) {
416
			if($respond[i].organization) {
417
				var stl={};
418
				stl.sty="";
419
				stl.title="";
420
				if($respond[i].organization.authStatus==3) {
421
					stl.sty="authicon-com-ok";
422
					stl.title="认证企业";
423
				}
424
				var name="";
425
				if($respond[i].organization.forShort){
426
					name=$respond[i].organization.forShort;
427
				}else{
428
					name=$respond[i].organization.name;
429
				}
430
			}else {
431
				var stl = autho($respond[i].editProfessor.authType, $respond[i].editProfessor.orgAuth, $respond[i].editProfessor.authStatus);
432
				var name= $respond[i].editProfessor.name;
433
			}
434
			
435
			var oStr = '';
436
			oStr+='<li class="flexCenter OflexCenter" style="" data-id="' + $respond[i].resourceId + '">'
437
			if($respond[i].images.length) {
438
				oStr += '<div class="madiaHead resouseHead" style="background-image: url(/data/resource/' + $respond[i].images[0].imageSrc + ')"></div>'
439
			} else {
440
				oStr += '<div class="madiaHead resouseHead"></div>'
441
			}
442
			oStr += '<div class="madiaInfo OmadiaInfo">'
443
			oStr += '<p class="h1Font">' + $respond[i].resourceName + '</p>'
444
			oStr += '<p class="h2Font ellipsisSty">用途:<span>' + $respond[i].supportedServices + '</span></p>'
445
			oStr += '<p><span class="h2Font">' + name + '</span><em class="authiconNew ' + stl.sty + '" title="' + stl.title + '"></em></p>'
446
			oStr += '</div></li>'
447
			$("#resourceList").append(oStr);
448
		}
449
	}
450
	/*点击资源列表*/
451
	$("#resourceList").on("click", "li", function() {
452
		location.href="http://" + window.location.host + "/e/r.html?id=" + $(this).attr("data-id");
453
	})
454
    
285 455
    /*微信分享*/
286 456
	$.ajax({
287 457
		url: "../ajax/weixin/jsapiTicket",

+ 3 - 3
e/p.html

@ -98,7 +98,7 @@
98 98
			<div class="seeMore displayNone" id="seeMoreEvaluate"><em>查看全部<span id="evaluateNum">0</span>条</em></div>
99 99
		</div>
100 100
		<!--合作专家-->
101
		<div class="mainbox">
101
		<div class="mainbox displayNone">
102 102
			<div class="infocontit">合作专家</div>
103 103
			<div class="infocon madiaBlock">
104 104
				<ul class="mui-table-view" id="">
@ -106,7 +106,7 @@
106 106
			</div>
107 107
		</div>
108 108
		<!--相关文章-->
109
		<div class="mainbox">
109
		<div class="mainbox displayNone">
110 110
			<div class="infocontit">相关文章</div>
111 111
			<div class="infocon madiaBlock">
112 112
				<ul class="mui-table-view" id="">
@ -114,7 +114,7 @@
114 114
			</div>
115 115
		</div>
116 116
		<!--您可能感兴趣的专家-->
117
		<div class="mainbox">
117
		<div class="mainbox displayNone">
118 118
			<div class="infocontit">您可能感兴趣的专家</div>
119 119
			<div class="infocon madiaBlock">
120 120
				<ul class="mui-table-view" id="">

+ 30 - 3
userInforShow.html

@ -392,9 +392,36 @@
392 392
						<span id="focusMe"></span>
393 393
					</div>
394 394
				</div>
395
				<ul class="advertItem">
396
					<li><a href="download.html" target="_blank"><img src="images/find_img_xiazai_nor.png" /></a></li>
397
				</ul>
395
				<div class="conBlock conItem">
396
					<div class="form-item otherBlock">
397
						<div class="aboutTit">相关专家</div>
398
						<div class="form-result aboutRes">
399
							<ul id="relatePro">
400
							</ul>
401
						</div>
402
					</div>	
403
				</div>	
404
				<div class="conBlock conItem">
405
					<div class="form-item otherBlock">
406
						<div class="aboutTit">相关文章</div>
407
						<div class="form-result aboutRes">
408
							<ul id="relateArt">
409
							</ul>
410
						</div>
411
					</div>	
412
				</div>
413
				<div class="conBlock conItem">
414
					<div class="form-item otherBlock">
415
						<div class="aboutTit">您可能感兴趣的专家</div>
416
						<div class="form-result aboutRes">
417
							<ul id="likePro">
418
							</ul>
419
						</div>
420
					</div>
421
				</div>
422
				<!--<ul class="advertItem">
423
					<li><a href="download.html" target="_blank"><img src="images/find_img_xiazai_nor.png" /></a></li>
424
				</ul>-->
398 425
			</div>
399 426
		</div>
400 427
	</div>