Pārlūkot izejas kodu

个人和企业用户主页显示

luyanan 7 gadi atpakaļ
vecāks
revīzija
3788f9a76f
5 mainītis faili ar 601 papildinājumiem un 820 dzēšanām
  1. 6 6
      cmp-portal/js/cmpInformation.js
  2. 6 6
      js/cmpInforShow.js
  3. 11 6
      js/tabCom.js
  4. 557 770
      js/userInforShow.js
  5. 21 32
      userInforShow.html

+ 6 - 6
cmp-portal/js/cmpInformation.js

@ -463,10 +463,10 @@ $(function() {
463 463
				"owner": orgId,
464 464
				"category":"2"
465 465
			}, "GET", function(data){
466
				if(data.data>0){
466
				if(data.data>0 && data.data<99){
467 467
					$("#artCount").text(data.data);
468 468
				}
469
				if(data.data>0 && data.data>99){
469
				if(data.data>99){
470 470
					$("#artCount").text("99+");
471 471
				}
472 472
			});
@ -474,10 +474,10 @@ $(function() {
474 474
				"owner": orgId,
475 475
				"category":"2"
476 476
			}, "GET", function(data){
477
				if(data.data>0){
477
				if(data.data>0 && data.data<99){
478 478
					$("#resCount").text(data.data);
479 479
				}
480
				if(data.data>0 && data.data>99){
480
				if(data.data>99){
481 481
					$("#resCount").text("99+");
482 482
				}
483 483
			});
@ -485,10 +485,10 @@ $(function() {
485 485
				"owner": orgId,
486 486
				"category":"2"
487 487
			}, "GET", function(data){
488
				if(data.data>0){
488
				if(data.data>0 && data.data<99){
489 489
					$("#serCount").text(data.data);
490 490
				}
491
				if(data.data>0 && data.data>99){
491
				if(data.data>99){
492 492
					$("#serCount").text("99+");
493 493
				}
494 494
			});

+ 6 - 6
js/cmpInforShow.js

@ -527,10 +527,10 @@ $(function() {
527 527
				"owner": orgId,
528 528
				"category":"2"
529 529
			}, "GET", function(data){
530
				if(data.data>0){
530
				if(data.data>0 && data.data<99){
531 531
					$("#artCount").text(data.data);
532 532
				}
533
				if(data.data>0 && data.data>99){
533
				if(data.data>99){
534 534
					$("#artCount").text("99+");
535 535
				}
536 536
			});
@ -538,10 +538,10 @@ $(function() {
538 538
				"owner": orgId,
539 539
				"category":"2"
540 540
			}, "GET", function(data){
541
				if(data.data>0){
541
				if(data.data>0 && data.data<99){
542 542
					$("#resCount").text(data.data);
543 543
				}
544
				if(data.data>0 && data.data>99){
544
				if(data.data>99){
545 545
					$("#resCount").text("99+");
546 546
				}
547 547
			});
@ -549,10 +549,10 @@ $(function() {
549 549
				"owner": orgId,
550 550
				"category":"2"
551 551
			}, "GET", function(data){
552
				if(data.data>0){
552
				if(data.data>0 && data.data<99){
553 553
					$("#serCount").text(data.data);
554 554
				}
555
				if(data.data>0 && data.data>99){
555
				if(data.data>99){
556 556
					$("#serCount").text("99+");
557 557
				}
558 558
			});

+ 11 - 6
js/tabCom.js

@ -34,11 +34,11 @@
34 34
		$(".moreNav").hide()
35 35
		$(this).parents(".moreNav").show()
36 36
		
37
		$(".leftconItem>.dropconItem").hide();
38 37
		var activeTab = $(this).attr("rel");
38
		$("#" + activeTab).parents(".leftconItem").find(".dropconItem").hide();
39 39
		$("#" + activeTab).fadeIn();
40 40
	
41
		$("ul.moreNavUl li").removeClass("liNow");
41
		$(this).parent().find("li").removeClass("liNow");
42 42
		$(this).addClass("liNow");
43 43
	});
44 44
	
@ -48,10 +48,15 @@
48 48
	});
49 49
	
50 50
	 /* if in tab-drop-2 mode */
51
	$(".dropconItem>.droplistcon").hide()
52
	$(".dropconItem>.droplistcon:first-child").show()
53
	
51 54
	$("ul.table-drop").on("click","li",function(){
52
		var id=$(this).attr("id")
53
		$(this).parents(".rightbtn").find("span").html($(this).text());
54
		$(this).parents(".rightbtn").attr("rel",id)
55
		var activeTab = $(this).attr("rel");
56
		$("#" + activeTab).parents(".dropconItem").find(".droplistcon").hide();
57
		$("#" + activeTab).fadeIn();
58
		
59
		$(this).parents(".rightbtn").find("span").html($(this).text()).attr("tmp",activeTab);
55 60
		$(".table-drop").fadeOut(1000);
56 61
	})
57 62
//*********个人企业主页  tab切换************//
@ -62,8 +67,8 @@
62 67
	$(".listdiv .listbox:first").show();
63 68
	
64 69
	$("ul.choosediv").on("click", "li", function() {
65
		$(".listdiv .listbox").hide();
66 70
		var activeTab = $(this).attr("rel");
71
		$("#" + activeTab).parents(".listdiv").find(".listbox").hide();
67 72
		$("#" + activeTab).fadeIn();
68 73
	
69 74
		$("ul.choosediv li").removeClass("liactive");

+ 557 - 770
js/userInforShow.js

@ -2,12 +2,6 @@ $(function() {
2 2
	loginStatus();//判断个人是否登录
3 3
	var userid = $.cookie("userid");
4 4
	var professorId = GetQueryString("professorId");
5
	if(GetQueryString("flag")) {
6
		researchAlert(GetQueryString("flag"))
7
	}
8
	if(GetQueryString("iLike")){
9
		openAttend();
10
	}
11 5
	if(navigator.userAgent.match(/(iPhone|iPod|Android|ios)/i)){
12 6
	 	location.href="http://" + window.location.host + "/e/p.html?id="+professorId;
13 7
	}
@ -82,16 +76,7 @@ $(function() {
82 76
//		})
83 77
//		
84 78
		}
85
	function openAttend(){//打开收藏与关注
86
		$(".mainNavUl li.rightbtn").addClass("liNow").siblings().removeClass("liNow");
87
		$(".navconBox .moreBu").show();
88
		$(".wendaNav").hide();
89
		$("#item8user").show().siblings().hide();
90
		$(".moreBuUl li.attentType").eq(0).addClass("liNow").siblings().removeClass("liNow");
91
		$("#item8drop1").show().siblings().hide();
92
	}
93 79
	
94
95 80
	function subjectShow(data) {
96 81
		if(data != undefined && data.length != 0) {
97 82
			var subs=strToAry(data)
@ -102,7 +87,6 @@ $(function() {
102 87
			}
103 88
		}
104 89
	}
105
	
106 90
	function researchAreaShow(dataStrs, dataStrrecords) {
107 91
		if(dataStrs != undefined && dataStrs.length != 0) {
108 92
			var html = [];
@ -289,526 +273,55 @@ $(function() {
289 273
		}
290 274
		return ret;
291 275
	}
292
293
	
294
//  // 获取问题
295
//  function getMyQuestion(id,isbind) {
296
//      $.ajax({
297
//          url: "/ajax/question/my",
298
//          dataType: 'json',
299
//          type: 'GET',
300
//          data: {
301
//              "time":QTime,
302
//              "id":QId,
303
//              "rows":rows,
304
//              "uid":id
305
//          },
306
//          beforeSend: function() {
307
//              $("#proQ").parent().find(".js-load-more").attr("disabled",true);
308
//              $("#proQ").parent().find(".js-load-more").addClass("active");
309
//          },
310
//          complete:function () {
311
//              $("#proQ").parent().find(".js-load-more").removeAttr("disabled");
312
//              $("#proQ").parent().find(".js-load-more").removeClass("active");
313
//          },
314
//          success: function(data) {
315
//              if(data.success) {
316
//                  var dataStr=data.data;
317
//                  if(dataStr.length > 0){
318
//                      QTime = dataStr[dataStr.length - 1].createTime;
319
//                      QId = dataStr[dataStr.length - 1].id;
320
//                      for(var i = 0; i < dataStr.length; i++) {
321
//                          var listLi = $('<li class="mui-table-view-cell">').appendTo($("#proQ"));
322
//                          question(dataStr[i], listLi);
323
//                          if(isbind==true && i==0){
324
//                              $("#proQ").html();
325
//                          }
326
//                      }
327
//                      if(isbind==true){
328
//                          $("#proQ").parent().find(".js-load-more").on("click", function () {
329
//                              getMyQuestion(id,false);
330
//                          });
331
//                      }
332
//                      if (dataStr.length < rows) {
333
//                          $("#proQ").parent().find(".js-load-more").unbind("click");
334
//                          $("#proQ").parent().find(".js-load-more").hide();
335
//                      }
336
//                  }else{
337
//                  	$("#proQ").parent().find(".js-load-more").hide()
338
//                      $("#proQ + .nodatabox").show();
339
//                      $("#proQ + .nodatabox").find(".noContip").text("用户尚未提出任何问题");
340
//                  }
341
//              }
342
//          },
343
//          error: function() {
344
//              return;
345
//          }
346
//      });
347
//  }
348
    //我关注的问题
349
	function getMyWatchQ(id,isbind) {
350
        $.ajax({
351
            url: "/ajax/question/watch",
352
            dataType: 'json',
353
            type: 'GET',
354
            data: {
355
                "time":WTime,
356
                "id":WId,
357
                "rows":rows,
358
                "uid":id
359
            },
360
            beforeSend: function() {
361
362
            },
363
            complete:function () {
364
                $("#item8user").find(".js-load-more").removeAttr("disabled");
365
                $("#item8user").find(".js-load-more").removeClass("active");
366
            },
367
            success: function(data) {
368
                if(data.success) {
369
                    var dataStr=data.data;
370
                    if(dataStr.length > 0){
371
                        WTime = dataStr[dataStr.length - 1].createTime;
372
                        WId = dataStr[dataStr.length - 1].id;
373
                        for(var i = 0; i < dataStr.length; i++) {
374
                            var listLi = $('<li class="mui-table-view-cell">').appendTo($("#attendQuestion"));
375
                            question(dataStr[i], listLi);
376
                            if(isbind==true && i==0){
377
                                var li = listLi.clone();
378
                                $("#showAnswer").html();
379
                                $("#showAnswer").append(li);
380
                                questioninfo(dataStr[i].qid, li);
381
                                proinfo(dataStr[i].uid, li);
382
                                leaveMsgCount(dataStr[i].id,4, li);
383
384
                            }
385
                        }
386
                        if(isbind==true){
387
                            $("#item8user").append('<button class="js-load-more"></button>');
388
                            $("#item8user").find(".js-load-more").on("click", function () {
389
                                getMyWatchQ(id,false);
390
                            });
391
                        }
392
                        if (dataStr.length < rows) {
393
                            $("#item8user").find(".js-load-more").unbind("click");
394
                            $("#item8user").find(".js-load-more").hide();
395
                        }
396
                    }else{
397
                        $("#attendQuestion + .nodatabox").show();
398
                        $("#attendQuestion + .nodatabox").find(".noContip").text("用户尚未回答任何问题");
399
                    }
400
                }
401
            },
402
            error: function() {
403
                return;
404
            }
405
        });
406
    }
407
    //我关注的回答
408
//  function getMyWatchA(id,isbind) {
409
//      $.ajax({
410
//          url: "/ajax/question/answer/byWatch",
411
//          dataType: 'json',
412
//          type: 'GET',
413
//          data: {
414
//              "time":WTime,
415
//              "id":WId,
416
//              "rows":rows,
417
//              "uid":id
418
//          },
419
//          beforeSend: function() {
420
//              $("#item8user").find(".js-load-more").attr("disabled",true);
421
//              $("#item8user").find(".js-load-more").addClass("active");
422
//          },
423
//          complete:function () {
424
//              $("#item8user").find(".js-load-more").removeAttr("disabled");
425
//              $("#item8user").find(".js-load-more").removeClass("active");
426
//          },
427
//          success: function(data) {
428
//              if(data.success) {
429
//                  var dataStr=data.data;
430
//                  if(dataStr.length > 0){
431
//                      WTime = dataStr[dataStr.length - 1].createTime;
432
//                      WId = dataStr[dataStr.length - 1].id;
433
//                      for(var i = 0; i < dataStr.length; i++) {
434
//                          var listLi = $('<li class="mui-table-view-cell">').appendTo($("#attendAnswer"));
435
//                          answer(dataStr[i], listLi);
436
//                      }
437
//                      if(isbind==true){
438
//                          $("#item8user").append('<button class="js-load-more"></button>');
439
//                          $("#item8user").find(".js-load-more").on("click", function () {
440
//                              getMyWatchA(id,false);
441
//                          });
442
//                      }
443
//                      if (dataStr.length < rows) {
444
//                          $("#item8user").find(".js-load-more").unbind("click");
445
//                          $("#item8user").find(".js-load-more").hide();
446
//                      }
447
//                  }else{
448
//                      $("#attendAnswer + .nodatabox").show();
449
//                      $("#attendAnswer + .nodatabox").find(".noContip").text("用户尚未回答任何问题");
450
//                  }
451
//              }
452
//          },
453
//          error: function() {
454
//              return;
455
//          }
456
//      });
457
//  }
458
459
460
	function collAttent(pageNo,isbind,num){
461
		if(!num){
462
			var num=watchType;
463
		}
276
	function openAttend(){//打开收藏与关注
277
		watchO={
278
			watchTime:"",
279
			watchObjId:"",
280
		};
281
		var pa=$(".moreNavUl.moreBuUl>li.liNow").attr("rel")
282
		$("#"+pa).find("ul").html("")
283
		$("#"+pa).find(".js-load-more").show();
284
		collectSorts(1,true);
285
		$(".mainNavUl li.rightbtn").addClass("liNow").siblings().removeClass("liNow");
286
		$(".navconBox .moreBu").show();
287
		$(".wendaNav").hide();
288
		$("#item8user").show().siblings().hide();
289
		$(".moreBuUl li.attentType").eq(0).addClass("liNow").siblings().removeClass("liNow");
290
		$("#item8drop1").show().siblings().hide();
291
	}
292
	function researchAlert(cap){
464 293
		$.ajax({
465
			url: "/ajax/watch/qaPro",
466
			dataType: 'json', //数据格式类型
467
			type: 'GET', //http请求类型
468
			data: {
294
			"url": "/ajax/researchAreaLog/ql",
295
			"type": "get",
296
			"data": {
469 297
				"professorId": professorId,
470
				"watchType": num,
471
				"pageNo": pageNo,
472
				"pageSize":pageSize
298
				"caption": cap,
299
				"rows": 1000
473 300
			},
474
            beforeSend: function() {
475
                $("#item8user").find(".js-load-more").attr("disabled",true);
476
                $("#item8user").find(".js-load-more").addClass("active");
477
            },
478
            complete:function () {
479
                $("#item8user").find(".js-load-more").removeAttr("disabled");
480
                $("#item8user").find(".js-load-more").removeClass("active");
481
            },
482
			timeout: 10000, //超时设置
483
			success: function(data) {
484
				console.log(data)
485
				var tcdPage;
486
				if(data.success && data.data.data != "") {
487
					var datalist = data.data.data;
488
					if(num==1){
489
						// document.getElementById("attendPro").innerHTML="";
490
						for(var i = 0; i < datalist.length; i++) {
491
							var liItem = document.createElement("li");
492
							liItem.className="mui-table-view-cell";
493
							document.getElementById("attendPro").appendChild(liItem);
494
							//detailPro(datalist[i],liItem);
495
						}
496
					}else if(num==2){
497
						detailRes(datalist);
498
					}else if(num==3){
499
						detailArt(datalist);
500
					}else if(num==4){
501
						detailPat(datalist);
502
					}else if(num==5){
503
						detailPer(datalist);
504
					}else if(num==6){
505
						detailCmp(datalist);
506
					}else if(num==7){
507
						detailDemand(datalist);
508
					}
509
					if(isbind){
510
                        $("#item8user").append('<button class="js-load-more"></button>');
511
                        $("#item8user").find(".js-load-more").on("click", function () {
512
                            collAttent(++pageNo,false,num);
513
                        });
301
			"success": function(data) {
302
				if(data.success) {
303
					console.log(data)
304
					$("#areaCon").html("");
305
					var $info = data.data;
306
					$("#subArea").text(cap);
307
					$(".resAreaCover").fadeIn();
308
					$(".resAreaTip").addClass("displayNone")
309
					$(".resAreaCon").show()
310
					if($info.length == 0) {
311
						$(".resAreaCon").hide();
312
						$(".resAreaTip").removeClass("displayNone")
313
						return;
514 314
					}
515
                    if (pageNo >= Math.ceil(data.data.total / pageSize)) {
516
                        $("#item8user").find(".js-load-more").unbind("click");
517
                        $("#item8user").find(".js-load-more").hide();
518
                    }
519
				}else{
520
					if(num==1){
521
						document.getElementById("attendPro").parentNode.querySelector(".nodatabox").classList.remove("displayNone");
522
						if(isbind) {
523
                            $("#attendPro").parent().find(".js-load-more").hide()
524
                        }
525
					}else if(num==2){
526
						document.getElementById("attendRes").parentNode.querySelector(".nodatabox").classList.remove("displayNone");
527
						if(isbind) {
528
                            $("#attendRes").parent().find(".js-load-more").hide()
529
                        }
530
					}else if(num==3){
531
						document.getElementById("attendArt").parentNode.querySelector(".nodatabox").classList.remove("displayNone");
532
						if(isbind) {
533
                            $("#attendArt").parent().find(".js-load-more").hide()
534
                        }
535
					}else if(num==4){
536
						document.getElementById("attendPatent").parentNode.querySelector(".nodatabox").classList.remove("displayNone");
537
						if(isbind) {
538
                            $("#attendPatent").parent().find(".js-load-more").hide()
539
                        }
540
					}else if(num==5){
541
						document.getElementById("attendPaper").parentNode.querySelector(".nodatabox").classList.remove("displayNone");
542
						if(isbind) {
543
                            $("#attendPaper").parent().find(".js-load-more").hide()
544
                        }
545
					}else if(num==6){
546
						document.getElementById("attendCmp").parentNode.querySelector(".nodatabox").classList.remove("displayNone");
547
						if(isbind) {
548
                            $("#attendCmp").parent().find(".js-load-more").hide()
549
                        }
550
					}else if(num==7){
551
						document.getElementById("attendDemand").parentNode.querySelector(".nodatabox").classList.remove("displayNone");
552
						if(isbind) {
553
                            $("#attendDemand").parent().find(".js-load-more").hide()
554
                        }
315
					var arr=[];
316
					for(var i in $info) {
317
						arr[i]=$info[i].opreteProfessorId;
555 318
					}
319
					detailPro(arr,"areaCon");
556 320
				}
557
			},
558
			error: function() {
559
				return;
560 321
			}
561 322
		});
562 323
	}
563 324
564
//	function detailCmp(datalist) {
565
//		// document.getElementById("attendCmp").innerHTML="";
566
//		var arr=[];
567
//		for(var i in datalist) {
568
//			arr[i]=datalist[i].watchObject;
569
//		}
570
//		$.ajax({
571
//			url:"/ajax/org/qm",
572
//			data: {
573
//				id:arr,
574
//			},
575
//			dataType: 'json', //数据格式类型
576
//			type: 'get', //http请求类型
577
//			traditional: true,
578
//			success: function(data) {
579
//				if(data.success && data.data != "") {
580
//					var dataStr=data.data;
581
//					for(var i = 0; i < dataStr.length; i++) {
582
//						var li = document.createElement("li");
583
//						li.setAttribute("data-id", dataStr[i].id);
584
//						var oimg = (dataStr[i].hasOrgLogo) ?"/images/org/" + dataStr[i].id + ".jpg" : "../images/default-icon.jpg";
585
//						var oAuth = (dataStr[i].authStatus == 3) ? 'authicon-com-ok' : '';
586
//						var orgName = (dataStr[i].forShort) ? dataStr[i].forShort : dataStr[i].name;
587
//						var orgType = (dataStr[i].orgType == '2') ? "上市企业" : "";
588
//						var orgOther = (dataStr[i].industry) ? dataStr[i].industry.replace(/,/gi, " | ") : "";
589
//						li.className = "mui-table-view-cell";
590
//						var itemlist=''
591
//							itemlist += '<a class="flexCenter" target="_blank" href="cmpInforShow.html?orgId='+dataStr[i].id+'"><div class="madiaHead cmpHead">';
592
//							itemlist += '<div class="boxBlock"><img class="boxBlockimg" src="' + oimg + '"></div></div>';
593
//							itemlist += '<div class="madiaInfo">';
594
//							itemlist += '<p class="h1Font"><span>' + orgName + '</span><em class="authiconNew ' + oAuth + '" title="科袖认证企业"></em></p>';
595
//	                		itemlist += '<p class="h2Font ellipsisSty"><span>' + orgType + '</span> <span>' + orgOther + '</span></p>';
596
//							itemlist += '</div></a>';
597
//						li.innerHTML = itemlist
598
//						document.getElementById("attendCmp").appendChild(li);
599
//					}
600
//				}
601
//			},
602
//			error:  function() {
603
//			}
604
//		});
605
//	}
606
//	function detailPat(datalist) {
607
//		// document.getElementById("attendPatent").innerHTML="";
608
//		if(datalist.length<0){
609
//			$("#attendPatent + .nodatabox").removeClass("displayNone");
610
//			return;
611
//		}
612
//		var arr=[];
613
//		for(var i in datalist) {
614
//			arr[i]=datalist[i].watchObject;
615
//		}
616
//		$.ajax({
617
//			url:"/ajax/ppatent/qm",
618
//			data: {
619
//				id:arr,
620
//			},
621
//			dataType: 'json', //数据格式类型
622
//			type: 'get', //http请求类型
623
//			traditional: true,
624
//			success: function(data) {
625
//				if(data.success && data.data != "") {
626
//					var dataStr=data.data;
627
//					for(var i = 0; i < dataStr.length; i++) {
628
//						var li = document.createElement("li");
629
//						li.className = "mui-table-view-cell";
630
//						var strAdd = '';
631
//							strAdd += '<a  target="_blank" href="/'+ pageUrl("pt",dataStr[i]) +'" class="flexCenter urlgo">';
632
//							strAdd += '<div class="madiaHead patentHead"></div>';
633
//							strAdd += '<div class="madiaInfo"><p class="h1Font ellipsisSty">'+ dataStr[i].name +'</p>';
634
//							strAdd += '<p class="h2Font ellipsisSty">发明人:'+ dataStr[i].authors.substring(0, dataStr[i].authors.length - 1) +'</p>';
635
//							strAdd += '<p class="h2Font ellipsisSty">申请人:'+ dataStr[i].reqPerson +'</p>';
636
//							strAdd += '</div>';
637
//							strAdd += '</a>';
638
//						li.innerHTML = strAdd
639
//						document.getElementById("attendPatent").appendChild(li);
640
//					}
641
//				}
642
//			},
643
//			error:  function() {
644
//			}
645
//		});
646
//	}
647
//	function detailPer(datalist) {
648
//		// document.getElementById("attendPaper").innerHTML="";
649
//		var arr=[];
650
//		for(var i in datalist) {
651
//			arr[i]=datalist[i].watchObject;
652
//		}
653
//		$.ajax({
654
//			url:"/ajax/ppaper/qm",
655
//			data: {
656
//				id:arr,
657
//			},
658
//			dataType: 'json', //数据格式类型
659
//			type: 'get', //http请求类型
660
//			traditional: true,
661
//			success: function(data) {
662
//				if(data.success && data.data != "") {
663
//					var dataStr=data.data;
664
//					for(var i = 0; i < dataStr.length; i++) {
665
//						var moreInf=""
666
//						if(!dataStr[i].cn4periodical){
667
//							dataStr[i].cn4periodical="";
668
//						}
669
//						if(!dataStr[i].en4periodical){
670
//							dataStr[i].en4periodical="";
671
//						}
672
//						if(!dataStr[i].pubDay){
673
//							dataStr[i].pubDay="";
674
//						}
675
//						moreInf = dataStr[i].cn4periodical+ " " +dataStr[i].en4periodical+ " " +dataStr[i].pubDay
676
//						
677
//						var li = document.createElement("li");
678
//						li.className = "mui-table-view-cell";
679
//						var strAdd = '';
680
//							strAdd += '<a  target="_blank" href="/'+ pageUrl("pp",dataStr[i]) +'" class="flexCenter urlgo">';
681
//							strAdd += '<div class="madiaHead paperHead"></div>';
682
//							strAdd += '<div class="madiaInfo"><p class="h1Font ellipsisSty">'+ dataStr[i].name +'</p>';
683
//							strAdd += '<p class="h2Font ellipsisSty">作者:'+ dataStr[i].authors.substring(0, dataStr[i].authors.length - 1) +'</p>';
684
//							strAdd += '<p class="h2Font ellipsisSty">期刊:'+ moreInf +'</p>';
685
//							strAdd += '</div>';
686
//							strAdd += '</a>';
687
//						li.innerHTML = strAdd
688
//						document.getElementById("attendPaper").appendChild(li);
689
//					}
690
//				}
691
//			},
692
//			error:  function() {
693
//			}
694
//		});
695
//	}
696
//	function detailRes(datalist) {
697
//		// document.getElementById("attendRes").innerHTML="";
698
//		for(var i = 0; i < datalist.length; i++) {
699
//			var dataStr = datalist[i].resource;
700
//			var namepo, userType;
701
//			if(dataStr.resourceType == 1) {
702
//				namepo = dataStr.editProfessor.name;
703
//				userType = autho(dataStr.editProfessor.authType, dataStr.editProfessor.orgAuth, dataStr.editProfessor.authStatus);
704
//			} else {
705
//				if(dataStr.organization.forShort){
706
//					namepo = dataStr.organization.forShort;
707
//				}else{
708
//					namepo = dataStr.organization.name;
709
//				}
710
//				userType={}
711
//				if(dataStr.organization.authStatus==3){
712
//					userType.sty="authicon-com-ok"
713
//					userType.title="科袖认证企业"
714
//				}
715
//			}
716
//			var rImg = "../images/default-resource.jpg";
717
//			if(dataStr.images.length) {
718
//				rImg = "/data/resource/" + dataStr.images[0].imageSrc;
719
//			}
720
//			var li = document.createElement("li");
721
//			li.className = "mui-table-view-cell";
722
//			var strAdd = '';
723
//				strAdd += '<a target="_blank" href="resourceShow.html?resourceId='+ dataStr.resourceId +'" class="flexCenter urlgo">';
724
//				strAdd += '<div class="madiaHead resouseHead" style="background-image:url('+ rImg +')"></div>';
725
//				strAdd += '<div class="madiaInfo"><p class="h1Font ellipsisSty">'+ dataStr.resourceName +'</p>';
726
//				strAdd += '<p class="h1Font ellipsisSty">'+ namepo +'<em class="authiconNew ' + userType.sty + '" title="'+userType.title+'"></em></p>';
727
//				strAdd += '<p class="h2Font ellipsisSty-2">用途:'+ dataStr.supportedServices+'</p></div>';
728
//				strAdd += '</a>';
729
//			li.innerHTML =strAdd
730
//			document.getElementById("attendRes").appendChild(li);
731
//		}
732
//	}
733
//	function detailArt(datalist) {
734
//		// document.getElementById("attendArt").innerHTML="";
735
//		for(var i = 0; i < datalist.length; i++) {
736
//			var dataItem = datalist[i].article;
737
//			var arImg = "../images/default-artical.jpg";
738
//			if(dataItem.articleImg) {
739
//				arImg ="/data/article/" + dataItem.articleImg
740
//			}
741
//			var title = dataItem.articleTitle;
742
//			var name = ""
743
//			var li = document.createElement("li");
744
//			if( dataItem.articleType == 1) {
745
//				name = dataItem.professor.name;
746
//			} else {
747
//				if(dataItem.organization.forShort){
748
//					name = dataItem.organization.forShort;
749
//				}else{
750
//					name = dataItem.organization.name;
751
//				}
752
//			}
753
//			li.className = "mui-table-view-cell";
754
//			var strAdd = '';
755
//				strAdd += '<a  target="_blank" href="/'+ pageUrl('a',dataItem) +'" class="flexCenter urlgo">';
756
//				strAdd += '<div class="madiaHead artHead" style="background-image:url('+ arImg +')"></div>';
757
//				strAdd += '<div class="madiaInfo"><p class="h1Font ellipsisSty-2">'+ dataItem.articleTitle +'</p>';
758
//				strAdd += '<ul class="h2Font clearfix">';
759
//				strAdd += '<li><span>'+ name +'</span></li>';
760
//				strAdd += '<li><span class="time">'+ commenTime(dataItem.publishTime) +'</span></li>';
761
//				strAdd += '<li><span class="comment"></span></li>';
762
//				strAdd += '</ul></div>';
763
//				strAdd += '</a>';
764
//			li.innerHTML = strAdd
765
//			document.getElementById("attendArt").appendChild(li);
766
//
767
//		}
768
//	}
769
//	function detailDemand(datalist) {
770
//		// document.getElementById("attendDemand").innerHTML="";
771
//		var arr=[];
772
//		for(var i in datalist) {
773
//			arr[i]=datalist[i].watchObject;
774
//		}
775
//		$.ajax({
776
//			url:"/ajax/demand/qm",
777
//			data: {
778
//				id:arr,
779
//			},
780
//			dataType: 'json', //数据格式类型
781
//			type: 'get', //http请求类型
782
//			traditional: true,
783
//			success: function(data) {
784
//				if(data.success && data.data != "") {
785
//					var dataStr=data.data;
786
//					for(var i = 0; i < dataStr.length; i++) {
787
//						var li = document.createElement("li");
788
//						li.className = "mui-table-view-cell";
789
//						var strCon='<a  target="_blank" href="demandShow.html?demandId='+ dataStr[i].id +'" class="flexCenter urlgo">';
790
//						strCon+='<div class="madiaInfo" style="padding-left:0">'
791
//						strCon+='<p class="h1Font ellipsisSty">'+ dataStr[i].title +'</p>'
792
//						strCon+='<ul class="showli clearfix h3Font">'
793
//						
794
//						if(dataStr[i].city){ strCon+='<li>'+dataStr[i].city+'</li>' }
795
//						if(dataStr[i].duration!=0){ strCon+='<li>预期 '+demandDuration[dataStr[i].duration]+'</li>' }
796
//						if(dataStr[i].cost!=0){ strCon+='<li>预算 '+demandCost[dataStr[i].cost]+'</li>' }
797
//						if(dataStr[i].invalidDay){ strCon+='<li>有效期至 '+TimeTr(dataStr[i].invalidDay)+'</li>' }
798
//						
799
//						strCon+='</ul></div></a>'
800
//						
801
//						li.innerHTML = strCon
802
//						document.getElementById("attendDemand").appendChild(li);
803
//					}
804
//				}
805
//			},
806
//			error:  function() {
807
//			}
808
//		});
809
//	}
810
811
812 325
	var rows = 2,
813 326
		dataO = {
814 327
			artPublishTime:"",
@ -831,14 +344,19 @@ $(function() {
831 344
			
832 345
			QuTime:"",
833 346
			QuId:"",
834
			
835 347
		},
836 348
		watchO={
837 349
			beiTime:"",
838 350
			beiProId:"",
839 351
			
840 352
			watchTime:"",
841
			watchObjId:""
353
			watchObjId:"",
354
			
355
			WATime:"",
356
			WAId:"",
357
			
358
			WQTime:"",
359
			WQId:"",
842 360
		};
843 361
	var oAjax = function(url, dataS, otype, oFun,beforeFun,completeFun) {
844 362
			$.ajax({
@ -1301,7 +819,7 @@ $(function() {
1301 819
						$("#"+aimId).append($itemlist)
1302 820
						
1303 821
						if(isbind && i==0){
1304
							var $itemlist = $(itemlist);
822
							var $itemlist = $(strAdd);
1305 823
							$("#"+aimIdF).append($itemlist);
1306 824
						}
1307 825
					}
@ -1372,7 +890,7 @@ $(function() {
1372 890
						$("#"+aimId).append($itemlist)
1373 891
						
1374 892
						if(isbind && i==0){
1375
							var $itemlist = $(itemlist);
893
							var $itemlist = $(strAdd);
1376 894
							$("#"+aimIdF).append($itemlist);
1377 895
						}
1378 896
					}
@ -1686,10 +1204,10 @@ $(function() {
1686 1204
				"owner": professorId,
1687 1205
				"category":"1"
1688 1206
			}, "GET", function(data){
1689
				if(data.data>0){
1207
				if(data.data>0 && data.data<99){
1690 1208
					$("#artCount").text(data.data);
1691 1209
				}
1692
				if(data.data>0 && data.data>99){
1210
				if(data.data>99){
1693 1211
					$("#artCount").text("99+");
1694 1212
				}
1695 1213
			});
@ -1697,10 +1215,10 @@ $(function() {
1697 1215
				"owner": professorId,
1698 1216
				"category":"1"
1699 1217
			}, "GET", function(data){
1700
				if(data.data>0){
1218
				if(data.data>0 && data.data<99){
1701 1219
					$("#resCount").text(data.data);
1702 1220
				}
1703
				if(data.data>0 && data.data>99){
1221
				if(data.data>99){
1704 1222
					$("#resCount").text("99+");
1705 1223
				}
1706 1224
			});
@ -1708,30 +1226,30 @@ $(function() {
1708 1226
				"owner": professorId,
1709 1227
				"category":"1"
1710 1228
			}, "GET", function(data){
1711
				if(data.data>0){
1229
				if(data.data>0 && data.data<99){
1712 1230
					$("#serCount").text(data.data);
1713 1231
				}
1714
				if(data.data>0 && data.data>99){
1232
				if(data.data>99){
1715 1233
					$("#serCount").text("99+");
1716 1234
				}
1717 1235
			});
1718 1236
			oAjax("/ajax/ppatent/count/publish",{//专利总数
1719 1237
				"owner": professorId,
1720 1238
			}, "GET", function(data){
1721
				if(data.data>0){
1239
				if(data.data>0 && data.data<99){
1722 1240
					$("#patCount").text(data.data);
1723 1241
				}
1724
				if(data.data>0 && data.data>99){
1242
				if(data.data>99){
1725 1243
					$("#patCount").text("99+");
1726 1244
				}
1727 1245
			});
1728 1246
			oAjax("/ajax/ppaper/count/publish",{//论文总数
1729 1247
				"owner": professorId,
1730 1248
			}, "GET", function(data){
1731
				if(data.data>0){
1249
				if(data.data>0 && data.data<99){
1732 1250
					$("#parCount").text(data.data);
1733 1251
				}
1734
				if(data.data>0 && data.data>99){
1252
				if(data.data>99){
1735 1253
					$("#parCount").text("99+");
1736 1254
				}
1737 1255
			});
@ -1744,17 +1262,18 @@ $(function() {
1744 1262
				"professorId":watchO.beiProId,
1745 1263
				"rows":rows
1746 1264
			}, "GET", function(res){
1265
				console.log(res)
1747 1266
				var $info = res.data;
1748 1267
				if($info.length > 0) {
1749 1268
					$("#"+aimId).show()
1750 1269
					watchO.beiTime = $info[$info.length - 1].createTime;
1751 1270
					watchO.beiProId = $info[$info.length - 1].professorId;
1752
					
1753
					for(var i = 0; i < $info.length; i++) {
1754
						var liItem = document.createElement("li");
1755
						document.getElementById("attendMy").appendChild(liItem);
1756
						detailPro($info[i].professorId,liItem);
1271
1272
					var arr=[];
1273
					for(var i in $info) {
1274
						arr[i]=$info[i].professorId;
1757 1275
					}
1276
					detailPro(arr,aimId);
1758 1277
				}
1759 1278
				var liLen=document.getElementById(aimId).querySelectorAll("li").length;
1760 1279
                removeNodata(aimId);
@ -1779,8 +1298,94 @@ $(function() {
1779 1298
	        	$("#"+aimId).parent().find(".js-load-more").removeClass("active");
1780 1299
			})
1781 1300
		},
1301
		collectAnswer=function(isbind){
1302
			var aimId="attendAnswer",newStr="用户还未收藏任何回答"
1303
			oAjax("/ajax/question/answer/byWatch",{
1304
				"time":watchO.WATime,
1305
                "id":watchO.WAId,
1306
                "uid":professorId,
1307
                "rows":rows
1308
			}, "get", function(res){
1309
				var $info = res.data;
1310
				if($info.length > 0) {
1311
					$("#"+aimId).show()
1312
					watchO.WATime = $info[$info.length - 1].createTime;
1313
					watchO.WAId = $info[$info.length - 1].id;
1314
			
1315
					for(var i = 0; i < $info.length; i++) {
1316
						var listLi = $('<li>')
1317
						listLi.appendTo($("#"+aimId));
1318
                        detailAnswer($info[i], listLi);
1319
					}
1320
				}
1321
				var liLen=document.getElementById(aimId).querySelectorAll("li").length;
1322
                removeNodata(aimId);
1323
                if($info.length == 0 && liLen == 0 ){
1324
                	$("#"+aimId).hide()
1325
                    insertNodata(aimId,newStr);
1326
                }
1327
                if(isbind){
1328
                	$("#"+aimId).parent().find(".js-load-more").unbind("click").on("click",function(){
1329
					 	collectAnswer(false)
1330
					})
1331
                }
1332
				if ($info.length < rows) {
1333
                    $("#"+aimId).parent().find(".js-load-more").unbind("click");
1334
                    $("#"+aimId).parent().find(".js-load-more").hide();
1335
                }
1336
			},function(){
1337
				$("#"+aimId).parent().find(".js-load-more").attr("disabled",true);
1338
	       		$("#"+aimId).parent().find(".js-load-more").addClass("active");
1339
			},function(){
1340
				$("#"+aimId).parent().find(".js-load-more").removeAttr("disabled");
1341
	        	$("#"+aimId).parent().find(".js-load-more").removeClass("active");
1342
			})
1343
    	},
1344
    	collectQuestion=function(isbind){
1345
			var aimId="attendQuestion",newStr="用户还未关注任何问题"
1346
			oAjax("/ajax/question/watch",{
1347
				"time":watchO.WQTime,
1348
                "id":watchO.WQId,
1349
                "uid":professorId,
1350
                "rows":rows
1351
			}, "get", function(res){
1352
				var $info = res.data;
1353
				if($info.length > 0) {
1354
					$("#"+aimId).show()
1355
					watchO.WQTime = $info[$info.length - 1].createTime;
1356
					watchO.WQId = $info[$info.length - 1].id;
1357
			
1358
					for(var i = 0; i < $info.length; i++) {
1359
						var listLi = $('<li>')
1360
						listLi.appendTo($("#"+aimId));
1361
                        detailQuestion($info[i], listLi);
1362
					}
1363
				}
1364
				var liLen=document.getElementById(aimId).querySelectorAll("li").length;
1365
                removeNodata(aimId);
1366
                if($info.length == 0 && liLen == 0 ){
1367
                	$("#"+aimId).hide()
1368
                    insertNodata(aimId,newStr);
1369
                }
1370
                if(isbind){
1371
                	$("#"+aimId).parent().find(".js-load-more").unbind("click").on("click",function(){
1372
					 	collectQuestion(false)
1373
					})
1374
                }
1375
				if ($info.length < rows) {
1376
                    $("#"+aimId).parent().find(".js-load-more").unbind("click");
1377
                    $("#"+aimId).parent().find(".js-load-more").hide();
1378
                }
1379
			},function(){
1380
				$("#"+aimId).parent().find(".js-load-more").attr("disabled",true);
1381
	       		$("#"+aimId).parent().find(".js-load-more").addClass("active");
1382
			},function(){
1383
				$("#"+aimId).parent().find(".js-load-more").removeAttr("disabled");
1384
	        	$("#"+aimId).parent().find(".js-load-more").removeClass("active");
1385
			})
1386
    	},
1782 1387
		collectSorts=function(type,isbind){
1783
			//var aimId="attendMy",newStr="用户尚未被任何人关注"
1388
			var aimId="",newStr=""
1784 1389
			oAjax("/ajax/watch/proList",{//我关注的列表
1785 1390
				"professorId": professorId,
1786 1391
				"watchType":type,
@ -1789,17 +1394,48 @@ $(function() {
1789 1394
				"rows":rows
1790 1395
			}, "GET", function(res){
1791 1396
				var $info = res.data;
1397
				var arr=[];
1792 1398
				if($info.length > 0) {
1793 1399
					$("#"+aimId).show()
1794 1400
					watchO.watchTime = $info[$info.length - 1].createTime;
1795 1401
					watchO.watchObjId = $info[$info.length - 1].watchObject;
1796
					
1797
					for(var i = 0; i < $info.length; i++) {
1798
						var liItem = document.createElement("li");
1799
						document.getElementById("attendMy").appendChild(liItem);
1800
						detailPro($info[i].professorId,liItem);
1402
					for(var i in $info) {
1403
						arr[i]=$info[i].watchObject;
1801 1404
					}
1802 1405
				}
1406
				if(type==1){
1407
                	aimId="attendPro"
1408
                	newStr="用户还未关注任何专家"
1409
                	detailPro(arr,aimId);
1410
                }else if(type==2){
1411
                	aimId="attendRes"
1412
                	newStr="用户还未收藏任何资源"
1413
                	detailRes(arr,aimId);
1414
				}else if(type==3){
1415
					aimId="attendArt"
1416
					newStr="用户还未收藏任何文章"
1417
					detailArt(arr,aimId);
1418
				}else if(type==4){
1419
					aimId="attendPatent"
1420
					newStr="用户还未收藏任何专利"
1421
					detailPat(arr,aimId);
1422
				}else if(type==5){
1423
					aimId="attendPaper"
1424
					newStr="用户还未收藏任何论文"
1425
					detailPer(arr,aimId);
1426
				}else if(type==6){
1427
					aimId="attendCmp"
1428
					newStr="用户还未关注任何企业"
1429
					detailCmp(arr,aimId);
1430
				}else if(type==7){
1431
					aimId="attendDemand"
1432
					newStr="用户还未收藏任何需求"
1433
					detailDemand(arr,aimId);
1434
				}else if(type==10){
1435
					aimId="attendSer"
1436
					newStr="用户还未收藏任何服务"
1437
					detailService(arr,aimId);
1438
				}
1803 1439
				var liLen=document.getElementById(aimId).querySelectorAll("li").length;
1804 1440
                removeNodata(aimId);
1805 1441
                if($info.length == 0 && liLen == 0 ){
@ -1808,7 +1444,7 @@ $(function() {
1808 1444
                }
1809 1445
                if(isbind){
1810 1446
                	$("#"+aimId).parent().find(".js-load-more").unbind("click").on("click",function(){
1811
					 	attentMyself(false)
1447
					 	collectSorts(type,false)
1812 1448
					})
1813 1449
                }
1814 1450
				if ($info.length < rows) {
@ -1823,49 +1459,53 @@ $(function() {
1823 1459
	        	$("#"+aimId).parent().find(".js-load-more").removeClass("active");
1824 1460
			})
1825 1461
		},
1826
		detailPro=function(pid,liItem) {
1827
			oAjax("/ajax/professor/baseInfo/" + pid,{},"get",function(data){
1828
				var datalist=data.data;
1829
				var userType = autho(datalist.authType, datalist.orgAuth, datalist.authStatus);
1830
				var os = "";
1831
				if(datalist.title) {
1832
					if(datalist.orgName) {
1833
						os = datalist.title + "," + datalist.orgName;
1834
					} else {
1835
						os = datalist.title;
1836
					}
1837
				} else {
1838
					if(datalist.office) {
1839
						if(datalist.orgName) {
1840
							os = datalist.office + "," + datalist.orgName;
1462
		detailPro=function(arr,obj) {
1463
			oAjax("/ajax/professor/qm",{
1464
				id:arr,
1465
			},"get",function(data){
1466
				var dataStr=data.data;
1467
				for(var i = 0; i < dataStr.length; i++) {
1468
					var li = document.createElement("li");
1469
					li.className = "mui-table-view-cell";
1470
					var userType = autho(dataStr[i].authType, dataStr[i].orgAuth, dataStr[i].authStatus);
1471
					var os = "";
1472
					if(dataStr[i].title) {
1473
						if(dataStr[i].orgName) {
1474
							os = dataStr[i].title + "," + dataStr[i].orgName;
1841 1475
						} else {
1842
							os = datalist.office;
1476
							os = dataStr[i].title;
1843 1477
						}
1844 1478
					} else {
1845
						if(datalist.orgName) {
1846
							os = datalist.orgName;
1479
						if(dataStr[i].office) {
1480
							if(dataStr[i].orgName) {
1481
								os = dataStr[i].office + "," + dataStr[i].orgName;
1482
							} else {
1483
								os = dataStr[i].office;
1484
							}
1485
						} else {
1486
							if(dataStr[i].orgName) {
1487
								os = dataStr[i].orgName;
1488
							}
1847 1489
						}
1848 1490
					}
1491
					var baImg = "../images/default-photo.jpg";
1492
					if(dataStr[i].hasHeadImage == 1) {
1493
						baImg = "/images/head/" + dataStr[i].id + "_l.jpg";
1494
					}
1495
				
1496
					var strAdd = '';
1497
						strAdd += '<a  target="_blank" href="userInforShow.html?professorId='+ dataStr[i].id +'" class="flexCenter urlgo">';
1498
						strAdd += '<div class="madiaHead useHead" style="width: 80px;height: 80px;margin-top: -40px;background-image:url(' + baImg + ')"></div>';
1499
						strAdd += '<div class="madiaInfo" style="padding-left:92px"><p class="h1Font ellipsisSty">' + dataStr[i].name + '</span><em class="authicon ' + userType.sty + '" title="'+userType.title+'"></em></p>';
1500
						strAdd += '<p class="h2Font ellipsisSty">' + os + '</p>';
1501
						strAdd += '</div>';
1502
						strAdd += '</a>'
1503
					li.innerHTML = strAdd
1504
					document.getElementById(obj).appendChild(li);
1849 1505
				}
1850
				var baImg = "../images/default-photo.jpg";
1851
				if(datalist.hasHeadImage == 1) {
1852
					baImg = "/images/head/" + datalist.id + "_l.jpg";
1853
				}
1854
				var strAdd = '';
1855
					strAdd += '<a target="_blank" href="userInforShow.html?professorId='+ datalist.id +'" class="flexCenter urlgo">';
1856
					strAdd += '<div class="madiaHead useHead" style="width: 80px;height: 80px;margin-top: -40px;background-image:url(' + baImg + ')"></div>';
1857
					strAdd += '<div class="madiaInfo" style="padding-left:92px"><p class="h1Font ellipsisSty">' + datalist.name + '</span><em class="authicon ' + userType.sty + '" title="'+userType.title+'"></em></p>';
1858
					strAdd += '<p class="h2Font ellipsisSty">' + os + '</p>';
1859
					strAdd += '</div>';
1860
					strAdd += '</a>';
1861
				liItem.innerHTML = strAdd
1862
			})
1506
			});
1863 1507
		},
1864
		detailCmp=function(datalist) {
1865
			var arr=[];
1866
			for(var i in datalist) {
1867
				arr[i]=datalist[i].watchObject;
1868
			}
1508
		detailCmp=function(arr,obj) {
1869 1509
			oAjax("/ajax/org/qm",{
1870 1510
				id:arr,
1871 1511
			},"get",function(data){
@ -1887,19 +1527,11 @@ $(function() {
1887 1527
	            		itemlist += '<p class="h2Font ellipsisSty"><span>' + orgType + '</span> <span>' + orgOther + '</span></p>';
1888 1528
						itemlist += '</div></a>';
1889 1529
					li.innerHTML = itemlist
1890
					document.getElementById("attendCmp").appendChild(li);
1530
					document.getElementById(obj).appendChild(li);
1891 1531
				}
1892 1532
			});
1893 1533
		},
1894
		detailPat=function(datalist) {
1895
			if(datalist.length<0){
1896
				$("#attendPatent + .nodatabox").removeClass("displayNone");
1897
				return;
1898
			}
1899
			var arr=[];
1900
			for(var i in datalist) {
1901
				arr[i]=datalist[i].watchObject;
1902
			}
1534
		detailPat=function(arr,obj) {
1903 1535
			oAjax("/ajax/ppatent/qm",{
1904 1536
				id:arr,
1905 1537
			},"get",function(data){
@ -1916,15 +1548,11 @@ $(function() {
1916 1548
						strAdd += '</div>';
1917 1549
						strAdd += '</a>';
1918 1550
					li.innerHTML = strAdd
1919
					document.getElementById("attendPatent").appendChild(li);
1551
					document.getElementById(obj).appendChild(li);
1920 1552
				}
1921 1553
			});
1922 1554
		},
1923
		detailPer=function(datalist) {
1924
			var arr=[];
1925
			for(var i in datalist) {
1926
				arr[i]=datalist[i].watchObject;
1927
			}
1555
		detailPer=function(arr,obj) {
1928 1556
			oAjax("/ajax/ppaper/qm",{
1929 1557
				id:arr,
1930 1558
			},"get",function(data){
@ -1953,37 +1581,18 @@ $(function() {
1953 1581
						strAdd += '</div>';
1954 1582
						strAdd += '</a>';
1955 1583
					li.innerHTML = strAdd
1956
					document.getElementById("attendPaper").appendChild(li);
1584
					document.getElementById(obj).appendChild(li);
1957 1585
				}
1958 1586
			});
1959 1587
		},
1960
		detailRes=function(datalist) {
1961
			var arr=[];
1962
			for(var i in datalist) {
1963
				arr[i]=datalist[i].watchObject;
1964
			}
1588
		detailRes=function(arr,obj) {
1965 1589
			oAjax("/ajax/resource/qm",{
1966 1590
				id:arr,
1967 1591
			},"get",function(data){
1592
				console.log(data)
1968 1593
				var dataItem=data.data;
1969 1594
				for(var i = 0; i < dataItem.length; i++) {
1970 1595
					var dataStr=dataItem[i]
1971
					var namepo, userType;
1972
					if(dataStr.resourceType == 1) {
1973
						namepo = dataStr.name;
1974
						userType = autho(dataStr.authType, dataStr.orgAuth, dataStr.authStatus);
1975
					} else {
1976
						if(dataStr.forShort){
1977
							namepo = dataStr.forShort;
1978
						}else{
1979
							namepo = dataStr.name;
1980
						}
1981
						userType={}
1982
						if(dataStr.authStatus==3){
1983
							userType.sty="authicon-com-ok"
1984
							userType.title="科袖认证企业"
1985
						}
1986
					}
1987 1596
					var rImg = "../images/default-resource.jpg";
1988 1597
					if(dataStr.images.length) {
1989 1598
						rImg = "/data/resource/" + dataStr.images[0].imageSrc;
@ -1994,19 +1603,46 @@ $(function() {
1994 1603
						strAdd += '<a target="_blank" href="resourceShow.html?resourceId='+ dataStr.resourceId +'" class="flexCenter urlgo">';
1995 1604
						strAdd += '<div class="madiaHead resouseHead" style="background-image:url('+ rImg +')"></div>';
1996 1605
						strAdd += '<div class="madiaInfo"><p class="h1Font ellipsisSty">'+ dataStr.resourceName +'</p>';
1997
						strAdd += '<p class="h1Font ellipsisSty">'+ namepo +'<em class="authiconNew ' + userType.sty + '" title="'+userType.title+'"></em></p>';
1606
						strAdd += '<p class="h1Font ellipsisSty"><span class="ownerName"></span><em class="authiconNew ownerSty"></em></p>';
1998 1607
						strAdd += '<p class="h2Font ellipsisSty-2">用途:'+ dataStr.supportedServices+'</p></div>';
1999 1608
						strAdd += '</a>';
2000 1609
					li.innerHTML =strAdd
2001
					document.getElementById("attendRes").appendChild(li);
1610
					var $itemlist = $(li);
1611
					document.getElementById(obj).appendChild(li);
1612
					if(dataStr.resourceType=="1"){
1613
						(function(mo){
1614
							cacheModel.getProfessor(dataStr.professorId,function(sc,value){
1615
								if(sc){
1616
									mo.find(".ownerName").html(value.name)
1617
									var userType = autho(value.authType, value.orgAuth, value.authStatus);
1618
									mo.find(".ownerSty").addClass(userType.sty).attr("title",userType.title)
1619
								}else{
1620
									console.log("error")
1621
								}
1622
							})
1623
						})($itemlist);
1624
					}else if(dataStr.resourceType=="2"){
1625
						(function(mo){
1626
							cacheModel.getCompany(dataStr.orgId,function(sc,value){
1627
								if(sc){
1628
									if(value.forShort){
1629
										mo.find(".ownerName").html(value.forShort)
1630
									}else{
1631
										mo.find(".ownerName").html(value.name)
1632
									}
1633
									if(value.authStatus==3) {
1634
										mo.find(".ownerSty").addClass("authicon-com-ok").attr("title","科袖认证企业")
1635
									}
1636
								}else{
1637
									console.log("error")
1638
								}
1639
							})
1640
						})($itemlist);
1641
					}
2002 1642
				}
2003 1643
			});
2004 1644
		},
2005
		detailArt=function (datalist) {
2006
			var arr=[];
2007
			for(var i in datalist) {
2008
				arr[i]=datalist[i].watchObject;
2009
			}
1645
		detailArt=function (arr,obj) {
2010 1646
			oAjax("/ajax/article/qm",{
2011 1647
				id:arr,
2012 1648
			},"get",function(data){
@ -2017,39 +1653,50 @@ $(function() {
2017 1653
					if(dataItem.articleImg) {
2018 1654
						arImg ="/data/article/" + dataItem.articleImg
2019 1655
					}
2020
					var title = dataItem.articleTitle;
2021
					var name = ""
2022 1656
					var li = document.createElement("li");
2023
					if( dataItem.articleType == 1) {
2024
						name = dataItem.professor.name;
2025
					} else {
2026
						if(dataItem.organization.forShort){
2027
							name = dataItem.organization.forShort;
2028
						}else{
2029
							name = dataItem.organization.name;
2030
						}
2031
					}
2032 1657
					li.className = "mui-table-view-cell";
2033 1658
					var strAdd = '';
2034 1659
						strAdd += '<a  target="_blank" href="/'+ pageUrl('a',dataItem) +'" class="flexCenter urlgo">';
2035 1660
						strAdd += '<div class="madiaHead artHead" style="background-image:url('+ arImg +')"></div>';
2036 1661
						strAdd += '<div class="madiaInfo"><p class="h1Font ellipsisSty-2">'+ dataItem.articleTitle +'</p>';
2037 1662
						strAdd += '<ul class="h2Font clearfix">';
2038
						strAdd += '<li><span>'+ name +'</span></li>';
1663
						strAdd += '<li><span class="ownerName"></span></li>';
2039 1664
						strAdd += '<li><span class="time">'+ commenTime(dataItem.publishTime) +'</span></li>';
2040 1665
						strAdd += '<li><span class="comment"></span></li>';
2041 1666
						strAdd += '</ul></div>';
2042 1667
						strAdd += '</a>';
2043
					li.innerHTML = strAdd
2044
					document.getElementById("attendArt").appendChild(li);
1668
					li.innerHTML =strAdd
1669
					var $itemlist = $(li);
1670
					document.getElementById(obj).appendChild(li);
1671
					if(dataItem.articleType=="1"){
1672
						(function(mo){
1673
							cacheModel.getProfessor(dataItem.professorId,function(sc,value){
1674
								if(sc){
1675
									mo.find(".ownerName").html(value.name)
1676
								}else{
1677
									console.log("error")
1678
								}
1679
							})
1680
						})($itemlist);
1681
					}else if(dataItem.articleType=="2"){
1682
						(function(mo){
1683
							cacheModel.getCompany(dataItem.orgId,function(sc,value){
1684
								if(sc){
1685
									if(value.forShort){
1686
										mo.find(".ownerName").html(value.forShort)
1687
									}else{
1688
										mo.find(".ownerName").html(value.name)
1689
									}
1690
								}else{
1691
									console.log("error")
1692
								}
1693
							})
1694
						})($itemlist);
1695
					}
2045 1696
				}
2046 1697
			});
2047 1698
		},
2048
		detailDemand=function(datalist) {
2049
			var arr=[];
2050
			for(var i in datalist) {
2051
				arr[i]=datalist[i].watchObject;
2052
			}
1699
		detailDemand=function(arr,obj) {
2053 1700
			oAjax("/ajax/demand/qm",{
2054 1701
				id:arr,
2055 1702
			},"get",function(data){
@ -2070,7 +1717,7 @@ $(function() {
2070 1717
					strCon+='</ul></div></a>'
2071 1718
					
2072 1719
					li.innerHTML = strCon
2073
					document.getElementById("attendDemand").appendChild(li);
1720
					document.getElementById(obj).appendChild(li);
2074 1721
				}
2075 1722
				
2076 1723
			});
@ -2117,9 +1764,71 @@ $(function() {
2117 1764
	
2118 1765
	        var $str = $(strAdd);
2119 1766
	        listLi.append($str);
2120
	        attendCount(dataStr.id, $str);
2121
	        questioninfo(dataStr.id, $str);
2122 1767
	   },
1768
		detailService=function(arr,obj) {
1769
			oAjax("/ajax/ware/qm",{
1770
				id:arr,
1771
			},"get",function(data){
1772
				console.log(data)
1773
				var dataItem=data.data;
1774
				for(var i = 0; i < dataItem.length; i++) {
1775
					var dataStr=dataItem[i]
1776
					var li = document.createElement("li");
1777
					li.className = "mui-table-view-cell";
1778
					var cnt="", rImg = "../images/default-service.jpg";
1779
					if(dataStr.images) {
1780
						var subs = strToAry(dataStr.images)
1781
						if(subs.length > 0) {
1782
							rImg="/data/ware" + subs[0]
1783
						}
1784
					}
1785
					if(dataStr.cnt){
1786
						cnt="内容:"+dataStr.cnt
1787
					}
1788
					var strAdd = '';
1789
						strAdd += '<a target="_blank" href="serviceShow.html?serviceId='+dataStr[i].id+'" class="flexCenter urlgo">';
1790
						strAdd += '<div class="madiaHead resouseHead" style="background-image:url('+ rImg +')"></div>';
1791
						strAdd += '<div class="madiaInfo"><p class="h1Font ellipsisSty">'+ dataStr.name +'</p>';
1792
						strAdd += '<p class="h1Font ellipsisSty"><span class="ownerName"></span><em class="authiconNew ownerSty"></em></p>';
1793
						strAdd += '<p class="h2Font ellipsisSty-2">'+ cnt+'</p></div>';
1794
						strAdd += '</a>';
1795
					li.innerHTML = strAdd
1796
					var $itemlist = $(li);
1797
					document.getElementById(obj).appendChild(li);
1798
					if(dataStr.category=="1"){
1799
						(function(mo){
1800
							cacheModel.getProfessor(dataStr.owner,function(sc,value){
1801
								if(sc){
1802
									mo.find(".ownerName").html(value.name)
1803
									var userType = autho(value.authType, value.orgAuth, value.authStatus);
1804
									mo.find(".ownerSty").addClass(userType.sty).attr("title",userType.title)
1805
								}else{
1806
									console.log("error")
1807
								}
1808
							})
1809
						})($itemlist);
1810
					}else if(dataStr.category=="2"){
1811
						(function(mo){
1812
							cacheModel.getCompany(dataStr.owner,function(sc,value){
1813
								if(sc){
1814
									if(value.forShort){
1815
										mo.find(".ownerName").html(value.forShort)
1816
									}else{
1817
										mo.find(".ownerName").html(value.name)
1818
									}
1819
									if(value.authStatus==3) {
1820
										mo.find(".ownerSty").addClass("authicon-com-ok").attr("title","科袖认证企业")
1821
									}
1822
								}else{
1823
									console.log("error")
1824
								}
1825
							})
1826
						})($itemlist);
1827
					}
1828
					
1829
				}
1830
			});
1831
		},
2123 1832
		proinfo=function(pid, $str) {
2124 1833
			oAjax("/ajax/professor/baseInfo/" + pid,{}, "get", function(data){
2125 1834
                var dataStr = data.data
@ -2178,34 +1887,197 @@ $(function() {
2178 1887
                }
2179 1888
		    });
2180 1889
		},
2181
		researchAlert=function(cap){
2182
			oAjax("/ajax/researchAreaLog/ql",{
2183
	        	"professorId": professorId,
2184
				'caption': cap,
2185
				"rows": 1000
2186
	        }, "get", function(data){
2187
				$("#areaCon").html("");
2188
				var $info = data.data;
2189
				$("#subArea").text(cap);
2190
				$(".resAreaCover").fadeIn();
2191
				$(".resAreaTip").addClass("displayNone")
2192
				$(".resAreaCon").show()
2193
				if($info.length == 0) {
2194
					$(".resAreaCon").hide();
2195
					$(".resAreaTip").removeClass("displayNone")
2196
					return;
1890
		bindClickFun=function(){
1891
			$("#myAttends").unbind("click").on("click",function(){//关注与收藏
1892
				openAttend()
1893
			})
1894
			
1895
			$("#tab8user").unbind("click").on("click",function(){//点击更多
1896
				watchO={
1897
					beiTime:"",
1898
					beiProId:"",
1899
					
1900
					watchTime:"",
1901
					watchObjId:"",
1902
				};
1903
				var pa=$(".moreNavUl.moreBuUl>li.liNow").attr("rel")
1904
				$("#"+pa).find("ul").html("")
1905
				$("#"+pa).find(".js-load-more").show();
1906
				if(userid!=professorId){
1907
					//关注他的人
1908
					$(".moreNavUl.moreBuUl>li.attentType").hide();
1909
					$(".moreNavUl.moreBuUl>li.attendMy").addClass("liNow").text("关注他的人");
1910
					$("#item8drop5").show().siblings().hide();
1911
					attentMyself(true);
1912
				}else{
1913
					$("#item8drop1").show().siblings().hide();
1914
					collectSorts(1,true);
1915
				}
1916
				collectSorts(3,true);
1917
			})
1918
			$("#tab6user").unbind("click").on("click",function(){//点击问答
1919
				dataO = {
1920
					AnsTime:"",
1921
					AnsId:"",
1922
					
1923
					QuTime:"",
1924
					QuId:"",
1925
					
1926
				};
1927
				var pa=$(".moreNavUl.wendaUl>li.liNow").attr("rel")
1928
				$("#"+pa).find("ul").html("")
1929
				$("#"+pa).find(".js-load-more").show();
1930
				if(userid!=professorId){
1931
					//他的回答
1932
					$(".moreNavUl.wendaUl>li").eq(0).hide().siblings().addClass("liNow").text("他的回答");
1933
					$("#item6drop2").show().siblings().hide();
1934
					answerListVal(true);
1935
				}else{
1936
					questionListVal(true);
1937
				}
1938
			})
1939
			$(".moreNavUl.wendaUl").on("click","li",function(){//问答tab切换
1940
				var pa=$(this).attr("rel")
1941
				$("#"+pa).find("ul").html("")
1942
				$("#"+pa).find(".js-load-more").show();
1943
				var sortN=$(this).attr("data-num");
1944
				dataO = {
1945
					AnsTime:"",
1946
					AnsId:"",
1947
					
1948
					QuTime:"",
1949
					QuId:"",
1950
					
1951
				};
1952
				if(sortN==1){
1953
					questionListVal(true);
1954
				}else if(sortN==2){
1955
					answerListVal(true);
1956
				}
1957
			})
1958
			$(".moreNavUl.moreBuUl").on("click","li.attentType:not(.rightbtn)",function(){//关注tab切换
1959
				var pa=$(this).attr("rel")
1960
				$("#"+pa).find("ul").html("")
1961
				$("#"+pa).find(".js-load-more").show();
1962
				var sortN=$(this).attr("data-num");
1963
				watchO={
1964
					watchTime:"",
1965
					watchObjId:"",
1966
					
1967
					WATime:"",
1968
					WAId:"",
1969
					
1970
					WQTime:"",
1971
					WQId:"",
1972
				};
1973
				if(sortN==8){
1974
					collectQuestion(true)	
1975
				}else if(sortN==9){
1976
					collectAnswer(true)	
1977
				}else{
1978
					collectSorts(sortN,true);
1979
				}
1980
			})
1981
			
1982
			$("#tabAttendMy").unbind("click").on("click",function(){//关注我的人
1983
				var pa=$(this).attr("rel")
1984
				$("#"+pa).find("ul").html("")
1985
				$("#"+pa).find(".js-load-more").show();
1986
				watchO={
1987
					beiTime:"",
1988
					beiProId:"",
1989
				}
1990
				attentMyself(true);
1991
			})
1992
			$("#attendmyGo").unbind("click").on("click",function(){
1993
				if(userid!=professorId){
1994
					$(".moreNavUl.moreBuUl>li.attentType").hide();//关注他的人
1995
					$(".moreNavUl.moreBuUl>li.attendMy").addClass("liNow").text("关注他的人");
2197 1996
				}
2198
				for(var i = 0; i < $info.length; i++) {
2199
					var liItem = document.createElement("li");
2200
					document.getElementById("areaCon").appendChild(liItem);
2201
					detailPro($info[i],liItem);
1997
				$(".mainNavUl li.rightbtn").addClass("liNow").siblings().removeClass("liNow");
1998
				$(".moreNav").hide()
1999
				$("#item8more").fadeIn();
2000
				$("#item8user").show().siblings().hide();
2001
				$(".moreBuUl li.attendMy").addClass("liNow").siblings().removeClass("liNow");
2002
				$("#item8drop5").show().siblings().hide();
2003
				watchO={
2004
					beiTime:"",
2005
					beiProId:"",
2006
				}
2007
				$("#item8drop5").find("ul").html("")
2008
				$("#item8drop5").find(".js-load-more").show();
2009
				attentMyself(true);
2010
			})
2011
			
2012
			/*研究方向点赞*/
2013
			var clFlag = 1;
2014
			$("#researchAreaShow").on("click", ".plus", function() {
2015
				if(userid && userid != null && userid != "null") {
2016
					//点赞变化样式
2017
					if(clFlag) {
2018
						clFlag = 0;
2019
					} else {
2020
						return;
2021
					}
2022
					if($(this).data("isagree") > -1) {
2023
						$(this).stop(true, true).animate({
2024
							backgroundPositionY: 0
2025
						}, 300); //变成未点赞样式
2026
					} else {
2027
						$(this).stop(true, true).animate({
2028
							backgroundPositionY: -26
2029
						}, 300); //变成点赞样式
2030
					}
2031
	
2032
					$.ajax({
2033
						"url": $(this).data("isagree") > -1 ? "/ajax/researchArea/unAgree" : "/ajax/researchArea/agree",
2034
						"type": "POST",
2035
						"data": {
2036
							"targetId": $(this).data("pid"),
2037
							"targetCaption": oArray[$(this).data("caption")],
2038
							"opId": userid,
2039
							"uname":$.cookie("userName")
2040
						},
2041
						"contentType": "application/x-www-form-urlencoded",
2042
						"success": function(dataStr) {
2043
							if(dataStr.success) {
2044
								$.get("/ajax/professor/info/" + professorId, function(dataStr) {
2045
									if(dataStr.success) {
2046
										clFlag = 1;
2047
										var $info = dataStr.data;
2048
										if($info) {
2049
											$("#researchAreaShow").empty("")
2050
											if($info.researchAreas) {
2051
												researchAreaShow($info.researchAreas, $info.editResearchAreaLogs);
2052
											}
2053
										}
2054
									}
2055
								})
2056
							} else {
2057
								$.MsgBox.Alert("提示", dataStr.msg);
2058
							}
2059
						}
2060
					});
2061
				} else {
2062
					quickLog();
2063
					operatTab();
2064
					closeLog();
2202 2065
				}
2203
			    $("body").css("position", "fixed");
2066
	
2067
			})
2068
			
2069
			//点击每个研究方向弹出研究方向详情窗口
2070
			$("#researchAreaShow").on("click", ".favorBox,.favorCount", function() {
2071
				var cap = $(this).attr("caption");
2072
				researchAlert(cap)
2073
			});
2074
			
2075
			//关闭按钮
2076
			$("#workclose").click(function() {
2077
				$(".resAreaCover").fadeOut();
2078
			    $("body").css("position", "");
2204 2079
			});
2205
		},
2206
		bindClickFun=function(){
2207 2080
			
2208
		
2209 2081
			//点击查看全部资源
2210 2082
			$(".coninfobox").on("click","#seeMoreR",function(){
2211 2083
				document.body.scrollTop = document.documentElement.scrollTop = 0;
@ -2281,15 +2153,6 @@ $(function() {
2281 2153
				}
2282 2154
			});
2283 2155
			
2284
			$("#attendmyGo").on("click",function(){
2285
				$(".mainNavUl li.rightbtn").addClass("liNow").siblings().removeClass("liNow");
2286
				$("#item8more").show();
2287
				$("#item8user").show().siblings().hide();
2288
				$(".moreBuUl li.attendMy").addClass("liNow").siblings().removeClass("liNow");
2289
				$("#item8drop1").show().siblings().hide();
2290
				attentMyself();
2291
			})
2292
			
2293 2156
			//纠错反馈
2294 2157
			$(".correctSubmit").on("click",function(){
2295 2158
				var cntCon=$(this).siblings(".correctCon").val();
@ -2313,7 +2176,12 @@ $(function() {
2313 2176
	
2314 2177
		}
2315 2178
2316
	
2179
	if(GetQueryString("flag")) {
2180
		researchAlert(GetQueryString("flag"))
2181
	}
2182
	if(GetQueryString("iLike")){
2183
		openAttend();
2184
	}
2317 2185
	if(userid!=professorId){
2318 2186
		pageViewLog(professorId,1)
2319 2187
		relevantExperts();//合作专家
@ -2322,14 +2190,7 @@ $(function() {
2322 2190
		isActUser();//判断用户是否被激活
2323 2191
		ifcollectionAbout(professorId,$(".goSpan").find(".attenSpan"), 1)
2324 2192
		$(".goSpan").show();
2325
		$(".moreBuUl li.attentType").hide();
2326
		$(".moreBuUl li.attendMy").addClass("liNow").text("关注他的人");
2327
		$("#item8drop10").show().siblings().hide();
2328
		watchType=0;
2329
		attentMyself(true);
2330 2193
	}else{
2331
		collAttent(1,true);
2332
		questionListVal(true);
2333 2194
		$(".goSpanTo").show();
2334 2195
		$(".myoneself").show();
2335 2196
	}
@ -2341,83 +2202,9 @@ $(function() {
2341 2202
	serviceListVal(true);
2342 2203
	patentListVal(true);
2343 2204
	paperListVal(true);
2344
	answerListVal(true);//获取个人的回答
2345 2205
	bindClickFun();
2346 2206
2347 2207
	
2348
2349
	$("#myAttends").on("click",function(){
2350
			openAttend()
2351
		})
2352
		
2353 2208
		
2354
		/*研究方向点赞*/
2355
		var clFlag = 1;
2356
		$("#researchAreaShow").on("click", ".plus", function() {
2357
			if(userid && userid != null && userid != "null") {
2358
				//点赞变化样式
2359
				if(clFlag) {
2360
					clFlag = 0;
2361
				} else {
2362
					return;
2363
				}
2364
				if($(this).data("isagree") > -1) {
2365
					$(this).stop(true, true).animate({
2366
						backgroundPositionY: 0
2367
					}, 300); //变成未点赞样式
2368
				} else {
2369
					$(this).stop(true, true).animate({
2370
						backgroundPositionY: -26
2371
					}, 300); //变成点赞样式
2372
				}
2373
2374
				$.ajax({
2375
					"url": $(this).data("isagree") > -1 ? "/ajax/researchArea/unAgree" : "/ajax/researchArea/agree",
2376
					"type": "POST",
2377
					"data": {
2378
						"targetId": $(this).data("pid"),
2379
						"targetCaption": oArray[$(this).data("caption")],
2380
						"opId": userid,
2381
						"uname":$.cookie("userName")
2382
					},
2383
					"contentType": "application/x-www-form-urlencoded",
2384
					"success": function(dataStr) {
2385
						if(dataStr.success) {
2386
							$.get("/ajax/professor/info/" + professorId, function(dataStr) {
2387
								if(dataStr.success) {
2388
									clFlag = 1;
2389
									var $info = dataStr.data;
2390
									if($info) {
2391
										$("#researchAreaShow").empty("")
2392
										if($info.researchAreas) {
2393
											researchAreaShow($info.researchAreas, $info.editResearchAreaLogs);
2394
										}
2395
									}
2396
								}
2397
							})
2398
						} else {
2399
							$.MsgBox.Alert("提示", dataStr.msg);
2400
						}
2401
					}
2402
				});
2403
			} else {
2404
				quickLog();
2405
				operatTab();
2406
				closeLog();
2407
			}
2408
2409
		})
2410
		
2411
		//点击每个研究方向弹出研究方向详情窗口
2412
		$("#researchAreaShow").on("click", ".favorBox,.favorCount", function() {
2413
			var cap = $(this).attr("caption");
2414
			researchAlert(cap)
2415
		});
2416
		
2417
		//关闭按钮
2418
		$("#workclose").click(function() {
2419
			$(".resAreaCover").fadeOut();
2420
		    $("body").css("position", "");
2421
		});
2422 2209
})
2423 2210

+ 21 - 32
userInforShow.html

@ -76,7 +76,7 @@
76 76
						<li rel="item5user" id="tab5user">论文 <span class="counts" id="parCount"></span></li>
77 77
						<li rel="item6user" id="tab6user" tmp="item6more" class="wenda">问答 <span class="counts" id="qaCount"></span></li>
78 78
						<li rel="item7user" id="tab7user">资料</li>
79
						<li rel="item8user" tmp="item8more" class="rightbtn">更多<em class="foldtr"></em></li>
79
						<li rel="item8user" id="tab8user" tmp="item8more" class="rightbtn">更多<em class="foldtr"></em></li>
80 80
					</ul>
81 81
					<div class="moreNav wendaNav" id="item6more">
82 82
						<ul class="moreNavUl wendaUl clearfix">
@ -89,18 +89,18 @@
89 89
							<li rel="item8drop1" data-num="1" class="attentType liNow">我关注的专家</li>
90 90
							<li rel="item8drop2" data-num="6" class="attentType">我关注的企业</li>
91 91
							<li rel="item8drop3" data-num="8" class="attentType">我关注的问题</li>
92
							<li rel="" tmp="drop4list" class="rightbtn attentType"><span>我收藏的文章</span><em class="foldtr"></em>
92
							<li rel="item8drop4" id="dropMenu" tmp="drop4list" class="rightbtn attentType"><span tmp="">我收藏的文章</span><em class="foldtr"></em>
93 93
								<ul class="table-drop" id="drop4list">
94
									<li rel="item8drop4" id="collectArtTab" data-num="3" class="attentType">我收藏的文章</li>
95
									<li rel="item8drop11" id="collectSerTab" data-num="10" class="attentType">我收藏的服务</li>
96
									<li rel="item8drop7" id="collectResTab" data-num="2" class="attentType">我收藏的资源</li>
97
									<li rel="item8drop5" id="collectPatTab" data-num="4" class="attentType">我收藏的专利</li>
98
									<li rel="item8drop6" id="collectParTab" data-num="5" class="attentType">我收藏的论文</li>
99
									<li rel="item8drop8" id="collectDemTab" data-num="7" class="attentType">我收藏的需求</li>
100
									<li rel="item8drop9" id="collectAnsTab" data-num="9" class="attentType">我收藏的回答</li>
94
									<li rel="item8drop4item1" id="collectArtTab" data-num="3" class="attentType">我收藏的文章</li>
95
									<li rel="item8drop4item7" id="collectSerTab" data-num="10" class="attentType">我收藏的服务</li>
96
									<li rel="item8drop4item4" id="collectResTab" data-num="2" class="attentType">我收藏的资源</li>
97
									<li rel="item8drop4item2" id="collectPatTab" data-num="4" class="attentType">我收藏的专利</li>
98
									<li rel="item8drop4item3" id="collectParTab" data-num="5" class="attentType">我收藏的论文</li>
99
									<li rel="item8drop4item5" id="collectDemTab" data-num="7" class="attentType">我收藏的需求</li>
100
									<li rel="item8drop4item6" id="collectAnsTab" data-num="9" class="attentType">我收藏的回答</li>
101 101
								</ul>
102 102
							</li>
103
							<li rel="item8drop10" data-num="0" class="attendMy">关注我的人</li>
103
							<li rel="item8drop5" class="attendMy" id="tabAttendMy">关注我的人</li>
104 104
						</ul>	
105 105
					</div>
106 106
				</div>
@ -345,64 +345,52 @@
345 345
							</div>
346 346
						</div>
347 347
						<div id="item8drop4" class="coninfobox form-item otherShow dropconItem">
348
							<div class="coninfocon form-result aboutRes">
348
							<div id="item8drop4item1" class="coninfocon form-result aboutRes droplistcon">
349 349
								<ul id="attendArt">
350 350
									
351 351
								</ul>
352 352
								<button class="js-load-more"></button>
353 353
							</div>
354
						</div>
355
						<div id="item8drop5" class="coninfobox form-item otherShow dropconItem">
356
							<div class="coninfocon form-result aboutRes">
354
							<div id="item8drop4item2"  class="coninfocon form-result aboutRes droplistcon">
357 355
								<ul id="attendPatent">
358 356
									
359 357
								</ul>
360 358
								<button class="js-load-more"></button>
361 359
							</div>
362
						</div>
363
						<div id="item8drop6" class="coninfobox form-item otherShow dropconItem">
364
							<div class="coninfocon form-result aboutRes">
360
							<div id="item8drop4item3" class="coninfocon form-result aboutRes droplistcon">
365 361
								<ul id="attendPaper">
366 362
									
367 363
								</ul>
368 364
								<button class="js-load-more"></button>
369 365
							</div>
370
						</div>
371
						<div id="item8drop7" class="coninfobox form-item otherShow dropconItem">
372
							<div class="coninfocon form-result aboutRes">
366
							<div id="item8drop4item4" class="coninfocon form-result aboutRes droplistcon">
373 367
								<ul id="attendRes">
374 368
									
375 369
								</ul>
376 370
								<button class="js-load-more"></button>
377 371
							</div>
378
						</div>
379
						<div id="item8drop8" class="coninfobox form-item otherShow dropconItem">
380
							<div class="coninfocon form-result aboutRes">
372
							<div id="item8drop4item5" class="coninfocon form-result aboutRes droplistcon">
381 373
								<ul id="attendDemand">
382 374
									
383 375
								</ul>
384 376
								<button class="js-load-more"></button>
385 377
							</div>
386
						</div>
387
						<div id="item8drop9" class="coninfobox form-item otherShow dropconItem">
388
							<div class="coninfocon form-result aboutRes">
378
							<div id="item8drop4item6" class="coninfocon form-result aboutRes droplistcon">
389 379
								<ul id="attendAnswer">
390 380
									
391 381
								</ul>
392 382
								<button class="js-load-more"></button>
393 383
							</div>
394
						</div>
395
						<div id="item8drop10" class="coninfobox form-item dropconItem">
396
							<div class="coninfocon form-result aboutRes">
397
								<ul id="attendMy">
384
							<div id="item8drop4item7" class="coninfocon form-result aboutRes droplistcon">
385
								<ul id="attendSer">
398 386
									
399 387
								</ul>
400 388
								<button class="js-load-more"></button>
401 389
							</div>
402 390
						</div>
403
						<div id="item8drop11" class="coninfobox form-item otherShow dropconItem">
391
						<div id="item8drop5" class="coninfobox form-item dropconItem">
404 392
							<div class="coninfocon form-result aboutRes">
405
								<ul id="attendSer">
393
								<ul id="attendMy">
406 394
									
407 395
								</ul>
408 396
								<button class="js-load-more"></button>
@ -500,6 +488,7 @@
500 488
<script type="text/javascript" src="js/weixinshare/qrcode.min.js"></script>
501 489
<script type="text/javascript" src="js/public/baseUtil.js"></script>
502 490
<script type="text/javascript" src="js/public/genCom.js"></script>
491
<script type="text/javascript" src="js/public/cacheUtil.js"></script>
503 492
<script type="text/javascript" src="js/userInforShow.js"></script>
504 493
<script type="text/javascript" src="js/quickLogin.js"></script>
505 494
<script>