Browse Source

个人和企业浏览页面中翻页bug

luyanan 7 years ago
parent
commit
809859e561
2 changed files with 15 additions and 8 deletions
  1. 4 2
      js/cmpInforShow.js
  2. 11 6
      js/userInforShow.js

+ 4 - 2
js/cmpInforShow.js

@ -227,7 +227,8 @@ $(function() {
227 227
							strAdd += '<div class="madiaInfo"><p class="h1Font ellipsisSty-2">' + data.data.data[i].resourceName + '</p><p class="h2Font ellipsisSty">应用用途:' + data.data.data[i].supportedServices + '</p></div>';
228 228
							strAdd += '</a></li>';
229 229
230
							if(i == 0) {
230
							if(isbind==true && i==0){
231
								$("#showResource").html("");
231 232
								$("#showResource").append(strAdd);
232 233
							}
233 234
							$("#proResource").append(strAdd);
@ -292,7 +293,8 @@ $(function() {
292 293
							var $strAdd = $(strAdd);
293 294
							$("#proArticel").append($strAdd);
294 295
							commentnum(data.data.data[i].articleId, $strAdd) //文章评论数
295
							if(i == 0) {
296
							if(isbind==true && i==0){
297
								$("#showArticle").html("");
296 298
								$("#showArticle").append(strAdd);
297 299
								commentnum(data.data.data[0].articleId, $strAdd)
298 300
							}

+ 11 - 6
js/userInforShow.js

@ -671,9 +671,11 @@ $(function() {
671 671
							strAdd += '<div class="madiaInfo"><p class="h1Font ellipsisSty-2">'+ dataStr[i].resourceName +'</p><p class="h2Font ellipsisSty">应用用途:'+ dataStr[i].supportedServices+'</p></div>';				
672 672
							strAdd += '</a></li>';
673 673
							
674
							if(i==0){
674
							if(isbind==true && i==0){
675
								$("#showResource").html("");
675 676
								$("#showResource").append(strAdd);
676 677
							}
678
							
677 679
							$("#proResource").append(strAdd);
678 680
						}
679 681
						//分页
@ -737,7 +739,8 @@ $(function() {
737 739
							var $strAdd = $(strAdd);
738 740
							$("#proArticel").append( $strAdd);
739 741
							commentnum(dataStr[i].articleId, $strAdd) //文章评论数
740
							if(i==0){
742
							if(isbind==true && i==0){
743
								$("#showArticle").html("");
741 744
								$("#showArticle").append(strAdd);
742 745
								commentnum(dataStr[0].articleId, $strAdd)
743 746
							}
@ -802,7 +805,8 @@ $(function() {
802 805
							
803 806
							var $strAdd = $(strAdd);
804 807
							$("#proPatent").append( $strAdd);
805
							if(i==0){
808
							if(isbind==true && i==0){
809
								$("#showPatent").html("");
806 810
								$("#showPatent").append(strAdd);
807 811
							}
808 812
						}
@ -813,7 +817,7 @@ $(function() {
813 817
								current: data.data.pageNo,
814 818
								backFn: function(p) {
815 819
									$("#proPatent").html("");
816
									getArticle(10, p,false);
820
									getPatent(10, p,false);
817 821
									document.body.scrollTop = document.documentElement.scrollTop = 0;
818 822
								}
819 823
							});
@ -871,7 +875,8 @@ $(function() {
871 875
							
872 876
							var $strAdd = $(strAdd);
873 877
							$("#proPaper").append( $strAdd);
874
							if(i==0){
878
							if(isbind==true && i==0){
879
								$("#showPaper").html();
875 880
								$("#showPaper").append(strAdd);
876 881
							}
877 882
						}
@ -882,7 +887,7 @@ $(function() {
882 887
								current: data.data.pageNo,
883 888
								backFn: function(p) {
884 889
									$("#proPaper").html("");
885
									getArticle(10, p,false);
890
									getPaper(10, p,false);
886 891
									document.body.scrollTop = document.documentElement.scrollTop = 0;
887 892
								}
888 893
							});