|
@ -29,7 +29,7 @@ $(function() {
|
29
|
29
|
$(".goSpan").show();
|
30
|
30
|
$(".moreNavUl li.attentType").hide();
|
31
|
31
|
$(".moreNavUl li.attendMy").addClass("liNow").text("关注他的人");
|
32
|
|
$("#item7user>.coninfobox").eq(7).show().siblings().hide();
|
|
32
|
$("#item8user>.coninfobox").eq(9).show().siblings().hide();
|
33
|
33
|
watchType=0;
|
34
|
34
|
attentMy();
|
35
|
35
|
}else{
|
|
@ -55,7 +55,7 @@ $(function() {
|
55
|
55
|
$(".moreNavUl").on("click","li:not('.rightbtn')",function(){//获取关注对象类型标志
|
56
|
56
|
watchType=$(this).attr("data-num");
|
57
|
57
|
console.log($(".moreNavUl li:not('.rightbtn')").index(this))
|
58
|
|
$("#item7user>.coninfobox").eq($(".moreNavUl li:not('.rightbtn')").index(this)).show().siblings().hide();
|
|
58
|
$("#item8user>.coninfobox").eq($(".moreNavUl li:not('.rightbtn')").index(this)).show().siblings().hide();
|
59
|
59
|
if(watchType==0){
|
60
|
60
|
attentMy()
|
61
|
61
|
}else{
|
|
@ -73,16 +73,16 @@ $(function() {
|
73
|
73
|
$("#myAttends").on("click",function(){
|
74
|
74
|
$(".mainNavUl li.rightbtn").addClass("liNow").siblings().removeClass("liNow");
|
75
|
75
|
$(".navconBox .moreNav").show();
|
76
|
|
$("#item7user").show().siblings().hide();
|
|
76
|
$("#item8user").show().siblings().hide();
|
77
|
77
|
$(".moreNavUl li.attentType").eq(0).addClass("liNow").siblings().removeClass("liNow");
|
78
|
|
$("#item7user>.coninfobox").eq(0).show().siblings().hide();
|
|
78
|
$("#item8user>.coninfobox").eq(0).show().siblings().hide();
|
79
|
79
|
})
|
80
|
80
|
$("#attendmyGo").on("click",function(){
|
81
|
81
|
$(".mainNavUl li.rightbtn").addClass("liNow").siblings().removeClass("liNow");
|
82
|
82
|
$(".navconBox .moreNav").show();
|
83
|
|
$("#item7user").show().siblings().hide();
|
|
83
|
$("#item8user").show().siblings().hide();
|
84
|
84
|
$(".moreNavUl li.attendMy").addClass("liNow").siblings().removeClass("liNow");
|
85
|
|
$("#item7user>.coninfobox").eq(7).show().siblings().hide();
|
|
85
|
$("#item8user>.coninfobox").eq(9).show().siblings().hide();
|
86
|
86
|
watchType=0
|
87
|
87
|
attentMy();
|
88
|
88
|
})
|
|
@ -732,6 +732,11 @@ $(function() {
|
732
|
732
|
console.log(data);
|
733
|
733
|
if(data.success) {
|
734
|
734
|
var madiaHead ='';
|
|
735
|
if(data.data.total>0){
|
|
736
|
$("#resCount").html(data.data.total)
|
|
737
|
}else if(data.data.total>99){
|
|
738
|
$("#resCount").html("99+")
|
|
739
|
}
|
735
|
740
|
var dataStr=data.data.data;
|
736
|
741
|
if(dataStr.length > 0){
|
737
|
742
|
$("#showResource").parents(".coninfobox").removeClass("displayNone");
|
|
@ -793,6 +798,11 @@ $(function() {
|
793
|
798
|
success: function(data) {
|
794
|
799
|
if(data.success) {
|
795
|
800
|
var madiaHead ='/images/default-artical.jpg';
|
|
801
|
if(data.data.total>0){
|
|
802
|
$("#artCount").html(data.data.total)
|
|
803
|
}else if(data.data.total>99){
|
|
804
|
$("#artCount").html("99+")
|
|
805
|
}
|
796
|
806
|
var dataStr=data.data.data;
|
797
|
807
|
if(dataStr.length > 0){
|
798
|
808
|
$("#showArticle").parents(".coninfobox").removeClass("displayNone");
|
|
@ -871,6 +881,11 @@ $(function() {
|
871
|
881
|
timeout: 10000, //超时设置
|
872
|
882
|
success: function(data) {
|
873
|
883
|
if(data.success) {
|
|
884
|
if(data.data.total>0){
|
|
885
|
$("#patCount").html(data.data.total)
|
|
886
|
}else if(data.data.total>99){
|
|
887
|
$("#patCount").html("99+")
|
|
888
|
}
|
874
|
889
|
var dataStr=data.data.data;
|
875
|
890
|
if(dataStr.length > 0){
|
876
|
891
|
$("#showPatent").parents(".coninfobox").removeClass("displayNone");
|
|
@ -933,6 +948,11 @@ $(function() {
|
933
|
948
|
timeout: 10000, //超时设置
|
934
|
949
|
success: function(data) {
|
935
|
950
|
if(data.success) {
|
|
951
|
if(data.data.total>0){
|
|
952
|
$("#parCount").html(data.data.total)
|
|
953
|
}else if(data.data.total>99){
|
|
954
|
$("#parCount").html("99+")
|
|
955
|
}
|
936
|
956
|
var dataStr=data.data.data;
|
937
|
957
|
if(dataStr.length > 0){
|
938
|
958
|
$("#showPaper").parents(".coninfobox").removeClass("displayNone");
|