Browse Source

用户详情,搜索和文章相关修改

luyanan 7 years ago
parent
commit
eedb27c286
10 changed files with 190 additions and 56 deletions
  1. 1 1
      cmpInforShow.html
  2. 83 36
      css/genindex.css
  3. 5 1
      js/articalPreview.js
  4. 5 1
      js/articalShow.js
  5. 2 2
      js/cmpInforShow.js
  6. 79 1
      js/common.js
  7. 3 3
      js/resourceShow.js
  8. 6 6
      js/searchNew.js
  9. 5 4
      js/userInforShow.js
  10. 1 1
      userInforShow.html

+ 1 - 1
cmpInforShow.html

@ -190,7 +190,7 @@
190 190
				<div class="conBlock conItem displayNone">
191 191
					<div class="form-item">
192 192
						<div class="aboutTit">相关文章</div>
193
						<div class="form-result form-M0 currentArt">
193
						<div class="form-result form-M0 currentArt currentArt2">
194 194
							<ul id="relateArt">
195 195
							</ul>
196 196
						</div>

+ 83 - 36
css/genindex.css

@ -142,23 +142,65 @@ ul.loginWaySort li.liactive{border-bottom: 2px solid #ff9900;}
142 142
/*--------------发现--------------*/
143 143
.contentCon{padding-top:80px;}
144 144
.leftconBox{width:820px;padding-bottom:20px;margin-bottom:20px;background: #FFFFFF;}
145
.table-item{/*padding:10px;*/}
146
.table-item>li{position:relative;padding:25px 20px;}
147
.table-item>li:after{content:"";position:absolute; left:0; right:0; bottom:0;height: 2px;background: #f7f7f8;}
148
.table-item-media{height: 40px;margin-bottom:20px;}
149
.table-item-media .table-item-logo{position:absolute;border:1px solid #f2f3f4;display: inline-block;width: 40px; height:40px;z-index:4;}
150
.table-item-media .table-item-name{position:relative;width:90%;padding-left:50px;}
151
.table-item-media .table-item-name .nameSpan{color:#000;font-size: 16px;line-height: 18px;}
152
.table-item-media .table-item-name .timeLabel{color:#AAAAAA;}
153
.table-item-media .authicon{bottom:9px;}
154
.table-item-cell{position:relative;font-size:16px;color:#000;cursor: pointer;}
155
.table-item-cell a{display:block;min-height: 110px;color:#000;}
156
.table-item-cell a:hover{background: #f4f6f8;color:#5c99d8;}
157
158
.table-item-cell .table-item-img{position:absolute;border:1px solid #f2f3f4;width: 164px;height: 110px;top:50%;left:0;margin-top:-55px;}
159
.table-item-cell .table-item-img.artical-default{background:url(../images/default-artical.jpg) center center;background-size:cover;}
160
.table-item-cell .table-item-img.resource-default{background:url(../images/default-resource.jpg) center center;background-size:cover;}
161
.table-item-cell .table-item-body{position:absolute;top:50%;width:100%;margin-top:-28px;padding-left:184px;padding-right: 10px;}
145
/*顶部轮播*/
146
.slide-box{/*background:#f4f6f8;*/margin-bottom: 20px;width:820px;height: 300px;}
147
.slide-list {position: relative;width:760px;height: 300px;overflow: hidden;
148
	    background-image: linear-gradient(to bottom right,rgba(0,0,0,.3),#000);}
149
.slide-list .slide-item {position: absolute;width: 100%;height: 100%;opacity: 0; transition-property: opacity; transition-duration: .8s;z-index: 1;}
150
.slide-list .slide-item>a {display: block;width: 100%;height: 100%;background-size:cover;background-position: center;}
151
.slide-list .slide-item-active{opacity: 1;z-index: 10;}
152
.slide-tab {width: 60px;height: 300px;color: #fff;font-size: 14px;background-color: #444;padding:10px 0;}
153
.slide-tab-item {position: relative;cursor: pointer; text-align: center;line-height:46px;margin:8px 0;}
154
.slide-tab-item-active, .slide-tab-item:hover { background: #ff9900;background: rgba(255,153,0,.9);z-index: 11;}
155
.slide-tab-item-active:before, .slide-tab-item:hover:before{
156
	content: "";position:absolute;top:50%;margin-top: -8px;left:-8px;width:0;height: 0;
157
	border-top:8px transparent solid;
158
	border-bottom:8px transparent solid;
159
	border-right:8px #ff9900 solid;}
160
.slide-list .slide-item .title {position: absolute;left: 0;bottom: 0;width: 100%;height: 44px;
161
	line-height: 44px;white-space: nowrap;overflow: hidden;text-overflow: ellipsis;
162
	padding-left: 22px;color: #fff;font-size: 20px;font-weight: 700;
163
	background-image: linear-gradient(-180deg,transparent,rgba(0,0,0,.8)); box-sizing: border-box;}
164
/*栏目分类导航*/
165
.table-tab{width: 100%;margin: 6px auto 10px;background: #fff;}
166
.table-tab-item{position: relative;z-index: 20;}
167
.table-tab-item>li{position:relative;color:#666;float: left;width:16.666666666666664%;text-align: center;font-size: 16px;line-height:60px;cursor: pointer;margin-bottom: -3px;}
168
.table-tab-item>li.rightbtn:hover{color:#ff9900}
169
.table-tab-item>li.rightbtn .foldtr{top:27px;right:46px;}
170
.table-tab-item>li.rightbtn .unfoldtr{top:34px;right:46px;}
171
.table-tab-slide {text-align: center;font-size: 16px;line-height:60px;cursor: pointer; }
172
.table-tab-slide:hover{color:#ff9900}
173
.table-tab-slide:hover:after{position: absolute;left: 30px;right: 30px;bottom: 0;content:"";height:3px;background:#ff9900;}
174
.table-tab-item .table-tab-slide-active{color:#ff9900}
175
.table-tab-item .table-tab-slide-active:after{position: absolute;left: 30px;right: 30px;bottom: 0;content:"";height:3px;background:#ff9900;}
176
.table-drop{display: none;z-index: 40;position: absolute;width: 130px;height:120px;top: 56px;right: 2px;background: #fff;
177
    	box-shadow: 0px 0px 10px 0px rgba(204,204,204,.8);
178
    	-webkit-box-shadow: 0px 0px 10px 0px rgba(204,204,204,.8);}
179
.table-drop>li{position:relative;color: #333;border-bottom:1px solid #ddd;}
180
.table-drop>li:last-child{border: none;}
181
.table-drop>li.table-tab-slide-active{border:none}
182
/*列表*/
183
.table-body {position: relative;min-height: 200px;background: #fff;margin-top:20px;margin-bottom: -20px;padding-bottom: 20px;}
184
.table-body .table-item-list{display: none;}
185
.table-body .table-item-list:first-child{display: block;}
186
.columTag{position: absolute;background: rgba(0,0,0,.6);color:#fff;padding:4px 10px;bottom:6px;left: 6px;font-size: 13px;}
187
/*.table-item{position: relative;min-height:500px;}
188
.table-item>li{position:relative;padding:25px 20px;}
189
.table-item>li:after{content:"";position:absolute; left:0; right:0; bottom:0;height: 2px;background: #f7f7f8;}
190
.table-item-media{height: 40px;margin-bottom:20px;}
191
.table-item-media .table-item-logo{position:absolute;border:1px solid #f2f3f4;display: inline-block;width: 40px; height:40px;z-index:4;}
192
.table-item-media .table-item-name{position:relative;width:90%;padding-left:50px;}
193
.table-item-media .table-item-name .nameSpan{color:#000;font-size: 16px;line-height: 18px;}
194
.table-item-media .table-item-name .timeLabel{color:#AAAAAA;}
195
.table-item-media .authicon{bottom:9px;}
196
.table-item-cell{position:relative;font-size:16px;color:#000;cursor: pointer;}
197
.table-item-cell a{display:block;min-height: 110px;color:#000;}
198
.table-item-cell a:hover{background: #f4f6f8;color:#5c99d8;}
199

200
.table-item-cell .table-item-img{position:absolute;border:1px solid #f2f3f4;width: 164px;height: 110px;top:50%;left:0;margin-top:-55px;}
201
.table-item-cell .table-item-img.artical-default{background:url(../images/default-artical.jpg) center center;background-size:cover;}
202
.table-item-cell .table-item-img.resource-default{background:url(../images/default-resource.jpg) center center;background-size:cover;}
203
.table-item-cell .table-item-body{position:absolute;top:50%;width:100%;margin-top:-28px;padding-left:184px;padding-right: 10px;}*/
162 204
163 205
.cmplogohead{ background: #fff;background-size: cover;border-radius:4px;}
164 206
.cmplogohead .boxBlock{width:38px;height:38px;}
@ -167,7 +209,7 @@ ul.loginWaySort li.liactive{border-bottom: 2px solid #ff9900;}
167 209
.cmpLable.articalLabel{border-color:#ff6b57;color:#ff6b57;}
168 210
.cmpLable.resourceLabel{border-color:#28b8fa;color:#28b8fa;}
169 211
/*发现右侧新闻*/
170
.advertBox{min-height: 100px;margin-left: 20px;}
212
.rightconBox .conItem.advertBox{min-height: 100px;padding:0}
171 213
.advertItem li{width: 260px;margin-bottom:20px;}
172 214
.advertItem li img{width: 100%;}
173 215
@ -188,12 +230,12 @@ ul.filterListNew>li:last-child:after{height: 0;}
188 230
.filterListNew .leftsort{position: absolute;left: 0;top:12px;color:#666;}
189 231
.filterListNew .rightbtn{position: absolute;right:0;padding-right:32px;top:12px;color:#999;cursor: pointer;}
190 232
/*展开fold关闭unfold三角*/
191
.filterListNew .rightbtn .foldtr{position: absolute;top:8px;right: 42px;}
192
.filterListNew .rightbtn .foldtr:after{ border:solid transparent;border-top-color:#fff;border-width:5px;content:" ";position:absolute;top:100%;left:20px;}
193
.filterListNew .rightbtn .foldtr:before{border:solid transparent;border-top-color:#ff9900;border-width:7px;content:" ";position:absolute;top:100%;left:18px;}
194
.filterListNew .rightbtn .unfoldtr{position: absolute;top:15px;right: 42px;}
195
.filterListNew .rightbtn .unfoldtr:after{ border:solid transparent;border-bottom-color:#fff;border-width:5px;content:" ";position:absolute;bottom:100%;left:20px;}
196
.filterListNew .rightbtn .unfoldtr:before{border:solid transparent;border-bottom-color:#ff9900;border-width:7px;content:" ";position:absolute;bottom:100%;left:18px;}
233
.rightbtn .foldtr{position: absolute;top:8px;right: 42px;}
234
.rightbtn .foldtr:after{ border:solid transparent;border-top-color:#fff;border-width:5px;content:" ";position:absolute;top:100%;left:20px;}
235
.rightbtn .foldtr:before{border:solid transparent;border-top-color:#ff9900;border-width:7px;content:" ";position:absolute;top:100%;left:18px;}
236
.rightbtn .unfoldtr{position: absolute;top:15px;right: 42px;}
237
.rightbtn .unfoldtr:after{ border:solid transparent;border-bottom-color:#fff;border-width:5px;content:" ";position:absolute;bottom:100%;left:20px;}
238
.rightbtn .unfoldtr:before{border:solid transparent;border-bottom-color:#ff9900;border-width:7px;content:" ";position:absolute;bottom:100%;left:18px;}
197 239
198 240
ul.filterUl{overflow: hidden;width: 100%;height:26px;overflow:hidden;margin:10px 0;padding-left:64px;padding-right: 60px;}
199 241
ul.filterUl.filterUlactive{height:auto;}
@ -254,7 +296,6 @@ ul.artAbout .uploadFile input.upInp[type="file"]{position:absolute;height: 46px;
254 296
ul.artAbout .uploadFile .upbtn{display:inline-block;padding:7px 23px;background: #E5E5E5;color:#333333;margin-top:30px;}
255 297
ul.artAbout .uploadFile .uploadblock .upBackbtn{position:absolute;bottom:30px;left:50%;margin-left:-55px;background:rgba(0,0,0,.5);color:#FFFFFF;z-index:10;display: none;}
256 298
.conBlock .aboutTit{font-size:16px;line-height:40px;color:#666666;margin-top:18px;}
257
/*ul.artAbout .editBlock{height:320px;border:1px solid #E5E5E5;}*/
258 299
ul.artAbout #filePicker{position:absolute;left:50%; bottom:25px; margin-left:-52px;opacity:0; z-index:88;}
259 300
ul.artAbout .frmadd{width:auto;position:absolute;right:0;top:0;background: #ff9900;color:#fff;border:none;padding:6px 25px; z-index:4;}
260 301
@ -284,14 +325,6 @@ ul.artAbout .frmadd{width:auto;position:absolute;right:0;top:0;background: #ff99
284 325
.conItem .aboutTit{margin-top:-10px;}
285 326
.conItem .otherBlock{padding-bottom: 30px;border-bottom:1px dashed #E5E5E5;margin-bottom: 30px;text-align: left;}
286 327
.conItem .otherBlock:last-child{padding:0;margin:0;border: 0;}
287
.rightconBox .conItem .currentArt.form-result{margin-top:0}
288
.rightconBox .conItem .currentArt.form-result li{padding:6px 20px;min-height:62px;}
289
#relateArt li{min-height: 40px;}
290
.rightconBox .conItem.conItemG .currentArt.form-result .ellipsisSty-2{max-height:42px;line-height: 20px;}
291
.rightconBox .conItem.conItemG .currentArt.form-result .smalltip{display:inline-block;color:#999;margin-top:6px}
292
.rightconBox .conItem.conItemG .currentBlock{margin-top:30px;padding-top:16px;border-top:1px solid #E5E5E5}
293
.rightconBox .conItem.conItemG .currentBlock .madiaHead{width:50px;height: 50px;margin-top:-25px}
294
.conItem .otherBlock.currentBlock{border:none;margin-bottom: 0;padding-bottom: 0;}
295 328
296 329
.flexCenter{position: relative;width: 100%; min-height:90px;
297 330
		    display: -webkit-box;
@ -314,7 +347,7 @@ ul.artAbout .frmadd{width:auto;position:absolute;right:0;top:0;background: #ff99
314 347
.form-item .madiaHead.artHead{background-image: url(../images/default-artical.jpg);border-radius:0;}
315 348
.form-item .madiaInfo{width:100%;padding-left:62px;margin:2px 0;}
316 349
.form-item ul .h1Font{font-size:16px;color:#333;line-height: 20px;margin-bottom:4px;}
317
.form-item ul .h2Font{font-size:14px;color:#666;line-height: 22px;}
350
.form-item ul .h2Font,.form-item ol .h2Font{font-size:14px;color:#666;line-height: 22px;}
318 351
.form-item ul .time{font-size:14px;color:#666;line-height: 22px;}
319 352
.form-item ul .h3Font{font-size:13px;color:#999;line-height:20px;}
320 353
.form-item ul .circlePre{display: inline-block;content:"";width:5px;height: 5px;border-radius: 50%;background:#ff9900;position: relative;top:-3px;margin-right:5px;}
@ -337,13 +370,27 @@ ul.artAbout .frmadd{width:auto;position:absolute;right:0;top:0;background: #ff99
337 370
.keyResult>ul>li .closeThis{display:none;position:absolute;top:-8px;right:-12px;width:28px;height:28px;background:url(../images/g_article_button_guanbi_hig.png);background-size:cover;cursor:pointer;}
338 371
.keyResult>ul>li:hover{background: #E5E5E5;}
339 372
.keyResult>ul>li:hover .closeThis{display:block;}
373
374
.rightconBox .conItem .currentArt.form-result{margin-top:0}
375
.rightconBox .conItem .currentArt.form-result li{padding:6px 20px;min-height:62px;}
376
.rightconBox .conItem .currentArt2.form-result li{min-height: 40px;}
377
.rightconBox .conItem.conItemG .currentArt.form-result .ellipsisSty-2{max-height:42px;line-height: 20px;}
378
.rightconBox .conItem .smalltip{display:inline-block;color:#999;margin-top:6px}
379
.rightconBox .conItem.conItemG .currentBlock{margin-top:30px;padding-top:16px;border-top:1px solid #E5E5E5}
380
.rightconBox .conItem.conItemG .currentBlock .madiaHead{width:50px;height: 50px;margin-top:-25px}
381
.conItem .otherBlock.currentBlock{border:none;margin-bottom: 0;padding-bottom: 0;}
382
.rightconBox .hotList{list-style-type:none;counter-reset:li;}
383
.rightconBox .hotList>li a {position: relative;display: block;padding: 4px 2px;padding-left:26px;color: #444;width: 100%;}
384
.rightconBox .hotList>li a::before {content: counter(li);counter-increment: li;
385
	position: absolute;left: 0;top: 4px;background:#ccc;width: 20px;height: 20px;line-height: 22px;text-align: center;}
386
.rightconBox .hotList>li:nth-child(1) a::before,.rightconBox .hotList>li:nth-child(2) a::before,.rightconBox .hotList>li:nth-child(3) a::before{background: #FF9e3a;}
340 387
/*文章浏览*/
341 388
.showDetail .h1Font{font-size: 20px;line-height:32px;color:#000;}
342 389
.showDetail .h2Font{font-size:14px;color:#999;}
343 390
.showDetail .readNum{margin-left: 20px;}
344 391
.showDetail .showBigOpen{width:100%;height:300px;margin:24px 0;background-position:center;background-size:cover;background-repeat:no-repeat;}
345
.showMain{font-size:16px;color:#333;line-height: 30px;/*text-indent: 2em;*/}
346
.showMain img{max-width: 100%;/*margin-left:-32px;*/}
392
.showMain{font-size:16px;color:#333;line-height: 30px;}
393
.showMain img{max-width: 100%;}
347 394
.showMain p{margin-bottom:10px;text-align:justify}
348 395
ul.tagList{margin:20px 0 -10px;overflow: hidden;}
349 396
ul.tagList>li{float: left;margin-right:10px;margin-bottom:10px;padding:0 12px;color: #999;border: 1px solid #E5E5E5;border-radius: 20px;cursor: pointer;}

+ 5 - 1
js/articalPreview.js

@ -16,7 +16,11 @@ $(function() {
16 16
				if (data.success){
17 17
					$("#articleTitle").text(data.data.articleTitle);
18 18
					$("#articleContent").html(data.data.articleContent);
19
					$("#articleImg").attr("style", "background-image: url(/data/article/" + data.data.articleImg + ");");
19
					if(data.data.articleImg){
20
						$("#articleImg").attr("style", "background-image: url(/data/article/" + data.data.articleImg + ")");
21
					}else{
22
						$("#articleImg").attr("style", "background-image: url(../images/default-artical.jpg)");
23
					}
20 24
					$("#tagList").text(industryShow(data.data.subject));
21 25
					if(data.data.articleType==1){
22 26
						$("#expert").removeClass("displayNone");

+ 5 - 1
js/articalShow.js

@ -73,7 +73,11 @@ $(function() {
73 73
					$("#pageViews").text("阅读量 "+data.data.pageViews);
74 74
					$("#publishTime").text(commenTime(data.data.publishTime));
75 75
					$("#articleContent").html(data.data.articleContent);
76
					$("#articleImg").attr("style", "background-image: url(/data/article/" + data.data.articleImg + ");");
76
					if(data.data.articleImg){
77
						$("#articleImg").attr("style", "background-image: url(/data/article/" + data.data.articleImg + ")");
78
					}else{
79
						$("#articleImg").attr("style", "background-image: url(../images/default-artical.jpg)");
80
					}
77 81
					$("#tagList").text(industryShow(data.data.subject));
78 82
					if (userid && userid != "null" && userid != null) {
79 83
						isAgree(data.data.articleAgree)//文章点赞

+ 2 - 2
js/cmpInforShow.js

@ -238,7 +238,7 @@ $(function() {
238 238
							}
239 239
						}
240 240
						if(isbind == true) {
241
							$(".resoucePageCode").createPage({
241
							$(".resoucePageCode").off("click").createPage({
242 242
								pageCount: Math.ceil(data.data.total / 10),
243 243
								current: data.data.pageNo,
244 244
								backFn: function(p) {
@ -312,7 +312,7 @@ $(function() {
312 312
313 313
						}
314 314
						if(isbind == true) {
315
							$(".expertPageCode").createPage({
315
							$(".expertPageCode").off("click").createPage({
316 316
								pageCount: Math.ceil(data.data.total / 10),
317 317
								current: data.data.pageNo,
318 318
								backFn: function(p) {

+ 79 - 1
js/common.js

@ -706,6 +706,45 @@ var eduDegree = {
706 706
	"4": "大专",
707 707
	"5": "其他"
708 708
}
709
//栏目
710
var columnType = {
711
	"1":{
712
		fullName:"个人原创",
713
		shortName:"原创"
714
	},
715
	"2":{
716
		fullName:"企业原创",
717
		shortName:"原创"
718
	},
719
	"3":{
720
		fullName:"前沿动态",
721
		shortName:"前沿"
722
	},
723
	"4":{
724
		fullName:"学术经验",
725
		shortName:"经验"
726
	},
727
	"5":{
728
		fullName:"分析检测",
729
		shortName:"检测"
730
	},
731
	"6":{
732
		fullName:"会议培训",
733
		shortName:"会议"
734
	},
735
	"7":{
736
		fullName:"科袖访谈",
737
		shortName:"访谈"
738
	},
739
	"8":{
740
		fullName:"招聘招生",
741
		shortName:"招聘"
742
	},
743
	"9":{
744
		fullName:"重大新闻",
745
		shortName:"新闻"
746
	}	
747
}
709 748
//反馈意见成功
710 749
function backSuccessed(){
711 750
	$(".correctCon").val("");
@ -1013,4 +1052,43 @@ var r64 = ["0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "A", "B", "C", "D",
1013 1052
				return out.substring(1);
1014 1053
			}
1015 1054
			return out;
1016
		}
1055
		}
1056
1057
//发现上方轮播
1058
var bannerRotate = {// banner rotating
1059
	_time: 3000,
1060
	_i: 0,
1061
	_interval: null,
1062
	_navId: "#slide-tab",
1063
	_navBox: "#slide-list",
1064
	bannerShow: function() {
1065
		$(this._navId).find("li").removeClass("slide-tab-item-active");
1066
		$(this._navId).find("li:eq("+this._i+")").addClass("slide-tab-item-active");
1067
		
1068
		$(this._navBox).find("li").removeClass("slide-item-active");
1069
		$(this._navBox).find("li:eq("+this._i+")").addClass("slide-item-active");
1070
	},
1071
	bannerStart:function() {
1072
		var _this = this;
1073
		_this._interval = setInterval(function() {
1074
			if(_this._i >= 4) {
1075
				_this._i = 0;
1076
			}
1077
			else {
1078
				_this._i++;
1079
			}
1080
			_this.bannerShow();
1081
		}, _this._time);
1082
	},
1083
	bannerInit: function() {
1084
		var _this = this;
1085
		_this.bannerStart();
1086
		
1087
		$(_this._navId).find("li").bind("mouseover", function() {
1088
			clearInterval(_this._interval);
1089
			_this._i = $(this).index();
1090
			_this.bannerShow();
1091
			_this.bannerStart();
1092
		});
1093
	}
1094
};

+ 3 - 3
js/resourceShow.js

@ -133,6 +133,8 @@ $(document).ready(function() {
133 133
			$("#authFlag").addClass(professorFlag.sty).attr("title", professorFlag.title);
134 134
			if($da.editProfessor.hasHeadImage == 1) {
135 135
				$("#headImg").css("background-image", 'url(/images/head/' + $da.editProfessor.id + '_l.jpg)');
136
			}else{
137
				$("#headImg").css("background-image", 'url(../images/default-photo.jpg)');
136 138
			}
137 139
			recentlyRe(2,{"professorId":professorId}) 
138 140
		}else{
@ -176,9 +178,7 @@ $(document).ready(function() {
176 178
				oSt += '<li><p class="h2Font">' + oSub[i] + '</p></li>'
177 179
			}
178 180
			$(".tagList").html(oSt);
179
		} else {
180
			$(".aboutTit:contains('您可能感兴趣的资源')").parent().hide();
181
		}
181
		} 
182 182
		if($da.descp) { //编辑器
183 183
			$("#descp").html($da.descp).parents("li").show();
184 184
		}

+ 6 - 6
js/searchNew.js

@ -393,7 +393,7 @@ $(function() {
393 393
						}
394 394
						//分页
395 395
						if(isexpert==true){
396
							$(".expertPageCode").createPage({
396
							$(".expertPageCode").off("click").createPage({
397 397
								pageCount: Math.ceil(data.data.total / 20),
398 398
								current: data.data.pageNo,
399 399
								backFn: function(p) {
@ -478,7 +478,7 @@ $(function() {
478 478
						}
479 479
						//分页
480 480
						if(isbind==true){
481
							$(".companyPageCode").createPage({
481
							$(".companyPageCode").off("click").createPage({
482 482
								pageCount: Math.ceil(data.data.total / 20),
483 483
								current: data.data.pageNo,
484 484
								backFn: function(p) {
@ -569,7 +569,7 @@ $(function() {
569 569
						}
570 570
						//分页
571 571
						if(isbind==true){
572
							$(".articalPageCode").createPage({
572
							$(".articalPageCode").off("click").createPage({
573 573
								pageCount: Math.ceil(data.data.total / 20),
574 574
								current: data.data.pageNo,
575 575
								backFn: function(p) {
@ -676,7 +676,7 @@ $(function() {
676 676
						}
677 677
						//分页
678 678
						if(isresource==true){
679
							$(".resourcePageCode").createPage({
679
							$(".resourcePageCode").off("click").createPage({
680 680
								pageCount: Math.ceil(data.data.total / 20),
681 681
								current: data.data.pageNo,
682 682
								backFn: function(p) {
@ -736,7 +736,7 @@ $(function() {
736 736
						}
737 737
						//分页
738 738
						if(isbind==true){
739
							$(".patentPageCode").createPage({
739
							$(".patentPageCode").off("click").createPage({
740 740
								pageCount: Math.ceil(data.data.total / 20),
741 741
								current: data.data.pageNo,
742 742
								backFn: function(p) {
@ -808,7 +808,7 @@ $(function() {
808 808
						}
809 809
						//分页
810 810
						if(isbind==true){
811
							$(".paperPageCode").createPage({
811
							$(".paperPageCode").off("click").createPage({
812 812
								pageCount: Math.ceil(data.data.total / 20),
813 813
								current: data.data.pageNo,
814 814
								backFn: function(p) {

+ 5 - 4
js/userInforShow.js

@ -703,7 +703,7 @@ $(function() {
703 703
						}
704 704
						//分页
705 705
						if(isbind==true){
706
							$("#proResource").siblings(".tcdPageCode").createPage({
706
							$("#proResource").siblings(".tcdPageCode").off("click").createPage({
707 707
								pageCount: Math.ceil(data.data.total / 10),
708 708
								current: data.data.pageNo,
709 709
								backFn: function(p) {
@ -747,6 +747,7 @@ $(function() {
747 747
							if(dataStr[i].articleImg) {
748 748
								madiaHead ='/data/article/' + dataStr[i].articleImg ;
749 749
							}
750
							var sowU="";
750 751
							if(dataStr[i].pageViews!=0){
751 752
								if(dataStr[i].articleAgree!=0){
752 753
									sowU='<li><span>阅读量 '+dataStr[i].pageViews+'</span></li><li><span>赞 '+dataStr[i].articleAgree+'</span></li>'
@ -778,7 +779,7 @@ $(function() {
778 779
						}
779 780
						//分页
780 781
						if(isbind==true){
781
							$("#proArticel").siblings(".tcdPageCode").createPage({
782
							$("#proArticel").siblings(".tcdPageCode").off("click").createPage({
782 783
								pageCount: Math.ceil(data.data.total / 10),
783 784
								current: data.data.pageNo,
784 785
								backFn: function(p) {
@ -843,7 +844,7 @@ $(function() {
843 844
						}
844 845
						//分页
845 846
						if(isbind==true){
846
							$("#proPatent").siblings(".tcdPageCode").createPage({
847
							$("#proPatent").siblings(".tcdPageCode").off("click").createPage({
847 848
								pageCount: Math.ceil(data.data.total / 10),
848 849
								current: data.data.pageNo,
849 850
								backFn: function(p) {
@ -914,7 +915,7 @@ $(function() {
914 915
						}
915 916
						//分页
916 917
						if(isbind==true){
917
							$("#proPaper").siblings(".tcdPageCode").createPage({
918
							$("#proPaper").siblings(".tcdPageCode").off("click").createPage({
918 919
								pageCount: Math.ceil(data.data.total / 10),
919 920
								current: data.data.pageNo,
920 921
								backFn: function(p) {

+ 1 - 1
userInforShow.html

@ -317,7 +317,7 @@
317 317
				<div class="conBlock conItem displayNone">
318 318
					<div class="form-item">
319 319
						<div class="aboutTit">相关文章</div>
320
						<div class="form-result form-M0 currentArt">
320
						<div class="form-result form-M0 currentArt currentArt2">
321 321
							<ul id="relateArt">
322 322
							</ul>
323 323
						</div>