Browse Source

Merge remote-tracking branch 'origin/test'

Conflicts:
	css/genindex.css
	js/discover.js
luyanan 7 years ago
parent
commit
239afcf80e

+ 12 - 6
articalIssue.html

@ -59,7 +59,7 @@
59 59
	        					<!--未上传图片时-->
60 60
	        					<div class="upFront">
61 61
		        					<p>文章封面图片<em class="requiredcon">*</em></p>
62
		        					<p class="uploadtip">JPG/PNG格式,2M以内</p>
62
		        					<p class="uploadtip">JPG/JPEG/PNG格式,2M以内</p>
63 63
		        					<span class="upbtn">上传图片</span>
64 64
	        					</div>
65 65
	        					<!--已上传图片时-->
@ -250,14 +250,14 @@ var uploader = WebUploader.create({
250 250
    	},
251 251
    accept: {// 只允许选择图片文件。
252 252
        title: 'Images',
253
        extensions: 'gif,jpg,jpeg,bmp,png',
254
        mimeTypes: 'image/gif,image/jpg,image/jpeg,image/bmp,image/png'
253
        extensions: 'jpg,jpeg,png',
254
        mimeTypes: 'image/jpg,image/jpeg,image/png'
255 255
    }
256 256
   
257 257
});
258 258
uploader.onError = function(code) {
259 259
	if(code=="F_EXCEED_SIZE"){
260
		$.MsgBox.Alert('提示', '请上传jpg、png格式的图片,大小不超过2M')	
260
		$.MsgBox.Alert('提示', '请上传jpg、jpeg、png格式的图片,大小不超过2M')	
261 261
	}
262 262
};
263 263
// 当有文件添加进来的时候
@ -274,8 +274,14 @@ uploader.on( 'fileQueued', function( file ) {
274 274
// 文件上传成功,给item添加成功class, 用样式标记上传成功。
275 275
cacheImageKey="";
276 276
uploader.on( 'uploadSuccess', function(file,data) {
277
	cacheImageKey =data.data[0].cacheKey;
278
	$("#uploader").attr("data-id",cacheImageKey);
277
	if(data.success) {
278
		cacheImageKey =data.data[0].cacheKey;
279
		$("#uploader").attr("data-id",cacheImageKey);
280
	}else{
281
		$.MsgBox.Alert('提示', '只支持jpeg/jpg/png格式的图片');
282
		$("#uploader").css("background-image","url('')");
283
	}
284
	
279 285
});
280 286
</script>
281 287


+ 11 - 6
articalModify.html

@ -57,7 +57,7 @@
57 57
	        					<!--未上传图片时-->
58 58
	        					<div class="upFront">
59 59
		        					<p>文章封面大图<em class="requiredcon">*</em></p>
60
		        					<p class="uploadtip">JPG/PNG格式,2M以内</p>
60
		        					<p class="uploadtip">JPG/JPEG/PNG格式,2M以内</p>
61 61
		        					<span class="upbtn">上传图片</span>
62 62
	        					</div>
63 63
	        					<!--已上传图片时-->
@ -256,14 +256,14 @@ var uploader = WebUploader.create({
256 256
    // 只允许选择图片文件。
257 257
    accept: {
258 258
        title: 'Images',
259
        extensions: 'gif,jpg,jpeg,bmp,png',
260
        mimeTypes: 'image/gif,image/jpg,image/jpeg,image/bmp,image/png'
259
        extensions: 'jpg,jpeg,png',
260
        mimeTypes: 'image/jpg,image/jpeg,image/png'
261 261
    }
262 262
   
263 263
});
264 264
uploader.onError = function(code) {
265 265
	if(code=="F_EXCEED_SIZE"){
266
		$.MsgBox.Alert('提示', '请上传jpg、png格式的图片,大小不超过2M')	
266
		$.MsgBox.Alert('提示', '请上传jpg、jpeg、png格式的图片,大小不超过2M')	
267 267
	}
268 268
};
269 269
// 当有文件添加进来的时候
@ -280,8 +280,13 @@ uploader.on( 'fileQueued', function( file ) {
280 280
// 文件上传成功,给item添加成功class, 用样式标记上传成功。
281 281
cacheImageKey="";
282 282
uploader.on( 'uploadSuccess', function(file,data) {
283
	cacheImageKey =data.data[0].cacheKey;
284
	$("#uploader").attr("data-id",cacheImageKey);
283
	if(data.success) {
284
		cacheImageKey =data.data[0].cacheKey;
285
		$("#uploader").attr("data-id",cacheImageKey);
286
	}else{
287
		$.MsgBox.Alert('提示', '只支持jpeg/jpg/png格式的图片');
288
		$("#uploader").css("background-image","url('')");
289
	}
285 290
});
286 291
287 292
</script>

+ 5 - 13
articalShow.html

@ -181,9 +181,6 @@
181 181
				</div>
182 182

183 183
			</div>
184
			
185
			
186
		
187 184
		</div>
188 185
	</div>
189 186
</div>
@ -219,16 +216,11 @@
219 216
		makeCode();
220 217
	});
221 218
	//留言分享操作栏	
222
	setTimeout(function() {
223
		var oShareW = $('.share-nav').outerWidth(true);
224
		$('.shareBlock').scrollFix( {
225
	        startTop:'body',
226
	        bottom: '0',
227
	        endPos : '.share-bottom',
228
			width: oShareW ,
229
	        zIndex : 997
230
	    });	
231
	},300);
219
		
220
		
221
	
222

223
	
232 224
</script>
233 225
</body>
234 226
</html>

+ 16 - 56
cmp-portal/articalIssue.html

@ -6,7 +6,7 @@
6 6
<meta http-equiv="X-UA-Compatible" content="IE=edge">
7 7
<title>发布文章-科袖网</title>
8 8
<link rel="shortcut icon" href="images/favicon.ico "/>
9
<link href="../css/bootstrap.min.css" rel="stylesheet">
9
<link href="css/bootstrap.min.css" rel="stylesheet">
10 10
<link type="text/css" href="../css/webuploader/webuploader.css" rel="stylesheet">
11 11
<link type="text/css" rel="stylesheet" href="../css/datetimepicker.css">
12 12
<link type="text/css" href="css/common.css" rel="stylesheet">
@ -22,22 +22,10 @@
22 22
<div class="setTimeBlock modelContain">
23 23
	<span class="mb_tit">提示</span>
24 24
	<a class="mb_close"></a>
25
	<div class="mb_msg">
26
		<p style="margin: 10px;">请设置文章发布的时间:</p>
27
		        <div class="formTime">
28
		        <!--<div class="form-group">
29
		            <div class='input-group date' id='datetimepicker6'>
30
		                <input type='text' class="form-control" />
31
		                <span class="input-group-addon"><span class="glyphicon glyphicon-calendar"></span></span>
32
		            </div>
33
		        </div>-->
34
		        <div class="form-group">
35
		             <input size="16" type="text" value="" readonly class="form-control form_datetime">
36
		        </div>
37
		</div>
25
	<div class="mb_msg" id="promotTh">
26

38 27
	</div>
39
	<div class="mb_btnbox">
40
		<input class="mb_btn mb_btnOk" type="button" value="确定">
28
	<div class="mb_btnbox" id="promotGt">
41 29
		<input class="mb_btn mb_btnNo" type="button" value="取消">
42 30
	</div>
43 31
</div>
@ -46,7 +34,7 @@
46 34
<input type="hidden" id="hidearticleId" value="" />
47 35
<div id="container">
48 36
	<div class="containerCon">
49
		<div class="contentCon clearfix conBlock">
37
		<div class="contentCon clearfix conBlock" style="padding-top:20px">
50 38
			<div class="leftconBox floatL">
51 39
				<ul class="artAbout">
52 40
					<li>
@ -56,7 +44,7 @@
56 44
	        					<!--未上传图片时-->
57 45
	        					<div class="upFront">
58 46
		        					<p>文章封面图片<em class="requiredcon">*</em></p>
59
		        					<p class="uploadtip">JPG/PNG格式,2M以内</p>
47
		        					<p class="uploadtip">JPG/JPEG/PNG格式,2M以内</p>
60 48
		        					<span class="upbtn">上传图片</span>
61 49
	        					</div>
62 50
	        					<!--已上传图片时-->
@ -205,39 +193,6 @@ $(function () {
205 193
		$('html,body').animate({ scrollTop:0});
206 194
	});
207 195
	
208
	var currentdate;
209
    $(".form_datetime").datetimepicker({
210
    	format: 'yyyy-mm-dd hh:ii',
211
    	forceParse: true,
212
    	autoclose: true,
213
       // todayBtn: true
214
    });
215
    function getNowFormatDate() {
216
	    var date = new Date();
217
	    var seperator1 = "-";
218
	    var seperator2 = ":";
219
	    var month = date.getMonth() + 1;
220
	    var strDate = date.getDate();
221
	    var getHours = date.getHours();
222
	    var getMinutes = date.getMinutes();
223
	    if (month >= 1 && month <= 9) {
224
	        month = "0" + month;
225
	    }
226
	    if (strDate >= 0 && strDate <= 9) {
227
	        strDate = "0" + strDate;
228
	    }
229
	    if (getMinutes >= 0 && getMinutes <= 9) {
230
	        getMinutes = "0" + getMinutes;
231
	    }
232
	     if (getHours >= 0 && getHours <= 9) {
233
	        getHours = "0" + getHours;
234
	    }
235
	    var currentdate = date.getFullYear() + seperator1 + month + seperator1 + strDate
236
	            + " " + getHours + seperator2 + getMinutes
237
	           
238
	    return currentdate;
239
	}
240
    $(".form_datetime").val(getNowFormatDate(currentdate));
241 196
});
242 197
//Model模态框打开关闭
243 198

@ -261,14 +216,14 @@ var uploader = WebUploader.create({
261 216
    	},
262 217
    accept: {// 只允许选择图片文件。
263 218
        title: 'Images',
264
        extensions: 'gif,jpg,jpeg,bmp,png',
265
        mimeTypes: 'image/gif,image/jpg,image/jpeg,image/bmp,image/png'
219
        extensions: 'jpg,jpeg,png',
220
        mimeTypes: 'image/jpg,image/jpeg,image/png'
266 221
    }
267 222
   
268 223
});
269 224
uploader.onError = function(code) {
270 225
	if(code=="F_EXCEED_SIZE"){
271
		$.MsgBox.Alert('提示', '请上传jpg、png格式的图片,大小不超过2M')	
226
		$.MsgBox.Alert('提示', '请上传jpg、jpeg、png格式的图片,大小不超过2M')	
272 227
	}
273 228
};
274 229
// 当有文件添加进来的时候
@ -285,8 +240,13 @@ uploader.on( 'fileQueued', function( file ) {
285 240
// 文件上传成功,给item添加成功class, 用样式标记上传成功。
286 241
cacheImageKey="";
287 242
uploader.on( 'uploadSuccess', function(file,data) {
288
	cacheImageKey =data.data[0].cacheKey;
289
	$("#uploader").attr("data-id",cacheImageKey);
243
	if(data.success) {
244
		cacheImageKey =data.data[0].cacheKey;
245
		$("#uploader").attr("data-id",cacheImageKey);
246
	}else{
247
		$.MsgBox.Alert('提示', '只支持jpeg/jpg/png格式的图片');
248
		$("#uploader").css("background-image","url('')");
249
	}
290 250
});
291 251
</script>
292 252


+ 14 - 54
cmp-portal/articalModify.html

@ -26,22 +26,10 @@
26 26
<div class="setTimeBlock modelContain">
27 27
	<span class="mb_tit">提示</span>
28 28
	<a class="mb_close"></a>
29
	<div class="mb_msg">
30
		<p style="margin: 10px;">请设置文章发布的时间:</p>
31
		        <div class="formTime">
32
		        <!--<div class="form-group">
33
		            <div class='input-group date' id='datetimepicker6'>
34
		                <input type='text' class="form-control" />
35
		                <span class="input-group-addon"><span class="glyphicon glyphicon-calendar"></span></span>
36
		            </div>
37
		        </div>-->
38
		        <div class="form-group">
39
		             <input size="16" type="text" value="" readonly class="form-control form_datetime">
40
		        </div>
41
		</div>
29
	<div class="mb_msg" id="promotTh">
30

42 31
	</div>
43
	<div class="mb_btnbox">
44
		<input class="mb_btn mb_btnOk" type="button" value="确定">
32
	<div class="mb_btnbox" id="promotGt">
45 33
		<input class="mb_btn mb_btnNo" type="button" value="取消">
46 34
	</div>
47 35
</div>
@ -58,7 +46,7 @@
58 46
	        					<!--未上传图片时-->
59 47
	        					<div class="upFront">
60 48
		        					<p>文章封面图片<em class="requiredcon">*</em></p>
61
		        					<p class="uploadtip">JPG/PNG格式,2M以内</p>
49
		        					<p class="uploadtip">JPG/JPEG/PNG格式,2M以内</p>
62 50
		        					<span class="upbtn">上传图片</span>
63 51
	        					</div>
64 52
	        					<!--已上传图片时-->
@ -206,39 +194,6 @@ $(function () {
206 194
		$('html,body').animate({ scrollTop:0});
207 195
	});
208 196
	
209
	var currentdate;
210
    $(".form_datetime").datetimepicker({
211
    	format: 'yyyy-mm-dd hh:ii',
212
    	forceParse: true,
213
    	autoclose: true,
214
        //todayBtn: true
215
    });
216
    function getNowFormatDate() {
217
	    var date = new Date();
218
	    var seperator1 = "-";
219
	    var seperator2 = ":";
220
	    var month = date.getMonth() + 1;
221
	    var strDate = date.getDate();
222
	    var getHours = date.getHours();
223
	    var getMinutes = date.getMinutes();
224
	    if (month >= 1 && month <= 9) {
225
	        month = "0" + month;
226
	    }
227
	    if (strDate >= 0 && strDate <= 9) {
228
	        strDate = "0" + strDate;
229
	    }
230
	    if (getMinutes >= 0 && getMinutes <= 9) {
231
	        getMinutes = "0" + getMinutes;
232
	    }
233
	     if (getHours >= 0 && getHours <= 9) {
234
	        getHours = "0" + getHours;
235
	    }
236
	    var currentdate = date.getFullYear() + seperator1 + month + seperator1 + strDate
237
	            + " " + getHours + seperator2 + getMinutes
238
	           
239
	    return currentdate;
240
	}
241
    $(".form_datetime").val(getNowFormatDate(currentdate));
242 197
});
243 198
//Model模态框打开关闭
244 199

@ -271,14 +226,14 @@ var uploader = WebUploader.create({
271 226
    // 只允许选择图片文件。
272 227
    accept: {
273 228
        title: 'Images',
274
        extensions: 'gif,jpg,jpeg,bmp,png',
275
        mimeTypes: 'image/gif,image/jpg,image/jpeg,image/bmp,image/png'
229
        extensions: 'jpg,jpeg,png',
230
        mimeTypes: 'image/jpg,image/jpeg,image/png'
276 231
    }
277 232
   
278 233
});
279 234
uploader.onError = function(code) {
280 235
	if(code=="F_EXCEED_SIZE"){
281
		$.MsgBox.Alert('提示', '请上传jpg、png格式的图片,大小不超过2M');
236
		$.MsgBox.Alert('提示', '请上传jpg、jpeg、png格式的图片,大小不超过2M');
282 237
	}
283 238
};
284 239
// 当有文件添加进来的时候
@ -295,8 +250,13 @@ uploader.on( 'fileQueued', function( file ) {
295 250
// 文件上传成功,给item添加成功class, 用样式标记上传成功。
296 251
cacheImageKey="";
297 252
uploader.on( 'uploadSuccess', function(file,data) {
298
	cacheImageKey =data.data[0].cacheKey;
299
	$("#uploader").attr("data-id",cacheImageKey);
253
	if(data.success) {
254
		cacheImageKey =data.data[0].cacheKey;
255
		$("#uploader").attr("data-id",cacheImageKey);
256
	}else{
257
		$.MsgBox.Alert('提示', '只支持jpeg/jpg/png格式的图片');
258
		$("#uploader").css("background-image","url('')");
259
	}
300 260
});
301 261
302 262
</script>

+ 13 - 4
cmp-portal/css/cmpindex.css

@ -44,6 +44,7 @@ a.worksubmenu.cmpBg{color: #FFFFFF;}
44 44
.needUlist li{position:relative;overflow: hidden;padding:4px 0;margin:6px 0;}
45 45
.needUlist li:after{content: '';background: #E6E6E6;height:1px;position: absolute;bottom: 0;right: 0;left:64px;}
46 46
.needUlist li:last-child:after{background: none;}
47
.needUlist li .leftlogo>.h4Font{display: inline-block;width: 100%;overflow: hidden;white-space: nowrap;text-overflow: ellipsis;}
47 48
.staffDlist{overflow: hidden;}
48 49
.staffDlist h2{float:left;width: 58px; text-align: right;line-height: 60px;}
49 50
.staffDlist dl{width: 78%;float: right;}
@ -322,7 +323,7 @@ ul.artAbout .uploadFile .upbtn{display:inline-block;padding:7px 23px;background:
322 323
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;}
323 324
.conBlock .aboutTit{font-size:16px;line-height:40px;color:#666666;margin-top:18px;}
324 325
/*ul.artAbout .editBlock{height:320px;border:1px solid #E5E5E5;}*/
325
ul.artAbout #filePicker{position:absolute;left:50%; bottom:25px; margin-left:-52px;opacity:0; z-index:88;}
326
ul.artAbout #filePicker{position:absolute;left:50%; bottom:22px; margin-left:-52px;opacity:0; z-index:88;}
326 327
ul.artAbout .frmadd{width:auto;position:absolute;right:0;top:0;background: #28b8fa;color:#fff;border:none;padding:6px 25px;z-index: 4;}
327 328
328 329
.conItem ul.operateBlock{overflow: hidden;margin-top:-20px;}
@ -368,7 +369,7 @@ ul.artAbout .frmadd{width:auto;position:absolute;right:0;top:0;background: #28b8
368 369
369 370
.form-result{margin:18px -15px 0 -15px;}
370 371
.form-result>ul>li{position:relative;padding:12px 15px;min-height: 76px;}
371
.form-result>ul>li .deleteThis{display:none;position:absolute;top:50%;margin-top:-16px;right:28px;width:32px;height:32px;background:url(../../images/g_article_button_shanchu_hig.png);background-size:cover;cursor:pointer;}
372
.form-result>ul>li .deleteThis{display:none;position:absolute;top:50%;margin-top:-16px;right:14px;width:32px;height:32px;background:url(../../images/g_article_button_shanchu_hig.png);background-size:cover;cursor:pointer;}
372 373
.form-result>ul>li:hover{background: #EEEEEE;}
373 374
.form-result>ul>li:hover .deleteThis{display:block;}
374 375
@ -426,6 +427,8 @@ ul.tagList>li .h2Font{color:#666}
426 427
.itemListBolck .itemListCon .form-result{margin:20px 0 30px;border-top:1px solid #E5E5E5;}
427 428
.itemListBolck .itemListCon .madiaHead{width:120px;height:80px;margin-top:-40px;}
428 429
.itemListBolck .itemListCon .madiaInfo>ul>li{float: left;margin-left:20px;}
430
.itemListBolck .itemListCon .madiaInfo .column{color:#666;}
431
.itemListBolck .itemListCon .madiaInfo>ul>li>.column{border:1px solid #28b8fa;padding:0 4px;font-size: 12px;color:#28b8fa;border-radius:4px;}
429 432
.itemListBolck .itemListCon .madiaInfo>ul>li:first-child{margin-left:0;}
430 433
.itemListBolck .itemListCon .madiaInfo{padding-left:140px;min-height: 80px;padding-top:15px;}
431 434
.itemListCon.form-item ul .h1Font{font-size:18px;}
@ -433,11 +436,15 @@ ul.tagList>li .h2Font{color:#666}
433 436
.itemListCon .form-result>ul>li .madiaEdit>li{float: left;margin-right: 28px;}
434 437
.itemListCon .form-result>ul>li .madiaEdit .editThis{display:inline-block;width:60px;height:32px;background:url(../images/g_article_button_xiugai_lan_hig.png);background-size:cover;cursor:pointer;}
435 438
.itemListCon .form-result>ul>li .madiaEdit .deteleThis2{display:inline-block;width:32px;height:32px;background:url(../../images/g_article_button_shanchu_hig.png);background-size:cover;cursor:pointer;}
439
.itemListCon .form-result>ul>li .madiaEdit .closeThis{color:#FF0000;}
436 440
.itemListCon .form-result>ul>li .madiaEdit{display:none;overflow:hidden;position:absolute;top:50%;margin-top:-16px;right:0;}
437 441
.itemListCon .form-result>ul>li:hover .madiaEdit{display: block;}
438 442
439 443
.itemListCon li.draftList .madiaInfo{padding-top:4px;}
440 444
445
.itemListBolck .itemListCon .form-need .madiaInfo{padding-left: 0;}
446
.itemListBolck .itemListCon .form-need .madiaEdit{display: block;}
447
441 448
/*定时发送时间选择器*/
442 449
.blackcover2{display:none;overflow-x: hidden;overflow-y:auto;position:fixed;top:0;right:0;bottom:0;left:0; background:rgba(0,0,0,.5);z-index: 1050;}
443 450
/*.modelContain{display:none;position:relative;clear:both;margin:40px auto;width:600px;background:#fff;border-radius:8px;z-index:1056; 
@ -449,8 +456,10 @@ ul.tagList>li .h2Font{color:#666}
449 456
.setTimeBlock{z-index: 999999; width: 400px; position: fixed; background-color: white; border-radius: 6px; box-shadow: rgb(102, 102, 102) 1px 1px 20px 4px;top:50%;left:50%;margin:-167px 0 0 -200px;}
450 457
.setTimeBlock .mb_tit{display: block; font-size: 18px; color: rgb(255, 255, 255); background-color:#28b8fa; line-height: 60px; text-align: center; border-radius: 6px 6px 0 0; }
451 458
.setTimeBlock .mb_close{display: block; position: absolute; right: 20px; top: 18px; background: url(../../images/sign_icon_guanbi_nor.png) center center no-repeat; width: 20px; height: 20px; cursor: pointer;}
452
.setTimeBlock .mb_msg{position: relative; padding: 30px 20px 20px; line-height: 24px; text-align: center; font-size: 16px;}
453
.setTimeBlock .formTime{padding:10px 24px;}
459
.setTimeBlock .mb_msg{position: relative; padding: 30px 40px 20px; line-height: 24px; text-align: center; font-size: 16px;}
460
.setTimeBlock .mb_msg .mb-list{margin:6px 6px 12px 6px}
461
.setTimeBlock .mb_msg .mb-list p{margin:6px;}
462
/*.setTimeBlock .formTime,.setTimeBlock .form-control{padding:10px 24px;}*/
454 463
.setTimeBlock .mb_btnbox{margin: 0px auto 30px; text-align: center; position: relative;}
455 464
.setTimeBlock .mb_btn{width: 100px; font-size: 14px; height: 32px; color: white; border: none; background-image: none; padding: 0px; margin: 0px 10px; border-radius: 6px;}
456 465
.setTimeBlock .mb_btnOk{ background-color:#28b8fa;}

+ 7 - 8
cmp-portal/css/common.css

@ -1,10 +1,9 @@
1 1
@charset "utf-8";
2
/* CSS Document */
3
/*reset--base*/
4
p,dl,dt,dd,ul,ol,li,a,em,div,span,th,td{margin:0;padding:0; word-break:break-all; font-family: PingFang SC,Arial,Helvetica Neue,Hiragino Sans GB,Microsoft Yahei,WenQuanYi Micro Hei,sans-serif;}
5
form,label,button,input,select,textarea{font-size:14px; font-family: PingFang SC,Arial,Helvetica Neue,Hiragino Sans GB,Microsoft Yahei,WenQuanYi Micro Hei,sans-serif;}
6
h1,h2,h3,h4,h5,h6{font-size:100%;margin:0;padding:0; font-family: PingFang SC,Arial,Helvetica Neue,Hiragino Sans GB,Microsoft Yahei,WenQuanYi Micro Hei,sans-serif;}
7
html,body{height:100%; width:100%; margin:0;padding:0;font-family: PingFang SC,Arial,Helvetica Neue,Hiragino Sans GB,Microsoft Yahei,WenQuanYi Micro Hei,sans-serif;}
2
/*reset*/
3
p,dl,dt,dd,ul,ol,li,a,em,div,span,th,td{margin:0;padding:0; word-break:break-all; font-family: PingFang SC,Microsoft Yahei,Arial,WenQuanYi Micro Hei,Helvetica Neue,Hiragino Sans GB,sans-serif;}
4
form,label,button,input,select,textarea{font-size:14px; font-family: PingFang SC,Microsoft Yahei,Arial,WenQuanYi Micro Hei,Helvetica Neue,Hiragino Sans GB,sans-serif;}
5
h1,h2,h3,h4,h5,h6{font-size:100%;margin:0;padding:0; font-family: PingFang SC,Microsoft Yahei,Arial,WenQuanYi Micro Hei,Helvetica Neue,Hiragino Sans GB,sans-serif;}
6
html,body{height:100%; width:100%; margin:0;padding:0;font-family: PingFang SC,Microsoft Yahei,Arial,WenQuanYi Micro Hei,Helvetica Neue,Hiragino Sans GB,sans-serif;}
8 7
input{vertical-align:middle; outline:none;}
9 8
img{color:transparent;font-size:0;vertical-align:middle;-ms-interpolation-mode:bicubic;border:0;padding:0; margin:0;}
10 9
small{font-size:12px;}
@ -196,7 +195,7 @@ button.btnModelBig:hover{
196 195
.nodatabox .noContip{font-size:18px;color: #999;line-height:40px;}
197 196
.nodatabox .keyword{font-size:22px; padding:0 6px;color:#555555;}
198 197
/***********************缺省页面*******************/
199
#container{margin-top:90px;}
198
#container{padding-top:90px;}
200 199
.containerCon{width:1120px;padding:0 10px;position:relative; margin:auto;}
201 200
.containerCon:before,.containerCon:after{display:table;content:" "}
202 201
.containerCon:after{clear: both;}
@ -221,7 +220,7 @@ footer .weixincode{background-image: url(../images/home_bg_guanzhu_nor.png);}
221 220
footer .weixincode span{background-image:url(../images/home_code_weixin.jpg);background-size: cover;}
222 221

223 222
/*新版header*/
224
header{ position:fixed; top:0;left:0;right: 0; z-index:1000;font-size:16px;line-height:32px;}
223
header{ position:fixed; top:0;left:0;right: 0; z-index:1012;font-size:16px;line-height:32px;}
225 224
header .navheader{background:#FFFFFF;height:62px;border-bottom: 2px solid #e5e5e5;}
226 225
header .navheader.navhdown{background: rgba(256,256,256,1);border-color:#E5E5E5;box-shadow: 0px 2px 12px 0px rgba(204, 204, 204, 0.6);-webkit-box-shadow: 0px 2px 12px 0px rgba(204, 204, 204, 0.6);}
227 226
header .navheader.navhdown li a{color:#666;}

+ 210 - 89
cmp-portal/js/articalIssue.js

@ -5,6 +5,11 @@ $(function() {
5 5
	var articleId;
6 6
	var fa = false;
7 7
    var orgId = $.cookie("orgId");
8
    var colMgr = $.cookie("colMgr");  
9
    var hbur,hburEnd;
10
  	var pr,prEnd;
11
  	var re,reEnd;
12
  	var orgr,orgrEnd;
8 13
    if(orgId == "" || orgId == null || orgId == "null"){
9 14
    	location.href = "cmp-settled-log.html";
10 15
    }
@ -32,17 +37,26 @@ $(function() {
32 37
			$("#keyPrompt").text("");
33 38
		},
34 39
		keyup: function() {
35
			if($(this).val()==""){
40
			var ti=$(this).val();
41
			hbur=ti;
42
			if(ti==""){
36 43
				$(".frmadd").addClass("displayNone");
37 44
				$(".keydrop ul").html("");
38 45
				$(".keydrop").addClass("displayNone");
46
				return;
39 47
			}else{
40 48
				$(".frmadd").removeClass("displayNone");
41 49
			}
42 50
			if($(this).val().length > 15) {
43 51
				$(this).val($(this).val().substr(0, 15));
44 52
			}
45
			KeyWordList();
53
			setTimeout(function(){
54
				if( ti===hbur && ti!== hburEnd) {
55
					KeyWordList(ti);
56
				}
57
				
58
			},500)
59
			
46 60
		}
47 61
	})
48 62

@ -105,8 +119,8 @@ $(function() {
105 119
			$("#keyWordlist").append("<li class='delkeylist'><p class='h2Font'>" + keyWord + "</p><div class='closeThis'></div></li>");
106 120
		}
107 121
	}
108
	
109
	function KeyWordList() {
122
	function KeyWordList(seValue) {
123
		hburEnd=seValue;
110 124
		$.ajax({
111 125
			"url": "/ajax/dataDict/qaHotKey",
112 126
			"type": "get",
@ -115,19 +129,21 @@ $(function() {
115 129
			},
116 130
			"success": function(data) {
117 131
				console.log(data);
118
				if(data.success && data.data != "") {
119
					var itemlist = '';
120
					$("#keydropList").html("");
121
					for(var i = 0; i < 5; i++) {
122
						var itemlist = '<li><p class="h2Font"></p></li>';
123
						$itemlist = $(itemlist);
124
						$("#keydropList").append($itemlist);
125
						$itemlist.find(".h2Font").text(data.data[i].caption);
132
				if(data.success) {
133
					if(hburEnd == seValue){
134
						var itemlist = '';
135
						$("#keydropList").html("");
136
						for(var i = 0; i < Math.min(data.data.length,5); i++) {
137
							var itemlist = '<li><p class="h2Font"></p></li>';
138
							$itemlist = $(itemlist);
139
							$("#keydropList").append($itemlist);
140
							$itemlist.find(".h2Font").text(data.data[i].caption);
141
						}
142
						$(".keydrop").removeClass("displayNone");
126 143
					}
127
					$(".keydrop").removeClass("displayNone");
128 144
				} else {
129
					$(".keydrop").addClass("displayNone");
130
					$(".keydrop ul").html("");
145
					//$(".keydrop").addClass("displayNone");
146
					//$(".keydrop ul").html("");
131 147
				}
132 148
			},
133 149
			"error": function() {
@ -135,7 +151,6 @@ $(function() {
135 151
			}
136 152
		});
137 153
	}
138
	
139 154
	//校验右侧专家和资源
140 155
	$("#checkZj").on("focus", function() {
141 156
		$(this).prev().find("span").text("最多选择5位专家");
@ -151,12 +166,34 @@ $(function() {
151 166

152 167
	$("#checkZj").on("keyup", function() {
153 168
		var _this = this;
154
		checkZj(_this);
169
		var ti=$(this).val();
170
		pr=ti;
171
		if($(this).val()=="") {
172
			return;
173
		}
174
		setTimeout(function(){
175
				if( ti===pr && ti!== prEnd) {
176
					checkZj(_this,ti);
177
				}
178
				
179
			},500)
180
		
155 181
	})
156 182

157 183
	$("#checkZy").on("keyup", function() {
184
		var ti=$(this).val();
185
		re=ti;
186
		if($(this).val()=="") {
187
			return;
188
		}
158 189
		var _this = this;
159
		checkZy(_this);
190
		setTimeout(function(){
191
				if( ti===re && ti!== reEnd) {
192
					checkZy(_this,ti);
193
				}
194
				
195
			},500)
196
		
160 197
	})
161 198

162 199
	$("#expertlist").on("click", "li", function() {
@ -201,7 +238,8 @@ $(function() {
201 238
		$(this).parent().remove();
202 239
	})
203 240

204
	function checkZj(_this) {
241
	function checkZj(_this,prd) {
242
		prEnd=prd;
205 243
		$.ajax({
206 244
			"url": "/ajax/professor/qaByName",
207 245
			"type": "get",
@ -213,26 +251,28 @@ $(function() {
213 251
				console.log(data);
214 252
				if(data.success) {
215 253
					if(data.data != "") {
216
						$(_this).next().removeClass("displayNone");
217
						var itemlist = '';
218
						$("#expertlist").html("");
219
						for(var i = 0; i < data.data.length; i++) {
220
							var itemlist = '<li id="usid" class="flexCenter">';
221
							itemlist += '<div class="madiaHead useHead" id="userimg"></div>';
222
							itemlist += '<div class="madiaInfo">';
223
							itemlist += '<p class="ellipsisSty"><span class="h1Font" id="name"></span><span class="h2Font" style="margin-left:10px;" id="title"></span></p>';
224
							itemlist += '<p class="h2Font ellipsisSty" id="orgName"></p>';
225
							itemlist += '</div><div class="deleteThis"></div></li>';
226
							$itemlist = $(itemlist);
227
							$("#expertlist").append($itemlist);
228
							var datalist = data.data[i];
229
							$itemlist.attr("data-id", datalist.id);
230
							$itemlist.find("#name").text(datalist.name);
231
							$itemlist.find("#title").text(datalist.title);
232
							$itemlist.find("#orgName").text(datalist.orgName);
233
							if(datalist.hasHeadImage == 1) {
234
								$itemlist.find("#userimg").attr("style", "background-image: url(/images/head/" + datalist.id + "_l.jpg);");
235
							}
254
							if(prEnd == prd){
255
								$(_this).next().removeClass("displayNone");
256
								var itemlist = '';
257
								$("#expertlist").html("");
258
								for(var i = 0; i < data.data.length; i++) {
259
									var itemlist = '<li id="usid" class="flexCenter">';
260
									itemlist += '<div class="madiaHead useHead" id="userimg"></div>';
261
									itemlist += '<div class="madiaInfo">';
262
									itemlist += '<p class="ellipsisSty"><span class="h1Font" id="name"></span><span class="h2Font" style="margin-left:10px;" id="title"></span></p>';
263
									itemlist += '<p class="h2Font ellipsisSty" id="orgName"></p>';
264
									itemlist += '</div><div class="deleteThis"></div></li>';
265
									$itemlist = $(itemlist);
266
									$("#expertlist").append($itemlist);
267
									var datalist = data.data[i];
268
									$itemlist.attr("data-id", datalist.id);
269
									$itemlist.find("#name").text(datalist.name);
270
									$itemlist.find("#title").text(datalist.title);
271
									$itemlist.find("#orgName").text(datalist.orgName);
272
									if(datalist.hasHeadImage == 1) {
273
										$itemlist.find("#userimg").attr("style", "background-image: url(/images/head/" + datalist.id + "_l.jpg);");
274
									}
275
							}		
236 276
						}
237 277
					} else {
238 278
						$(_this).next().addClass("displayNone");
@ -247,7 +287,8 @@ $(function() {
247 287
		});
248 288
	}
249 289

250
	function checkZy(_this) {
290
	function checkZy(_this,prd) {
291
		reEnd=prd;
251 292
		$.ajax({
252 293
			"url": "/ajax/resource/qaByName",
253 294
			"type": "get",
@ -259,30 +300,32 @@ $(function() {
259 300
				console.log(data);
260 301
				if(data.success) {
261 302
					if(data.data != "") {
262
						$(_this).next().removeClass("displayNone");
263
						var itemlist = '';
264
						$("#resouselist").html("");
265
						for(var i = 0; i < data.data.length; i++) {
266
							var itemlist = '<li id="usid" class="flexCenter">';
267
							itemlist += '<div class="madiaHead resouseHead" id="userimg"></div>';
268
							itemlist += '<div class="madiaInfo">';
269
							itemlist += '<p class="h1Font ellipsisSty" id="resourceName"></p>';
270
							itemlist += '<p class="h2Font ellipsisSty" id="name"></p>';
271
							itemlist += '</div><div class="deleteThis"></div></li>';
272
							$itemlist = $(itemlist);
273
							$("#resouselist").append($itemlist);
274
							var datalist = data.data[i];
275
							$itemlist.attr("data-id", datalist.resourceId);
276
							$itemlist.find("#resourceName").text(datalist.resourceName);
277
							if(datalist.resourceType==1){
278
								$itemlist.find("#name").text(datalist.professor.name);
279
							}else{
280
								$itemlist.find("#name").text(datalist.organization.name);
281
							}
282
							if(datalist.images.length > 0) {
283
								$itemlist.find("#userimg").attr("style", "background-image: url(/data/resource/" + datalist.images[0].imageSrc + ");");
284
							}
285
						}
303
						if(reEnd==prd) {
304
								$(_this).next().removeClass("displayNone");
305
								var itemlist = '';
306
								$("#resouselist").html("");
307
								for(var i = 0; i < data.data.length; i++) {
308
									var itemlist = '<li id="usid" class="flexCenter">';
309
									itemlist += '<div class="madiaHead resouseHead" id="userimg"></div>';
310
									itemlist += '<div class="madiaInfo">';
311
									itemlist += '<p class="h1Font ellipsisSty" id="resourceName"></p>';
312
									itemlist += '<p class="h2Font ellipsisSty" id="name"></p>';
313
									itemlist += '</div><div class="deleteThis"></div></li>';
314
									$itemlist = $(itemlist);
315
									$("#resouselist").append($itemlist);
316
									var datalist = data.data[i];
317
									$itemlist.attr("data-id", datalist.resourceId);
318
									$itemlist.find("#resourceName").text(datalist.resourceName);
319
									if(datalist.resourceType==1){
320
										$itemlist.find("#name").text(datalist.professor.name);
321
									}else{
322
										$itemlist.find("#name").text(datalist.organization.name);
323
									}
324
									if(datalist.images.length > 0) {
325
										$itemlist.find("#userimg").attr("style", "background-image: url(/data/resource/" + datalist.images[0].imageSrc + ");");
326
									}
327
								}
328
							}	
286 329
					} else {
287 330
						$(_this).next().addClass("displayNone");
288 331
					}
@ -339,33 +382,79 @@ $(function() {
339 382
		});
340 383
		return $.unique(resourcesarray);
341 384
	}
342

385
	
386
	var seleClum ='<div class="mb-list mb-listL"><p>请选择文章发布的栏目:</p>'+
387
		'<select class="form-control form-column" id="seletColum"></select></div>';
388
	var seleTime = '<div class="mb-list mb-listR"><p>请设置文章发布的时间:</p>'+
389
		'<div class="formTime"><div class="form-group">'+
390
        '<input size="16" type="text" value="" readonly class="form-control form_datetime">'+
391
    	'</div></div></div>';
343 392
	//文章发布
344 393
	$("#release").on("click", function() {
394
		if($(this).hasClass("disableLi")){
395
			return;
396
		}
345 397
		noTitleImg();
346 398
		if(imgflase && titleflase) {
347
			$.MsgBox.Confirm("提示", "确认发布该文章?", newsAdd);
399
			console.log(colMgr)
400
			if(colMgr=="true"){
401
				$(".blackcover2").fadeIn();
402
				var btnOk='<input class="mb_btn mb_btnOk mb_btnOkpub" type="button" value="确定">'
403
				$(".mb_btnOk").remove(); $("#promotGt").prepend(btnOk);
404
				$(".modelContain").show(); $("body").addClass("modelOpen");
405
				$(".mb-listR").remove();
406
				$(".mb-listL").remove();
407
				$("#promotTh").prepend(seleClum);
408
				fillColum(7);//填充select栏目
409
				$(".mb_btnOkpub").on("click", function() {
410
					$(".blackcover2").fadeOut();
411
					$(".modelContain").hide();
412
					$("body").removeClass("modelOpen");
413
					$.MsgBox.Confirm("提示", "确认发布该文章?", newsAdd);
414
				})
415
			}else{
416
				$.MsgBox.Confirm("提示", "确认发布该文章?", newsAdd);
417
			}
418
			
348 419
		}
349 420
	})
350 421

351 422
	//定时文章发布
352 423
	$("#setTimeIssue").on("click", function() {
424
		if($(this).hasClass("disableLi")){
425
			return;
426
		}
353 427
		noTitleImg();
354 428
		if(imgflase && titleflase) {
355 429
			$(".blackcover2").fadeIn();
356
			$(".modelContain").show();
357
			$("body").addClass("modelOpen");
358
			$(".mb_btnOk").on("click", function() {
430
			var btnOk='<input class="mb_btn mb_btnOk mb_btnOkset" type="button" value="确定">'
431
			$(".mb_btnOk").remove(); $("#promotGt").prepend(btnOk);
432
			$(".modelContain").show(); $("body").addClass("modelOpen");
433
			$(".mb-listR").remove(); $("#promotTh").append(seleTime);//时间选择器
434
			$(".mb-listR .form_datetime").datetimepicker({
435
				format: 'yyyy-mm-dd hh:ii',
436
				forceParse: true,
437
				autoclose: true,
438
			});
439
			$(".mb-listR .form_datetime").val(getNowFormatDate(currentdate));
440
			if(colMgr=="true"){
441
				$(".mb-listL").remove();
442
				$("#promotTh").prepend(seleClum);
443
				fillColum(7);//填充select栏目
444
			}
445
			$(".mb_btnOkset").on("click", function() {
359 446
				var publishTime = $(".form_datetime").val();
360 447
				console.log(st6(publishTime));
361 448
				setTimeIssue(st6(publishTime));
362

363 449
			})
364 450
		}
365 451
	})
366

452
	
367 453
	//文章存草稿
368 454
	$("#draft").on("click", function() {
455
		if($(this).hasClass("disableLi")){
456
			return;
457
		}
369 458
		noTitleImg();
370 459
		if(imgflase && titleflase) {
371 460
			draftAdd(1);
@ -374,6 +463,9 @@ $(function() {
374 463

375 464
	//文章预览
376 465
	$("#preview").on("click", function() {
466
		if($(this).hasClass("disableLi")){
467
			return;
468
		}
377 469
		noTitleImg();
378 470
		if(imgflase && titleflase) {
379 471
			draftAdd(2);
@ -400,24 +492,36 @@ function getAttrId() {
400 492
		$data.articleContent = ue.getContent();
401 493
		$data.professors = experarray;
402 494
		$data.resources = resourcesarray;
495
		if(colMgr=="true"){
496
			$data.colNum = $("#seletColum").val();
497
			if(publishTime!="") {
498
				$data.publishTime = publishTime;
499
			}
500
		}else{
501
			if(publishTime!="") {
502
				$data.publishTime = publishTime;
503
			}
504
			$data.colNum=2;
505
		}
403 506
		if($("#hidearticleId").val().length != 0) {
404 507
			$data.articleId = $("#hidearticleId").val();
405 508
		}
406
		if($(".form_datetime").val().length != 0) {
407
			$data.publishTime = publishTime;
408
		}
409 509
		console.log($data);
410 510
	}
411 511

412 512
	/*文章发布*/
413 513
	function newsAdd() {
414 514
		getdata();
515
		$(".operateBlock").find("li").addClass("disableLi");
415 516
		$.ajax({
416 517
			"url": "/ajax/article/save",
417 518
			"type": "post",
418 519
			"dataType": "json",
419 520
			"data": $data,
420 521
			"traditional": true, //传数组必须加这个
522
			"complete":function(){
523
				$(".operateBlock").find("li").removeClass("disableLi");
524
			},
421 525
			"success": function(data) {
422 526
				console.log(data);
423 527
				if(data.success) {
@ -444,12 +548,16 @@ function getAttrId() {
444 548
	function setTimeIssue(publishTime) {
445 549
		var opublishTime=publishTime+"01";
446 550
		getdata(opublishTime);
551
		$(".operateBlock").find("li").addClass("disableLi");
447 552
		$.ajax({
448 553
			"url": "/ajax/article/timing",
449 554
			"type": "post",
450 555
			"dataType": "json",
451 556
			"data": $data,
452 557
			"traditional": true, //传数组必须加这个
558
			"complete":function(){
559
				$(".operateBlock").find("li").removeClass("disableLi");
560
			},
453 561
			"success": function(data) {
454 562
				console.log(data);
455 563
				if(data.success) {
@ -472,12 +580,16 @@ function getAttrId() {
472 580
	/*文章添加草稿和文章预览*/
473 581
	function draftAdd(num) {
474 582
		getdata();
583
		$(".operateBlock").find("li").addClass("disableLi");
475 584
		$.ajax({
476 585
			"url": "/ajax/article/draft",
477 586
			"type": "post",
478 587
			"dataType": "json",
479 588
			"data": $data,
480 589
			"traditional": true, //传数组必须加这个
590
			"complete":function(){
591
				$(".operateBlock").find("li").removeClass("disableLi");
592
			},
481 593
			"success": function(data) {
482 594
				console.log(data);
483 595
				if(num == 1) {
@ -579,33 +691,40 @@ function getAttrId() {
579 691
			$(this).siblings(".aboutTit").find("span").text("最多选择3家企业");
580 692
		},
581 693
		keyup: function(e) {
694
			 var ti=$(this).val();
695
			 orgr=ti;
696
			 var $this=$(this);
582 697
			if($(this).val().trim()) {
583 698
				var lNum = $.trim($(this).val()).length;
584 699
				if(0 < lNum) {
585
					var $this = $(this)
700
					setTimeout(function(){
701
						if( ti===orgr && ti!== orgrEnd) {
702
							var tt=ti;
703
							orgrEnd=tt;
586 704
					$("#companylist").parent().show();
587
					console.log($(this).val())
588 705
					$.ajax({
589 706
						"url": "/ajax/org/qr",
590 707
						"type": "GET",
591 708
						"data":{
592
							kw: $(this).val(),
709
							kw: $this.val(),
593 710
							limit:3
594 711
						},
595 712
						"success": function(data) {
596 713
							console.log(data);
597 714
							if(data.success) {
598
								if(data.data.length == 0) {
599
									$this.siblings(".form-drop").addClass("displayNone");
600
									$this.siblings(".form-drop").find("ul").html("");
601
								} else {
602
									$this.siblings(".form-drop").removeClass("displayNone");
603
									var oSr = "";
604
									for(var i = 0; i < data.data.length; i++) {
605
										var busName=(data.data[i].forShort)?data.data[i].forShort:data.data[i].name;
606
										oSr += '<li style="min-height:40px;position:static;"data-id="'+data.data[i].id+'">' + busName + '</li>';
715
								if(orgrEnd==tt) {
716
									if(data.data.length == 0) {
717
										$this.siblings(".form-drop").addClass("displayNone");
718
										$this.siblings(".form-drop").find("ul").html("");
719
									} else {
720
										$this.siblings(".form-drop").removeClass("displayNone");
721
										var oSr = "";
722
										for(var i = 0; i < data.data.length; i++) {
723
											var busName=(data.data[i].forShort)?data.data[i].forShort:data.data[i].name;
724
											oSr += '<li style="min-height:40px;position:static;"data-id="'+data.data[i].id+'">' + busName + '</li>';
725
										}
726
										$this.siblings(".form-drop").find("ul").html(oSr);
607 727
									}
608
									$this.siblings(".form-drop").find("ul").html(oSr);
609 728
								}
610 729
							} else {
611 730
								$this.siblings(".form-drop").addClass("displayNone");
@ -617,6 +736,8 @@ function getAttrId() {
617 736
							$.MsgBox.Alert('提示', '服务器连接超时!');
618 737
						}
619 738
					});
739
					}
740
					},500)
620 741
				}
621 742
			} else {
622 743
				$(this).siblings(".form-drop").addClass("displayNone");
@ -633,7 +754,7 @@ function getAttrId() {
633 754
				return;
634 755
			}
635 756
		}
636
		$(this).parents(".form-drop").siblings(".form-result").find("ul").append('<li style="min-height:40px;" data-id="'+$(this).attr("data-id")+'">' + oValue + '<div class="deleteThis" style="right:0px;"></div></li>');
757
		$(this).parents(".form-drop").siblings(".form-result").find("ul").append('<li class="ellipsisSty" style="min-height:40px;padding-right:42px;" data-id="'+$(this).attr("data-id")+'">' + oValue + '<div class="deleteThis"></div></li>');
637 758
		$(this).parents(".form-drop").siblings("input").val("");
638 759
		if(oJudge.length == 4) {
639 760
			$(this).parents(".form-drop").siblings("input").val("");
@ -642,4 +763,4 @@ function getAttrId() {
642 763
		$(this).parent("ul").html("")
643 764
	})
644 765
}
645
});
766
});

+ 235 - 113
cmp-portal/js/articalModify.js

@ -6,9 +6,14 @@ $(function() {
6 6
    var modifyTimeval;
7 7
    var settime = false;
8 8
	var orgId = $.cookie("orgId");
9
	var colMgr = $.cookie("colMgr");
9 10
	if(orgId == "" || orgId == null || orgId == "null"){
10 11
    	location.href = "cmp-settled-log.html";
11 12
    }
13
	var hbur,hburEnd;
14
  	var pr,prEnd;
15
  	var re,reEnd;
16
  	var orgr,orgrEnd;
12 17
	articleshow();
13 18
	relevantExperts();
14 19
	relevantResources();
@ -37,20 +42,28 @@ $(function() {
37 42
			$("#keyPrompt").text("");
38 43
		},
39 44
		keyup: function() {
40
			if($(this).val()==""){
45
			var ti=$(this).val();
46
			hbur=ti;
47
			if(ti==""){
41 48
				$(".frmadd").addClass("displayNone");
42 49
				$(".keydrop ul").html("");
43 50
				$(".keydrop").addClass("displayNone");
51
				return;
44 52
			}else{
45 53
				$(".frmadd").removeClass("displayNone");
46 54
			}
47 55
			if($(this).val().length > 15) {
48 56
				$(this).val($(this).val().substr(0, 15));
49 57
			}
50
			KeyWordList();
58
			setTimeout(function(){
59
				if( ti===hbur && ti!== hburEnd) {
60
					KeyWordList(ti);
61
				}
62
				
63
			},500)
64
			
51 65
		}
52 66
	})
53

54 67
	//添加关键字
55 68
	$("#addkeyWord").on("click", function() {
56 69
		var keyWord = $("#KeyWord").val();
@ -111,7 +124,8 @@ $(function() {
111 124
		}
112 125
	}
113 126
	
114
	function KeyWordList() {
127
	function KeyWordList(seValue) {
128
		hburEnd=seValue;
115 129
		$.ajax({
116 130
			"url": "/ajax/dataDict/qaHotKey",
117 131
			"type": "get",
@ -121,19 +135,21 @@ $(function() {
121 135
			"success": function(data) {
122 136
				console.log(data);
123 137
				if(data.success && data.data != "") {
124
					var itemlist = '';
125
					$("#keydropList").html("");
126
					for(var i = 0; i < 5; i++) {
127
						var itemlist = '<li><p class="h2Font"></p></li>';
128
						$itemlist = $(itemlist);
129
						$("#keydropList").append($itemlist);
130
						$itemlist.find(".h2Font").text(data.data[i].caption);
138
					if(hburEnd == seValue){
139
						var itemlist = '';
140
						$("#keydropList").html("");
141
						for(var i = 0; i < 5; i++) {
142
							var itemlist = '<li><p class="h2Font"></p></li>';
143
							$itemlist = $(itemlist);
144
							$("#keydropList").append($itemlist);
145
							$itemlist.find(".h2Font").text(data.data[i].caption);
146
						}
147
						$(".keydrop").removeClass("displayNone");
148
					} else {
149
						$(".keydrop").addClass("displayNone");
150
						$(".keydrop ul").html("");
131 151
					}
132
					$(".keydrop").removeClass("displayNone");
133
				} else {
134
					$(".keydrop").addClass("displayNone");
135
					$(".keydrop ul").html("");
136
				}
152
				}	
137 153
			},
138 154
			"error": function() {
139 155
				$.MsgBox.Alert('提示', '链接服务器超时')
@ -175,12 +191,34 @@ $(function() {
175 191
	
176 192
	$("#checkZj").on("keyup", function() {
177 193
		var _this = this;
178
		checkZj(_this);
194
		var ti=$(this).val();
195
		pr=ti;
196
		if($(this).val()=="") {
197
			return;
198
		}
199
		setTimeout(function(){
200
				if( ti===pr && ti!== prEnd) {
201
					checkZj(_this,ti);
202
				}
203
				
204
			},500)
205
		
179 206
	})
180 207

181 208
	$("#checkZy").on("keyup", function() {
209
		var ti=$(this).val();
210
		re=ti;
211
		if($(this).val()=="") {
212
			return;
213
		}
182 214
		var _this = this;
183
		checkZy(_this);
215
		setTimeout(function(){
216
				if( ti===re && ti!== reEnd) {
217
					checkZy(_this,ti);
218
				}
219
				
220
			},500)
221
		
184 222
	})
185 223
	
186 224
	$("#expertlist").on("click","li",function(){
@ -225,43 +263,46 @@ $(function() {
225 263
		$(this).parent().remove();
226 264
	})
227 265
	
228
	function checkZj(_this){
266
	function checkZj(_this,prd) {
267
		prEnd=prd;
229 268
		$.ajax({
230 269
			"url": "/ajax/professor/qaByName",
231 270
			"type": "get",
232 271
			"data": {
233 272
				"name": $("#checkZj").val(),
234
				"total":3
273
				"total": 3
235 274
			},
236 275
			"success": function(data) {
237 276
				console.log(data);
238
				if(data.success ) {
239
					if(data.data != ""){
240
						$(_this).next().removeClass("displayNone");
241
						var itemlist = '';
242
						$("#expertlist").html("");
243
						for(var i = 0; i < data.data.length; i++) {
244
							var itemlist = '<li id="usid" class="flexCenter">';
245
							itemlist += '<div class="madiaHead useHead" id="userimg"></div>';
246
							itemlist += '<div class="madiaInfo">';
247
							itemlist += '<p class="ellipsisSty"><span class="h1Font" id="name"></span><span class="h2Font" style="margin-left:10px;" id="title"></span></p>';
248
							itemlist += '<p class="h2Font ellipsisSty" id="orgName"></p>';
249
							itemlist += '</div><div class="deleteThis"></div></li>';
250
							$itemlist = $(itemlist);
251
							$("#expertlist").append($itemlist);
252
							var datalist = data.data[i];
253
							$itemlist.attr("data-id",datalist.id);
254
							$itemlist.find("#name").text(datalist.name);
255
							$itemlist.find("#title").text(datalist.title);
256
							$itemlist.find("#orgName").text(datalist.orgName);
257
							if(datalist.hasHeadImage==1) {
258
								$itemlist.find("#userimg").attr("style", "background-image: url(/images/head/" + datalist.id + "_l.jpg);");
259
							}
277
				if(data.success) {
278
					if(data.data != "") {
279
							if(prEnd == prd){
280
								$(_this).next().removeClass("displayNone");
281
								var itemlist = '';
282
								$("#expertlist").html("");
283
								for(var i = 0; i < data.data.length; i++) {
284
									var itemlist = '<li id="usid" class="flexCenter">';
285
									itemlist += '<div class="madiaHead useHead" id="userimg"></div>';
286
									itemlist += '<div class="madiaInfo">';
287
									itemlist += '<p class="ellipsisSty"><span class="h1Font" id="name"></span><span class="h2Font" style="margin-left:10px;" id="title"></span></p>';
288
									itemlist += '<p class="h2Font ellipsisSty" id="orgName"></p>';
289
									itemlist += '</div><div class="deleteThis"></div></li>';
290
									$itemlist = $(itemlist);
291
									$("#expertlist").append($itemlist);
292
									var datalist = data.data[i];
293
									$itemlist.attr("data-id", datalist.id);
294
									$itemlist.find("#name").text(datalist.name);
295
									$itemlist.find("#title").text(datalist.title);
296
									$itemlist.find("#orgName").text(datalist.orgName);
297
									if(datalist.hasHeadImage == 1) {
298
										$itemlist.find("#userimg").attr("style", "background-image: url(/images/head/" + datalist.id + "_l.jpg);");
299
									}
300
							}		
260 301
						}
261
					}else{
302
					} else {
262 303
						$(_this).next().addClass("displayNone");
263 304
					}
264
				}else{
305
				} else {
265 306
					$(_this).next().addClass("displayNone");
266 307
				}
267 308
			},
@ -270,8 +311,9 @@ $(function() {
270 311
			}
271 312
		});
272 313
	}
273
	
274
		function checkZy(_this) {
314

315
	function checkZy(_this,prd) {
316
		reEnd=prd;
275 317
		$.ajax({
276 318
			"url": "/ajax/resource/qaByName",
277 319
			"type": "get",
@ -283,30 +325,32 @@ $(function() {
283 325
				console.log(data);
284 326
				if(data.success) {
285 327
					if(data.data != "") {
286
						$(_this).next().removeClass("displayNone");
287
						var itemlist = '';
288
						$("#resouselist").html("");
289
						for(var i = 0; i < data.data.length; i++) {
290
							var itemlist = '<li id="usid" class="flexCenter">';
291
							itemlist += '<div class="madiaHead resouseHead" id="userimg"></div>';
292
							itemlist += '<div class="madiaInfo">';
293
							itemlist += '<p class="h2Font ellipsisSty" id="resourceName"></p>';
294
							itemlist += '<p class="h1Font ellipsisSty" id="name"></p>';
295
							itemlist += '</div><div class="deleteThis"></div></li>';
296
							$itemlist = $(itemlist);
297
							$("#resouselist").append($itemlist);
298
							var datalist = data.data[i];
299
							$itemlist.attr("data-id", datalist.resourceId);
300
							$itemlist.find("#resourceName").text(datalist.resourceName);
301
							if(datalist.resourceType==1){
302
								$itemlist.find("#name").text(datalist.professor.name);
303
							}else{
304
								$itemlist.find("#name").text(datalist.organization.name);
305
							}
306
							if(datalist.images.length > 0) {
307
								$itemlist.find("#userimg").attr("style", "background-image: url(/data/resource/" + datalist.images[0].imageSrc + ");");
308
							}
309
						}
328
						if(reEnd==prd) {
329
								$(_this).next().removeClass("displayNone");
330
								var itemlist = '';
331
								$("#resouselist").html("");
332
								for(var i = 0; i < data.data.length; i++) {
333
									var itemlist = '<li id="usid" class="flexCenter">';
334
									itemlist += '<div class="madiaHead resouseHead" id="userimg"></div>';
335
									itemlist += '<div class="madiaInfo">';
336
									itemlist += '<p class="h1Font ellipsisSty" id="resourceName"></p>';
337
									itemlist += '<p class="h2Font ellipsisSty" id="name"></p>';
338
									itemlist += '</div><div class="deleteThis"></div></li>';
339
									$itemlist = $(itemlist);
340
									$("#resouselist").append($itemlist);
341
									var datalist = data.data[i];
342
									$itemlist.attr("data-id", datalist.resourceId);
343
									$itemlist.find("#resourceName").text(datalist.resourceName);
344
									if(datalist.resourceType==1){
345
										$itemlist.find("#name").text(datalist.professor.name);
346
									}else{
347
										$itemlist.find("#name").text(datalist.organization.name);
348
									}
349
									if(datalist.images.length > 0) {
350
										$itemlist.find("#userimg").attr("style", "background-image: url(/data/resource/" + datalist.images[0].imageSrc + ");");
351
									}
352
								}
353
							}	
310 354
					} else {
311 355
						$(_this).next().addClass("displayNone");
312 356
					}
@ -388,7 +432,7 @@ $(function() {
388 432
					var itemlist = '';
389 433
					var itemlist = '<li id="usid">';
390 434
						itemlist += '<div class="madiaHead useHead" id="userimg"></div>';
391
						itemlist += '<div class="madiaInfo">';
435
						itemlist += '<div class="madiaInfo" style="padding-right:42px">';
392 436
						itemlist += '<p class="ellipsisSty"><span class="h1Font" id="name"></span><span class="h2Font" style="margin-left:10px;" id="title"></span></p>';
393 437
						itemlist += '<p class="h2Font ellipsisSty" id="orgName"></p>';
394 438
						itemlist += '</div><div class="deleteThis"></div></li>';
@ -444,7 +488,7 @@ $(function() {
444 488
				if (data.success && data.data){
445 489
					var itemlist = '<li id="usid">';
446 490
						itemlist += '<div class="madiaHead resouseHead" id="userimg"></div>';
447
						itemlist += '<div class="madiaInfo">';
491
						itemlist += '<div class="madiaInfo" style="padding-right:42px">';
448 492
						itemlist += '<p class="h1Font ellipsisSty" id="resourceName"></p>';
449 493
						itemlist += '<p class="h2Font" id="name"></p>';
450 494
						itemlist += '</div><div class="deleteThis"></div></li>';
@ -506,17 +550,78 @@ $(function() {
506 550
		return $.unique(resourcesarray);
507 551
	}
508 552

509
	
553
	var seleClum ='<div class="mb-list mb-listL"><p>请选择文章发布的栏目:</p>'+
554
		'<select class="form-control form-column" id="seletColum"></select></div>';
555
	var seleTime = '<div class="mb-list mb-listR"><p>请设置文章发布的时间:</p>'+
556
		'<div class="formTime"><div class="form-group">'+
557
        '<input size="16" type="text" value="" readonly class="form-control form_datetime">'+
558
    	'</div></div></div>';
510 559
	//文章发布
511
	$("#release").on("click",function(){
560
	$("#release").on("click", function() {
561
		if($(this).hasClass("disableLi")){
562
			return;
563
		}
512 564
		noTitleImg();
513
		if(titleflase){
514
			$.MsgBox.Confirm("提示","确认发布该文章?",newsAdd);	
565
		if(titleflase) {
566
			console.log(colMgr)
567
			if(colMgr=="true"){
568
				$(".blackcover2").fadeIn();
569
				var btnOk='<input class="mb_btn mb_btnOk mb_btnOkpub" type="button" value="确定">'
570
				$(".mb_btnOk").remove(); $("#promotGt").prepend(btnOk);
571
				$(".modelContain").show(); $("body").addClass("modelOpen");
572
				$(".mb-listR").remove();
573
				$(".mb-listL").remove();
574
				$("#promotTh").prepend(seleClum);
575
				fillColum(7);//填充select栏目
576
				$(".mb_btnOkpub").on("click", function() {
577
					$(".blackcover2").fadeOut();
578
					$(".modelContain").hide();
579
					$("body").removeClass("modelOpen");
580
					$.MsgBox.Confirm("提示", "确认发布该文章?", newsAdd);
581
				})
582
			}else{
583
				$.MsgBox.Confirm("提示", "确认发布该文章?", newsAdd);
584
			}
585
			
586
		}
587
	})
588

589
	//定时文章发布
590
	$("#setTimeIssue").on("click", function() {
591
		if($(this).hasClass("disableLi")){
592
			return;
593
		}
594
		noTitleImg();
595
		if(titleflase) {
596
			$(".blackcover2").fadeIn();
597
			var btnOk='<input class="mb_btn mb_btnOk mb_btnOkset" type="button" value="确定">'
598
			$(".mb_btnOk").remove(); $("#promotGt").prepend(btnOk);
599
			$(".modelContain").show(); $("body").addClass("modelOpen");
600
			$(".mb-listR").remove(); $("#promotTh").append(seleTime);//时间选择器
601
			$(".mb-listR .form_datetime").datetimepicker({
602
				format: 'yyyy-mm-dd hh:ii',
603
				forceParse: true,
604
				autoclose: true,
605
			});
606
			$(".mb-listR .form_datetime").val(getNowFormatDate(currentdate));
607
			if(colMgr=="true"){
608
				$(".mb-listL").remove();
609
				$("#promotTh").prepend(seleClum);
610
				fillColum(7);//填充select栏目
611
			}
612
			$(".mb_btnOkset").on("click", function() {
613
				var publishTime = $(".form_datetime").val();
614
				console.log(st6(publishTime));
615
				setTimeIssue(st6(publishTime));
616
			})
515 617
		}
516 618
	})
517 619
	
518 620
	//文章存草稿
519 621
	$("#draft").on("click",function(){
622
		if($(this).hasClass("disableLi")){
623
			return;
624
		}
520 625
		noTitleImg();
521 626
		if(titleflase){
522 627
			draftAdd(1);
@ -525,6 +630,9 @@ $(function() {
525 630
	
526 631
	//文章预览
527 632
	$("#preview").on("click",function(){
633
		if($(this).hasClass("disableLi")){
634
			return;
635
		}
528 636
		noTitleImg();
529 637
		if(titleflase){
530 638
			draftAdd(2);
@ -536,21 +644,7 @@ $(function() {
536 644
		$.MsgBox.Confirm("提示","确认删除该文章?",newsDelet);
537 645
	})
538 646
	
539
	//定时文章发布
540
	$("#setTimeIssue").on("click", function() {
541
		//$(".form_datetime").val(timeGeshi(modifyTimeval));
542
		noTitleImg();
543
		if(titleflase) {
544
			$(".blackcover2").fadeIn();
545
			$(".modelContain").show();
546
			$("body").addClass("modelOpen");
547
			$(".mb_btnOk").on("click", function() {
548
				var modifyTimeval = $(".form_datetime").val();
549
				settime = true;
550
				setTimeIssue(st6(modifyTimeval),settime);
551
			})
552
		}
553
	})
647
	
554 648
	function getAttrId() {
555 649
		var arr=[];
556 650
		this.each(function(){
@ -559,23 +653,30 @@ $(function() {
559 653
		return arr;
560 654
	}
561 655
	/*获取数据*/
562
	function getdata(publishTime,settime) {
563
		expertli();//相关专家
564
		resourcesli();//相关咨询
565
	    $data.articleId = articleId;
656
	function getdata(publishTime) {
657
		expertli(); //相关专家
658
		resourcesli(); //相关咨询
566 659
		$data.orgId = orgId;
660
		$data.articleId=articleId;
567 661
		if($("#companys li").length) {
568 662
			$data.orgs = getAttrId.call($("#companys li"));
569 663
		}
570
		
571 664
		$data.articleTitle = $("#newstitle").val();
572 665
		$data.subject = captiureSubInd("keyWordlist .delkeylist");
573 666
		$data.articleImg = $("#uploader").attr("data-id");
574 667
		$data.articleContent = ue.getContent();
575 668
		$data.professors = experarray;
576 669
		$data.resources = resourcesarray;
577
		if(settime) {
578
			$data.publishTime = publishTime;
670
		if(colMgr=="true"){
671
			$data.colNum = $("#seletColum").val();
672
			if(publishTime!="") {
673
				$data.publishTime = publishTime;
674
			}
675
		}else{
676
			if(publishTime!="") {
677
				$data.publishTime = publishTime;
678
			}
679
			$data.colNum=2;
579 680
		}
580 681
		console.log($data);
581 682
	}
@ -584,12 +685,16 @@ $(function() {
584 685
	/*文章添加*/
585 686
	function newsAdd(){
586 687
		getdata();
688
		$(".operateBlock").find("li").addClass("disableLi");
587 689
		$.ajax({
588 690
			"url" : "/ajax/article/save",
589 691
			"type" :  "post" ,
590 692
			"dataType" : "json",
591 693
			"data" :$data,
592 694
			"traditional": true, //传数组必须加这个
695
			"complete":function(){
696
				$(".operateBlock").find("li").removeClass("disableLi");
697
			},
593 698
			"success" : function(data) {
594 699
				console.log(data);
595 700
				if (data.success){
@ -616,12 +721,16 @@ $(function() {
616 721
	function setTimeIssue(publishTime,settime) {
617 722
		var opublishTime=publishTime+"01";
618 723
		getdata(opublishTime,settime);
724
		$(".operateBlock").find("li").addClass("disableLi");
619 725
		$.ajax({
620 726
			"url": "/ajax/article/timing",
621 727
			"type": "post",
622 728
			"dataType": "json",
623 729
			"data": $data,
624 730
			"traditional": true, //传数组必须加这个
731
			"complete":function(){
732
				$(".operateBlock").find("li").removeClass("disableLi");
733
			},
625 734
			"success": function(data) {
626 735
				console.log(data);
627 736
				if(data.success) {
@ -644,12 +753,16 @@ $(function() {
644 753
	/*文章添加草稿和文章预览*/
645 754
	function draftAdd(num){
646 755
		getdata();
756
		$(".operateBlock").find("li").addClass("disableLi");
647 757
		$.ajax({
648 758
			"url" : "/ajax/article/draft",
649 759
			"type" :  "post" ,
650 760
			"dataType" : "json",
651 761
			"data" :$data,
652 762
			"traditional": true, //传数组必须加这个
763
			"complete":function(){
764
				$(".operateBlock").find("li").removeClass("disableLi");
765
			},
653 766
			"success" : function(data) {
654 767
				console.log(data);
655 768
				if(num==1){
@ -752,33 +865,40 @@ relatCompanies("#company");
752 865
			$(this).siblings(".aboutTit").find("span").text("最多选择3家企业");
753 866
		},
754 867
		keyup: function(e) {
868
			 var ti=$(this).val();
869
			 orgr=ti;
870
			 var $this=$(this);
755 871
			if($(this).val().trim()) {
756 872
				var lNum = $.trim($(this).val()).length;
757 873
				if(0 < lNum) {
758
					var $this = $(this)
874
					setTimeout(function(){
875
						if( ti===orgr && ti!== orgrEnd) {
876
							var tt=ti;
877
							orgrEnd=tt;
759 878
					$("#companylist").parent().show();
760
					console.log($(this).val())
761 879
					$.ajax({
762 880
						"url": "/ajax/org/qr",
763 881
						"type": "GET",
764 882
						"data":{
765
							kw: $(this).val(),
883
							kw: $this.val(),
766 884
							limit:3
767 885
						},
768 886
						"success": function(data) {
769 887
							console.log(data);
770 888
							if(data.success) {
771
								if(data.data.length == 0) {
772
									$this.siblings(".form-drop").addClass("displayNone");
773
									$this.siblings(".form-drop").find("ul").html("");
774
								} else {
775
									$this.siblings(".form-drop").removeClass("displayNone");
776
									var oSr = "";
777
									for(var i = 0; i < data.data.length; i++) {
778
										var busName=(data.data[i].forShort)?data.data[i].forShort:data.data[i].name;
779
										oSr += '<li style="min-height:40px;position:static;"data-id="'+data.data[i].id+'">' + busName + '</li>';
889
								if(orgrEnd==tt) {
890
									if(data.data.length == 0) {
891
										$this.siblings(".form-drop").addClass("displayNone");
892
										$this.siblings(".form-drop").find("ul").html("");
893
									} else {
894
										$this.siblings(".form-drop").removeClass("displayNone");
895
										var oSr = "";
896
										for(var i = 0; i < data.data.length; i++) {
897
											var busName=(data.data[i].forShort)?data.data[i].forShort:data.data[i].name;
898
											oSr += '<li style="min-height:40px;position:static;"data-id="'+data.data[i].id+'">' + busName + '</li>';
899
										}
900
										$this.siblings(".form-drop").find("ul").html(oSr);
780 901
									}
781
									$this.siblings(".form-drop").find("ul").html(oSr);
782 902
								}
783 903
							} else {
784 904
								$this.siblings(".form-drop").addClass("displayNone");
@ -790,6 +910,8 @@ relatCompanies("#company");
790 910
							$.MsgBox.Alert('提示', '服务器连接超时!');
791 911
						}
792 912
					});
913
					}
914
					},500)
793 915
				}
794 916
			} else {
795 917
				$(this).siblings(".form-drop").addClass("displayNone");
@ -806,7 +928,7 @@ relatCompanies("#company");
806 928
				return;
807 929
			}
808 930
		}
809
		$(this).parents(".form-drop").siblings(".form-result").find("ul").append('<li style="min-height:40px;" data-id="'+$(this).attr("data-id")+'">' + oValue + '<div class="deleteThis" style="right:0px;"></div></li>');
931
		$(this).parents(".form-drop").siblings(".form-result").find("ul").append('<li class="ellipsisSty" style="min-height:40px;padding-right:42px;" data-id="'+$(this).attr("data-id")+'">' + oValue + '<div class="deleteThis"></div></li>');
810 932
		$(this).parents(".form-drop").siblings("input").val("");
811 933
		if(oJudge.length == 4) {
812 934
			$(this).parents(".form-drop").siblings("input").val("");
@ -852,7 +974,7 @@ relatCompanies("#company");
852 974
			success: function(data) {
853 975
				if(data.success) {
854 976
					var oValue=data.data.forShort?data.data.forShort:data.data.name;
855
				this.append('<li style="min-height:40px;" data-id="'+data.data.id+'">' + oValue + '<div class="deleteThis" style="right:0px;"></div></li>')	
977
				this.append('<li class="ellipsisSty" style="min-height:40px;padding-right:42px;" data-id="'+data.data.id+'">' + oValue + '<div class="deleteThis"></div></li>')	
856 978
				
857 979
				}
858 980
			},

+ 22 - 5
cmp-portal/js/cmp-articalList.js

@ -1,5 +1,6 @@
1 1
/*文章个人列表*/
2 2
var orgId = $.cookie("orgId");
3
var colMgr = $.cookie("colMgr");
3 4
if(orgId == "" || orgId == null || orgId == "null"){
4 5
	location.href = "cmp-settled-log.html";
5 6
}
@ -62,7 +63,7 @@ function articalList(pageSize, pageNo, isbind, num) {
62 63
				for(var i = 0; i < data.data.data.length; i++) {
63 64
					if(data.data.data[i].status == 1) {
64 65
						var li = '<li class="newbox"><a href="" target="_blank" class="newurl">';
65
						var li2 = '<ul class="h2Font clearfix"><li><span class="time"></span></li><li><span id="pageViews"></span></li><li><span id="articleAgree"></span></li><li><span id="comment"></span></li></ul>';
66
						var li2 = '<ul class="h2Font clearfix"><li><span class="column"></span></li><li><span class="time"></span></li><li><span id="pageViews"></span></li><li><span id="articleAgree"></span></li><li><span id="comment"></span></li></ul>';
66 67
						var li3 = '';
67 68
						var li4 = '';
68 69
					} else if(data.data.data[i].status == 0) {
@ -91,12 +92,22 @@ function articalList(pageSize, pageNo, isbind, num) {
91 92
					var datalist = data.data.data[i];
92 93
					$itemlist.attr("data-id", datalist.articleId);
93 94
					$itemlist.find("#arttitle").text(datalist.articleTitle);
94
					$itemlist.find("#articleAgree").text("点赞 " + datalist.articleAgree);
95
					$itemlist.find("#pageViews").text("阅读量 " + datalist.pageViews);
95
					if(datalist.articleAgree>0){
96
						$itemlist.find("#articleAgree").text("赞 " + datalist.articleAgree);
97
					}
98
					if(datalist.pageViews>0){
99
						$itemlist.find("#pageViews").text("阅读量 " + datalist.pageViews);
100
					}
96 101
					commentnum(datalist.articleId, $itemlist) //评论数
97 102
					if(datalist.articleImg) {
98 103
						$itemlist.find("#artimg").attr("style", "background-image: url(/data/article/" + datalist.articleImg + ");");
99 104
					}
105
					if(datalist.colNum>2){
106
						$itemlist.find(".column").text(columnType[datalist.colNum].fullName);
107
					}else{
108
						$itemlist.find(".column").css({"border":"none","padding":"0"})
109
						$itemlist.find(".time").parent().css("margin-left","0");
110
					}
100 111
					if(datalist.status == 1) {//发布
101 112
						$itemlist.find(".time").text("发布于 " + TimeTr(datalist.publishTime));
102 113
						$itemlist.find(".newurl").attr("href", "../articalShow.html?articleId=" + datalist.articleId);
@ -108,7 +119,11 @@ function articalList(pageSize, pageNo, isbind, num) {
108 119
					}
109 120
					if(datalist.status == 2){//定时发布
110 121
						$itemlist.find(".time").text("修改于 "+ TimeTr(datalist.modifyTime));
111
						$itemlist.find("#dsfbtime").text("草稿 | 将于" +TimeTr(datalist.publishTime)+ "定时发布");
122
						var thisColum=""
123
						if(datalist.colNum>2){
124
							thisColum=columnType[datalist.colNum].fullName;
125
						}
126
						$itemlist.find("#dsfbtime").text("草稿 | 将在 " +TimeTr(datalist.publishTime)+ " 定时发布于 " +thisColum+ " 栏目上");
112 127
						$itemlist.find(".editThis,.newurl").on("click",function(){
113 128
							var newarticleId = $(this).parents(".newbox").attr("data-id");
114 129
							$.ajax({
@ -176,7 +191,9 @@ function articalList(pageSize, pageNo, isbind, num) {
176 191
			},
177 192
			"success": function(data) {
178 193
				if(data.success) {
179
					$itemlist.find("#comment").text("评论 " + data.data);
194
					if(data.data>0){
195
						$itemlist.find("#comment").text("留言 " + data.data);
196
					}
180 197
				}
181 198
			},
182 199
			"error": function() {

+ 1 - 1
cmp-portal/js/cmp-updateinfo.js

@ -280,7 +280,7 @@ $(document).ready(function() {
280 280
		accept: {
281 281
			title: 'Images',
282 282
			extensions: 'jpg,jpeg,png',
283
			mimeTypes: 'image/gif,image/jpg,image/jpeg,image/bmp,image/png'
283
			mimeTypes: 'image/jpg,image/jpeg,image/png'
284 284
		}
285 285

286 286
	});

+ 1 - 0
cmp-portal/js/cmp-workspaces.js

@ -14,6 +14,7 @@ $(document).ready(function() {
14 14
			beforeSend: function() {},
15 15
			success: function(data, textState) {
16 16
				if(data.success) {
17
					$.cookie("colMgr",data.data.colMgr);
17 18
					var $data = data.data;
18 19
					var otext, oguimo;
19 20
					console.log(data);

+ 1 - 1
cmp-portal/js/public/bootstrap-datetimepicker.js

@ -638,7 +638,7 @@
638 638
        top = offset.top + this.height;
639 639
      }
640 640
	  
641
	  top = top - containerOffset.top+40;
641
	  top = top - containerOffset.top+42;
642 642
643 643
      left = left - containerOffset.left;
644 644

+ 140 - 16
cmp-portal/js/public/common.js

@ -1,6 +1,5 @@
1 1
$(document).ready(function() {
2 2
	$(".unlogin").removeClass("displayNone");
3
4 3
	var footerHeight = $("footer").outerHeight(true);
5 4
	$('#container').css("padding-bottom", footerHeight + "px");
6 5
	//窗口大小变更事件
@ -45,6 +44,9 @@ $(document).ready(function() {
45 44
				$.MsgBox.Alert('提示', '服务器请求失败')
46 45
			},
47 46
		});
47
		$("#imglogo").on("click",function(){
48
			location.href="../cmpInforShow.html?orgId="+orgId;
49
		})
48 50
	} else {
49 51
		$(".unlogin").removeClass("displayNone");
50 52
		$(".onlogin").addClass("displayNone");
@ -250,11 +252,18 @@ function hotKey(sel) {
250 252
			$(this).siblings(".keydrop").show();
251 253
		},
252 254
		keyup: function(e) {
255
			 var ti=$(this).val();
256
			 var $t=this;
257
			 $t.comr=ti;
258
			 var $this=$(this);
253 259
			if($(this).val().trim()) {
254 260
				$(this).siblings("button").show();
255 261
				var lNum = $.trim($(this).val()).length;
256 262
				if(0 < lNum) {
257
					var $this = $(this)
263
					setTimeout(function(){
264
						if( ti===$t.comr && ti!== $t.comrEnd) {
265
							var tt=ti;
266
							$t.comrEnd=tt;
258 267
					$("#addKeyword").show();
259 268
					$.ajax({
260 269
						"url": "/ajax/dataDict/qaHotKey",
@ -262,30 +271,34 @@ function hotKey(sel) {
262 271
						"success": function(data) {
263 272
							console.log(data);
264 273
							if(data.success) {
265
								if(data.data.length == 0) {
266
									$this.siblings(".keydrop").addClass("displayNone");
267
									$this.siblings(".keydrop").find("ul").html("");
268
								} else {
269
									$this.siblings(".keydrop").removeClass("displayNone");
270
									var oSr = "";
271
									for(var i = 0; i < 5; i++) {
272
										oSr += '<li>' + data.data[i].caption + '<div class="closeThis"></div></li>';
274
								if($t.comrEnd==tt) {
275
									if(data.data.length == 0) {
276
										$this.siblings(".keydrop").addClass("displayNone");
277
										$this.siblings(".keydrop").find("ul").html("");
278
									} else {
279
										$this.siblings(".keydrop").removeClass("displayNone");
280
										var oSr = "";
281
										for(var i = 0; i < Math.min(data.data.length,5); i++) {
282
											oSr += '<li>' + data.data[i].caption + '<div class="closeThis"></div></li>';
283
										}
284
										$this.siblings(".keydrop").find("ul").html(oSr);
273 285
									}
274
									$this.siblings(".keydrop").find("ul").html(oSr);
275
								}
286
								}	
276 287
							} else {
277 288
								$this.siblings(".keydrop").addClass("displayNone");
278 289
								$this.siblings(".keydrop").find("ul").html("");
279 290
							}
280 291
						},
281 292
						"data": {
282
							"key": $(this).val()
293
							"key": $this.val()
283 294
						},
284 295
						dataType: "json",
285 296
						'error': function() {
286 297
							$.MsgBox.Alert('提示', '服务器连接超时!');
287 298
						}
288 299
					});
300
					}
301
					},500);
289 302
				}
290 303
			} else {
291 304
				$(this).siblings("button").hide();
@ -394,6 +407,37 @@ function limitObj(obj,maxNum){
394 407
	});
395 408
}
396 409
410
//时间显示规则
411
function commenTime(startTime) {
412
	//console.log(startTime)
413
	var nowTimg = new Date();
414
	var startdate = new Date();
415
	startdate.setFullYear(parseInt(startTime.substring(0, 4)));
416
	startdate.setMonth(parseInt(startTime.substring(4, 6)) - 1);
417
	startdate.setDate(parseInt(startTime.substring(6, 8)));
418
	startdate.setHours(parseInt(startTime.substring(8, 10)));
419
	startdate.setMinutes(parseInt(startTime.substring(10, 12)));
420
	startdate.setSeconds(parseInt(startTime.substring(12, 14)));
421
	var date3 = nowTimg.getTime() - startdate.getTime(); //时间差的毫秒数
422
	var hours = parseInt((date3 % (1000 * 60 * 60 * 24)) / (1000 * 60 * 60));
423
	var minutes = parseInt((date3 % (1000 * 60 * 60)) / (1000 * 60));
424
	if(date3 < 60000) {
425
		return "刚刚";
426
	} else if(date3 >= 60000 && date3 < 3600000) {
427
		return minutes + "分钟前";
428
	} else if(date3 >= 3600000 && date3 < 86400000) {
429
		return hours + "小时前";
430
	} else if(date3 >= 86400000) {
431
432
		if(nowTimg.getFullYear() == startTime.substring(0, 4)) {
433
434
			return startTime.substring(4, 6).replace(/\b(0+)/gi, "") + "月" + startTime.substring(6, 8).replace(/\b(0+)/gi, "") + "日 " + startTime.substring(8, 10) + ":" + startTime.substring(10, 12);
435
		} else {
436
437
			return startTime.substring(0, 4) + "年" + startTime.substring(4, 6).replace(/\b(0+)/gi, "") + "月" + startTime.substring(6, 8).replace(/\b(0+)/gi, "") + "日 " + startTime.substring(8, 10) + ":" + startTime.substring(10, 12);
438
		}
439
	}
440
}
397 441
398 442
/*时间转换*/
399 443
function TimeTr(dealtime) {
@ -404,9 +448,89 @@ function TimeTr(dealtime) {
404 448
	var d = s.substr(6, 2);
405 449
	var h = s.substr(8, 2);
406 450
	var minute = s.substr(10, 2);
407
	var formatTime = m.replace(/\b(0+)/gi, "") + "月" + d.replace(/\b(0+)/gi, "") + "日 " + h + ":" + minute;
408
	if(y != myDate.getFullYear()) {
409
		formatTime = y + "年" + m.replace(/\b(0+)/gi, "") + "月" + d.replace(/\b(0+)/gi, "") + "日 " + h + ":" + minute;
451
	var formatTime;
452
	if(s.length <= 6) {
453
		formatTime = y + "年" + m.replace(/\b(0+)/gi, "") + "月";
454
	} else if(s.length > 6 && s.length <= 8) {
455
		formatTime = y + "年" + m.replace(/\b(0+)/gi, "") + "月" + d.replace(/\b(0+)/gi, "") + "日 ";
456
	} else {
457
		formatTime = m.replace(/\b(0+)/gi, "") + "月" + d.replace(/\b(0+)/gi, "") + "日 " + h + ":" + minute;
458
		if(y != myDate.getFullYear()) {
459
			formatTime = y + "年" + m.replace(/\b(0+)/gi, "") + "月" + d.replace(/\b(0+)/gi, "") + "日 " + h + ":" + minute;
460
		}
410 461
	}
411 462
	return formatTime;
412 463
}
464
//栏目
465
var columnType = {
466
	"1":{
467
		fullName:"个人原创",
468
		shortName:"原创"
469
	},
470
	"2":{
471
		fullName:"企业原创",
472
		shortName:"原创"
473
	},
474
	"3":{
475
		fullName:"前沿动态",
476
		shortName:"前沿"
477
	},
478
	"4":{
479
		fullName:"学术经验",
480
		shortName:"经验"
481
	},
482
	"5":{
483
		fullName:"分析检测",
484
		shortName:"检测"
485
	},
486
	"6":{
487
		fullName:"会议培训",
488
		shortName:"会议"
489
	},
490
	"7":{
491
		fullName:"科袖访谈",
492
		shortName:"访谈"
493
	},
494
	"8":{
495
		fullName:"招聘招生",
496
		shortName:"招聘"
497
	},
498
	"9":{
499
		fullName:"重大新闻",
500
		shortName:"新闻"
501
	}	
502
}
503
 function fillColum(allnum){//填充栏目选项
504
	var zCount=allnum+3;
505
	for(var i=3;i<zCount;i++){
506
		var colum=$('<option value="'+i+'">'+columnType[i].fullName+'</option>')
507
		$(".form-column").append(colum);
508
	}
509
}
510
511
var currentdate;
512
function getNowFormatDate() {
513
    var date = new Date();
514
    var seperator1 = "-";
515
    var seperator2 = ":";
516
    var month = date.getMonth() + 1;
517
    var strDate = date.getDate();
518
    var getHours = date.getHours();
519
    var getMinutes = date.getMinutes();
520
    if (month >= 1 && month <= 9) {
521
        month = "0" + month;
522
    }
523
    if (strDate >= 0 && strDate <= 9) {
524
        strDate = "0" + strDate;
525
    }
526
    if (getMinutes >= 0 && getMinutes <= 9) {
527
        getMinutes = "0" + getMinutes;
528
    }
529
     if (getHours >= 0 && getHours <= 9) {
530
        getHours = "0" + getHours;
531
    }
532
    var currentdate = date.getFullYear() + seperator1 + month + seperator1 + strDate
533
            + " " + getHours + seperator2 + getMinutes
534
           
535
    return currentdate;
536
}

+ 63 - 32
cmp-portal/js/resourceIssue.js

@ -11,6 +11,7 @@ $(document).ready(function() {
11 11
	var temp = [];
12 12
	var array = [];
13 13
	var oProfessor=[];
14
	var hbur,hburEnd;
14 15
	ue = UE.getEditor('editor', {});
15 16
	/*获取资源信息*/
16 17
	function getRecourceMe() {
@ -167,11 +168,15 @@ $(document).ready(function() {
167 168
	});
168 169
	uploader.onError = function(code) {
169 170
		console.log(code)
170
		$.MsgBox.Alert('提示', '请上传jpg、png格式的图片,大小不超过2M')
171
		$.MsgBox.Alert('提示', '请上传jpg、jpeg、png格式的图片,大小不超过2M')
171 172
	};
172 173
	uploader.on('uploadSuccess', function(file, data) {
173
		uploader.removeFile(fileId);
174
		var cacheImageKey = temp.push(data.data[0].cacheKey);
174
		if(data.success) {
175
				uploader.removeFile(fileId);
176
				var cacheImageKey = temp.push(data.data[0].cacheKey);
177
		}else{
178
			$.MsgBox.Alert('提示', '只支持jpeg/jpg/png格式的图片');
179
		}
175 180
	});
176 181
	/*删除图片*/
177 182
	$("#fileList").on("click", ".cancel", function() {
@ -210,47 +215,60 @@ $(document).ready(function() {
210 215
			$("#keywordPrompt").show().text('最多可添加5个关键词,每个关键词15字以内');
211 216
		},
212 217
		blur: function() {
213
			$("#keywordPrompt").hide();
218
			$("#keywordPrompt").text('');
214 219
		},
215 220
		keyup: function() {
221
			var ti=$(this).val();
222
			hbur=ti;
216 223
			var lNum=$.trim($(this).val()).length;
224
			console.log(lNum);
217 225
			if(lNum > 15) {
218 226
				$(this).val($(this).val().substr(0, 15));
219
			} else if(0 < lNum && lNum < 15) {
220
				$("#addKeyword").show();
221
				$.ajax({
222
					"url": "/ajax/dataDict/qaHotKey",
223
					"type": "GET",
224
					"success": function(data) {
225
						console.log(data);
226
						if(data.success) {
227
							if(data.data.length==0) {
228
									$("#keyList").addClass("displayNone");
229
									$("#keyList ul").html("");
230
								}else{
231
									$("#keyList").removeClass("displayNone");
232
								var oSr = "";
233
								for(var i = 0; i < 5; i++) {
234
									oSr += '<li><p class="h2Font">' + data.data[i].caption + '</p></li>'
235
								}
236
								$("#keyList ul").html(oSr);
227
			} else if(0 < lNum&& lNum < 15) {
228
					$("#addKeyword").show();
229
					setTimeout(function(){
230
						if( ti===hbur && ti!== hburEnd) {
231
							var tt=ti;
232
							hburEnd=tt;
233
						$.ajax({
234
						"url": "/ajax/dataDict/qaHotKey",
235
						"type": "GET",
236
						"success": function(data) {
237
							console.log(data);
238
							if(data.success) {
239
								if(hburEnd == tt){
240
									if(data.data.length==0) {
241
										$("#keyList").addClass("displayNone");
242
										$("#keyList ul").html("");
243
									}else{
244
										$("#keyList").removeClass("displayNone");
245
										var oSr="";
246
										for(var i=0;i<Math.min(data.data.length,5);i++) {
247
											oSr+='<li><p class="h2Font">'+data.data[i].caption+'</p></li>'
248
										}
249
										$("#keyList ul").html(oSr);
250
									}
251
								}	
252
							}else {
253
								$("#keyList ul").html("");
237 254
							}
255
						},
256
						"data": {
257
							"key":$('#keywordName').val()
258
						},
259
						dataType: "json",
260
						'error':function() {
261
							$.MsgBox.Alert('提示', '服务器连接超时!');
238 262
						}
239
					},
240
					"data": {
241
						"key": $(this).val()
242
								},
243
					dataType: "json",
244
					'error': function() {
245
						$.MsgBox.Alert('提示', '服务器连接超时!');
246
					}
247 263
				});
248
			}if(lNum == 0){
264
				}
265
				},500)
266
			}else if(lNum == 0){
249 267
				 $("#addKeyword").hide();
250 268
				 $("#keyList ul").html("");
251 269
			}
252 270
		}
253
	})
271
	});
254 272
	$("#keyList ul").on("click","li",function(){
255 273
		 keyWord($(this).find("p").text());
256 274
		 $("#keyList ul").html("");
@ -329,6 +347,9 @@ $(document).ready(function() {
329 347
	limitObj("#remarkContent",200)
330 348
	/*发布*/
331 349
	$(".goFabu").click(function() {
350
		if($(this).hasClass("disableLi")){
351
			return;
352
		}
332 353
		var oYes = term();
333 354
		if(oYes == 0) {
334 355
			return;
@ -337,6 +358,9 @@ $(document).ready(function() {
337 358
	})
338 359
	/*预览*/
339 360
	$("#oPreview").click(function() {
361
		if($(this).hasClass("disableLi")){
362
			return;
363
		}
340 364
		var oYes = term();
341 365
		if(oYes == 0) {
342 366
			return;
@ -345,6 +369,9 @@ $(document).ready(function() {
345 369
	})
346 370
	/*存草稿*/
347 371
	$("#oDraft").click(function() {
372
		if($(this).hasClass("disableLi")){
373
			return;
374
		}
348 375
		var oYes = term();
349 376
		if(oYes == 0) {
350 377
			return;
@ -399,6 +426,7 @@ $(document).ready(function() {
399 426
	}
400 427
	/*发布函数*/
401 428
	function ajsPost(pa1, pa2) {
429
		$(".operateBlock").find("li").addClass("disableLi");
402 430
		var oUrl = "/ajax/resource/orgSave";
403 431
		if(pa1) {
404 432
			oUrl = pa1
@ -424,6 +452,9 @@ $(document).ready(function() {
424 452
		$.ajax({
425 453
			"url": oUrl,
426 454
			"type": "POST",
455
			"complete":function(){
456
						$(".operateBlock").find("li").removeClass("disableLi");
457
					},
427 458
			"success": function(data) {
428 459
				console.log(data)
429 460
				if(data.success) {

+ 1 - 1
cmp-portal/js/resourceList.js

@ -74,7 +74,7 @@ $(document).ready(function(){
74 74
	 			oLi="class='draftList'"
75 75
	 		}else{
76 76
	 			oTime="发布于 "+TimeTr($data[i].publishTime);
77
	 			pageview='<li><span>阅读量 '+$data[i].pageViews+'</span></li>';
77
	 			pageview='<li><span>浏览量 '+$data[i].pageViews+'</span></li>';
78 78
	 			oHtml="../resourceShow.html"
79 79
	 		}
80 80
	 	var oStr='<li '+oLi+'>'+

+ 2 - 2
cmp-portal/resourceIssue.html

@ -33,8 +33,8 @@
33 33
			        					<!--未上传图片时-->
34 34
			        					<div class="upFront" id="uploader">
35 35
				        					<p>资源图片<em class="requiredcon">*</em></p>
36
				        					<p class="uploadtip">JPG/PNG格式,2M以内</p>
37
				            				<span class="upbtn">上传图片</span>
36
				        					<p class="uploadtip">JPG/JPEG/PNG格式,<br/>2M以内</p>
37
				            				<span class="upbtn" style="margin-top:8px">上传图片</span>
38 38
			        					</div>
39 39
				            		</div>
40 40
			        			</div>

+ 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>

+ 1 - 1
css/common.css

@ -141,7 +141,7 @@ input{ outline:none;}
141 141

142 142
/***********************缺省页面*******************/
143 143
.nodatatip{width:40%;margin:100px auto;overflow:hidden;height:100px; font-size:16px; text-align:center;color:#aaa;}
144
.nodatabox{/*width:100%;*/height: 100%;padding:40px; margin:20px auto;text-align: center;}
144
.nodatabox{/*width:100%;*//*height: 100%;*/padding:40px; margin:20px auto;text-align: center;}
145 145
.nodatabox .nodata{overflow:hidden; width:50%; margin:20px auto;}
146 146
.nodatabox .picbox{margin:8px auto;display:inline-block;width:140px;height:140px;background-position: center;background-repeat: no-repeat;background-size:cover;}
147 147
.nodatabox .picbox.picNull{background-image:url(../images/points_icon_ku_nor.png);}

+ 98 - 42
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;}
@ -213,7 +255,7 @@ ul.listitemdiv li .centercon{padding-left:120px;padding-right:200px;}
213 255
ul.listitemdiv li .centercon .h1font{font-size: 16px;line-height: 28px; color:#333;}
214 256
ul.listitemdiv li .centercon .h2font{font-size: 14px;line-height: 24px; color:#666;}
215 257
ul.listitemdiv li .centercon .showInfo>span{margin-right:20px}
216
ul.listitemdiv li .centercon .h2font.ellipsisSty-2{margin-bottom:8px;max-height: 56px;}
258
ul.listitemdiv li .centercon .ellipsisSty-2{margin-bottom:8px;max-height: 56px;}
217 259
ul.listitemdiv li .centercon .h2font.ellipsisSty-2{line-height: 20px;margin-top:4px;}
218 260
ul.listitemdiv li .rightop{padding:0 24px;line-height:32px;font-size:16px;color:#FFFFFF;cursor:pointer;border-radius:4px;background:#ff9900;
219 261
    box-shadow: 1px 2px 13px 0px rgba(255, 153, 0, 0.6);
@ -254,8 +296,7 @@ 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
ul.artAbout #filePicker{position:absolute;left:50%; bottom:25px; margin-left:-52px;opacity:0; z-index:88;}
299
ul.artAbout #filePicker{position:absolute;left:50%; bottom:22px; 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
261 302
.conItem ul.operateBlock{overflow: hidden;margin-top:-30px;}
@ -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,14 +370,28 @@ 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;*/}
347
.showMain p{margin-bottom:10px;text-align:justify}
392
.showMain{font-size:16px;color:#333;line-height:28px;}
393
.showMain img{max-width: 100%;}
394
.showMain p{margin-bottom:16px;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;}
350 397
ul.tagList>li .h2Font{color:#666}
@ -627,8 +674,8 @@ div.zoomMask{position:absolute;background:url("../images/g-resource-mask.png") r
627 674
/*统计数据*/
628 675
.statisticsBox{}
629 676
.statisticsBox span{font-size: 20px;color:#333}
630
.statisticsBox p{font-size: 14px;color:#999}
631
.goarrow{font-size:16px;display:inline-block;color: #ff9900;margin:10px 0 0;padding:0 6px;position: relative;}
677
.statisticsBox p{font-size: 14px;color:#999;margin-bottom:10px;}
678
.goarrow{font-size:16px;display:inline-block;color: #ff9900;padding:0 6px;position: relative;}
632 679
.goarrow em{position:absolute;right:0;top:-15px;}
633 680
.goarrow em:before{border: solid transparent;border-left-color: #ff9900;border-width:8px;content: " ";position: absolute;left: 100%;top: 18px;}
634 681
.goarrow em:after{border: solid transparent;border-left-color:#fff;border-width:6px;content: " ";position: absolute;left: 100%;top: 20px;}
@ -636,7 +683,7 @@ div.zoomMask{position:absolute;background:url("../images/g-resource-mask.png") r
636 683
/*相关信息*/
637 684
.leftconItem{display: none;}
638 685
.leftconItem:first-child{display: block;}
639
.coninfobox{padding:30px 30px 0;}
686
.coninfobox{padding:30px 30px 0;background: #FFF;}
640 687
.coninfobox .coninfotit{position:relative;font-size: 18px;color:#666;margin-bottom:10px;}
641 688
.coninfobox .seeMore{cursor:pointer;font-size:14px;color:#999;padding:0 10px;position: absolute;right:12px;top:50%;margin-top:-10px;}
642 689
.coninfobox .seeMore em{position:absolute;right:0;top:-16px;}
@ -766,3 +813,12 @@ div.zoomMask{position:absolute;background:url("../images/g-resource-mask.png") r
766 813
.aboutPa .form-result ul.authorBox{position:relative;}
767 814
.aboutPa .form-result ul.authorBox>li>a{max-width:80%;}
768 815
816
/*--------------新版需求相关--------------*/
817
.needinfobox.coninfobox{border-bottom:20px solid #F4F6F8;padding-bottom: 30px;}
818
.needList.form-item .madiaInfo{padding-left:0;}
819
.needList.form-item>ul .h1Font{font-size: 18px;margin-bottom: 10px;}
820
.needList.form-item>ul .h2Font{font-size: 14px;line-height:24px;margin: 10px 0;}
821
.needList.form-item>ul .h3Font{font-size: 14px;color:#999;}
822
.needList.form-item>ul>li{padding:10px 30px;margin:0 -30px;}
823
.needList.form-item>ul>li:hover{background: #EEEEEE;}
824
.needList.form-item ul .showli>li{margin: 6px 0;width:25%;padding-right:16px;float:left;text-overflow:ellipsis;white-space: nowrap;overflow: hidden;}

+ 1 - 1
css/share.css

@ -77,7 +77,7 @@ html,body {outline: 0;margin:0;padding:0px;background: #efeff4;-webkit-text-size
77 77
.showDetail .h3Font{font-size:13px;color:#999; line-height:24px;}
78 78
.showDetail .showMain{font-size:15px;color:#333;line-height:28px;}
79 79
.showDetail .showMain img{max-width: 100%;}
80
.showDetail .showMain p{margin-bottom:10px;font-size:15px;color:#333;text-align:justify}
80
.showDetail .showMain p{margin-bottom:16px;font-size:15px;color:#333;text-align:justify}
81 81
ul.tagList{padding:0;margin:18px 0 8px;overflow: hidden;}
82 82
ul.tagList>li{list-style:none;float: left;margin-right:10px;margin-bottom:10px;padding:4px 12px;color: #666;background:#EFEFEF;}
83 83
ul.tagList>li .h2Font{color: #666;}

+ 81 - 12
discover.html

@ -1,4 +1,4 @@
1
 <!DOCTYPE html>
1
 <!DOCTYPE html>
2 2
<html>
3 3
<head>
4 4
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
@ -10,24 +10,94 @@
10 10
<link type="text/css" href="css/common.css" rel="stylesheet">
11 11
<link type="text/css" href="css/genindex.css" rel="stylesheet">
12 12
<script type="text/javascript" src="js/jquery-1.11.1.js"></script>
13

13
<script type="text/javascript" src="js/public/swiper.min.js"></script>
14 14
</head>
15

16 15
<body>
17 16
<header id="header">
18 17
	<script src="js/header.js"></script>
19 18
</header>
20
<div id="container">
19
<div id="container" style="margin-top:-20px;">
21 20
	<div class="containerCon">
22 21
		<div class="contentCon clearfix">
23
			<div class="leftconBox floatL">
24
				<ul class="table-item" id="table-item" style="position: relative;min-height:500px;"></ul>
25
				<div class="tcdPageCode"></div>
22
			<div class="leftconBox floatL" style="background: #f4f6f8;">
23
				<div class="slide-box clearfix">
24

25
				</div>
26
				<div class="table-box">
27
					<div class="table-tab">
28
						<ul class="table-tab-item clearfix">
29
							<li class="table-tab-slide table-tab-slide-active">最新文章</li>
30
							<li class="table-tab-slide">前沿动态</li>
31
							<li class="table-tab-slide">学术经验</li>
32
							<li class="table-tab-slide">分析检测</li>
33
							<li class="table-tab-slide">会议培训</li>
34
							<li class="rightbtn"><span>更多栏目</span><em class="foldtr"></em>
35
								<ul class="table-drop">
36
									<li class="table-tab-slide">科袖访谈</li>
37
									<li class="table-tab-slide">招聘招生</li>
38
								</ul>
39
							</li>
40
							
41
						</ul>
42
					</div>
43
					<div class="table-body">
44
					    <div class="haveData">
45
					    	<div class="table-item-list">
46
					    		<ul class="listitemdiv listmorediv" id="table-item-0"></ul>
47
								<div class="tcdPageCode"></div>
48
					    	</div>
49
					    	<div class="table-item-list">
50
					    		<ul class="listitemdiv listmorediv" id="table-item-1"></ul>
51
								<div class="tcdPageCode"></div>
52
					    	</div>
53
					    	<div class="table-item-list">
54
					    		<ul class="listitemdiv listmorediv" id="table-item-2"></ul>
55
								<div class="tcdPageCode"></div>
56
					    	</div>
57
					    	<div class="table-item-list">
58
					    		<ul class="listitemdiv listmorediv" id="table-item-3"></ul>
59
								<div class="tcdPageCode"></div>
60
					    	</div>
61
					    	<div class="table-item-list">
62
					    		<ul class="listitemdiv listmorediv" id="table-item-4"></ul>
63
								<div class="tcdPageCode"></div>
64
					    	</div>
65
					    	<div class="table-item-list">
66
					    		<ul class="listitemdiv listmorediv" id="table-item-5"></ul>
67
								<div class="tcdPageCode"></div>
68
					    	</div>
69
					    	<div class="table-item-list">
70
					    		<ul class="listitemdiv listmorediv" id="table-item-6"></ul>
71
								<div class="tcdPageCode"></div>
72
					    	</div>
73
					    </div>
74
					</div>
75
				</div>
26 76
			</div>
27
			<div class="advertBox floatR">
28
				<ul class="advertItem">
29
					<li><a href="download.html" target="_blank"><img src="images/find_img_xiazai_nor.png" /></a></li>
30
				</ul>
77
			<div class="rightconBox floatR">
78
				<div class="conItem conBlock displayNone">
79
					<div class="form-item otherBlock">
80
						<div class="aboutTit">重大新闻</div>
81
						<div class="form-result currentArt currentArt2">
82
							<ul id="importNews">
83
							</ul>
84
						</div>
85
					</div>	
86
				</div>
87
				<div class="conItem advertBox">
88
					<ul class="advertItem">
89
						<li><a href="download.html" target="_blank"><img src="images/find_img_xiazai_nor.png" /></a></li>
90
					</ul>
91
				</div>
92
				<div class="conItem conBlock displayNone">
93
					<div class="form-item otherBlock">
94
						<div class="aboutTit">热门文章</div>
95
						<div class="form-result currentArt currentArt2">
96
							<ol class="hotList" id="hotNews">
97
							</ol>
98
						</div>
99
					</div>	
100
				</div>
31 101
			</div>
32 102
		</div>
33 103
	</div>
@ -41,6 +111,5 @@
41 111
<script type="text/javascript" src="js/jquery.page.js"></script>
42 112
<script type="text/javascript" src="js/common.js"></script>
43 113
<script type="text/javascript" src="js/discover.js"></script>
44

45 114
</body>
46 115
</html>

+ 1 - 1
e/r.html

@ -535,4 +535,4 @@ $(document).ready(function() {
535 535
</script>
536 536
</body>
537 537
538
</html>
538
</html>

+ 4 - 4
information.html

@ -300,17 +300,17 @@
300 300
		if(flag == 1) {
301 301
			console.log("年插件位置")
302 302
			if(c) {
303
				if (c == "至今") {
303
				if (c == "至今") {
304 304
					$(this).siblings(".mr_calendar_ym").show();
305 305
					$(this).siblings(".mr_calendar_ym").find(".yearli:contains('" + c + "')").addClass("active").siblings().removeClass("active");
306
					return false;
307
				} else{
306
					return false;
307
				} else{
308 308
					var ye = new Date().getFullYear();
309 309
					var sroTop = (ye - parseInt(c)) * 32;
310 310
					$(this).siblings(".mr_calendar_ym").show();
311 311
					$(this).siblings(".mr_calendar_ym").find(".full_year").scrollTop(sroTop);
312 312
					$(this).siblings(".mr_calendar_ym").find(".yearli:contains('" + c + "')").addClass("active").siblings().removeClass("active");
313
					return false;
313
					return false;
314 314
				}
315 315
				
316 316
			} else {

+ 131 - 65
js/articalIssue.js

@ -6,7 +6,10 @@ $(function() {
6 6
	var $data = {};
7 7
	var articleId;
8 8
	var fa = false;
9
  	var userid = $.cookie("userid");
9
  	var userid = $.cookie("userid");   
10
  	var hbur,hburEnd;
11
  	var pr,prEnd;
12
  	var re,reEnd;
10 13
	//校验标题
11 14
	$("#newstitle").on({
12 15
		focus: function() {
@ -31,17 +34,26 @@ $(function() {
31 34
			$("#keyPrompt").text("");
32 35
		},
33 36
		keyup: function() {
34
			if($(this).val()==""){
37
			var ti=$(this).val();
38
			hbur=ti;
39
			if(ti==""){
35 40
				$(".frmadd").addClass("displayNone");
36 41
				$(".keydrop ul").html("");
37 42
				$(".keydrop").addClass("displayNone");
43
				return;
38 44
			}else{
39 45
				$(".frmadd").removeClass("displayNone");
40 46
			}
41 47
			if($(this).val().length > 15) {
42 48
				$(this).val($(this).val().substr(0, 15));
43 49
			}
44
			KeyWordList();
50
			setTimeout(function(){
51
				if( ti===hbur && ti!== hburEnd) {
52
					KeyWordList(ti);
53
				}
54
				
55
			},500)
56
			
45 57
		}
46 58
	})
47 59

@ -105,7 +117,8 @@ $(function() {
105 117
		}
106 118
	}
107 119
	
108
	function KeyWordList() {
120
	function KeyWordList(seValue) {
121
		hburEnd=seValue;
109 122
		$.ajax({
110 123
			"url": "/ajax/dataDict/qaHotKey",
111 124
			"type": "get",
@ -114,19 +127,21 @@ $(function() {
114 127
			},
115 128
			"success": function(data) {
116 129
				console.log(data);
117
				if(data.success && data.data != "") {
118
					var itemlist = '';
119
					$("#keydropList").html("");
120
					for(var i = 0; i < 5; i++) {
121
						var itemlist = '<li><p class="h2Font"></p></li>';
122
						$itemlist = $(itemlist);
123
						$("#keydropList").append($itemlist);
124
						$itemlist.find(".h2Font").text(data.data[i].caption);
130
				if(data.success) {
131
					if(hburEnd == seValue){
132
						var itemlist = '';
133
						$("#keydropList").html("");
134
						for(var i = 0; i < Math.min(data.data.length,5); i++) {
135
							var itemlist = '<li><p class="h2Font"></p></li>';
136
							$itemlist = $(itemlist);
137
							$("#keydropList").append($itemlist);
138
							$itemlist.find(".h2Font").text(data.data[i].caption);
139
						}
140
						$(".keydrop").removeClass("displayNone");
125 141
					}
126
					$(".keydrop").removeClass("displayNone");
127 142
				} else {
128
					$(".keydrop").addClass("displayNone");
129
					$(".keydrop ul").html("");
143
					//$(".keydrop").addClass("displayNone");
144
					//$(".keydrop ul").html("");
130 145
				}
131 146
			},
132 147
			"error": function() {
@ -145,18 +160,38 @@ $(function() {
145 160
	})
146 161
	$("#checkZj,#checkZy").on("blur", function() {
147 162
		$(this).prev().find("span").text("");
148
		//$(this).val("");
149
		//$(this).parents(".otherBlock").find(".form-drop").addClass("displayNone");
150 163
	})
151 164

152 165
	$("#checkZj").on("keyup", function() {
153 166
		var _this = this;
154
		checkZj(_this);
167
		var ti=$(this).val();
168
		pr=ti;
169
		if($(this).val()=="") {
170
			return;
171
		}
172
		setTimeout(function(){
173
				if( ti===pr && ti!== prEnd) {
174
					checkZj(_this,ti);
175
				}
176
				
177
			},500)
178
		
155 179
	})
156 180

157 181
	$("#checkZy").on("keyup", function() {
182
		var ti=$(this).val();
183
		re=ti;
184
		if($(this).val()=="") {
185
			return;
186
		}
158 187
		var _this = this;
159
		checkZy(_this);
188
		setTimeout(function(){
189
				if( ti===re && ti!== reEnd) {
190
					checkZy(_this,ti);
191
				}
192
				
193
			},500)
194
		
160 195
	})
161 196

162 197
	$("#expertlist").on("click", "li", function() {
@ -201,7 +236,8 @@ $(function() {
201 236
		$(this).parent().remove();
202 237
	})
203 238

204
	function checkZj(_this) {
239
	function checkZj(_this,prd) {
240
		prEnd=prd;
205 241
		$.ajax({
206 242
			"url": "/ajax/professor/qaByName",
207 243
			"type": "get",
@ -213,26 +249,28 @@ $(function() {
213 249
				console.log(data);
214 250
				if(data.success) {
215 251
					if(data.data != "") {
216
						$(_this).next().removeClass("displayNone");
217
						var itemlist = '';
218
						$("#expertlist").html("");
219
						for(var i = 0; i < data.data.length; i++) {
220
							var itemlist = '<li id="usid" class="flexCenter">';
221
							itemlist += '<div class="madiaHead useHead" id="userimg"></div>';
222
							itemlist += '<div class="madiaInfo">';
223
							itemlist += '<p class="ellipsisSty"><span class="h1Font" id="name"></span><span class="h2Font" style="margin-left:10px;" id="title"></span></p>';
224
							itemlist += '<p class="h2Font ellipsisSty" id="orgName"></p>';
225
							itemlist += '</div><div class="deleteThis"></div></li>';
226
							$itemlist = $(itemlist);
227
							$("#expertlist").append($itemlist);
228
							var datalist = data.data[i];
229
							$itemlist.attr("data-id", datalist.id);
230
							$itemlist.find("#name").text(datalist.name);
231
							$itemlist.find("#title").text(datalist.title);
232
							$itemlist.find("#orgName").text(datalist.orgName);
233
							if(datalist.hasHeadImage == 1) {
234
								$itemlist.find("#userimg").attr("style", "background-image: url(/images/head/" + datalist.id + "_l.jpg);");
235
							}
252
							if(prEnd == prd){
253
								$(_this).next().removeClass("displayNone");
254
								var itemlist = '';
255
								$("#expertlist").html("");
256
								for(var i = 0; i < data.data.length; i++) {
257
									var itemlist = '<li id="usid" class="flexCenter">';
258
									itemlist += '<div class="madiaHead useHead" id="userimg"></div>';
259
									itemlist += '<div class="madiaInfo">';
260
									itemlist += '<p class="ellipsisSty"><span class="h1Font" id="name"></span><span class="h2Font" style="margin-left:10px;" id="title"></span></p>';
261
									itemlist += '<p class="h2Font ellipsisSty" id="orgName"></p>';
262
									itemlist += '</div><div class="deleteThis"></div></li>';
263
									$itemlist = $(itemlist);
264
									$("#expertlist").append($itemlist);
265
									var datalist = data.data[i];
266
									$itemlist.attr("data-id", datalist.id);
267
									$itemlist.find("#name").text(datalist.name);
268
									$itemlist.find("#title").text(datalist.title);
269
									$itemlist.find("#orgName").text(datalist.orgName);
270
									if(datalist.hasHeadImage == 1) {
271
										$itemlist.find("#userimg").attr("style", "background-image: url(/images/head/" + datalist.id + "_l.jpg);");
272
									}
273
							}		
236 274
						}
237 275
					} else {
238 276
						$(_this).next().addClass("displayNone");
@ -247,7 +285,8 @@ $(function() {
247 285
		});
248 286
	}
249 287

250
	function checkZy(_this) {
288
	function checkZy(_this,prd) {
289
		reEnd=prd;
251 290
		$.ajax({
252 291
			"url": "/ajax/resource/qaByName",
253 292
			"type": "get",
@ -259,30 +298,32 @@ $(function() {
259 298
				console.log(data);
260 299
				if(data.success) {
261 300
					if(data.data != "") {
262
						$(_this).next().removeClass("displayNone");
263
						var itemlist = '';
264
						$("#resouselist").html("");
265
						for(var i = 0; i < data.data.length; i++) {
266
							var itemlist = '<li id="usid" class="flexCenter">';
267
							itemlist += '<div class="madiaHead resouseHead" id="userimg"></div>';
268
							itemlist += '<div class="madiaInfo">';
269
							itemlist += '<p class="h1Font ellipsisSty" id="resourceName"></p>';
270
							itemlist += '<p class="h2Font ellipsisSty" id="name"></p>';
271
							itemlist += '</div><div class="deleteThis"></div></li>';
272
							$itemlist = $(itemlist);
273
							$("#resouselist").append($itemlist);
274
							var datalist = data.data[i];
275
							$itemlist.attr("data-id", datalist.resourceId);
276
							$itemlist.find("#resourceName").text(datalist.resourceName);
277
							if(datalist.resourceType==1){
278
								$itemlist.find("#name").text(datalist.professor.name);
279
							}else{
280
								$itemlist.find("#name").text(datalist.organization.name);
281
							}
282
							if(datalist.images.length > 0) {
283
								$itemlist.find("#userimg").attr("style", "background-image: url(/data/resource/" + datalist.images[0].imageSrc + ");");
284
							}
285
						}
301
						if(reEnd==prd) {
302
								$(_this).next().removeClass("displayNone");
303
								var itemlist = '';
304
								$("#resouselist").html("");
305
								for(var i = 0; i < data.data.length; i++) {
306
									var itemlist = '<li id="usid" class="flexCenter">';
307
									itemlist += '<div class="madiaHead resouseHead" id="userimg"></div>';
308
									itemlist += '<div class="madiaInfo">';
309
									itemlist += '<p class="h1Font ellipsisSty" id="resourceName"></p>';
310
									itemlist += '<p class="h2Font ellipsisSty" id="name"></p>';
311
									itemlist += '</div><div class="deleteThis"></div></li>';
312
									$itemlist = $(itemlist);
313
									$("#resouselist").append($itemlist);
314
									var datalist = data.data[i];
315
									$itemlist.attr("data-id", datalist.resourceId);
316
									$itemlist.find("#resourceName").text(datalist.resourceName);
317
									if(datalist.resourceType==1){
318
										$itemlist.find("#name").text(datalist.professor.name);
319
									}else{
320
										$itemlist.find("#name").text(datalist.organization.name);
321
									}
322
									if(datalist.images.length > 0) {
323
										$itemlist.find("#userimg").attr("style", "background-image: url(/data/resource/" + datalist.images[0].imageSrc + ");");
324
									}
325
								}
326
							}	
286 327
					} else {
287 328
						$(_this).next().addClass("displayNone");
288 329
					}
@ -342,6 +383,9 @@ $(function() {
342 383

343 384
	//文章发布
344 385
	$("#release").on("click", function() {
386
		if($(this).hasClass("disableLi")){
387
			return;
388
		}
345 389
		noTitleImg();
346 390
		if(imgflase && titleflase) {
347 391
			$.MsgBox.Confirm("提示", "确认发布该文章?", newsAdd);
@ -350,6 +394,9 @@ $(function() {
350 394

351 395
	//定时文章发布
352 396
	$("#setTimeIssue").on("click", function() {
397
		if($(this).hasClass("disableLi")){
398
			return;
399
		}
353 400
		noTitleImg();
354 401
		if(imgflase && titleflase) {
355 402
			$(".blackcover2").fadeIn();
@ -366,6 +413,9 @@ $(function() {
366 413

367 414
	//文章存草稿
368 415
	$("#draft").on("click", function() {
416
		if($(this).hasClass("disableLi")){
417
			return;
418
		}
369 419
		noTitleImg();
370 420
		if(imgflase && titleflase) {
371 421
			draftAdd(1);
@ -374,6 +424,9 @@ $(function() {
374 424

375 425
	//文章预览
376 426
	$("#preview").on("click", function() {
427
		if($(this).hasClass("disableLi")){
428
			return;
429
		}
377 430
		noTitleImg();
378 431
		if(imgflase && titleflase) {
379 432
			draftAdd(2);
@ -391,6 +444,7 @@ $(function() {
391 444
		$data.articleContent = ue.getContent();
392 445
		$data.professors = experarray;
393 446
		$data.resources = resourcesarray;
447
		$data.colNum=1;
394 448
		if($("#hidearticleId").val().length != 0) {
395 449
			$data.articleId = $("#hidearticleId").val();
396 450
		}
@ -402,6 +456,7 @@ $(function() {
402 456

403 457
	/*文章发布*/
404 458
	function newsAdd() {
459
		$(".operateBlock").find("li").addClass("disableLi");
405 460
		getdata();
406 461
		$.ajax({
407 462
			"url": "/ajax/article/save",
@ -409,6 +464,9 @@ $(function() {
409 464
			"dataType": "json",
410 465
			"data": $data,
411 466
			"traditional": true, //传数组必须加这个
467
			"complete":function(){
468
				$(".operateBlock").find("li").removeClass("disableLi");
469
			},
412 470
			"success": function(data) {
413 471
				console.log(data);
414 472
				if(data.success) {
@ -435,12 +493,16 @@ $(function() {
435 493
	function setTimeIssue(publishTime) {
436 494
		var opublishTime=publishTime+"01";
437 495
		getdata(opublishTime);
496
		$(".operateBlock").find("li").addClass("disableLi");
438 497
		$.ajax({
439 498
			"url": "/ajax/article/timing",
440 499
			"type": "post",
441 500
			"dataType": "json",
442 501
			"data": $data,
443 502
			"traditional": true, //传数组必须加这个
503
			"complete":function(){
504
				$(".operateBlock").find("li").removeClass("disableLi");
505
			},
444 506
			"success": function(data) {
445 507
				if(data.success) {
446 508
					$("#hidearticleId").val(data.data);
@ -461,6 +523,7 @@ $(function() {
461 523

462 524
	/*文章添加草稿和文章预览*/
463 525
	function draftAdd(num) {
526
		$(".operateBlock").find("li").addClass("disableLi");
464 527
		getdata();
465 528
		$.ajax({
466 529
			"url": "/ajax/article/draft",
@ -468,6 +531,9 @@ $(function() {
468 531
			"dataType": "json",
469 532
			"data": $data,
470 533
			"traditional": true, //传数组必须加这个
534
			complete:function(){
535
				$(".operateBlock").find("li").removeClass("disableLi");
536
			},
471 537
			"success": function(data) {
472 538
				console.log(data);
473 539
				if(num == 1) {

+ 132 - 69
js/articalModify.js

@ -7,7 +7,9 @@ $(function() {
7 7
    var $data = {};
8 8
    var modifyTimeval;
9 9
    var settime = false;
10
	
10
	var hbur,hburEnd;
11
  	var pr,prEnd;
12
  	var re,reEnd;
11 13
	articleshow();
12 14
	relevantExperts();
13 15
	relevantResources();
@ -36,17 +38,25 @@ $(function() {
36 38
			$("#keyPrompt").text("");
37 39
		},
38 40
		keyup: function() {
41
			var ti=$(this).val();
42
			hbur=ti;
39 43
			if($(this).val()==""){
40 44
				$(".frmadd").addClass("displayNone");
41 45
				$(".keydrop ul").html("");
42 46
				$(".keydrop").addClass("displayNone");
47
				return;
43 48
			}else{
44 49
				$(".frmadd").removeClass("displayNone");
45 50
			}
46 51
			if($(this).val().length > 15) {
47 52
				$(this).val($(this).val().substr(0, 15));
48 53
			}
49
			KeyWordList();
54
			setTimeout(function(){
55
				if( ti===hbur && ti!== hburEnd) {
56
					KeyWordList(ti);
57
				}
58
				
59
			},500)
50 60
		}
51 61
	})
52 62

@ -109,8 +119,8 @@ $(function() {
109 119
			$("#keyWordlist").append("<li class='delkeylist'><p class='h2Font'>" + keyWord + "</p><div class='closeThis'></div></li>");
110 120
		}
111 121
	}
112
	
113
	function KeyWordList() {
122
	function KeyWordList(seValue) {
123
		hburEnd=seValue;
114 124
		$.ajax({
115 125
			"url": "/ajax/dataDict/qaHotKey",
116 126
			"type": "get",
@ -119,19 +129,21 @@ $(function() {
119 129
			},
120 130
			"success": function(data) {
121 131
				console.log(data);
122
				if(data.success && data.data != "") {
123
					var itemlist = '';
124
					$("#keydropList").html("");
125
					for(var i = 0; i < 5; i++) {
126
						var itemlist = '<li><p class="h2Font"></p></li>';
127
						$itemlist = $(itemlist);
128
						$("#keydropList").append($itemlist);
129
						$itemlist.find(".h2Font").text(data.data[i].caption);
132
				if(data.success) {
133
					if(hburEnd == seValue){
134
						var itemlist = '';
135
						$("#keydropList").html("");
136
						for(var i = 0; i < Math.min(data.data.length,5); i++) {
137
							var itemlist = '<li><p class="h2Font"></p></li>';
138
							$itemlist = $(itemlist);
139
							$("#keydropList").append($itemlist);
140
							$itemlist.find(".h2Font").text(data.data[i].caption);
141
						}
142
						$(".keydrop").removeClass("displayNone");
130 143
					}
131
					$(".keydrop").removeClass("displayNone");
132 144
				} else {
133
					$(".keydrop").addClass("displayNone");
134
					$(".keydrop ul").html("");
145
					//$(".keydrop").addClass("displayNone");
146
					//$(".keydrop ul").html("");
135 147
				}
136 148
			},
137 149
			"error": function() {
@ -174,12 +186,32 @@ $(function() {
174 186
	
175 187
	$("#checkZj").on("keyup", function() {
176 188
		var _this = this;
177
		checkZj(_this);
189
		var ti=$(this).val();
190
		pr=ti;
191
		if($(this).val()=="") {
192
			return;
193
		}
194
		setTimeout(function(){
195
				if( ti===pr && ti!== prEnd) {
196
					checkZj(_this,ti);
197
				}
198
				
199
			},500)
178 200
	})
179 201

180 202
	$("#checkZy").on("keyup", function() {
203
		var ti=$(this).val();
204
		re=ti;
205
		if($(this).val()=="") {
206
			return;
207
		}
181 208
		var _this = this;
182
		checkZy(_this);
209
		setTimeout(function(){
210
				if( ti===re && ti!== reEnd) {
211
					checkZy(_this,ti);
212
				}
213
				
214
			},500)
183 215
	})
184 216
	
185 217
	$("#expertlist").on("click","li",function(){
@ -224,43 +256,46 @@ $(function() {
224 256
		$(this).parent().remove();
225 257
	})
226 258
	
227
	function checkZj(_this){
259
	function checkZj(_this,prd) {
260
		prEnd=prd;
228 261
		$.ajax({
229 262
			"url": "/ajax/professor/qaByName",
230 263
			"type": "get",
231 264
			"data": {
232 265
				"name": $("#checkZj").val(),
233
				"total":3
266
				"total": 3
234 267
			},
235 268
			"success": function(data) {
236 269
				console.log(data);
237
				if(data.success ) {
238
					if(data.data != ""){
239
						$(_this).next().removeClass("displayNone");
240
						var itemlist = '';
241
						$("#expertlist").html("");
242
						for(var i = 0; i < data.data.length; i++) {
243
							var itemlist = '<li id="usid" class="flexCenter">';
244
							itemlist += '<div class="madiaHead useHead" id="userimg"></div>';
245
							itemlist += '<div class="madiaInfo">';
246
							itemlist += '<p class="ellipsisSty"><span class="h1Font" id="name"></span><span class="h2Font" style="margin-left:10px;" id="title"></span></p>';
247
							itemlist += '<p class="h2Font ellipsisSty" id="orgName"></p>';
248
							itemlist += '</div><div class="deleteThis"></div></li>';
249
							$itemlist = $(itemlist);
250
							$("#expertlist").append($itemlist);
251
							var datalist = data.data[i];
252
							$itemlist.attr("data-id",datalist.id);
253
							$itemlist.find("#name").text(datalist.name);
254
							$itemlist.find("#title").text(datalist.title);
255
							$itemlist.find("#orgName").text(datalist.orgName);
256
							if(datalist.hasHeadImage==1) {
257
								$itemlist.find("#userimg").attr("style", "background-image: url(/images/head/" + datalist.id + "_l.jpg);");
258
							}
270
				if(data.success) {
271
					if(data.data != "") {
272
							if(prEnd == prd){
273
								$(_this).next().removeClass("displayNone");
274
								var itemlist = '';
275
								$("#expertlist").html("");
276
								for(var i = 0; i < data.data.length; i++) {
277
									var itemlist = '<li id="usid" class="flexCenter">';
278
									itemlist += '<div class="madiaHead useHead" id="userimg"></div>';
279
									itemlist += '<div class="madiaInfo">';
280
									itemlist += '<p class="ellipsisSty"><span class="h1Font" id="name"></span><span class="h2Font" style="margin-left:10px;" id="title"></span></p>';
281
									itemlist += '<p class="h2Font ellipsisSty" id="orgName"></p>';
282
									itemlist += '</div><div class="deleteThis"></div></li>';
283
									$itemlist = $(itemlist);
284
									$("#expertlist").append($itemlist);
285
									var datalist = data.data[i];
286
									$itemlist.attr("data-id", datalist.id);
287
									$itemlist.find("#name").text(datalist.name);
288
									$itemlist.find("#title").text(datalist.title);
289
									$itemlist.find("#orgName").text(datalist.orgName);
290
									if(datalist.hasHeadImage == 1) {
291
										$itemlist.find("#userimg").attr("style", "background-image: url(/images/head/" + datalist.id + "_l.jpg);");
292
									}
293
							}		
259 294
						}
260
					}else{
295
					} else {
261 296
						$(_this).next().addClass("displayNone");
262 297
					}
263
				}else{
298
				} else {
264 299
					$(_this).next().addClass("displayNone");
265 300
				}
266 301
			},
@ -269,8 +304,9 @@ $(function() {
269 304
			}
270 305
		});
271 306
	}
272
	
273
		function checkZy(_this) {
307

308
	function checkZy(_this,prd) {
309
		reEnd=prd;
274 310
		$.ajax({
275 311
			"url": "/ajax/resource/qaByName",
276 312
			"type": "get",
@ -282,30 +318,32 @@ $(function() {
282 318
				console.log(data);
283 319
				if(data.success) {
284 320
					if(data.data != "") {
285
						$(_this).next().removeClass("displayNone");
286
						var itemlist = '';
287
						$("#resouselist").html("");
288
						for(var i = 0; i < data.data.length; i++) {
289
							var itemlist = '<li id="usid" class="flexCenter">';
290
							itemlist += '<div class="madiaHead resouseHead" id="userimg"></div>';
291
							itemlist += '<div class="madiaInfo">';
292
							itemlist += '<p class="h1Font ellipsisSty" id="resourceName"></p>';
293
							itemlist += '<p class="h2Font ellipsisSty" id="name"></p>';
294
							itemlist += '</div><div class="deleteThis"></div></li>';
295
							$itemlist = $(itemlist);
296
							$("#resouselist").append($itemlist);
297
							var datalist = data.data[i];
298
							$itemlist.attr("data-id", datalist.resourceId);
299
							$itemlist.find("#resourceName").text(datalist.resourceName);
300
							if(datalist.resourceType==1){
301
								$itemlist.find("#name").text(datalist.professor.name);
302
							}else{
303
								$itemlist.find("#name").text(datalist.organization.name);
304
							}
305
							if(datalist.images.length > 0) {
306
								$itemlist.find("#userimg").attr("style", "background-image: url(/data/resource/" + datalist.images[0].imageSrc + ");");
307
							}
308
						}
321
						if(reEnd==prd) {
322
								$(_this).next().removeClass("displayNone");
323
								var itemlist = '';
324
								$("#resouselist").html("");
325
								for(var i = 0; i < data.data.length; i++) {
326
									var itemlist = '<li id="usid" class="flexCenter">';
327
									itemlist += '<div class="madiaHead resouseHead" id="userimg"></div>';
328
									itemlist += '<div class="madiaInfo">';
329
									itemlist += '<p class="h1Font ellipsisSty" id="resourceName"></p>';
330
									itemlist += '<p class="h2Font ellipsisSty" id="name"></p>';
331
									itemlist += '</div><div class="deleteThis"></div></li>';
332
									$itemlist = $(itemlist);
333
									$("#resouselist").append($itemlist);
334
									var datalist = data.data[i];
335
									$itemlist.attr("data-id", datalist.resourceId);
336
									$itemlist.find("#resourceName").text(datalist.resourceName);
337
									if(datalist.resourceType==1){
338
										$itemlist.find("#name").text(datalist.professor.name);
339
									}else{
340
										$itemlist.find("#name").text(datalist.organization.name);
341
									}
342
									if(datalist.images.length > 0) {
343
										$itemlist.find("#userimg").attr("style", "background-image: url(/data/resource/" + datalist.images[0].imageSrc + ");");
344
									}
345
								}
346
							}	
309 347
					} else {
310 348
						$(_this).next().addClass("displayNone");
311 349
					}
@ -509,6 +547,9 @@ $(function() {
509 547
	
510 548
	//文章发布
511 549
	$("#release").on("click",function(){
550
		if($(this).hasClass("disableLi")){
551
			return;
552
		}
512 553
		noTitleImg();
513 554
		if(titleflase){
514 555
			$.MsgBox.Confirm("提示","确认发布该文章?",newsAdd);	
@ -517,6 +558,9 @@ $(function() {
517 558
	
518 559
	//文章存草稿
519 560
	$("#draft").on("click",function(){
561
		if($(this).hasClass("disableLi")){
562
			return;
563
		}
520 564
		noTitleImg();
521 565
		if(titleflase){
522 566
			draftAdd(1);
@ -525,6 +569,9 @@ $(function() {
525 569
	
526 570
	//文章预览
527 571
	$("#preview").on("click",function(){
572
		if($(this).hasClass("disableLi")){
573
			return;
574
		}
528 575
		noTitleImg();
529 576
		if(titleflase){
530 577
			draftAdd(2);
@ -539,6 +586,9 @@ $(function() {
539 586
	//定时文章发布
540 587
	$("#setTimeIssue").on("click", function() {
541 588
		//$(".form_datetime").val(timeGeshi(modifyTimeval));
589
		if($(this).hasClass("disableLi")){
590
			return;
591
		}
542 592
		noTitleImg();
543 593
		if(titleflase) {
544 594
			$(".blackcover2").fadeIn();
@ -564,6 +614,7 @@ $(function() {
564 614
		$data.articleContent = ue.getContent();
565 615
		$data.professors = experarray;
566 616
		$data.resources = resourcesarray;
617
		$data.colNum=1;
567 618
		if(settime) {
568 619
			$data.publishTime = publishTime;
569 620
		}
@ -573,6 +624,7 @@ $(function() {
573 624
	
574 625
	/*文章添加*/
575 626
	function newsAdd(){
627
		$(".operateBlock").find("li").addClass("disableLi");
576 628
		getdata();
577 629
		$.ajax({
578 630
			"url" : "/ajax/article/save",
@ -580,6 +632,9 @@ $(function() {
580 632
			"dataType" : "json",
581 633
			"data" :$data,
582 634
			"traditional": true, //传数组必须加这个
635
			"complete":function(){
636
				$(".operateBlock").find("li").removeClass("disableLi");
637
			},
583 638
			"success" : function(data) {
584 639
				console.log(data);
585 640
				if (data.success){
@ -606,12 +661,16 @@ $(function() {
606 661
	function setTimeIssue(publishTime,settime) {
607 662
		var opublishTime=publishTime+"01";
608 663
		getdata(opublishTime,settime);
664
		$(".operateBlock").find("li").addClass("disableLi");
609 665
		$.ajax({
610 666
			"url": "/ajax/article/timing",
611 667
			"type": "post",
612 668
			"dataType": "json",
613 669
			"data": $data,
614 670
			"traditional": true, //传数组必须加这个
671
			"complete":function(){
672
				$(".operateBlock").find("li").removeClass("disableLi");
673
			},
615 674
			"success": function(data) {
616 675
				console.log(data);
617 676
				if(data.success) {
@ -633,6 +692,7 @@ $(function() {
633 692

634 693
	/*文章添加草稿和文章预览*/
635 694
	function draftAdd(num){
695
		$(".operateBlock").find("li").addClass("disableLi");
636 696
		getdata();
637 697
		$.ajax({
638 698
			"url" : "/ajax/article/draft",
@ -640,6 +700,9 @@ $(function() {
640 700
			"dataType" : "json",
641 701
			"data" :$data,
642 702
			"traditional": true, //传数组必须加这个
703
			complete:function(){
704
				$(".operateBlock").find("li").removeClass("disableLi");
705
			},
643 706
			"success" : function(data) {
644 707
				console.log(data);
645 708
				if(num==1){

+ 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");

+ 21 - 8
js/articalShow.js

@ -18,7 +18,7 @@ $(function() {
18 18
	}
19 19
	//最近文章
20 20
	function recentlyArticle(num,obj) {
21
		var ourl=num==1?"/ajax/article/qaOrgPublish":"/ajax/article/qaProPublish";
21
		var ourl=num==1?"/ajax/article/pqOrgPublish":"/ajax/article/pqProPublish";
22 22
		$.ajax({
23 23
			"url" :ourl ,
24 24
			"type" :  "GET" ,
@ -26,7 +26,7 @@ $(function() {
26 26
			"data" :obj,
27 27
			"success" : function(data) {
28 28
				if (data.success){
29
					var $data=data.data;
29
					var $data=data.data.data;
30 30
					var only=false;
31 31
					if($data.length>1){
32 32
						$(".recentlyList").parents(".currentBlock").removeClass("displayNone");
@ -44,10 +44,10 @@ $(function() {
44 44
								}
45 45
								
46 46
							}
47
							var str='<li>'+
48
								'<a href="articalShow.html?articleId='+$data[i].articleId+'"><p class="h2Font ellipsisSty-2"><em class="circlePre"></em>'+$data[i].articleTitle+'</p>'+
47
							var listLi=$('<li class="flexCenter"></li>').appendTo($(".recentlyList"));
48
							var str='<a href="articalShow.html?articleId='+$data[i].articleId+'"><p class="h2Font ellipsisSty-2"><em class="circlePre"></em>'+$data[i].articleTitle+'</p>'+
49 49
								'<span class="smalltip">'+commenTime($data[i].publishTime)+'</span></a></li>'
50
							$(".recentlyList").append(str);	
50
							$(str).appendTo(listLi);
51 51
						}
52 52
					}
53 53
				}
@ -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)//文章点赞
@ -101,9 +105,18 @@ $(function() {
101 105
				}
102 106
				
103 107
				var articletitle = data.data.articleTitle + "-科袖网";
108
				document.title = articletitle;
104 109
				window.setTimeout(function() {
105
					document.title = articletitle;
106
				}, 500);
110
					$('body').scrollTop(4);
111
					var oShareW = $('.share-nav').outerWidth(true);
112
					$('.shareBlock').scrollFix( {
113
				        startTop:'body',
114
				        bottom: '0',
115
				        endPos : '.share-bottom',
116
						width: oShareW ,
117
				        zIndex : 997
118
				    });	
119
				}, 300);
107 120
			},
108 121
			"error":function(){
109 122
				$.MsgBox.Alert('提示','链接服务器超时')

+ 3 - 3
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) {
@ -611,4 +611,4 @@ $(function() {
611 611
	})
612 612
	
613 613
	
614
})
614
})

+ 105 - 12
js/common.js

@ -129,6 +129,9 @@ function loginStatus() {
129 129
		if(userAuth == "true" && authentication != "null") {
130 130
			$(".onlogin").show();
131 131
			$(".unlogin").hide();
132
			$(".portrait-p").on("click",function(){
133
				location.href="userInforShow.html?professorId="+userid;
134
			})
132 135
			$(".portrait-p").attr("src", "/images/head/" + userid + "_m.jpg");
133 136
			$(".portrait-p").load(function() { //判断图片是否加载,加载不成功默认有默认的图像									
134 137
				})
@ -704,6 +707,45 @@ var eduDegree = {
704 707
	"4": "大专",
705 708
	"5": "其他"
706 709
}
710
//栏目
711
var columnType = {
712
	"1":{
713
		fullName:"个人原创",
714
		shortName:"原创"
715
	},
716
	"2":{
717
		fullName:"企业原创",
718
		shortName:"原创"
719
	},
720
	"3":{
721
		fullName:"前沿动态",
722
		shortName:"前沿"
723
	},
724
	"4":{
725
		fullName:"学术经验",
726
		shortName:"经验"
727
	},
728
	"5":{
729
		fullName:"分析检测",
730
		shortName:"检测"
731
	},
732
	"6":{
733
		fullName:"会议培训",
734
		shortName:"会议"
735
	},
736
	"7":{
737
		fullName:"科袖访谈",
738
		shortName:"访谈"
739
	},
740
	"8":{
741
		fullName:"招聘招生",
742
		shortName:"招聘"
743
	},
744
	"9":{
745
		fullName:"重大新闻",
746
		shortName:"新闻"
747
	}	
748
}
707 749
//反馈意见成功
708 750
function backSuccessed(){
709 751
	$(".correctCon").val("");
@ -756,11 +798,18 @@ function hotKey(sel, num) {
756 798
			$(this).siblings(".keydrop").show();
757 799
		},
758 800
		keyup: function(e) {
801
			 var ti=$(this).val();
802
			 var $t=this;
803
			 $t.comr=ti;
804
			 var $this=$(this);
759 805
			if($(this).val().trim()) {
760 806
				$(this).siblings("button").show();
761 807
				var lNum = $.trim($(this).val()).length;
762 808
				if(0 < lNum) {
763
					var $this = $(this)
809
					setTimeout(function(){
810
						if( ti===$t.comr && ti!== $t.comrEnd) {
811
							var tt=ti;
812
							$t.comrEnd=tt;
764 813
					$("#addKeyword").show();
765 814
					$.ajax({
766 815
						"url": "/ajax/dataDict/qaHotKey",
@ -768,30 +817,34 @@ function hotKey(sel, num) {
768 817
						"success": function(data) {
769 818
							console.log(data);
770 819
							if(data.success) {
771
								if(data.data.length == 0) {
772
									$this.siblings(".keydrop").addClass("displayNone");
773
									$this.siblings(".keydrop").find("ul").html("");
774
								} else {
775
									$this.siblings(".keydrop").removeClass("displayNone");
776
									var oSr = "";
777
									for(var i = 0; i < 5; i++) {
778
										oSr += '<li>' + data.data[i].caption + '<div class="closeThis"></div></li>';
820
								if($t.comrEnd==tt) {
821
									if(data.data.length == 0) {
822
										$this.siblings(".keydrop").addClass("displayNone");
823
										$this.siblings(".keydrop").find("ul").html("");
824
									} else {
825
										$this.siblings(".keydrop").removeClass("displayNone");
826
										var oSr = "";
827
										for(var i = 0; i < Math.min(data.data.length,5); i++) {
828
											oSr += '<li>' + data.data[i].caption + '<div class="closeThis"></div></li>';
829
										}
830
										$this.siblings(".keydrop").find("ul").html(oSr);
779 831
									}
780
									$this.siblings(".keydrop").find("ul").html(oSr);
781
								}
832
								}	
782 833
							} else {
783 834
								$this.siblings(".keydrop").addClass("displayNone");
784 835
								$this.siblings(".keydrop").find("ul").html("");
785 836
							}
786 837
						},
787 838
						"data": {
788
							"key": $(this).val()
839
							"key": $this.val()
789 840
						},
790 841
						dataType: "json",
791 842
						'error': function() {
792 843
							$.MsgBox.Alert('提示', '服务器连接超时!');
793 844
						}
794 845
					});
846
					}
847
					},500);
795 848
				}
796 849
			} else {
797 850
				$(this).siblings("button").hide();
@ -1013,3 +1066,43 @@ var r64 = ["0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "A", "B", "C", "D",
1013 1066
			return out;
1014 1067
		}
1015 1068
1069
1070
//发现上方轮播
1071
var bannerRotate = {// banner rotating
1072
	_time: 3000,
1073
	_i: 0,
1074
	_interval: null,
1075
	_navId: "#slide-tab",
1076
	_navBox: "#slide-list",
1077
	bannerShow: function() {
1078
		$(this._navId).find("li").removeClass("slide-tab-item-active");
1079
		$(this._navId).find("li:eq("+this._i+")").addClass("slide-tab-item-active");
1080
		
1081
		$(this._navBox).find("li").removeClass("slide-item-active");
1082
		$(this._navBox).find("li:eq("+this._i+")").addClass("slide-item-active");
1083
	},
1084
	bannerStart:function() {
1085
		var _this = this;
1086
		_this._interval = setInterval(function() {
1087
			if(_this._i >= 4) {
1088
				_this._i = 0;
1089
			}
1090
			else {
1091
				_this._i++;
1092
			}
1093
			_this.bannerShow();
1094
		}, _this._time);
1095
	},
1096
	bannerInit: function() {
1097
		var _this = this;
1098
		_this.bannerStart();
1099
		
1100
		$(_this._navId).find("li").bind("mouseover", function() {
1101
			clearInterval(_this._interval);
1102
			_this._i = $(this).index();
1103
			_this.bannerShow();
1104
			_this.bannerStart();
1105
		});
1106
	}
1107
};
1108

+ 275 - 110
js/discover.js

@ -3,126 +3,310 @@ $(function() {
3 3
	$(".headnav li").eq(1).addClass("navcurrent");
4 4
	loginStatus();//判断个人是否登录
5 5
	var userid = $.cookie("userid");
6
	discover(10, 1,true);
7
	/*发现列表显示*/
8
	function discover(pageSize, pageNo,isbind) {
6
	var exculdeIds=[];
7
	var exculdeId2s=[];
8
	//轮播加载页面
9
	$.ajax({
10
		"url":"/data/inc/col_banner.html",
11
		"dataType":"html",
12
		"success":function(result){
13
			$(".slide-box").html(result);
14
			bannerRotate.bannerInit();// 轮播
15
			for(var i=0;i<5;i++){
16
				var dataId=$(".slide-item").eq(i).attr("data-id");
17
				exculdeIds.push(dataId);
18
				exculdeId2s.push(dataId);
19
			}
20
			$(".slide-list").on("click",".slide-item",function(){
21
				var columId=$(this).attr("data-col");
22
				$.ajax({
23
					"url":"/ajax/operation/statist/bannerClick",
24
					"type":"POST" ,
25
					"dataType":"json",
26
					"data":{"id":columId},
27
					"success" : function(data) {
28
						console.log(data)
29
					}
30
				})
31
			})
32
		}
33
	})
34
	importNews(exculdeIds);
35
	hotNews();
36
	var linkNum=0;//栏目类别导航
37
	if(linkNum==0){
38
		listShow(exculdeId2s,1,0,true);
39
	}
40
	$(document).bind("click",function(e){ 
41
		var target = $(e.target); 
42
		if(target.closest(".table-tab-item").length == 0){ 
43
			$(".table-drop").hide(); 
44
			$(".rightbtn").find("em").removeClass("unfoldtr").addClass("foldtr");
45
		} 
46
	})
47
	$(".table-tab-item").on("mouseenter","li.rightbtn",function(){
48
		$(this).find(".table-drop").show();
49
		$(this).find("em").removeClass("foldtr").addClass("unfoldtr");
50
	}).on("mouseleave","li.rightbtn",function(){
51
		$(this).find("em").removeClass("unfoldtr").addClass("foldtr");
52
		$(this).find(".table-drop").hide();
53
	})
54
	
55
	$(".table-drop").on("click","li",function(){
56
		$(".rightbtn").find("span").html($(this).text());
57
	})
58
	$(".table-tab-item").on("click","li",function(){
59
		if($(this).is('.table-tab-slide')){
60
			linkNum = $(this).index(".table-tab-slide");
61
			$(".table-tab-slide").removeClass("table-tab-slide-active");
62
			$(this).addClass("table-tab-slide-active");
63
			$(".table-drop").fadeOut(1000);
64
			$(".rightbtn").find("em").removeClass("unfoldtr").addClass("foldtr");
65
			$(".table-item-list").eq(linkNum).show().siblings().hide();
66
			if($(".rightbtn").find("li").is(".table-tab-slide-active")){
67
				$(".rightbtn").addClass("table-tab-slide-active");
68
			}else{
69
				$(".rightbtn").removeClass("table-tab-slide-active");
70
			}
71
			if(linkNum==0){
72
				listShow(exculdeId2s,1,0,true);
73
			}else{
74
				var thisNum=linkNum+2;
75
				listShow(exculdeIds,1,thisNum,true);
76
			}
77
		}else{
78
			$(this).find(".table-drop").show();
79
		}
80
	})
81
	
82
	//重大新闻
83
	function importNews(obj) {
9 84
		$.ajax({
10
			"url": "/ajax/article/findHot",
11
			"type": "get",
12
			"async": true,
13
			"data": {
14
				"pageSize": pageSize,
15
				"pageNo": pageNo
85
			"url" :"/ajax/article/find",
86
			"type" :  "GET" ,
87
			"dataType" : "json",
88
			"traditional": true,
89
			"async":false,
90
			"data" :{
91
				"exclude":obj,
92
				"col":9,//重大新闻
93
				"pageSize":5,
94
				"pageNo":1
95
			},
96
			"success" : function(data) {
97
				if (data.success){
98
					console.log(data)
99
					var $data=data.data.data;
100
					if($data.length>0){
101
						$("#importNews").parents(".conItem").removeClass("displayNone");
102
						var oLeng=$data.length<5?$data.length:5;
103
						for(var i=0;i<oLeng;i++) {
104
							var listLi=$('<li class="flexCenter"></li>').appendTo($("#importNews"));
105
							var str='<a href="articalShow.html?articleId='+$data[i].articleId+'"><p class="h2Font ellipsisSty-2"><em class="circlePre"></em>'+$data[i].articleTitle+'</p>'+
106
								'<span class="smalltip">'+commenTime($data[i].publishTime)+'</span></a></li>'
107
							$(str).appendTo(listLi);
108
							exculdeId2s.push($data[i].articleId);
109
						}
110
					}
111
				}
112
			},
113
			"error":function(){
114
				$.MsgBox.Alert('提示','链接服务器超时')
115
			}
116
		});
117
	}
118
	//热门文章
119
	function hotNews(){
120
		$.ajax({
121
			"url" :"/ajax/article/lastestPublished",
122
			"type" :  "GET" ,
123
			"dataType" : "json",
124
			"success" : function(data) {
125
				if (data.success){
126
					console.log(data)
127
					var $data=data.data;
128
					if($data.length>0){
129
						$("#hotNews").parents(".conItem").removeClass("displayNone");
130
						var oLeng=$data.length<10?$data.length:10;
131
						for(var i=0;i<oLeng;i++) {
132
							var listLi=$('<li class="flexCenter"></li>').appendTo($("#hotNews"));
133
							var str='<a href="articalShow.html?articleId='+$data[i].articleId+'"><p class="h2Font ellipsisSty-2">'+$data[i].articleTitle+'</p></a>'
134
							$(str).appendTo(listLi);		
135
						}
136
					}
137
				}
138
			},
139
			"error":function(){
140
				$.MsgBox.Alert('提示','链接服务器超时')
141
			}
142
		});
143
	}
144
	//栏目列表
145
	function listShow(obj,pageNo,colNum,isbind){
146
		$.ajax({
147
			"url" :"/ajax/article/find",
148
			"type" :  "GET" ,
149
			"dataType" : "json",
150
			"traditional": true,
151
			"data" :{
152
				"exclude":obj,
153
				"col":colNum,
154
				"pageSize":10,
155
				"pageNo":pageNo
16 156
			},
17 157
			"beforeSend": function() {
18 158
				$("#table-item").append('<img src="../images/loading.gif" class="loading"  style="position: absolute;left: 50%; top: 50%;" />');
19 159
			},
20
			"success": function(data) {
21
				 
22
				if(data.success && data.data != null) {
23
					var itemlist = '';
24
					$("#table-item").html("");
25
					for(var i = 0; i < data.data.data.length; i++) {
26
						var itemlist = '<li><div class="table-item-media">';
27
						itemlist += '<a href="" target="_blank" class="table-item-logo" id="userimg"></a>';
28
						itemlist += '<div class="table-item-name clearfix">';
29
						itemlist += '<a href="" target="_blank" id="userUrl"><span class="nameSpan" id="nameSpan"></span></a><em class="authiconNew " title=""></em>';
30
						itemlist += '<p><span class="timeLabel" id="time"></span></p></div></div>';
31
						itemlist += '<div class="table-item-cell"><a href="" target="_blank" id="newsurl">';
32
						itemlist += '<div class="table-item-img" id="newsimg"></div>';
33
						itemlist += '<div class="table-item-body">';
34
						itemlist += '<p class="ellipsisSty" id="centent"></p>';
35
						itemlist += '<p><em class="cmpLable" id="newstype"></em></p>';
36
						itemlist += '</div></a></div></li>';
37
						$itemlist = $(itemlist);
38
						$("#table-item").append($itemlist);
39
						var datalist = data.data.data[i];
40
						var type = datalist.type;
41
						$itemlist.find("#centent").text(datalist.name);
42
						$itemlist.find("#time").text(commenTime(datalist.createTime));
43
						if(type == 1) { //专家文章
44
							$itemlist.find("#newstype").text("文章");
45
							$itemlist.find("#newstype").addClass("articalLabel");
46
							$itemlist.find("#newsimg").addClass("artical-default");
47
							$itemlist.find("#userimg").addClass("userhead");
48
							$itemlist.find("#newsurl").attr("href", "articalShow.html?articleId=" + datalist.id );
49
							if(datalist.image) {
50
								$itemlist.find("#newsimg").attr("style", "background-image: url(/data/article/" + datalist.image + ");");
51
							}
52
							userFun(datalist.owner, $itemlist);
53
						} else if(type == 2) { //企业文章
54
							$itemlist.find("#newstype").text("文章");
55
							$itemlist.find("#newstype").addClass("articalLabel");
56
							$itemlist.find("#newsimg").addClass("artical-default");
57
							$itemlist.find("#userimg").addClass("cmplogohead");
58
							$itemlist.find("#newsurl").attr("href", "articalShow.html?oFlag=1&articleId=" + datalist.id );
59
							if(datalist.image) {
60
								$itemlist.find("#newsimg").attr("style", "background-image: url(/data/article/" + datalist.image + ");");
61
							}
62
							cmpFun(datalist.owner, $itemlist)
63
						} else if(type == 3) { //专家资源
64
							$itemlist.find("#newstype").text("资源");
65
							$itemlist.find("#newstype").addClass("resourceLabel");
66
							$itemlist.find("#newsimg").addClass("resource-default");
67
							$itemlist.find("#userimg").addClass("userhead");
68
							$itemlist.find("#newsurl").attr("href", "resourceShow.html?resourceId=" + datalist.id);
69
							if(datalist.image) {
70
								$itemlist.find("#newsimg").attr("style", "background-image: url(/data/resource/" + datalist.image + ");");
71
							}
72
							userFun(datalist.owner, $itemlist);
73
						} else if(type == 4) { //企业资源
74
							$itemlist.find("#newstype").text("资源");
75
							$itemlist.find("#newstype").addClass("resourceLabel");
76
							$itemlist.find("#newsimg").addClass("resource-default");
77
							$itemlist.find("#userimg").addClass("cmplogohead");
78
							$itemlist.find("#newsurl").attr("href", "resourceShow.html?resourceId=" + datalist.id);
79
							if(datalist.image) {
80
								$itemlist.find("#newsimg").attr("style", "background-image: url(/data/resource/" + datalist.image + ");");
160
			"success" : function(data) {
161
				if (data.success){
162
					console.log(data)
163
					var idItem=0;
164
					if(colNum>0){
165
						idItem=colNum-2;
166
					}
167
					//console.log(idItem)
168
					$("#table-item-"+idItem).html("");
169
					var strNo='<div class="nodatabox"><div class="nodata"><div class="picbox picNull"></div>'
170
						strNo+='<div class="txtbox"><p class="noContip">该栏目暂时没有任何动态</p></div></div></div>/div>'
171
					var dataStr=data.data.data;
172
					if(dataStr.length>0){
173
						for(var i=0;i<dataStr.length;i++) {
174
							if(colNum>0){
175
								var listLi=$('<li class="flexCenter"></li>').appendTo($("#table-item-"+idItem));
176
								otherColum(dataStr[i],listLi);
177
							}else{
178
								var listLi=$('<li class="flexCenter"></li>').appendTo($("#table-item-0"));
179
								lastestColum(dataStr[i],listLi);
81 180
							}
82
							cmpFun(datalist.owner, $itemlist)
83 181
						}
182
					}else{
183
						$("#table-item-"+idItem).html(strNo);
184
						$("#table-item-"+idItem).parent().find(".tcdPageCode").hide();
84 185
					}
85 186
					//分页
86 187
					if(isbind==true){
87
						$(".tcdPageCode").createPage({
188
						$("#table-item-"+idItem).parent().find(".tcdPageCode").off("click").createPage({
88 189
							pageCount: Math.ceil(data.data.total / 10),
89 190
							current: data.data.pageNo,
90 191
							backFn: function(p) {
91
								$("#table-item").html("");
92
								discover(10, p,false);
192
								$("#table-item-"+idItem).html("");
193
								listShow(obj,p,colNum,false);
93 194
								document.body.scrollTop = document.documentElement.scrollTop = 0;
94 195
							}
95 196
						});
96 197
					}
97 198
					$(".loading").remove();
98 199
				}
99

200
			},
201
			"error":function(){
202
				$.MsgBox.Alert('提示','链接服务器超时')
203
			}
204
		});
205
	}
206
	function lastestColum(dataStr,listLi){
207
		var madiaHead="../images/default-artical.jpg";
208
		if(dataStr.articleImg) {
209
			madiaHead ='/data/article/' + dataStr.articleImg ;
210
		}
211
		var sowU="";
212
		if(dataStr.pageViews!=0){
213
			if(dataStr.articleAgree!=0){
214
				sowU='<span>阅读量 '+dataStr.pageViews+'</span><span>赞 '+dataStr.articleAgree+'</span>'
215
			}else{
216
				sowU='<span>阅读量 '+dataStr.pageViews+'</span>'
217
			}
218
		}
219
		var columTag='';
220
		if(dataStr.colNum>0){
221
			columTag='<span class="columTag">'+columnType[dataStr.colNum].shortName+'</span>';
222
		}
223
		var strAdd = '';
224
		strAdd += '<a traget="_blank" href="articalShow.html?articleId='+ dataStr.articleId +'" class="flexCenter urlgo">';
225
		strAdd += '<div class="lefthead articalhead" style="background-image:url('+ madiaHead +')">'+columTag+'</div>';
226
		strAdd += '<div class="centercon centercon2"><p class="h1font ellipsisSty-2">'+ dataStr.articleTitle +'</p>';
227
		strAdd += '<div class="h2font showInfo clearfix">';
228
		strAdd += '<span class="ownerName"></span>';
229
		strAdd += '<span class="time">'+ commenTime(dataStr.publishTime) +'</span>';
230
		strAdd += sowU
231
		strAdd += '<span class="comment"></span>';
232
		strAdd += '</div></div>';
233
		strAdd += '</a>';
234
		
235
		var $strAdd = $(strAdd);
236
		listLi.append( $strAdd);
237
		commentnum(dataStr.articleId, $strAdd) //文章评论数	
238
		if(dataStr.articleType==1){
239
			userFun(dataStr.professorId, $strAdd);
240
		}else{
241
			cmpFun(dataStr.orgId, $strAdd);
242
		}
243
	}
244
	
245
	function otherColum(dataStr,listLi){
246
		var madiaHead="../images/default-artical.jpg";
247
		if(dataStr.articleImg) {
248
			madiaHead ='/data/article/' + dataStr.articleImg ;
249
		}
250
		var sowU="";
251
		if(dataStr.pageViews!=0){
252
			if(dataStr.articleAgree!=0){
253
				sowU='<span>阅读量 '+dataStr.pageViews+'</span><span>赞 '+dataStr.articleAgree+'</span>'
254
			}else{
255
				sowU='<span>阅读量 '+dataStr.pageViews+'</span>'
256
			}
257
		}
258
		var strAdd = '';
259
		strAdd += '<a traget="_blank" href="articalShow.html?articleId='+ dataStr.articleId +'" class="flexCenter urlgo">';
260
		strAdd += '<div class="lefthead articalhead" style="background-image:url('+ madiaHead +')"></div>';
261
		strAdd += '<div class="centercon centercon2"><p class="h1font ellipsisSty-2">'+ dataStr.articleTitle +'</p>';
262
		strAdd += '<div class="h2font showInfo clearfix">';
263
		strAdd += '<span class="ownerName"></span>';
264
		strAdd += '<span class="time">'+ commenTime(dataStr.publishTime) +'</span>';
265
		strAdd += sowU
266
		strAdd += '<span class="comment"></span>';
267
		strAdd += '</div></div>';
268
		strAdd += '</a>';
269
		
270
		var $strAdd = $(strAdd);
271
		listLi.append($strAdd);
272
		commentnum(dataStr.articleId, $strAdd) //文章评论数	
273
		if(dataStr.articleType==1){
274
			userFun(dataStr.professorId, $strAdd);
275
		}else{
276
			cmpFun(dataStr.orgId, $strAdd);
277
		}
278
	}
279
	//查文章留言数
280
	function commentnum(articleId, $itemlist) {
281
		$.ajax({
282
			"url": "/ajax/leaveWord/lwCount",
283
			"type": "GET",
284
			"dataType": "json",
285
			"async": false,
286
			"data": {
287
				"articleId": articleId
288
			},
289
			"success": function(data) {
290
				if(data.success) {
291
					if(data.data>0){
292
						$itemlist.find(".comment").text("留言 " + data.data);
293
					}
294
				}
100 295
			},
101 296
			"error": function() {
102 297
				$.MsgBox.Alert('提示', '链接服务器超时')
103 298
			}
104 299
		});
105 300
	}
106

107 301
	/*用户信息*/
108
	function userFun(id, $itemlist) {
302
	function userFun(id,$listItem) {
109 303
		$.ajax({
110 304
			"url": "/ajax/professor/baseInfo/" + id,
111 305
			"type": "get",
112 306
			"async": true,
113 307
			"success": function(data) {
114
				 
115 308
				if(data.success && data.data) {
116
					$itemlist.find("#nameSpan").text(data.data.name);
117
					if(data.data.hasHeadImage == 1) {
118
						$itemlist.find("#userimg").attr("style", "background-image: url(/images/head/" + data.data.id + "_m.jpg);");
119
					}
120
					$itemlist.find("#userimg").attr("href", "userInforShow.html?professorId=" + data.data.id);
121
					$itemlist.find("#userUrl").attr("href", "userInforShow.html?professorId=" + data.data.id);
122
					var userType = autho(data.data.authType, data.data.orgAuth, data.data.authStatus);
123
					$itemlist.find(".authiconNew").attr("title", userType.title);
124
					$itemlist.find(".authiconNew").addClass(userType.sty);
125

309
					$listItem.find(".ownerName").text(data.data.name);
126 310
				}
127 311
			},
128 312
			"error": function() {
@ -130,9 +314,8 @@ $(function() {
130 314
			}
131 315
		});
132 316
	}
133

134 317
	/*企业用户信息*/
135
	function cmpFun(id, $itemlist) {
318
	function cmpFun(id,$listItem) {
136 319
		$.ajax({
137 320
			"url": "/ajax/org/" + id,
138 321
			"type": "get",
@ -140,25 +323,10 @@ $(function() {
140 323
			"success": function(data) {
141 324
				if(data.success && data.data) {
142 325
					if(data.data.forShort) {
143
						$itemlist.find("#nameSpan").text(data.data.forShort);
326
						$listItem.find(".ownerName").text(data.data.forShort);
144 327
					}else{
145
						$itemlist.find("#nameSpan").text(data.data.name);
328
						$listItem.find(".ownerName").text(data.data.name);
146 329
					}
147
					$itemlist.find("#userimg").attr("style", "background:#fff");
148
					$itemlist.find("#userimg").html('<div class="boxBlock"><img class="boxBlockimg companyImg" src=""></div>');
149
					if(data.data.hasOrgLogo) {
150
						$itemlist.find(".companyImg").attr("src", "/images/org/" + data.data.id + ".jpg");
151
					}else{
152
						$itemlist.find(".companyImg").attr("src", "/images/default-icon.jpg");
153
					}
154
					$itemlist.find("#userimg").attr("href", "cmpInforShow.html?orgid=" + data.data.id);
155
					$itemlist.find("#userUrl").attr("href", "cmpInforShow.html?orgid=" + data.data.id);
156
					if(data.data.authStatus==3){
157
						$itemlist.find(".authiconNew").addClass("authicon-com-ok").attr("title", "认证企业");;	
158
					}/*else{
159
						$itemlist.find(".authiconNew").addClass("authicon-com-no").attr("title", "未认证企业");;
160
					}*/
161
				
162 330
				}
163 331
			},
164 332
			"error": function() {
@ -166,7 +334,4 @@ $(function() {
166 334
			}
167 335
		});
168 336
	}
169

170
	
171

172 337
})

+ 9 - 3
js/paperList.js

@ -114,15 +114,21 @@ function lewordNum(pId) {
114 114
 			oTime="导入于 "+TimeTr($data[i].assTime);
115 115
 			pageview='<li><span>阅读量 '+$data[i].pageViews+'</span></li>';
116 116
 			oHtml="paperShow.html"
117
 			var thub='<li><span>赞 '+isAgreeNum($data[i].id)+'</span></li>';
118
 			var lew='<li><span>留言 '+lewordNum($data[i].id)+'</span></li>';
117
 			var thub="";
118
 			if(isAgreeNum($data[i].id)!=0){
119
 				thub='<li><span>赞 '+isAgreeNum($data[i].id)+'</span></li>';
120
 			}
121
 			var lew="";
122
 			if(lewordNum($data[i].id)!=0){
123
 			    lew='<li><span>留言 '+lewordNum($data[i].id)+'</span></li>';
124
 			}
119 125
	 		var oStr='<li '+oLi+'>'+
120 126
				'<a href="'+oHtml+'?paperId='+$data[i].id+'" target="_blank">'+
121 127
					'<div class="madiaHead paperHead"></div>'	+						
122 128
						'<div class="madiaInfo">'+					
123 129
							'<p class="h1Font ellipsisSty">'+$data[i].name+'</p>'+						
124 130
							'<ul class="h2Font clearfix">'+
125
								'<li><span>'+oTime+'</span></li>'+pageview+thub+lew
131
								'<li><span>'+oTime+'</span></li>'+pageview+thub+lew+
126 132
							'</ul>'+
127 133
						'</div>'+
128 134
				'</a>'+

+ 1 - 1
js/paperModify.js

@ -101,7 +101,7 @@ $(document).ready(function() {
101 101
											var str="";
102 102
											str +='<li class="flexCenter" data-id="'+ showPro.id +'">'
103 103
											str +='<div class="madiaHead useHead" style="background-image:url('+ imgbg +')"></div>'
104
											str +='<div class="madiaInfo" style="margin-top:-8px">'
104
											str +='<div class="madiaInfo" style="margin-top:-4px">'
105 105
											str +='<p class="ellipsisSty"><span class="h1Font">'+ showPro.name +'</span><em class="authiconNew '+ authTy +'" title="'+ authTit +'"></em></p>'
106 106
											str +='<p class="h2Font ellipsisSty">'+ baseInfo +'</p>'
107 107
											str +='</div></li>';

+ 1 - 1
js/paperShow.js

@ -165,7 +165,7 @@ $(document).ready(function() {
165 165
											var str="";
166 166
											str +='<li class="flexCenter"><a href="" class="'+ ifPoint +'" data-id="'+ showPro.id +'">'
167 167
											str +='<div class="madiaHead useHead" style="background-image:url('+ imgbg +')"></div>'
168
											str +='<div class="madiaInfo" style="margin-top:-8px" >'
168
											str +='<div class="madiaInfo" style="margin-top:-4px" >'
169 169
											str +='<p class="ellipsisSty"><span class="h1Font">'+ showPro.name +'</span><em class="authiconNew '+ authTy +'" title="'+ authTit +'"></em></p>'
170 170
											str +='<p class="h2Font ellipsisSty">'+ baseInfo +'</p>'
171 171
											str +='</div></a>';

+ 9 - 4
js/patentList.js

@ -113,16 +113,21 @@ function lewordNum(pId) {
113 113
 			oTime="导入于 "+TimeTr($data[i].assTime);
114 114
 			pageview='<li><span>阅读量 '+$data[i].pageViews+'</span></li>';
115 115
 			oHtml="patentShow.html"
116
 			var thub='<li><span>赞 '+isAgreeNum($data[i].id)+'</span></li>';
117
 			var lew='<li><span>留言 '+lewordNum($data[i].id)+'</span></li>';
118
 			
116
 			var thub="";
117
 			if(isAgreeNum($data[i].id)!=0){
118
 				thub='<li><span>赞 '+isAgreeNum($data[i].id)+'</span></li>';
119
 			}
120
 			var lew="";
121
 			if(lewordNum($data[i].id)!=0){
122
 			    lew='<li><span>留言 '+lewordNum($data[i].id)+'</span></li>';
123
 			}
119 124
	 	var oStr='<li '+oLi+'>'+
120 125
				'<a href="'+oHtml+'?patentId='+$data[i].id+'" target="_blank">'+
121 126
					'<div class="madiaHead patentHead"></div>'	+						
122 127
						'<div class="madiaInfo">'+					
123 128
							'<p class="h1Font ellipsisSty">'+$data[i].name+'</p>'+						
124 129
							'<ul class="h2Font clearfix">'+
125
								'<li><span>'+oTime+'</span></li>'+pageview+thub+lew
130
								'<li><span>'+oTime+'</span></li>'+pageview+thub+lew+
126 131
							'</ul>'+
127 132
						'</div>'+
128 133
				'</a>'+

+ 1 - 1
js/patentShow.js

@ -236,7 +236,7 @@ $(document).ready(function() {
236 236
		oId = $data.id;
237 237
		var otr = '<li class="flexCenter"><a href="" data-id="' + oId + '">' +
238 238
			'<div class="madiaHead useHead" id="userimg" style="background-image:url(' + img + ')"></div>' +
239
			'<div class="madiaInfo" style="margin-top:-8px">' +
239
			'<div class="madiaInfo" style="margin-top:-4px">' +
240 240
			'<p class="ellipsisSty">' +
241 241
			'<span class="h1Font" id="name">' + $data.name + '</span><em class="authiconNew ' + oClass.sty + '" title="' + oClass.title + '"></em>' +
242 242
			'</p>' +

+ 42 - 14
js/resourceIssue.js

@ -9,6 +9,7 @@ $(document).ready(function() {
9 9
	var userid = $.cookie("userid");
10 10
	var temp = [];
11 11
	var array=[];
12
	var hbur,hburEnd;
12 13
	ue = UE.getEditor('editor', {});
13 14
	/*获取资源信息*/
14 15
	function getRecourceMe() {
@ -173,11 +174,15 @@ $(document).ready(function() {
173 174
	});
174 175
	uploader.onError = function(code) {
175 176
		console.log(code)
176
		$.MsgBox.Alert('提示', '请上传jpg、png格式的图片,大小不超过2M')
177
		$.MsgBox.Alert('提示', '请上传jpg、jpeg、png格式的图片,大小不超过2M')
177 178
	};
178 179
	uploader.on('uploadSuccess', function(file, data) {
179
		uploader.removeFile(fileId);
180
		var cacheImageKey = temp.push(data.data[0].cacheKey);
180
		if(data.success) {
181
				uploader.removeFile(fileId);
182
				var cacheImageKey = temp.push(data.data[0].cacheKey);
183
		}else{
184
			$.MsgBox.Alert('提示', '只支持jpeg/jpg/png格式的图片');
185
		}
181 186
	});
182 187
	/*删除图片*/
183 188
	$("#fileList").on("click", ".cancel", function() {
@ -219,41 +224,51 @@ $(document).ready(function() {
219 224
			$("#keywordPrompt").text('');
220 225
		},
221 226
		keyup: function() {
227
			var ti=$(this).val();
228
			hbur=ti;
222 229
			var lNum=$.trim($(this).val()).length;
223 230
			console.log(lNum);
224 231
			if(lNum > 15) {
225 232
				$(this).val($(this).val().substr(0, 15));
226 233
			} else if(0 < lNum&& lNum < 15) {
227 234
					$("#addKeyword").show();
235
					setTimeout(function(){
236
						if( ti===hbur && ti!== hburEnd) {
237
							var tt=ti;
238
							hburEnd=tt;
228 239
						$.ajax({
229 240
						"url": "/ajax/dataDict/qaHotKey",
230 241
						"type": "GET",
231 242
						"success": function(data) {
232 243
							console.log(data);
233 244
							if(data.success) {
234
								if(data.data.length==0) {
235
									$("#keyList").addClass("displayNone");
236
									$("#keyList ul").html("");
237
								}else{
238
									$("#keyList").removeClass("displayNone");
239
									var oSr="";
240
									for(var i=0;i<5;i++) {
241
										oSr+='<li><p class="h2Font">'+data.data[i].caption+'</p></li>'
245
								if(hburEnd == tt){
246
									if(data.data.length==0) {
247
										$("#keyList").addClass("displayNone");
248
										$("#keyList ul").html("");
249
									}else{
250
										$("#keyList").removeClass("displayNone");
251
										var oSr="";
252
										for(var i=0;i<Math.min(data.data.length,5);i++) {
253
											oSr+='<li><p class="h2Font">'+data.data[i].caption+'</p></li>'
254
										}
255
										$("#keyList ul").html(oSr);
242 256
									}
243
									$("#keyList ul").html(oSr);
244
								}
257
								}	
245 258
							}else {
246 259
								$("#keyList ul").html("");
247 260
							}
248 261
						},
249 262
						"data": {
250
							"key":$(this).val()
263
							"key":$('#keywordName').val()
251 264
						},
252 265
						dataType: "json",
253 266
						'error':function() {
254 267
							$.MsgBox.Alert('提示', '服务器连接超时!');
255 268
						}
256 269
				});
270
				}
271
				},500)
257 272
			}else if(lNum == 0){
258 273
				 $("#addKeyword").hide();
259 274
				 $("#keyList ul").html("");
@ -400,6 +415,9 @@ $(document).ready(function() {
400 415
	limitObj("#remarkContent",200)
401 416
	/*发布*/
402 417
	$(".goFabu").click(function(){
418
		if($(this).hasClass("disableLi")){
419
			return;
420
		}
403 421
		var  oYes=term();
404 422
		if(oYes==0) {
405 423
			return;
@ -408,6 +426,9 @@ $(document).ready(function() {
408 426
	})
409 427
	/*预览*/
410 428
	$("#oPreview").click(function(){
429
		if($(this).hasClass("disableLi")){
430
			return;
431
		}
411 432
		var  oYes=term();
412 433
		if(oYes==0) {
413 434
			return;
@ -416,6 +437,9 @@ $(document).ready(function() {
416 437
	})
417 438
	/*存草稿*/
418 439
	$("#oDraft").click(function(){
440
		if($(this).hasClass("disableLi")){
441
			return;
442
		}
419 443
		var  oYes=term();
420 444
		if(oYes==0) {
421 445
			return;
@ -463,6 +487,7 @@ $(document).ready(function() {
463 487
	}
464 488
	/*发布函数*/
465 489
	function ajsPost(pa1,pa2) {
490
		$(".operateBlock").find("li").addClass("disableLi");
466 491
		var oUrl="/ajax/resource/save";
467 492
		if(pa1) {
468 493
			oUrl=pa1
@ -488,6 +513,9 @@ $(document).ready(function() {
488 513
			$.ajax({
489 514
					"url": oUrl,
490 515
					"type": "POST",
516
					"complete":function(){
517
						$(".operateBlock").find("li").removeClass("disableLi");
518
					},
491 519
					"success": function(data) {
492 520
						console.log(data)
493 521
						if(data.success) {

+ 1 - 1
js/resourceList.js

@ -74,7 +74,7 @@ $(document).ready(function(){
74 74
	 			oLi="class='draftList'"
75 75
	 		}else{
76 76
	 			oTime="发布于 "+TimeTr($data[i].publishTime);
77
	 			pageview='<li><span>阅读量 '+$data[i].pageViews+'</span></li>';
77
	 			pageview='<li><span>浏览量 '+$data[i].pageViews+'</span></li>';
78 78
	 			oHtml="resourceShow.html"
79 79
	 		}
80 80
	 	var oStr='<li '+oLi+'>'+

+ 4 - 4
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
		}
@ -640,4 +640,4 @@ $(document).ready(function() {
640 640
	})
641 641
	
642 642
	
643
})
643
})

+ 19 - 1
js/scrollfix.js

@ -26,6 +26,7 @@
26 26
			var originalZIndex;
27 27
			var lastOffsetLeft = -1;
28 28
			var isUnfixed = true;
29
			var o_h =(window.document.body || window.document.documentElement).scrollHeight;
29 30
			//如果没有找到节点,不进行处理
30 31
			if (obj.length <= 0) {
31 32
				return;
@ -191,11 +192,28 @@
191 192
			resetScroll();
192 193
			// }
193 194
			$(window).on("scroll", function() {
195
				var n_h=(window.document.body || window.document.documentElement).scrollHeight;
194 196
				if (Timer) {
195 197
					clearTimeout(Timer);
196 198
				}
197
				Timer = setTimeout(onScroll, 0);
199
				if(n_h === o_h){
200
					Timer = setTimeout(onScroll, 0);
201
				}else{
202
					o_h = n_h;
203
					Timer = setTimeout(function(){
204
						isUnfixed=false;
205
						resetScroll();
206
						onScroll();
207
					},0);
208
				}
209
					
198 210
			});
211
//			$(window).on("scroll", function() {
212
//				if (Timer) {
213
//					clearTimeout(Timer);
214
//				}
215
//				Timer = setTimeout(onScroll, 0);
216
//			});
199 217
			// 当发现调整屏幕大小时,重新执行代码
200 218
			$(window).on("resize", function() {
201 219
				if (Timer) {

+ 44 - 42
js/searchNew.js

@ -13,6 +13,7 @@ $(function() {
13 13
		expertListVal(keyt,subject,industry,address,authType,20,1,true);
14 14
	}else{
15 15
		num = tagnum;
16
		keyt=searchContent;
16 17
		if(num==1){
17 18
			$(".choosediv.filterdiv li").eq(0).addClass("liactive").siblings().removeClass("liactive");
18 19
			$(".listdiv .listbox").eq(0).show().siblings().hide();
@ -22,27 +23,27 @@ $(function() {
22 23
			$(".choosediv.filterdiv li").eq(2).addClass("liactive").siblings().removeClass("liactive");
23 24
			$(".listdiv .listbox").eq(2).show().siblings().hide();
24 25
			$(".searchsome").attr("placeholder","请输入资源名称、用途、发布者或相关关键词");
25
			resourceListVal(20, 1,true);
26
			resourceListVal(keyt,20, 1,true);
26 27
		}else if(num==3){
27 28
			$(".choosediv.filterdiv li").eq(5).addClass("liactive").siblings().removeClass("liactive");
28 29
			$(".listdiv .listbox").eq(5).show().siblings().hide();
29 30
			$(".searchsome").attr("placeholder","请输入文章标题、作者或相关关键词");
30
			articalListVal(20, 1,true);
31
			articalListVal(keyt,20, 1,true);
31 32
		}else if(num==4){
32 33
			$(".choosediv.filterdiv li").eq(1).addClass("liactive").siblings().removeClass("liactive");
33 34
			$(".listdiv .listbox").eq(1).show().siblings().hide();
34 35
			$(".searchsome").attr("placeholder","请输入企业名称、产品名称或相关关键词");
35
			companyListVal(20,1,true);
36
			companyListVal(keyt,20,1,true);
36 37
		}else if(num==5){
37 38
			$(".choosediv.filterdiv li").eq(3).addClass("liactive").siblings().removeClass("liactive");
38 39
			$(".listdiv .listbox").eq(3).show().siblings().hide();
39 40
			$(".searchsome").attr("placeholder","请输入专利名称、发明人或相关关键词");
40
			patentListVal(20, 1,true);
41
			patentListVal(keyt,20, 1,true);
41 42
		}else if(num==6){
42 43
			$(".choosediv.filterdiv li").eq(4).addClass("liactive").siblings().removeClass("liactive");
43 44
			$(".listdiv .listbox").eq(4).show().siblings().hide();
44 45
			$(".searchsome").attr("placeholder","请输入论文题目、作者或相关关键词");
45
			paperListVal(20, 1,true);
46
			paperListVal(keyt,20, 1,true);
46 47
		}
47 48
	}
48 49
	
@ -103,33 +104,34 @@ $(function() {
103 104
			if(num==1){
104 105
				expertBox();
105 106
			}else if(num==2){
106
				resourceListVal(20, 1,true);
107
				resourceListVal(keyt,20, 1,true);
107 108
			}else if(num==3){
108
				articalListVal(20, 1,true);
109
				articalListVal(keyt,20, 1,true);
109 110
			}else if(num==4){
110
				companyListVal(20, 1,true);
111
				companyListVal(keyt,20, 1,true);
111 112
			}else if(num==5){
112
				patentListVal(20, 1,true);
113
				patentListVal(keyt,20, 1,true);
113 114
			}else if(num==6){
114
				paperListVal(20, 1,true);
115
				paperListVal(keyt,20, 1,true);
115 116
			}
116 117
		}
117 118
	})
118 119
	
119 120
	$(".searchgo").on("click",function(e) {
120 121
		num = $(".liactive").attr("data-id");
122
		keyt =$(".searchsome").val()
121 123
		if(num==1){
122 124
			expertBox();
123 125
		}else if(num==2){
124
			resourceListVal(20, 1,true);
126
			resourceListVal(keyt,20, 1,true);
125 127
		}else if(num==3){
126
			articalListVal(20, 1,true);
128
			articalListVal(keyt,20, 1,true);
127 129
		}else if(num==4){
128
			companyListVal(20, 1,true);
130
			companyListVal(keyt,20, 1,true);
129 131
		}else if(num==5){
130
			patentListVal(20, 1,true);
132
			patentListVal(keyt,20, 1,true);
131 133
		}else if(num==6){
132
			paperListVal(20, 1,true);
134
			paperListVal(keyt,20, 1,true);
133 135
		}
134 136
	})
135 137
	
@ -139,7 +141,7 @@ $(function() {
139 141
140 142
141 143
	function expertBox(){
142
		keyt = $(".searchsome").val();
144
		keyt = keyt;
143 145
		var  subjectVal= $("#academicField li.filterCurrent").text();
144 146
		if(subjectVal=="不限"){
145 147
			subject = "";
@ -176,19 +178,19 @@ $(function() {
176 178
				expertBox();
177 179
				$(".searchsome").attr("placeholder","请输入专家姓名、机构、研究方向或相关关键词");
178 180
			}else if(index==1){
179
				companyListVal(20, 1,true);
181
				companyListVal(keyt,20, 1,true);
180 182
				$(".searchsome").attr("placeholder","请输入企业名称、产品名称或相关关键词");
181 183
			}else if(index==2){
182
				resourceListVal(20, 1,true);
184
				resourceListVal(keyt,20, 1,true);
183 185
				$(".searchsome").attr("placeholder","请输入资源名称、用途、发布者或相关关键词");
184 186
			}else if(index==3){
185
				patentListVal(20, 1,true);
187
				patentListVal(keyt,20, 1,true);
186 188
				$(".searchsome").attr("placeholder","请输入专利名称、发明人或相关关键词");
187 189
			}else if(index==4){
188
				paperListVal(20, 1,true);
190
				paperListVal(keyt,20, 1,true);
189 191
				$(".searchsome").attr("placeholder","请输入论文题目、作者或相关关键词");
190 192
			}else if(index==5){
191
				articalListVal(20, 1,true);
193
				articalListVal(keyt,20, 1,true);
192 194
				$(".searchsome").attr("placeholder","请输入文章标题、作者或相关关键词");
193 195
			}
194 196
	   });
@ -393,7 +395,7 @@ $(function() {
393 395
						}
394 396
						//分页
395 397
						if(isexpert==true){
396
							$(".expertPageCode").createPage({
398
							$(".expertPageCode").off("click").createPage({
397 399
								pageCount: Math.ceil(data.data.total / 20),
398 400
								current: data.data.pageNo,
399 401
								backFn: function(p) {
@ -418,13 +420,13 @@ $(function() {
418 420
		});
419 421
	}
420 422
	//企业
421
	function companyListVal(pageSize,pageNo,isbind) {
423
	function companyListVal(keyt,pageSize,pageNo,isbind) {
422 424
		$.ajax({
423 425
			"url": "/ajax/org/find/pq",
424 426
			"type": "get",
425 427
			"async": true,
426 428
			"data": {
427
				"kw":$(".searchsome").val(),
429
				"kw":keyt,
428 430
				"pageSize": pageSize,
429 431
				"pageNo": pageNo
430 432
			},
@ -478,12 +480,12 @@ $(function() {
478 480
						}
479 481
						//分页
480 482
						if(isbind==true){
481
							$(".companyPageCode").createPage({
483
							$(".companyPageCode").off("click").createPage({
482 484
								pageCount: Math.ceil(data.data.total / 20),
483 485
								current: data.data.pageNo,
484 486
								backFn: function(p) {
485 487
									$("#companyList").html("");
486
									companyListVal(20, p,false);
488
									companyListVal(keyt,20, p,false);
487 489
									document.body.scrollTop = document.documentElement.scrollTop = 0;
488 490
								}
489 491
							});
@ -503,13 +505,13 @@ $(function() {
503 505
		});
504 506
	}
505 507
	//文章
506
	function articalListVal(pageSize, pageNo,isbind) {
508
	function articalListVal(keyt,pageSize, pageNo,isbind) {
507 509
		$.ajax({
508 510
			"url": "/ajax/article/firstpq",
509 511
			"type": "get",
510 512
			"async": true,
511 513
			"data": {
512
				"key":$(".searchsome").val(),
514
				"key":keyt,
513 515
				"pageSize": pageSize,
514 516
				"pageNo": pageNo
515 517
			},
@ -569,12 +571,12 @@ $(function() {
569 571
						}
570 572
						//分页
571 573
						if(isbind==true){
572
							$(".articalPageCode").createPage({
574
							$(".articalPageCode").off("click").createPage({
573 575
								pageCount: Math.ceil(data.data.total / 20),
574 576
								current: data.data.pageNo,
575 577
								backFn: function(p) {
576 578
									$("#articalList").html("");
577
									articalListVal(20, p,false);
579
									articalListVal(keyt,20, p,false);
578 580
									document.body.scrollTop = document.documentElement.scrollTop = 0;
579 581
								}
580 582
							});
@ -616,13 +618,13 @@ $(function() {
616 618
		});
617 619
	}
618 620
	//资源
619
	function resourceListVal(pageSize, pageNo,isresource) {
621
	function resourceListVal(keyt,pageSize, pageNo,isresource) {
620 622
		$.ajax({
621 623
			"url": "/ajax/resource/firstpq",
622 624
			"type": "get",
623 625
			"async": true,
624 626
			"data": {
625
				"key":$(".searchsome").val(),
627
				"key":keyt,
626 628
				"pageSize": pageSize,
627 629
				"pageNo": pageNo
628 630
			},
@ -676,12 +678,12 @@ $(function() {
676 678
						}
677 679
						//分页
678 680
						if(isresource==true){
679
							$(".resourcePageCode").createPage({
681
							$(".resourcePageCode").off("click").createPage({
680 682
								pageCount: Math.ceil(data.data.total / 20),
681 683
								current: data.data.pageNo,
682 684
								backFn: function(p) {
683 685
									$("#resourceList").html("");
684
									resourceListVal(20, p,false);
686
									resourceListVal(keyt,20, p,false);
685 687
									document.body.scrollTop = document.documentElement.scrollTop = 0;
686 688
								}
687 689
							});
@ -701,13 +703,13 @@ $(function() {
701 703
		});
702 704
	}
703 705
	//专利
704
	function patentListVal(pageSize, pageNo,isbind) {
706
	function patentListVal(keyt,pageSize, pageNo,isbind) {
705 707
		$.ajax({
706 708
			"url": "/ajax/ppatent/pq",
707 709
			"type": "get",
708 710
			"async": true,
709 711
			"data": {
710
				"qw":$(".searchsome").val(),
712
				"qw":keyt,
711 713
				"pageSize": pageSize,
712 714
				"pageNo": pageNo
713 715
			},
@ -736,12 +738,12 @@ $(function() {
736 738
						}
737 739
						//分页
738 740
						if(isbind==true){
739
							$(".patentPageCode").createPage({
741
							$(".patentPageCode").off("click").createPage({
740 742
								pageCount: Math.ceil(data.data.total / 20),
741 743
								current: data.data.pageNo,
742 744
								backFn: function(p) {
743 745
									$("#patentList").html("");
744
									patentListVal(20, p,false);
746
									patentListVal(keyt,20, p,false);
745 747
									document.body.scrollTop = document.documentElement.scrollTop = 0;
746 748
								}
747 749
							});
@ -761,13 +763,13 @@ $(function() {
761 763
		});
762 764
	}
763 765
	//论文
764
	function paperListVal(pageSize, pageNo,isbind) {
766
	function paperListVal(keyt,pageSize, pageNo,isbind) {
765 767
		$.ajax({
766 768
			"url": "/ajax/ppaper/pq",
767 769
			"type": "get",
768 770
			"async": true,
769 771
			"data": {
770
				"qw":$(".searchsome").val(),
772
				"qw":keyt,
771 773
				"pageSize": pageSize,
772 774
				"pageNo": pageNo
773 775
			},
@ -808,12 +810,12 @@ $(function() {
808 810
						}
809 811
						//分页
810 812
						if(isbind==true){
811
							$(".paperPageCode").createPage({
813
							$(".paperPageCode").off("click").createPage({
812 814
								pageCount: Math.ceil(data.data.total / 20),
813 815
								current: data.data.pageNo,
814 816
								backFn: function(p) {
815 817
									$("#paperList").html("");
816
									paperListVal(20, p,false);
818
									paperListVal(keyt,20, p,false);
817 819
									document.body.scrollTop = document.documentElement.scrollTop = 0;
818 820
								}
819 821
							});

+ 5 - 5
js/ueditor/lang/zh-cn/zh-cn.js

@ -69,7 +69,7 @@ UE.I18N['zh-cn'] = {
69 69
    },
70 70
    'autoupload': {
71 71
        'exceedSizeError': '文件大小超出限制',
72
        'exceedTypeError': '文件格式不允许',
72
        'exceedTypeError': '只能上传jpeg/jpg/png/bmp/gif格式的图片',
73 73
        'jsonEncodeError': '服务器返回格式错误',
74 74
        'loading':"正在上传...",
75 75
        'loadError':"上传错误",
@ -77,7 +77,7 @@ UE.I18N['zh-cn'] = {
77 77
    },
78 78
    'simpleupload':{
79 79
        'exceedSizeError': '文件大小超出限制',
80
        'exceedTypeError': '文件格式不允许',
80
        'exceedTypeError': '只能上传jpeg/jpg/png/bmp/gif格式的图片',
81 81
        'jsonEncodeError': '服务器返回格式错误',
82 82
        'loading':"正在上传...",
83 83
        'loadError':"上传错误",
@ -297,7 +297,7 @@ UE.I18N['zh-cn'] = {
297 297
        'errorNotSupport': 'WebUploader 不支持您的浏览器!如果你使用的是IE浏览器,请尝试升级 flash 播放器。',
298 298
        'errorLoadConfig': '后端配置项没有正常加载,上传插件不能正常使用!',
299 299
        'errorExceedSize':'文件大小超出',
300
        'errorFileType':'文件格式不允许',
300
        'errorFileType':'只能上传jpeg/jpg/png/bmp/gif格式的图片',
301 301
        'errorInterrupt':'文件传输中断',
302 302
        'errorUploadRetry':'上传失败,请重试',
303 303
        'errorHttp':'http请求错误',
@ -334,7 +334,7 @@ UE.I18N['zh-cn'] = {
334 334
        'errorNotSupport': 'WebUploader 不支持您的浏览器!如果你使用的是IE浏览器,请尝试升级 flash 播放器。',
335 335
        'errorLoadConfig': '后端配置项没有正常加载,上传插件不能正常使用!',
336 336
        'errorExceedSize':'文件大小超出',
337
        'errorFileType':'文件格式不允许',
337
        'errorFileType':'只能上传jpeg/jpg/png/bmp/gif格式的图片',
338 338
        'errorInterrupt':'文件传输中断',
339 339
        'errorUploadRetry':'上传失败,请重试',
340 340
        'errorHttp':'http请求错误',
@ -420,7 +420,7 @@ UE.I18N['zh-cn'] = {
420 420
        'errorNotSupport': 'WebUploader 不支持您的浏览器!如果你使用的是IE浏览器,请尝试升级 flash 播放器。',
421 421
        'errorLoadConfig': '后端配置项没有正常加载,上传插件不能正常使用!',
422 422
        'errorExceedSize':'文件大小超出',
423
        'errorFileType':'文件格式不允许',
423
        'errorFileType':'只能上传jpeg/jpg/png/bmp/gif格式的图片',
424 424
        'errorInterrupt':'文件传输中断',
425 425
        'errorUploadRetry':'上传失败,请重试',
426 426
        'errorHttp':'http请求错误',

+ 7 - 1
js/ueditor/ueditor.all.js

@ -23830,6 +23830,7 @@ UE.plugin.register('autoupload', function (){
23830 23830
                if (json.state == 'SUCCESS' && json.url) {
23831 23831
                    successHandler(json);
23832 23832
                } else {
23833
                	alert(1111);
23833 23834
                    errorHandler(json.state);
23834 23835
                }
23835 23836
            }catch(er){
@ -24533,7 +24534,12 @@ UE.plugin.register('simpleupload', function (){
24533 24534
                            loader.removeAttribute('id');
24534 24535
                            domUtils.removeClasses(loader, 'loadingclass');
24535 24536
                        } else {
24536
                            showErrorLoader && showErrorLoader(json.state);
24537
                        	if(json.state=="文件大小超出限制") {
24538
                        		showErrorLoader && showErrorLoader("文件大小不能超过2M");
24539
                        	}else{
24540
                        		showErrorLoader && showErrorLoader(json.state);
24541
                        	}
24542
                            
24537 24543
                        }
24538 24544
                    }catch(er){
24539 24545
                        showErrorLoader && showErrorLoader(me.getLang('simpleupload.loadError'));

+ 6 - 5
js/userInforShow.js

@ -691,7 +691,7 @@ $(function() {
691 691
							var strAdd = '';
692 692
							strAdd += '<li><a traget="_blank" href="resourceShow.html?resourceId='+ dataStr[i].resourceId +'" class="flexCenter urlgo">';
693 693
							strAdd += '<div class="madiaHead resouseHead" style="background-image:url('+ madiaHead +')"></div>';
694
							strAdd += '<div class="madiaInfo"><p class="h1Font ellipsisSty-2">'+ dataStr[i].resourceName +'</p><p class="h2Font ellipsisSty">应用用途:'+ dataStr[i].supportedServices+'</p></div>';				
694
							strAdd += '<div class="madiaInfo"><p class="h1Font ellipsisSty">'+ dataStr[i].resourceName +'</p><p class="h2Font ellipsisSty-2">用途:'+ dataStr[i].supportedServices+'</p></div>';				
695 695
							strAdd += '</a></li>';
696 696
							var $strAdd = $(strAdd);
697 697
							$("#proResource").append(strAdd);
@ -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) {

+ 2 - 2
resourceIssue.html

@ -31,8 +31,8 @@
31 31
			        					<!--未上传图片时-->
32 32
			        					<div class="upFront" id="uploader">
33 33
				        					<p>资源图片<em class="requiredcon">*</em></p>
34
				        					<p class="uploadtip">JPG/PNG格式,2M以内</p>
35
				            				<span class="upbtn">上传图片</span>
34
				        					<p class="uploadtip">JPG/JPEG/PNG格式,<br/>2M以内</p>
35
				            				<span class="upbtn" style="margin-top:8px">上传图片</span>
36 36
			        					</div>
37 37
				            		</div>
38 38
			        			</div>

+ 2 - 2
resourcePreview.html

@ -111,10 +111,10 @@
111 111
						<span class="attenSpan">关注</span>
112 112
					</div>
113 113
				</div>
114
				<div class="conItem conItemG displayNone" id="enterprise" style="border:none;padding:30px;">
114
				<div class="conItem conItemG alignCenter displayNone" id="enterprise" style="border:none;padding:30px;">
115 115
					<a class="qiyego">
116 116
						<div class="madiaHead cmpHead" id="Qimg">
117
							<div class="boxBlock" style="width:98px;height:98px">
117
							<div class="boxBlock">
118 118
								<img class="boxBlockimg" src="" id="companyImg">
119 119
							</div>
120 120
						</div>

+ 53 - 53
userInforShow.html

@ -103,17 +103,17 @@
103 103
						<div class="coninfotit">研究方向</div>
104 104
						<div class="coninfocon listResearch">
105 105
							<ul class="clearfix" id="researchAreaShow">
106
								<!--<li>
107
									<div class="favorBox"><span class="like">2</span>uuuuuu</div>
108
									<span class="plus"></span>
109
									<div class="favorCount">
110
										<span class="like-people" style="background-image: url(../images/default-photo.jpg);"></span>
111
										<span class="like-people" style="background-image: url(../images/head/11342E8FFFD34E0699044BF4B4B19449_s.jpg);"></span>
112
										<span class="like-people" style="background-image: url(../images/default-photo.jpg);"></span>
113
										<span class="like-people" style="background-image: url(../images/head/11342E8FFFD34E0699044BF4B4B19449_s.jpg);"></span>
114
										<span class="like-people" style="background-image: url(../images/default-photo.jpg);"></span>
115
										<span class="like-people like-more"></span>
116
									</div>
106
								<!--<li>
107
									<div class="favorBox"><span class="like">2</span>uuuuuu</div>
108
									<span class="plus"></span>
109
									<div class="favorCount">
110
										<span class="like-people" style="background-image: url(../images/default-photo.jpg);"></span>
111
										<span class="like-people" style="background-image: url(../images/head/11342E8FFFD34E0699044BF4B4B19449_s.jpg);"></span>
112
										<span class="like-people" style="background-image: url(../images/default-photo.jpg);"></span>
113
										<span class="like-people" style="background-image: url(../images/head/11342E8FFFD34E0699044BF4B4B19449_s.jpg);"></span>
114
										<span class="like-people" style="background-image: url(../images/default-photo.jpg);"></span>
115
										<span class="like-people like-more"></span>
116
									</div>
117 117
								</li>-->
118 118
							</ul>
119 119
						</div>
@ -130,13 +130,13 @@
130 130
						<div class="coninfotit">资源<span class="seeMore" id="seeMoreR">查看全部<em></em></span></div>
131 131
						<div class="coninfocon form-result aboutRes">
132 132
							<ul id="showResource">
133
								<!--<li><a href="resourceShow.html" class="flexCenter urlgo">
134
									<div class="madiaHead resouseHead" id="userimg"></div>
135
									<div class="madiaInfo">
136
										<p class="h1Font ellipsisSty-2" id="resourceName">习近平将对哈萨克斯坦进行国事访问并出席活动习近平将对哈萨克斯坦进行国事访问并出席活动习近平将对哈萨克斯坦进行国事访问并出席活动</p>
137
										<p class="h2Font ellipsisSty">应用用途:习近平将对哈萨克斯坦进行国事访问并出席活动习近平将对哈萨克斯坦进行国事访问并出席活动习近平将对哈萨克斯坦进行国事访问并出席活动</p>
138
									</div>
139
								</a>
133
								<!--<li><a href="resourceShow.html" class="flexCenter urlgo">
134
									<div class="madiaHead resouseHead" id="userimg"></div>
135
									<div class="madiaInfo">
136
										<p class="h1Font ellipsisSty-2" id="resourceName">习近平将对哈萨克斯坦进行国事访问并出席活动习近平将对哈萨克斯坦进行国事访问并出席活动习近平将对哈萨克斯坦进行国事访问并出席活动</p>
137
										<p class="h2Font ellipsisSty">应用用途:习近平将对哈萨克斯坦进行国事访问并出席活动习近平将对哈萨克斯坦进行国事访问并出席活动习近平将对哈萨克斯坦进行国事访问并出席活动</p>
138
									</div>
139
								</a>
140 140
								</li>-->
141 141
							</ul>
142 142
						</div>
@ -149,21 +149,21 @@
149 149
							</ul>
150 150
						</div>
151 151
					</div>
152
					<div class="coninfobox form-item otherShow displayNone">
153
						<div class="coninfotit">专利 <span class="seeMore" id="seeMoreP">查看全部<em></em></span></div>
154
						<div class="coninfocon form-result aboutRes">
155
							<ul id="showPatent">
156
								
157
							</ul>
158
						</div>
159
					</div>
160
					<div class="coninfobox form-item otherShow displayNone">
161
						<div class="coninfotit">论文 <span class="seeMore" id="seeMoreL">查看全部<em></em></span></div>
162
						<div class="coninfocon form-result aboutRes">
163
							<ul id="showPaper">
164
								
165
							</ul>
166
						</div>
152
					<div class="coninfobox form-item otherShow displayNone">
153
						<div class="coninfotit">专利 <span class="seeMore" id="seeMoreP">查看全部<em></em></span></div>
154
						<div class="coninfocon form-result aboutRes">
155
							<ul id="showPatent">
156
								
157
							</ul>
158
						</div>
159
					</div>
160
					<div class="coninfobox form-item otherShow displayNone">
161
						<div class="coninfotit">论文 <span class="seeMore" id="seeMoreL">查看全部<em></em></span></div>
162
						<div class="coninfocon form-result aboutRes">
163
							<ul id="showPaper">
164
								
165
							</ul>
166
						</div>
167 167
					</div>
168 168
					<div class="coninfobox form-item commentsArea displayNone">
169 169
						<div class="coninfotit" style="margin-bottom:4px;">合作评价</div>
@ -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>
@ -332,8 +332,8 @@
332 332
						</div>
333 333
					</div>
334 334
				</div>
335
				<!--<ul class="advertItem">
336
					<li><a href="download.html" target="_blank"><img src="images/find_img_xiazai_nor.png" /></a></li>
335
				<!--<ul class="advertItem">
336
					<li><a href="download.html" target="_blank"><img src="images/find_img_xiazai_nor.png" /></a></li>
337 337
				</ul>-->
338 338
			</div>
339 339
		</div>
@ -353,22 +353,22 @@
353 353
<script type="text/javascript" src="js/jquery.page.js"></script>
354 354
<script type="text/javascript" src="js/userInforShow.js"></script>
355 355
<script type="text/javascript" src="js/popup.js"></script>
356
<script>
357

358
	//微信分享
359
	var qrcode = new QRCode(document.getElementById("qrcode"), {
360
		width: 100,
361
		height: 100
362
	});
363

364
	function makeCode() {
365
		var hurl = window.location.host;
366
		var professorId = GetQueryString("professorId");
367
		var elurl = "http://" + hurl + "/e/p.html?id=" + professorId;
368
		qrcode.makeCode(elurl);
369
	}
370
	makeCode();
371

356
<script>
357
358
	//微信分享
359
	var qrcode = new QRCode(document.getElementById("qrcode"), {
360
		width: 100,
361
		height: 100
362
	});
363
364
	function makeCode() {
365
		var hurl = window.location.host;
366
		var professorId = GetQueryString("professorId");
367
		var elurl = "http://" + hurl + "/e/p.html?id=" + professorId;
368
		qrcode.makeCode(elurl);
369
	}
370
	makeCode();
371
372 372
	//分享关注按钮
373 373
	$('.shareWeixin').hover(function(){$('.shareCode').stop(true,false).fadeToggle();});
374 374
	
@ -376,7 +376,7 @@
376 376
		$(this).addClass("liNow").siblings().removeClass("liNow");
377 377
		$(".leftconBox .leftconItem").eq($(this).index()).show().siblings().hide();
378 378
	})
379
	
379
	
380 380
</script>
381 381
</body>
382 382