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,9 +52,9 @@
52 52
			</div>
53 53
			<div class="navconBox">
54 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 58
					<li>资料</li>
59 59
				</ul>
60 60
			</div>
@ -100,7 +100,15 @@
100 100
							<!--无搜索结果-->
101 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 112
						</div>
105 113
					</div>
106 114
				</div>
@ -111,9 +119,17 @@
111 119
								
112 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 133
						</div>
118 134
					</div>
119 135
				</div>
@ -173,6 +189,7 @@
173 189
<script type="text/javascript" src="js/jquery.cookie.js"></script>
174 190
<script type="text/javascript" src="js/jquery.similar.msgbox.js"></script>
175 191
<script type="text/javascript" src="js/weixinshare/qrcode.min.js"></script>
192
<script type="text/javascript" src="js/jquery.page.js"></script>
176 193
<script type="text/javascript" src="js/common.js"></script>
177 194
<script type="text/javascript" src="js/cmpInforShow.js"></script>
178 195
<script>

+ 13 - 18
js/cmpInforShow.js

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