Browse Source

企业修改及浏览

jack 7 years ago
parent
commit
675ff14781
2 changed files with 36 additions and 24 deletions
  1. 23 6
      cmpInforShow.html
  2. 13 18
      js/cmpInforShow.js

+ 23 - 6
cmpInforShow.html

52
			</div>
52
			</div>
53
			<div class="navconBox">
53
			<div class="navconBox">
54
				<ul class="clearfix">
54
				<ul class="clearfix">
55
					<li class="liNow" style="display:none">主页</li>
56
					<li style="display:none">资源</li>
57
					<li style="display:none">文章</li>
55
					<li class="liNow">主页</li>
56
					<li>资源</li>
57
					<li>文章</li>
58
					<li>资料</li>
58
					<li>资料</li>
59
				</ul>
59
				</ul>
60
			</div>
60
			</div>
100
							<!--无搜索结果-->
100
							<!--无搜索结果-->
101
							 <div class="tcdPageCode resoucePageCode">
101
							 <div class="tcdPageCode resoucePageCode">
102
						       	
102
						       	
103
						       </div>
103
						      </div>
104
						      <div class="nodatabox displayNone">
105
						        <div class="nodata">
106
						            <div class="picbox picNull"></div>
107
						            <div class="txtbox">
108
						            	<p class="noContip"></p>
109
						            </div>
110
						        </div>
111
						    </div>
104
						</div>
112
						</div>
105
					</div>
113
					</div>
106
				</div>
114
				</div>
111
								
119
								
112
							</ul>
120
							</ul>
113
							<!--无搜索结果-->							
121
							<!--无搜索结果-->							
114
						       <div class="tcdPageCode expertPageCode">
122
						    <div class="tcdPageCode expertPageCode">
115
						       	
123
						       	
116
						       </div>						    
124
						    </div>
125
						    <div class="nodatabox displayNone">
126
						        <div class="nodata">
127
						            <div class="picbox picNull"></div>
128
						            <div class="txtbox">
129
						            	<p class="noContip"></p>
130
						            </div>
131
						        </div>
132
						    </div>
117
						</div>
133
						</div>
118
					</div>
134
					</div>
119
				</div>
135
				</div>
173
<script type="text/javascript" src="js/jquery.cookie.js"></script>
189
<script type="text/javascript" src="js/jquery.cookie.js"></script>
174
<script type="text/javascript" src="js/jquery.similar.msgbox.js"></script>
190
<script type="text/javascript" src="js/jquery.similar.msgbox.js"></script>
175
<script type="text/javascript" src="js/weixinshare/qrcode.min.js"></script>
191
<script type="text/javascript" src="js/weixinshare/qrcode.min.js"></script>
192
<script type="text/javascript" src="js/jquery.page.js"></script>
176
<script type="text/javascript" src="js/common.js"></script>
193
<script type="text/javascript" src="js/common.js"></script>
177
<script type="text/javascript" src="js/cmpInforShow.js"></script>
194
<script type="text/javascript" src="js/cmpInforShow.js"></script>
178
<script>
195
<script>

+ 13 - 18
js/cmpInforShow.js

204
					//简介
204
					//简介
205
					if($info.descp) {
205
					if($info.descp) {
206
						$("#descpS").text($info.descp);
206
						$("#descpS").text($info.descp);
207
						$(".navconBox").find("li:contains('主页')").show();
208
					} else {
207
					} else {
209
						$("#descpS").parents(".coninfobox").hide();
208
						$("#descpS").parents(".coninfobox").hide();
210
					}
209
					}
211
					//学术领域		
210
					//学术领域		
212
					console.log($info.subject)
211
					console.log($info.subject)
213
					if($info.subject) {
212
					if($info.subject) {
214
						$(".navconBox").find("li:contains('主页')").show();
215
						subjectShow($info.subject);
213
						subjectShow($info.subject);
216
					} else {
214
					} else {
217
						$("#subjectShow").parents(".coninfobox").hide();
215
						$("#subjectShow").parents(".coninfobox").hide();
272
	//获取资源
270
	//获取资源
273
	function getResource(pageSize, pageNo, isbind) {
271
	function getResource(pageSize, pageNo, isbind) {
274
		$.ajax({
272
		$.ajax({
275
			"url": "/ajax/resource/qaOrgPublish",
273
			"url": "/ajax/resource/pqOrgPublish",
276
			"type": "get",
274
			"type": "get",
277
			"async": false,
275
			"async": false,
278
			"data": {
276
			"data": {
284
				//console.log(data);
282
				//console.log(data);
285
				if(data.success) {
283
				if(data.success) {
286
					if(data.data.data.length > 0) {
284
					if(data.data.data.length > 0) {
287
						$(".navconBox").find("li:contains('资源')").show();
288
						$(".navconBox").find("li:contains('主页')").show();
289
						for(var i = 0; i < data.data.data.length; i++) {
285
						for(var i = 0; i < data.data.data.length; i++) {
290
							var madiaHead = '';
286
							var madiaHead = '';
291
							if(data.data.data[i].images.length) {
287
							if(data.data.data[i].images.length) {
316
							});
312
							});
317
						}
313
						}
318
					} else {
314
					} else {
319
						$("#proResource + .nodatabox").show();
320
						$("#proResource + .nodatabox").find(".noContip").text("主人尚未发布任何资源");
315
						$("#item2user .nodatabox").show();
316
						$("#item2user .nodatabox").find(".noContip").text("主人尚未发布任何资源");
321
						$("#showResource").parents(".coninfobox").hide();
317
						$("#showResource").parents(".coninfobox").hide();
322
					}
318
					}
323
				}
319
				}
330
	//获取文章
326
	//获取文章
331
	function getArticle(pageSize, pageNo, isbind) {
327
	function getArticle(pageSize, pageNo, isbind) {
332
		$.ajax({
328
		$.ajax({
333
			url: "/ajax/article/pqProPublish",
329
			url: "/ajax/article/pqOrgPublish",
334
			dataType: 'json', //数据格式类型
330
			dataType: 'json', //数据格式类型
335
			type: 'GET', //http请求类型
331
			type: 'GET', //http请求类型
336
			data: {
332
			data: {
382
							});
378
							});
383
						}
379
						}
384
					} else {
380
					} else {
385
						$("#proArticel + .nodatabox").show();
386
						$("#proArticel + .nodatabox").find(".noContip").text("主人尚未发布任何文章");
381
						$("#item3user  .nodatabox").show();
382
						$("#item3user  .nodatabox").find(".noContip").text("主人尚未发布任何文章");
387
						$("#showArticle").parents(".coninfobox").hide();
383
						$("#showArticle").parents(".coninfobox").hide();
388
						var i = 0;
384
						var i = 0;
389
						$("#item1user").find('.coninfobox').each(function() {
385
						$("#item1user").find('.coninfobox').each(function() {
433
			"dataType": "json",
429
			"dataType": "json",
434
			"async": true,
430
			"async": true,
435
			"data": {
431
			"data": {
436
				"id": orgid,
432
				"id": orgId,
437
				"type": 6
433
				"type": 6
438
			},
434
			},
439
			"success": function(data) {
435
			"success": function(data) {
447
		});
443
		});
448
	}
444
	}
449
	commentnum();
445
	commentnum();
450
451
	function comNum() {
446
	function comNum() {
452
		$.ajax({
447
		$.ajax({
453
			"url": "/ajax/org/incPageViews",
454
			"type": "POST",
448
			"url": "/ajax/org/regInfo", 
449
			"type": "get",
455
			"dataType": "json",
450
			"dataType": "json",
456
			"data": {
451
			"data": {
457
				"id": orgid,
452
				"name": oName
458
			},
453
			},
459
			"success": function(data) {
454
			"success": function(data) {
460
				if(data.success) {
455
				if(data.success) {
506
501
507
	function industryCommerce() {
502
	function industryCommerce() {
508
		$.ajax({
503
		$.ajax({
509
			"url": "/ajax/org/regInfo",
510
			"type": "GET",
504
			"url": "/ajax/org/incPageViews POST",
505
			"type": "POST",
511
			"dataType": "json",
506
			"dataType": "json",
512
			"async": true,
507
			"async": true,
513
			"data": {
508
			"data": {
514
				"name": oName
509
				"id": orgId,
515
			},
510
			},
516
			"success": function(data) {
511
			"success": function(data) {
517
				if(data.success) {
512
				if(data.success) {