Quellcode durchsuchen

Merge remote-tracking branch 'origin/dev' into test

Conflicts:
	js/common.js
jack vor 7 Jahren
Ursprung
Commit
5cc7be392f

+ 11 - 5
articalIssue.html

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


+ 10 - 5
articalModify.html

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

+ 15 - 55
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>
@ -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


+ 13 - 53
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>
@ -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>

+ 8 - 3
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;}
@ -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:2px 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;}
@ -449,8 +452,10 @@ ul.tagList>li .h2Font{color:#666}
449 452
.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 453
.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 454
.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;}
455
.setTimeBlock .mb_msg{position: relative; padding: 30px 40px 20px; line-height: 24px; text-align: center; font-size: 16px;}
456
.setTimeBlock .mb_msg .mb-list{margin:6px 6px 12px 6px}
457
.setTimeBlock .mb_msg .mb-list p{margin:6px;}
458
/*.setTimeBlock .formTime,.setTimeBlock .form-control{padding:10px 24px;}*/
454 459
.setTimeBlock .mb_btnbox{margin: 0px auto 30px; text-align: center; position: relative;}
455 460
.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 461
.setTimeBlock .mb_btnOk{ background-color:#28b8fa;}

+ 2 - 2
cmp-portal/css/common.css

@ -196,7 +196,7 @@ button.btnModelBig:hover{
196 196
.nodatabox .noContip{font-size:18px;color: #999;line-height:40px;}
197 197
.nodatabox .keyword{font-size:22px; padding:0 6px;color:#555555;}
198 198
/***********************缺省页面*******************/
199
#container{margin-top:90px;}
199
#container{padding-top:90px;}
200 200
.containerCon{width:1120px;padding:0 10px;position:relative; margin:auto;}
201 201
.containerCon:before,.containerCon:after{display:table;content:" "}
202 202
.containerCon:after{clear: both;}
@ -221,7 +221,7 @@ footer .weixincode{background-image: url(../images/home_bg_guanzhu_nor.png);}
221 221
footer .weixincode span{background-image:url(../images/home_code_weixin.jpg);background-size: cover;}
222 222

223 223
/*新版header*/
224
header{ position:fixed; top:0;left:0;right: 0; z-index:1000;font-size:16px;line-height:32px;}
224
header{ position:fixed; top:0;left:0;right: 0; z-index:1012;font-size:16px;line-height:32px;}
225 225
header .navheader{background:#FFFFFF;height:62px;border-bottom: 2px solid #e5e5e5;}
226 226
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 227
header .navheader.navhdown li a{color:#666;}

+ 182 - 88
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,12 +382,37 @@ $(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() {
345 394
		noTitleImg();
346 395
		if(imgflase && titleflase) {
347
			$.MsgBox.Confirm("提示", "确认发布该文章?", newsAdd);
396
			console.log(colMgr)
397
			if(colMgr=="true"){
398
				$(".blackcover2").fadeIn();
399
				var btnOk='<input class="mb_btn mb_btnOk mb_btnOkpub" type="button" value="确定">'
400
				$(".mb_btnOk").remove(); $("#promotGt").prepend(btnOk);
401
				$(".modelContain").show(); $("body").addClass("modelOpen");
402
				$(".mb-listR").remove();
403
				$(".mb-listL").remove();
404
				$("#promotTh").prepend(seleClum);
405
				fillColum(7);//填充select栏目
406
				$(".mb_btnOkpub").on("click", function() {
407
					$(".blackcover2").fadeOut();
408
					$(".modelContain").hide();
409
					$("body").removeClass("modelOpen");
410
					$.MsgBox.Confirm("提示", "确认发布该文章?", newsAdd);
411
				})
412
			}else{
413
				$.MsgBox.Confirm("提示", "确认发布该文章?", newsAdd);
414
			}
415
			
348 416
		}
349 417
	})
350 418

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

363 443
			})
364 444
		}
365 445
	})
366

446
	
367 447
	//文章存草稿
368 448
	$("#draft").on("click", function() {
369 449
		noTitleImg();
@ -400,12 +480,17 @@ function getAttrId() {
400 480
		$data.articleContent = ue.getContent();
401 481
		$data.professors = experarray;
402 482
		$data.resources = resourcesarray;
483
		if(colMgr=="true"){
484
			$data.colNum = $("#seletColum").val();
485
			if(publishTime!="") {
486
				$data.publishTime = publishTime;
487
			}
488
		}else{
489
			$data.colNum=2;
490
		}
403 491
		if($("#hidearticleId").val().length != 0) {
404 492
			$data.articleId = $("#hidearticleId").val();
405 493
		}
406
		if($(".form_datetime").val().length != 0) {
407
			$data.publishTime = publishTime;
408
		}
409 494
		console.log($data);
410 495
	}
411 496

@ -579,33 +664,40 @@ function getAttrId() {
579 664
			$(this).siblings(".aboutTit").find("span").text("最多选择3家企业");
580 665
		},
581 666
		keyup: function(e) {
667
			 var ti=$(this).val();
668
			 orgr=ti;
669
			 var $this=$(this);
582 670
			if($(this).val().trim()) {
583 671
				var lNum = $.trim($(this).val()).length;
584 672
				if(0 < lNum) {
585
					var $this = $(this)
673
					setTimeout(function(){
674
						if( ti===orgr && ti!== orgrEnd) {
675
							var tt=ti;
676
							orgrEnd=tt;
586 677
					$("#companylist").parent().show();
587
					console.log($(this).val())
588 678
					$.ajax({
589 679
						"url": "/ajax/org/qr",
590 680
						"type": "GET",
591 681
						"data":{
592
							kw: $(this).val(),
682
							kw: $this.val(),
593 683
							limit:3
594 684
						},
595 685
						"success": function(data) {
596 686
							console.log(data);
597 687
							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>';
688
								if(orgrEnd==tt) {
689
									if(data.data.length == 0) {
690
										$this.siblings(".form-drop").addClass("displayNone");
691
										$this.siblings(".form-drop").find("ul").html("");
692
									} else {
693
										$this.siblings(".form-drop").removeClass("displayNone");
694
										var oSr = "";
695
										for(var i = 0; i < data.data.length; i++) {
696
											var busName=(data.data[i].forShort)?data.data[i].forShort:data.data[i].name;
697
											oSr += '<li style="min-height:40px;position:static;"data-id="'+data.data[i].id+'">' + busName + '</li>';
698
										}
699
										$this.siblings(".form-drop").find("ul").html(oSr);
607 700
									}
608
									$this.siblings(".form-drop").find("ul").html(oSr);
609 701
								}
610 702
							} else {
611 703
								$this.siblings(".form-drop").addClass("displayNone");
@ -617,6 +709,8 @@ function getAttrId() {
617 709
							$.MsgBox.Alert('提示', '服务器连接超时!');
618 710
						}
619 711
					});
712
					}
713
					},500)
620 714
				}
621 715
			} else {
622 716
				$(this).siblings(".form-drop").addClass("displayNone");
@ -633,7 +727,7 @@ function getAttrId() {
633 727
				return;
634 728
			}
635 729
		}
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>');
730
		$(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 731
		$(this).parents(".form-drop").siblings("input").val("");
638 732
		if(oJudge.length == 4) {
639 733
			$(this).parents(".form-drop").siblings("input").val("");

+ 203 - 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,12 +550,60 @@ $(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() {
512 561
		noTitleImg();
513
		if(titleflase){
514
			$.MsgBox.Confirm("提示","确认发布该文章?",newsAdd);	
562
		if(titleflase) {
563
			$(".blackcover2").fadeIn();
564
			var btnOk='<input class="mb_btn mb_btnOk mb_btnOkpub" type="button" value="确定">'
565
			$(".mb_btnOk").remove(); $("#promotGt").prepend(btnOk);
566
			$(".modelContain").show(); $("body").addClass("modelOpen");
567
			$(".mb-listR").remove();
568
			if(colMgr=="true"){
569
				$(".mb-listL").remove();
570
				$("#promotTh").prepend(seleClum);
571
				fillColum(7);//填充select栏目
572
			}
573
			$(".mb_btnOkpub").on("click", function() {
574
				$(".blackcover2").fadeOut();
575
				$(".modelContain").hide();
576
				$("body").removeClass("modelOpen");
577
				$.MsgBox.Confirm("提示", "确认发布该文章?", newsAdd);
578
			})
579
		}
580
	})
581

582
	//定时文章发布
583
	$("#setTimeIssue").on("click", function() {
584
		noTitleImg();
585
		if(titleflase) {
586
			$(".blackcover2").fadeIn();
587
			var btnOk='<input class="mb_btn mb_btnOk mb_btnOkset" type="button" value="确定">'
588
			$(".mb_btnOk").remove(); $("#promotGt").prepend(btnOk);
589
			$(".modelContain").show(); $("body").addClass("modelOpen");
590
			$(".mb-listR").remove(); $("#promotTh").append(seleTime);//时间选择器
591
			$(".mb-listR .form_datetime").datetimepicker({
592
				format: 'yyyy-mm-dd hh:ii',
593
				forceParse: true,
594
				autoclose: true,
595
			});
596
			$(".mb-listR .form_datetime").val(getNowFormatDate(currentdate));
597
			if(colMgr=="true"){
598
				$(".mb-listL").remove();
599
				$("#promotTh").prepend(seleClum);
600
				fillColum(7);//填充select栏目
601
			}
602
			$(".mb_btnOkset").on("click", function() {
603
				var publishTime = $(".form_datetime").val();
604
				console.log(st6(publishTime));
605
				setTimeIssue(st6(publishTime));
606
			})
515 607
		}
516 608
	})
517 609
	
@ -536,21 +628,7 @@ $(function() {
536 628
		$.MsgBox.Confirm("提示","确认删除该文章?",newsDelet);
537 629
	})
538 630
	
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
	})
631
	
554 632
	function getAttrId() {
555 633
		var arr=[];
556 634
		this.each(function(){
@ -559,23 +637,26 @@ $(function() {
559 637
		return arr;
560 638
	}
561 639
	/*获取数据*/
562
	function getdata(publishTime,settime) {
563
		expertli();//相关专家
564
		resourcesli();//相关咨询
565
	    $data.articleId = articleId;
640
	function getdata(publishTime) {
641
		expertli(); //相关专家
642
		resourcesli(); //相关咨询
566 643
		$data.orgId = orgId;
567 644
		if($("#companys li").length) {
568 645
			$data.orgs = getAttrId.call($("#companys li"));
569 646
		}
570
		
571 647
		$data.articleTitle = $("#newstitle").val();
572 648
		$data.subject = captiureSubInd("keyWordlist .delkeylist");
573 649
		$data.articleImg = $("#uploader").attr("data-id");
574 650
		$data.articleContent = ue.getContent();
575 651
		$data.professors = experarray;
576 652
		$data.resources = resourcesarray;
577
		if(settime) {
578
			$data.publishTime = publishTime;
653
		if(colMgr=="true"){
654
			$data.colNum = $("#seletColum").val();
655
			if(publishTime!="") {
656
				$data.publishTime = publishTime;
657
			}
658
		}else{
659
			$data.colNum=2;
579 660
		}
580 661
		console.log($data);
581 662
	}
@ -753,33 +834,40 @@ relatCompanies("#company");
753 834
			$(this).siblings(".aboutTit").find("span").text("最多选择3家企业");
754 835
		},
755 836
		keyup: function(e) {
837
			 var ti=$(this).val();
838
			 orgr=ti;
839
			 var $this=$(this);
756 840
			if($(this).val().trim()) {
757 841
				var lNum = $.trim($(this).val()).length;
758 842
				if(0 < lNum) {
759
					var $this = $(this)
843
					setTimeout(function(){
844
						if( ti===orgr && ti!== orgrEnd) {
845
							var tt=ti;
846
							orgrEnd=tt;
760 847
					$("#companylist").parent().show();
761
					console.log($(this).val())
762 848
					$.ajax({
763 849
						"url": "/ajax/org/qr",
764 850
						"type": "GET",
765 851
						"data":{
766
							kw: $(this).val(),
852
							kw: $this.val(),
767 853
							limit:3
768 854
						},
769 855
						"success": function(data) {
770 856
							console.log(data);
771 857
							if(data.success) {
772
								if(data.data.length == 0) {
773
									$this.siblings(".form-drop").addClass("displayNone");
774
									$this.siblings(".form-drop").find("ul").html("");
775
								} else {
776
									$this.siblings(".form-drop").removeClass("displayNone");
777
									var oSr = "";
778
									for(var i = 0; i < data.data.length; i++) {
779
										var busName=(data.data[i].forShort)?data.data[i].forShort:data.data[i].name;
780
										oSr += '<li style="min-height:40px;position:static;"data-id="'+data.data[i].id+'">' + busName + '</li>';
858
								if(orgrEnd==tt) {
859
									if(data.data.length == 0) {
860
										$this.siblings(".form-drop").addClass("displayNone");
861
										$this.siblings(".form-drop").find("ul").html("");
862
									} else {
863
										$this.siblings(".form-drop").removeClass("displayNone");
864
										var oSr = "";
865
										for(var i = 0; i < data.data.length; i++) {
866
											var busName=(data.data[i].forShort)?data.data[i].forShort:data.data[i].name;
867
											oSr += '<li style="min-height:40px;position:static;"data-id="'+data.data[i].id+'">' + busName + '</li>';
868
										}
869
										$this.siblings(".form-drop").find("ul").html(oSr);
781 870
									}
782
									$this.siblings(".form-drop").find("ul").html(oSr);
783 871
								}
784 872
							} else {
785 873
								$this.siblings(".form-drop").addClass("displayNone");
@ -791,6 +879,8 @@ relatCompanies("#company");
791 879
							$.MsgBox.Alert('提示', '服务器连接超时!');
792 880
						}
793 881
					});
882
					}
883
					},500)
794 884
				}
795 885
			} else {
796 886
				$(this).siblings(".form-drop").addClass("displayNone");
@ -807,7 +897,7 @@ relatCompanies("#company");
807 897
				return;
808 898
			}
809 899
		}
810
		$(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>');
900
		$(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>');
811 901
		$(this).parents(".form-drop").siblings("input").val("");
812 902
		if(oJudge.length == 4) {
813 903
			$(this).parents(".form-drop").siblings("input").val("");
@ -853,7 +943,7 @@ relatCompanies("#company");
853 943
			success: function(data) {
854 944
				if(data.success) {
855 945
					var oValue=data.data.forShort?data.data.forShort:data.data.name;
856
				this.append('<li style="min-height:40px;" data-id="'+data.data.id+'">' + oValue + '<div class="deleteThis" style="right:0px;"></div></li>')	
946
				this.append('<li class="ellipsisSty" style="min-height:40px;padding-right:42px;" data-id="'+data.data.id+'">' + oValue + '<div class="deleteThis"></div></li>')	
857 947
				
858 948
				}
859 949
			},

+ 9 - 2
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) {
@ -73,7 +74,7 @@ function articalList(pageSize, pageNo, isbind, num) {
73 74
					} else if(data.data.data[i].status == 2) {
74 75
						var li = '<li class="newbox draftList"><a href="" class="newurl">';
75 76
						var li2 = '<ul class="h2Font clearfix"><li><span class="time"></span></li></ul>';
76
						var li3 = '<span class="draftLable" id="dsfbtime"></span>';
77
						var li3 = '<span class="draftLable" id="dsfbtime"></span><span class="column" style="margin-left:20px;"></span>';
77 78
						var li4 = '<li><a class="editThis" target="_blank"></a></li>';
78 79
					}
79 80
					var itemlist = li;
@ -97,6 +98,12 @@ function articalList(pageSize, pageNo, isbind, num) {
97 98
					if(datalist.articleImg) {
98 99
						$itemlist.find("#artimg").attr("style", "background-image: url(/data/article/" + datalist.articleImg + ");");
99 100
					}
101
					if(datalist.colNum>2){
102
						$itemlist.find(".column").text(columnType[datalist.colNum].fullName);
103
					}else{
104
						$itemlist.find(".column").css({"border":"none","padding":"0"})
105
						$itemlist.find(".time").parent().css("margin-left","0");
106
					}
100 107
					if(datalist.status == 1) {//发布
101 108
						$itemlist.find(".time").text("发布于 " + TimeTr(datalist.publishTime));
102 109
						$itemlist.find(".newurl").attr("href", "../articalShow.html?articleId=" + datalist.articleId);

+ 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

+ 97 - 13
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
	//窗口大小变更事件
@ -250,11 +249,18 @@ function hotKey(sel) {
250 249
			$(this).siblings(".keydrop").show();
251 250
		},
252 251
		keyup: function(e) {
252
			 var ti=$(this).val();
253
			 var $t=this;
254
			 $t.comr=ti;
255
			 var $this=$(this);
253 256
			if($(this).val().trim()) {
254 257
				$(this).siblings("button").show();
255 258
				var lNum = $.trim($(this).val()).length;
256 259
				if(0 < lNum) {
257
					var $this = $(this)
260
					setTimeout(function(){
261
						if( ti===$t.comr && ti!== $t.comrEnd) {
262
							var tt=ti;
263
							$t.comrEnd=tt;
258 264
					$("#addKeyword").show();
259 265
					$.ajax({
260 266
						"url": "/ajax/dataDict/qaHotKey",
@ -262,30 +268,34 @@ function hotKey(sel) {
262 268
						"success": function(data) {
263 269
							console.log(data);
264 270
							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>';
271
								if($t.comrEnd==tt) {
272
									if(data.data.length == 0) {
273
										$this.siblings(".keydrop").addClass("displayNone");
274
										$this.siblings(".keydrop").find("ul").html("");
275
									} else {
276
										$this.siblings(".keydrop").removeClass("displayNone");
277
										var oSr = "";
278
										for(var i = 0; i < Math.min(data.data.length,5); i++) {
279
											oSr += '<li>' + data.data[i].caption + '<div class="closeThis"></div></li>';
280
										}
281
										$this.siblings(".keydrop").find("ul").html(oSr);
273 282
									}
274
									$this.siblings(".keydrop").find("ul").html(oSr);
275
								}
283
								}	
276 284
							} else {
277 285
								$this.siblings(".keydrop").addClass("displayNone");
278 286
								$this.siblings(".keydrop").find("ul").html("");
279 287
							}
280 288
						},
281 289
						"data": {
282
							"key": $(this).val()
290
							"key": $this.val()
283 291
						},
284 292
						dataType: "json",
285 293
						'error': function() {
286 294
							$.MsgBox.Alert('提示', '服务器连接超时!');
287 295
						}
288 296
					});
297
					}
298
					},500);
289 299
				}
290 300
			} else {
291 301
				$(this).siblings("button").hide();
@ -410,3 +420,77 @@ function TimeTr(dealtime) {
410 420
	}
411 421
	return formatTime;
412 422
}
423
424
//栏目
425
var columnType = {
426
	"1":{
427
		fullName:"个人原创",
428
		shortName:"原创"
429
	},
430
	"2":{
431
		fullName:"企业原创",
432
		shortName:"原创"
433
	},
434
	"3":{
435
		fullName:"前沿动态",
436
		shortName:"前沿"
437
	},
438
	"4":{
439
		fullName:"学术经验",
440
		shortName:"经验"
441
	},
442
	"5":{
443
		fullName:"分析检测",
444
		shortName:"检测"
445
	},
446
	"6":{
447
		fullName:"会议培训",
448
		shortName:"会议"
449
	},
450
	"7":{
451
		fullName:"科袖访谈",
452
		shortName:"访谈"
453
	},
454
	"8":{
455
		fullName:"招聘招生",
456
		shortName:"招聘"
457
	},
458
	"9":{
459
		fullName:"重大新闻",
460
		shortName:"新闻"
461
	}	
462
}
463
 function fillColum(allnum){//填充栏目选项
464
	var zCount=allnum+3;
465
	for(var i=3;i<zCount;i++){
466
		var colum=$('<option value="'+i+'">'+columnType[i].fullName+'</option>')
467
		$(".form-column").append(colum);
468
	}
469
}
470
471
var currentdate;
472
function getNowFormatDate() {
473
    var date = new Date();
474
    var seperator1 = "-";
475
    var seperator2 = ":";
476
    var month = date.getMonth() + 1;
477
    var strDate = date.getDate();
478
    var getHours = date.getHours();
479
    var getMinutes = date.getMinutes();
480
    if (month >= 1 && month <= 9) {
481
        month = "0" + month;
482
    }
483
    if (strDate >= 0 && strDate <= 9) {
484
        strDate = "0" + strDate;
485
    }
486
    if (getMinutes >= 0 && getMinutes <= 9) {
487
        getMinutes = "0" + getMinutes;
488
    }
489
     if (getHours >= 0 && getHours <= 9) {
490
        getHours = "0" + getHours;
491
    }
492
    var currentdate = date.getFullYear() + seperator1 + month + seperator1 + strDate
493
            + " " + getHours + seperator2 + getMinutes
494
           
495
    return currentdate;
496
}

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

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

+ 84 - 36
css/genindex.css

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

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

+ 3 - 1
css/share.css

@ -73,6 +73,7 @@ html,body {outline: 0;margin:0;padding:0px;background: #efeff4;-webkit-text-size
73 73
.showDetail .h1Font{font-size:20px;margin:8px 0;line-height:30px;color:#333;}
74 74
.showDetail .showFont{font-size:16px;margin-top:-4px; line-height:24px;color:#333;}
75 75
.showDetail .h2Font{font-size:14px;color:#666; line-height:16px;}
76
.showDetail .madiaInfo .h2Font{font-size:14px;color:#999;}
76 77
.showDetail .h3Font{font-size:13px;color:#999; line-height:24px;}
77 78
.showDetail .showMain{font-size:15px;color:#333;line-height:28px;}
78 79
.showDetail .showMain img{max-width: 100%;}
@ -104,6 +105,7 @@ ul.tagList>li .h2Font{color: #666;}
104 105
.madiaBlock .flexCenter.OflexCenter{min-height:72px;}
105 106
.madiaBlock .madiaInfo .h1Font{font-size: 16px;margin:0;line-height:24px;}
106 107
.madiaBlock .madiaInfo .ellipsisSty-2{max-height: 44px;}
108
.madiaBlock .madiaInfo .time{font-size:14px;color:#999;}
107 109
/*点赞模块*/
108 110
.thumbBlock{text-align: center;margin:30px 0;}
109 111
.thumbBlock .thumbBtn{display:inline-block;position:relative;padding:10px 24px;padding-left:44px;font-size:16px;color:#fff;background:url(../images/g_article_icon_dianzan_nor.png) no-repeat 24px center;background-size:16px 16px;background-color:#ff9900;border-radius:30px;cursor: pointer;}
@ -195,7 +197,7 @@ ul.tagList>li .h2Font{color: #666;}
195 197
.infocon ul{ padding:0; margin: 0; overflow: hidden;}
196 198
.infocon ul>li{list-style: none;}
197 199
ul.mui-table-view>li{position: relative;overflow: hidden; padding: 11px 0px;}
198
ul.mui-table-view>li:after{position: absolute;right: 0;bottom: 0;left:0px;height: 1px;content: '';-webkit-transform: scaleY(.5);transform: scaleY(.5); background-color: #c8c7cc;}
200
ul.mui-table-view>li:after{position: absolute;right: 0;bottom: 0;left:0px;height: 1px;content: '';-webkit-transform: scaleY(.5);transform: scaleY(.5); background-color: #E5E5E5;}
199 201
ul.mui-table-view>li:last-child:after{background: none;}
200 202
.infocon.listArea>ul{overflow: hidden;margin-right: -10px;margin-top:-10px;}
201 203
.infocon.listArea>ul>li{float: left;margin-right: 10px;margin-top:10px;border:1px solid #E5E5E5;border-radius:6px;padding:2px 12px;}

+ 80 - 11
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,9 +10,8 @@
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>
@ -20,14 +19,85 @@
20 19
<div id="container">
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>

+ 9 - 5
e/a.html

@ -312,26 +312,28 @@
312 312
						userType.sty = "authicon-com-ok"
313 313
					} 
314 314
				}
315
				var rImg = "/data/resource/" + $data.images[0].imageSrc;
315
				var rImg = "../images/default-resource.jpg";
316
				if($data.images.length>0){
317
					rImg = "/data/resource/" + $data.images[0].imageSrc;
318
				}
316 319
				var li = document.createElement("li");
317 320
				li.setAttribute("data-id", $data.resourceId);
318 321
				li.innerHTML = '<div class="flexCenter OflexCenter clearfix">' +
319 322
					' <div class="madiaHead resouseHead" style="background-image:url(' + rImg + ')"></div>' +
320 323
					'<div class="madiaInfo OmadiaInfo">' +
321 324
					'<p class="ellipsisSty h1Font">' + $data.resourceName + '</p>' +
322
					'<p class="ellipsisSty h2Font">用途:' + $data.supportedServices + '</p>' +
323 325
					'<p><span class="h2Font">' + namepo + '</span><em class="authiconNew ' + userType.sty + '" title="科袖认证专家"></em></p>' +
326
					'<p class="ellipsisSty-2 h2Font">用途:' + $data.supportedServices + '</p>' +
324 327
					'</div>' +
325 328
					'</div>'
326 329
				document.getElementById("resourceList").appendChild(li);
327 330
			},
328 331
			correlationArticle: function($data) {
329
	
330 332
				if($data.length == 0) {
331 333
					return;
332 334
				}
333 335
				document.getElementById('article').classList.remove("displayNone");
334
				for(var i = 0; i < 5; i++) {
336
				for(var i = 0; i < $data.length; i++) {
335 337
					var ourl, of ;
336 338
					if($data[i].articleType == 1) {
337 339
						ourl = "/ajax/professor/editBaseInfo/" + $data[i].professorId; of = 1;
@ -375,13 +377,15 @@
375 377
									li.setAttribute("data-type", 2);
376 378
								}
377 379
								li.setAttribute("data-id", $data[i].articleId);
380
								li.className = "mui-table-view-cell";
378 381
								li.innerHTML = '<div class="flexCenter OflexCenter clearfix">' +
379 382
									'<div class="madiaHead artHead" style="background-image:url(' + arImg + ')"></div>' +
380 383
									'<div class="madiaInfo OmadiaInfo">' +
381 384
									'<p class="ellipsisSty-2 h1Font">' + title + '</p>' +
382
									'<p><span class="h2Font" style="margin-right:10px;">' + namepo + '</span><span class="time">'+commenTime($html[n].publishTime)+'</span></p>'+
385
									'<p><span class="h2Font" style="margin-right:10px">'+namepo+'</span><span class="time">'+commenTime($data[i].publishTime)+'</span></p>'+
383 386
									'</div>' +
384 387
									'</div>'
388
								
385 389
								document.getElementById("articleList").appendChild(li);
386 390
							}
387 391
						},

+ 2 - 2
e/r.html

@ -435,8 +435,8 @@ $(document).ready(function() {
435 435
										add.setAttribute("data-id",$respond[n].resourceId);
436 436
										var itemlist = '<div class="flexCenter OflexCenter"><div class="madiaHead resourceHead" style="background-image:url('+imgL+')"></div>';
437 437
											itemlist += '<div class="madiaInfo OmadiaInfo">';
438
											itemlist += '<p class="ellipsisSty h2Font" id="usertitle">'+$respond[n].resourceName+'</p>';
439
											itemlist += '<p><span class="h1Font">'+thisName+'</span><em class="authiconNew '+thisAuth+'" title="'+thisTitle+'"></em></p>';
438
											itemlist += '<p class="ellipsisSty-2 h1Font" id="usertitle">'+$respond[n].resourceName+'</p>';
439
											itemlist += '<p><span class="h2Font">'+thisName+'</span><em class="authiconNew '+thisAuth+'" title="'+thisTitle+'"></em></p>';
440 440
											itemlist += '</div></div>';
441 441
											
442 442
										add.innerHTML=itemlist;

+ 106 - 64
js/articalIssue.js

@ -7,6 +7,9 @@ $(function() {
7 7
	var articleId;
8 8
	var fa = false;
9 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
					}
@ -391,6 +432,7 @@ $(function() {
391 432
		$data.articleContent = ue.getContent();
392 433
		$data.professors = experarray;
393 434
		$data.resources = resourcesarray;
435
		$data.colNum=1;
394 436
		if($("#hidearticleId").val().length != 0) {
395 437
			$data.articleId = $("#hidearticleId").val();
396 438
		}

+ 108 - 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
					}
@ -564,6 +602,7 @@ $(function() {
564 602
		$data.articleContent = ue.getContent();
565 603
		$data.professors = experarray;
566 604
		$data.resources = resourcesarray;
605
		$data.colNum=1;
567 606
		if(settime) {
568 607
			$data.publishTime = publishTime;
569 608
		}

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

+ 22 - 13
js/articalShow.js

@ -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('提示','链接服务器超时')
@ -477,7 +490,7 @@ $(function() {
477 490
							itemlist += '<div class="madiaHead artHead" id="userimg"></div>';
478 491
							itemlist += '<div class="madiaInfo">';
479 492
							itemlist += '<p class="h1Font ellipsisSty" id="resourceName"></p>';
480
							itemlist += '<p><span class="h2Font username2"></span><em class="authiconNew" id="relatedLabels" title="科袖认证专家"></em></p>';
493
							itemlist += '<p><span class="h2Font username2" style="margin-right:10px"></span><span class="time"></span></p>';
481 494
							itemlist += '</div></a></li>';
482 495
							$itemlist = $(itemlist);
483 496
							$("#abutartical").append($itemlist);
@ -487,6 +500,7 @@ $(function() {
487 500
							if(datalist.articleImg!=undefined){
488 501
								$itemlist.find("#userimg").attr("style", "background-image: url(/data/article/" + datalist.articleImg + ");");
489 502
							}
503
							$itemlist.find(".time").text(commenTime(datalist.publishTime))
490 504
							if(datalist.articleType==1){
491 505
								$.ajax({
492 506
									"url" : "/ajax/professor/baseInfo/"+datalist.professorId,
@ -496,9 +510,7 @@ $(function() {
496 510
									"success" : function($data) {
497 511
										if ($data.success && $data.data){
498 512
											$itemlist.find(".username2").text($data.data.name);
499
											var userType = autho($data.data.authType, $data.data.orgAuth, $data.data.authStatus);
500
											$itemlist.find("#relatedLabels").attr("title", userType.title);
501
											$itemlist.find("#relatedLabels").addClass(userType.sty);
513
											
502 514
										}
503 515
									},
504 516
									"error":function(){
@ -520,9 +532,6 @@ $(function() {
520 532
											}else{
521 533
												$itemlist.find(".username2").text($data.data.name);
522 534
											}
523
											if($data.data.authStatus==3){
524
												$itemlist.find("#relatedLabels").addClass("authicon-com-ok").attr("title", "认证企业");
525
											}
526 535
										}
527 536
									},
528 537
									"error":function(){

+ 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) {
@ -535,7 +535,7 @@ $(function() {
535 535
				if (data.success && data.data!=""){
536 536
					$("#relateCmp").parents(".conBlock").removeClass("displayNone");
537 537
					var itemlist = '<li class="flexCenter"><a traget="_blank" href="" class="urlgo">';
538
						itemlist += '<div class="madiaHead cmpHead" style="width:50px;height:36px;margin-top:-18px;"><div class="boxBlock" style="width: 48px;height: 34px;">';
538
						itemlist += '<div class="madiaHead cmpHead" style="width:50px;height:36px;margin-top:-18px;"><div class="boxBlock" style="width: 50px;height: 36px;">';
539 539
						itemlist += '<img class="boxBlockimg" id="userimg" src="" /></div></div>';
540 540
						itemlist += '<div class="madiaInfo">';
541 541
						itemlist += '<p class="clearfix"><span class="h1Font ellipsisSty floatL" style="display:block;max-width:136px" id="userName"></span><em class="authiconNew floatL" title=""></em></p>';

+ 102 - 12
js/common.js

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

+ 251 - 110
js/discover.js

@ -3,126 +3,286 @@ $(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
	importNews();
7
	hotNews();
8
	var linkNum=0;//栏目类别导航
9
	if(linkNum==0){
10
		listShow(1,0,true);
11
	}
12
	$(document).bind("click",function(e){ 
13
		var target = $(e.target); 
14
		if(target.closest(".table-tab-item").length == 0){ 
15
			$(".table-drop").hide(); 
16
			$(".rightbtn").find("em").removeClass("unfoldtr").addClass("foldtr");
17
		} 
18
	})
19
	$(".table-tab-item").on("mouseenter","li.rightbtn",function(){
20
		$(this).find(".table-drop").show();
21
		$(this).find("em").removeClass("foldtr").addClass("unfoldtr");
22
	}).on("mouseleave","li.rightbtn",function(){
23
		$(this).find("em").removeClass("unfoldtr").addClass("foldtr");
24
		$(this).find(".table-drop").hide();
25
	})
26
	
27
	$(".table-drop").on("click","li",function(){
28
		$(".rightbtn").find("span").html($(this).text());
29
	})
30
	$(".table-tab-item").on("click","li",function(){
31
		if($(this).is('.table-tab-slide')){
32
			linkNum = $(this).index(".table-tab-slide");
33
			$(".table-tab-slide").removeClass("table-tab-slide-active");
34
			$(this).addClass("table-tab-slide-active");
35
			$(".table-drop").fadeOut(1000);
36
			$(".rightbtn").find("em").removeClass("unfoldtr").addClass("foldtr");
37
			$(".table-item-list").eq(linkNum).show().siblings().hide();
38
			if($(".rightbtn").find("li").is(".table-tab-slide-active")){
39
				$(".rightbtn").addClass("table-tab-slide-active");
40
			}else{
41
				$(".rightbtn").removeClass("table-tab-slide-active");
42
			}
43
			if(linkNum==0){
44
				listShow(1,0,true);
45
			}else{
46
				var thisNum=linkNum+2;
47
				listShow(1,thisNum,true);
48
			}
49
		}else{
50
			$(this).find(".table-drop").show();
51
		}
52
	})
53
	
54
	//轮播加载页面
55
	$.ajax({
56
		"url":"/data/inc/col_banner.html",
57
		"dataType":"html",
58
		"success":function(result){
59
			$(".slide-box").html(result);
60
			bannerRotate.bannerInit();// 轮播
61
		}
62
	
63
	})
64
	//重大新闻
65
	function importNews() {
9 66
		$.ajax({
10
			"url": "/ajax/article/findHot",
11
			"type": "get",
12
			"async": true,
13
			"data": {
14
				"pageSize": pageSize,
15
				"pageNo": pageNo
67
			"url" :"/ajax/article/find",
68
			"type" :  "GET" ,
69
			"dataType" : "json",
70
			"data" :{
71
				"col":9,//重大新闻
72
				"pageSize":5,
73
				"pageNo":1
74
			},
75
			"success" : function(data) {
76
				if (data.success){
77
					console.log(data)
78
					var $data=data.data.data;
79
					if($data.length>0){
80
						$("#importNews").parents(".conItem").removeClass("displayNone");
81
						var oLeng=$data.length<5?$data.length:5;
82
						for(var i=0;i<oLeng;i++) {
83
							var listLi=$('<li class="flexCenter"></li>').appendTo($("#importNews"));
84
							var str='<a href="articalShow.html?articleId='+$data[i].articleId+'"><p class="h2Font ellipsisSty-2"><em class="circlePre"></em>'+$data[i].articleTitle+'</p>'+
85
								'<span class="smalltip">'+commenTime($data[i].publishTime)+'</span></a></li>'
86
							$(str).appendTo(listLi);
87
						}
88
					}
89
				}
90
			},
91
			"error":function(){
92
				$.MsgBox.Alert('提示','链接服务器超时')
93
			}
94
		});
95
	}
96
	//热门文章
97
	function hotNews(){
98
		$.ajax({
99
			"url" :"/ajax/article/lastestPublished",
100
			"type" :  "GET" ,
101
			"dataType" : "json",
102
			"success" : function(data) {
103
				if (data.success){
104
					console.log(data)
105
					var $data=data.data;
106
					if($data.length>0){
107
						$("#hotNews").parents(".conItem").removeClass("displayNone");
108
						var oLeng=$data.length<10?$data.length:10;
109
						for(var i=0;i<oLeng;i++) {
110
							var listLi=$('<li class="flexCenter"></li>').appendTo($("#hotNews"));
111
							var str='<a href="articalShow.html?articleId='+$data[i].articleId+'"><p class="h2Font ellipsisSty-2">'+$data[i].articleTitle+'</p></a>'
112
							$(str).appendTo(listLi);		
113
						}
114
					}
115
				}
116
			},
117
			"error":function(){
118
				$.MsgBox.Alert('提示','链接服务器超时')
119
			}
120
		});
121
	}
122
	//栏目列表
123
	function listShow(pageNo,colNum,isbind){
124
		$.ajax({
125
			"url" :"/ajax/article/find",
126
			"type" :  "GET" ,
127
			"dataType" : "json",
128
			"data" :{
129
				"col":colNum,
130
				"pageSize":10,
131
				"pageNo":pageNo
16 132
			},
17 133
			"beforeSend": function() {
18 134
				$("#table-item").append('<img src="../images/loading.gif" class="loading"  style="position: absolute;left: 50%; top: 50%;" />');
19 135
			},
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 + ");");
136
			"success" : function(data) {
137
				if (data.success){
138
					console.log(data)
139
					var idItem=0;
140
					if(colNum>0){
141
						idItem=colNum-2;
142
					}
143
					console.log(idItem)
144
					$("#table-item-"+idItem).html("");
145
					var strNo='<div class="nodatabox"><div class="nodata"><div class="picbox picNull"></div>'
146
						strNo+='<div class="txtbox"><p class="noContip">该栏目暂时没有任何动态</p></div></div></div>/div>'
147
					var dataStr=data.data.data;
148
					if(dataStr.length>0){
149
						for(var i=0;i<dataStr.length;i++) {
150
							if(colNum>0){
151
								var listLi=$('<li class="flexCenter"></li>').appendTo($("#table-item-"+idItem));
152
								otherColum(dataStr[i],listLi);
153
							}else{
154
								var listLi=$('<li class="flexCenter"></li>').appendTo($("#table-item-0"));
155
								lastestColum(dataStr[i],listLi);
81 156
							}
82
							cmpFun(datalist.owner, $itemlist)
83 157
						}
158
					}else{
159
						$("#table-item-"+idItem).html(strNo);
160
						$("#table-item-"+idItem).parent().find(".tcdPageCode").hide();
84 161
					}
85 162
					//分页
86 163
					if(isbind==true){
87
						$(".tcdPageCode").createPage({
164
						$("#table-item-"+idItem).parent().find(".tcdPageCode").off("click").createPage({
88 165
							pageCount: Math.ceil(data.data.total / 10),
89 166
							current: data.data.pageNo,
90 167
							backFn: function(p) {
91
								$("#table-item").html("");
92
								discover(10, p,false);
168
								$("#table-item-"+idItem).html("");
169
								listShow(p,colNum,false);
93 170
								document.body.scrollTop = document.documentElement.scrollTop = 0;
94 171
							}
95 172
						});
96 173
					}
97 174
					$(".loading").remove();
98 175
				}
99

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

107 277
	/*用户信息*/
108
	function userFun(id, $itemlist) {
278
	function userFun(id,$listItem) {
109 279
		$.ajax({
110 280
			"url": "/ajax/professor/baseInfo/" + id,
111 281
			"type": "get",
112 282
			"async": true,
113 283
			"success": function(data) {
114
				 
115 284
				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

285
					$listItem.find(".ownerName").text(data.data.name);
126 286
				}
127 287
			},
128 288
			"error": function() {
@ -130,9 +290,8 @@ $(function() {
130 290
			}
131 291
		});
132 292
	}
133

134 293
	/*企业用户信息*/
135
	function cmpFun(id, $itemlist) {
294
	function cmpFun(id,$listItem) {
136 295
		$.ajax({
137 296
			"url": "/ajax/org/" + id,
138 297
			"type": "get",
@ -140,25 +299,10 @@ $(function() {
140 299
			"success": function(data) {
141 300
				if(data.success && data.data) {
142 301
					if(data.data.forShort) {
143
						$itemlist.find("#nameSpan").text(data.data.forShort);
302
						$listItem.find(".ownerName").text(data.data.forShort);
144 303
					}else{
145
						$itemlist.find("#nameSpan").text(data.data.name);
304
						$listItem.find(".ownerName").text(data.data.name);
146 305
					}
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 306
				}
163 307
			},
164 308
			"error": function() {
@ -166,7 +310,4 @@ $(function() {
166 310
			}
167 311
		});
168 312
	}
169

170
	
171

172 313
})

+ 1 - 1
js/paperList.js

@ -122,7 +122,7 @@ function lewordNum(pId) {
122 122
						'<div class="madiaInfo">'+					
123 123
							'<p class="h1Font ellipsisSty">'+$data[i].name+'</p>'+						
124 124
							'<ul class="h2Font clearfix">'+
125
								'<li><span>'+oTime+'</span></li>'+pageview+thub+lew
125
								'<li><span>'+oTime+'</span></li>'+pageview+thub+lew+
126 126
							'</ul>'+
127 127
						'</div>'+
128 128
				'</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>';

+ 1 - 1
js/patentList.js

@ -122,7 +122,7 @@ function lewordNum(pId) {
122 122
						'<div class="madiaInfo">'+					
123 123
							'<p class="h1Font ellipsisSty">'+$data[i].name+'</p>'+						
124 124
							'<ul class="h2Font clearfix">'+
125
								'<li><span>'+oTime+'</span></li>'+pageview+thub+lew
125
								'<li><span>'+oTime+'</span></li>'+pageview+thub+lew+
126 126
							'</ul>'+
127 127
						'</div>'+
128 128
				'</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>' +

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

+ 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
		}
@ -304,7 +304,7 @@ $(document).ready(function() {
304 304
					}
305 305
					str += '<div class="madiaInfo"  style="margin-top:18px;padding-bottom:8px">'
306 306
					str += '<p class="h1Font ellipsisSty">' + $html.articleTitle + '</p>'
307
					str += '<p><span class="h2Font">' + cmpname + '</span><em class="authiconNew ' + stl.sty + '" title="' + stl.title + '"></em></p>'
307
					str += '<p><span class="h2Font" style="margin-right:10px">'+ cmpname +'</span><span class="time">'+commenTime($html.publishTime)+'</span></p>'
308 308
					str += '</div></a></li>'
309 309
					$("#oArticle").append(str);
310 310
				}

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

+ 5 - 4
js/userInforShow.js

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

+ 1 - 1
userInforShow.html

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