Browse Source

需求列表以及搜索

luyanan 7 years ago
parent
commit
16487fa789
18 changed files with 498 additions and 728 deletions
  1. 4 48
      articalIssue.html
  2. 4 50
      articalModify.html
  3. 21 9
      css/genindex.css
  4. 1 1
      css/workspace.css
  5. 11 1
      js/articalIssue.js
  6. 11 2
      js/articalModify.js
  7. 81 1
      js/attention-list.js
  8. 4 11
      js/cmpInforShow.js
  9. 36 2
      js/common.js
  10. 218 390
      js/myDemand.js
  11. 13 6
      js/needList.js
  12. 4 3
      js/public/shareCom.js
  13. 8 6
      js/userInforShow.js
  14. 4 3
      js/workindex.js
  15. 36 112
      myDemand.html
  16. 22 40
      needList.html
  17. 1 35
      userInforShow.html
  18. 19 8
      workspaces.html

+ 4 - 48
articalIssue.html

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

41 30
	</div>
42
	<div class="mb_btnbox">
31
	<div class="mb_btnbox" id="promotGt">
43 32
		<input class="mb_btn mb_btnOk" type="button" value="确定">
44 33
		<input class="mb_btn mb_btnNo" type="button" value="取消">
45 34
	</div>
@ -194,42 +183,9 @@ $(function () {
194 183
		e.preventDefault();
195 184
		$('html,body').animate({ scrollTop:0});
196 185
	});
197
	
198
	var currentdate;
199
    $(".form_datetime").datetimepicker({
200
    	format: 'yyyy-mm-dd hh:ii',
201
    	forceParse: true,
202
    	autoclose: true,
203
    });
204
    function getNowFormatDate() {
205
	    var date = new Date();
206
	    var seperator1 = "-";
207
	    var seperator2 = ":";
208
	    var month = date.getMonth() + 1;
209
	    var strDate = date.getDate();
210
	    var getHours = date.getHours();
211
	    var getMinutes = date.getMinutes();
212
	    if (month >= 1 && month <= 9) {
213
	        month = "0" + month;
214
	    }
215
	    if (strDate >= 0 && strDate <= 9) {
216
	        strDate = "0" + strDate;
217
	    }
218
	    if (getMinutes >= 0 && getMinutes <= 9) {
219
	        getMinutes = "0" + getMinutes;
220
	    }
221
	     if (getHours >= 0 && getHours <= 9) {
222
	        getHours = "0" + getHours;
223
	    }
224
	    var currentdate = date.getFullYear() + seperator1 + month + seperator1 + strDate
225
	            + " " + getHours + seperator2 + getMinutes
226
	           
227
	    return currentdate;
228
	}
229
    $(".form_datetime").val(getNowFormatDate(currentdate));
186

230 187
});
231 188
//Model模态框打开关闭
232

233 189
$(".mb_close,.mb_btnNo").click(function() {
234 190
	$(".modelContain").hide();
235 191
	$(".blackcover2").fadeOut();

+ 4 - 50
articalModify.html

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

41 30
	</div>
42
	<div class="mb_btnbox">
31
	<div class="mb_btnbox" id="promotGt">
43 32
		<input class="mb_btn mb_btnOk" type="button" value="确定">
44 33
		<input class="mb_btn mb_btnNo" type="button" value="取消">
45 34
	</div>
@ -190,43 +179,8 @@ $(function () {
190 179
		e.preventDefault();
191 180
		$('html,body').animate({ scrollTop:0});
192 181
	});
193
	
194
	var currentdate;
195
    $(".form_datetime").datetimepicker({
196
    	format: 'yyyy-mm-dd hh:ii',
197
    	forceParse: true,
198
    	autoclose: true,
199
       // todayBtn: true
200
    });
201
    function getNowFormatDate() {
202
	    var date = new Date();
203
	    var seperator1 = "-";
204
	    var seperator2 = ":";
205
	    var month = date.getMonth() + 1;
206
	    var strDate = date.getDate();
207
	    var getHours = date.getHours();
208
	    var getMinutes = date.getMinutes();
209
	    if (month >= 1 && month <= 9) {
210
	        month = "0" + month;
211
	    }
212
	    if (strDate >= 0 && strDate <= 9) {
213
	        strDate = "0" + strDate;
214
	    }
215
	    if (getMinutes >= 0 && getMinutes <= 9) {
216
	        getMinutes = "0" + getMinutes;
217
	    }
218
	     if (getHours >= 0 && getHours <= 9) {
219
	        getHours = "0" + getHours;
220
	    }
221
	    var currentdate = date.getFullYear() + seperator1 + month + seperator1 + strDate
222
	            + " " + getHours + seperator2 + getMinutes
223
	           
224
	    return currentdate;
225
	}
226
    $(".form_datetime").val(getNowFormatDate(currentdate));
227
});
182
})
228 183
//Model模态框打开关闭
229

230 184
$(".mb_close,.mb_btnNo").click(function() {
231 185
	$(".modelContain").hide();
232 186
	$(".blackcover2").fadeOut();

+ 21 - 9
css/genindex.css

@ -488,7 +488,7 @@ ul.tagList>li .h2Font{color:#666}
488 488
.itemListBolck .itemListCon .form-result>ul>li{padding:20px;cursor:pointer;	}
489 489
.itemListBolck .itemListCon .form-result>ul>li:after{content: "";position: absolute;left: 0;right: 0;bottom: 0;height: 2px;background: #f4f6f8;}
490 490
.itemListBolck .itemListCon .form-result>ul>li:hover{background:#EEEEEE;}
491
.itemListBolck .itemListCon .form-result{margin:20px 0 30px;border-top:1px solid #E5E5E5;}
491
.itemListBolck .itemListCon .form-result{margin:20px 0 30px;border-top:1px solid #E5E5E5;position: relative;}
492 492
.itemListBolck .itemListCon .madiaHead{width:120px;height:80px;margin-top:-40px;}
493 493
494 494
.itemListBolck .itemListCon .madiaInfo{padding-left:140px;min-height: 80px;padding-top:15px;}
@ -503,7 +503,7 @@ ul.tagList>li .h2Font{color:#666}
503 503
504 504
.itemListCon li.draftList .madiaInfo{padding-top:4px;}
505 505
506
.form-need{min-height:160px;}
506
/*.form-need{min-height:160px;}*/
507 507
.form-need a{display:block;}
508 508
.itemListBolck .itemListCon .form-need .madiaInfo{padding-left: 0;}
509 509
.itemListBolck .itemListCon .form-need .madiaEdit{display: block;}
@ -518,16 +518,28 @@ ul.tagList>li .h2Font{color:#666}
518 518
.modelContain:before,.modelContain:after{display:table;content:" "}
519 519
.modelContain:after{clear: both;}
520 520
.modelOpen{overflow: hidden;}
521
.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;}
522
.setTimeBlock .mb_tit{display: block; font-size: 18px; color: rgb(255, 255, 255); background-color: rgb(255, 153, 0); line-height: 60px; text-align: center; border-radius: 6px 6px 0 0; }
523
.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;}
524
.setTimeBlock .mb_msg{position: relative; padding: 30px 20px 20px; line-height: 24px; text-align: center; font-size: 16px;}
525
.setTimeBlock .formTime{padding:10px 24px;}
526
.setTimeBlock .mb_btnbox{margin: 0px auto 30px; text-align: center; position: relative;}
527
.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;}
521
/*.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;}
522
.setTimeBlock .mb_tit{display: block; font-size: 18px; color: rgb(255, 255, 255); background-color: rgb(255, 153, 0); line-height: 60px; text-align: center; border-radius: 6px 6px 0 0; }
523
.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;}
524
.setTimeBlock .mb_msg{position: relative; padding: 30px 20px 20px; line-height: 24px; text-align: center; font-size: 16px;}
525
.setTimeBlock .formTime{padding:10px 24px;}*/
526
.setTimeBlock .mb_btnbox{margin: 0px auto 30px; text-align: center; position: relative;}
527
.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;}
528 528
.setTimeBlock .mb_btnOk{ background-color:#ff9900;}
529
.setTimeBlock .mb_btnOk:disabled{background-color:#ccc;}
529 530
.setTimeBlock .mb_btnNo{ background-color:#ccc;}
530 531
532
.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;}
533
.setTimeBlock .mb_tit{display: block; font-size: 18px; color: rgb(255, 255, 255); background-color: rgb(255, 153, 0); line-height: 60px; text-align: center; border-radius: 6px 6px 0 0; }
534
.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;}
535
.setTimeBlock .mb_msg{position: relative; padding: 30px 40px 20px; line-height: 24px; text-align: center; font-size: 16px;}
536
.setTimeBlock .mb_msg .mb-list{margin:6px 6px 12px 6px}
537
.setTimeBlock .mb_msg .msg-tit{margin-bottom: 10px;font-size: 16px;}
538
.setTimeBlock .mb_msg .msg-tit>small{color:#999;font-size: 12px;}
539
.setTimeBlock .mb_msg .msg-tip{margin-top:16px;}
540
.setTimeBlock .mb_msg .msg-tip>p{color:#999;font-size: 14px;margin: 0;}
541
.setTimeBlock .msg-warning{color:#fd5f39;display:none;font-size:13px;}
542
531 543
/*--------------新版资源--------------*/
532 544
.showMain.showMain2{text-indent:0;}
533 545
.showMain.showMain2>ul>li{margin:10px 0;display:none;}

+ 1 - 1
css/workspace.css

@ -369,7 +369,7 @@ border-color:#FF9900; color:#FFFFFF}
369 369
.topTit{text-align:center;color:#FFFFFF; font-size:20px;line-height:46px;background: #ff9900;border-radius:10px 10px 0 0;height:46px;width: 100%;}
370 370
.fixbox{ background: #FFFFFF;/* position:fixed;top:46px;left:0;*/width:100%; z-index:1;}
371 371
.fixbox .fixbtn{ padding:0; margin: 0; overflow: hidden;}
372
.fixbox .fixbtn li{ list-style: none;border-right:1px solid #F0F0F0; float: left;height:40px;cursor:pointer;line-height:30px; padding:6px 10px; border-bottom:1px solid #F0F0F0;text-align: center;font-size: 14px;}
372
.fixbox .fixbtn li{width:14.2%; list-style: none;border-right:1px solid #F0F0F0; float: left;height:40px;cursor:pointer;line-height:30px; padding:6px 10px; border-bottom:1px solid #F0F0F0;text-align: center;font-size: 14px;}
373 373
.fixbox .fixbtn li:last-child{border-right:1px solid transparent; }
374 374
.fixbox .fixbtn li.liactive{ color: #FF9900;border-bottom-color: #FF9900;}
375 375
.childlist{ display: none;}

+ 11 - 1
js/articalIssue.js

@ -391,7 +391,10 @@ $(function() {
391 391
			$.MsgBox.Confirm("提示", "确认发布该文章?", newsAdd);
392 392
		}
393 393
	})
394

394
	var seleTime = '<div class="mb-list mb-listR"><p class="msg-tit">请设置文章发布的时间:</p>'+
395
		'<div class="formTime"><div class="form-group">'+
396
        '<input size="16" type="text" value="" readonly class="form-control form_datetime">'+
397
    	'</div></div></div>';
395 398
	//定时文章发布
396 399
	$("#setTimeIssue").on("click", function() {
397 400
		if($(this).hasClass("disableLi")){
@ -402,6 +405,13 @@ $(function() {
402 405
			$(".blackcover2").fadeIn();
403 406
			$(".modelContain").show();
404 407
			$("body").addClass("modelOpen");
408
			$(".mb-listR").remove(); $("#promotTh").append(seleTime);//时间选择器
409
			$(".form_datetime").datetimepicker({
410
				format: 'yyyy-mm-dd hh:ii',
411
				forceParse: true,
412
				autoclose: true,
413
			});
414
			$(".form_datetime").val(getNowFormatDate());
405 415
			$(".mb_btnOk").on("click", function() {
406 416
				var publishTime = $(".form_datetime").val();
407 417
				console.log(st6(publishTime));

+ 11 - 2
js/articalModify.js

@ -582,10 +582,12 @@ $(function() {
582 582
	$("#delete").on("click",function(){
583 583
		$.MsgBox.Confirm("提示","确认删除该文章?",newsDelet);
584 584
	})
585
	
585
	var seleTime = '<div class="mb-list mb-listR"><p class="msg-tit">请设置文章发布的时间:</p>'+
586
		'<div class="formTime"><div class="form-group">'+
587
        '<input size="16" type="text" value="" readonly class="form-control form_datetime">'+
588
    	'</div></div></div>';
586 589
	//定时文章发布
587 590
	$("#setTimeIssue").on("click", function() {
588
		//$(".form_datetime").val(timeGeshi(modifyTimeval));
589 591
		if($(this).hasClass("disableLi")){
590 592
			return;
591 593
		}
@ -594,6 +596,13 @@ $(function() {
594 596
			$(".blackcover2").fadeIn();
595 597
			$(".modelContain").show();
596 598
			$("body").addClass("modelOpen");
599
			$(".mb-listR").remove(); $("#promotTh").append(seleTime);//时间选择器
600
			$(".form_datetime").datetimepicker({
601
				format: 'yyyy-mm-dd hh:ii',
602
				forceParse: true,
603
				autoclose: true,
604
			});
605
			$(".form_datetime").val(getNowFormatDate());
597 606
			$(".mb_btnOk").on("click", function() {
598 607
				var modifyTimeval = $(".form_datetime").val();
599 608
				settime = true;

+ 81 - 1
js/attention-list.js

@ -331,7 +331,6 @@ $(function() {
331 331
	}
332 332
	paper();
333 333
	/*关注企业信息*/
334
	/*关注论文信息*/
335 334
	function company() {
336 335
		var data = {
337 336
			"professorId": userid,
@ -412,4 +411,85 @@ $(function() {
412 411
		});
413 412
	}
414 413
	company();
414
	
415
	function demands() {
416
		var data = {
417
			"professorId": userid,
418
			"watchType":7,
419
			"pageNo": 1,
420
			"pageSize": 1000
421
		}
422
		$.ajax({
423
			url: "/ajax/watch/qaPro",
424
			data: data,
425
			dataType: 'json', //数据格式类型
426
			type: 'get', //http请求类型
427
			success: function(data) {
428
				console.log(data);
429
				if(data.success && data.data.data != "") {
430
					var arr=[];
431
					for(var i in data.data.data) {
432
						arr[i]=data.data.data[i].watchObject;
433
					}
434
					$.ajax({
435
						url: "/ajax/org/qm",
436
						data: {
437
							id:arr,
438
						},
439
						dataType: 'json', //数据格式类型
440
						type: 'get', //http请求类型
441
						traditional: true,
442
						success: function(data) {
443
							console.log(data);
444
							if(data.success && data.data != "") {
445
								var $data=data.data;
446
								console.log($data);
447
								for(var i=0;i<$data.length;i++) {
448
									var li = document.createElement('li');
449
									
450
								li.innerHTML = '<a class="proinfor clearfix" target="_blank"  href="">' +
451
								'<div class="headblock floatL ResImgBox"><img id="proHead" class="resImg" src=""></div>' +
452
								'<div class="mediaBody">' +
453
								'<p><span class="listtit">'+$data[i].name+'<em class="authiconNew" title=""></em></span></p>'+
454
								'<span class="listtit" id="orgTit"></span>' +
455
								'<span class="listtit" id="orgOther"></span>' +
456
								'</div></a></li>';
457
								var $itemlist=$(li);
458
								$("#demands").append(li);
459
								$itemlist.find("a").attr("href", "cmpInforShow.html?orgId=" + $data[i].id );
460
									if($data[i].hasOrgLogo) {
461
										$itemlist.find("#proHead").attr("src", "/images/org/" + $data[i].id + ".jpg" );
462
									}else{
463
										$itemlist.find("#proHead").attr("src", "/images/default-icon.jpg" );
464
									}
465
									if($data[i].authStatus == 3) {
466
										$itemlist.find(".authiconNew").addClass("authicon-com-ok").attr("title", "科袖认证企业");;	
467
									}
468
									console.log($data[i])
469
								var orgOther = "";
470
								
471
								if($data[i].industry) {
472
									orgOther = $data[i].industry.replace(/,/gi, " | ");
473
								}
474
								$itemlist.find("#orgOther").text(orgOther);
475
								
476
								if($data[i].orgType == "2") {
477
									$itemlist.find("#orgTit").html(orgTypeShow[$data[i].orgType] + "<span style='margin-right:10px;'></span>");
478
								}
479
								}
480
								
481
							}
482
						},
483
						error: function() {
484
							$.MsgBox.Alert('提示', "服务器链接超时");
485
						}
486
					});
487
				}
488
			},
489
			error: function() {
490
				$.MsgBox.Alert('提示', "服务器链接超时");
491
			}
492
		});
493
	}
494
	demands();
415 495
})

+ 4 - 11
js/cmpInforShow.js

@ -584,8 +584,10 @@ $(function() {
584 584
			timeout: 10000,
585 585
			dataType: "json",
586 586
			data: {
587
				"state":'1',
588
				"oid":orgId,
587 589
				"pageNo": pageNo,
588
				"pageSize":pageSize,
590
				"pageSize":pageSize
589 591
			},
590 592
			beforeSend: function() {
591 593
				$("#showDemand").append('<img src="../images/loading.gif" class="loading" />');
@ -601,15 +603,6 @@ $(function() {
601 603
							var liStr=$("<li></li>").appendTo("#showDemand");
602 604
							demandHtml($info[i],liStr);
603 605
						}
604
//						if(isbind == true) {
605
//							$("#showDemand").siblings(".tcdPageCode").off("click").createPage({
606
//								pageCount: Math.ceil(data.data.total / pageSize),
607
//								current: data.data.data.pageNo,
608
//								backFn: function(p) {
609
//									demandList(false, 5, p);
610
//								}
611
//							});
612
//						}
613 606
					}else{
614 607
						$("#showDemand").parents(".needinfobox").addClass("displayNone");
615 608
					}
@ -630,7 +623,7 @@ $(function() {
630 623
			strCon+='<a class="" target="_blank" href="" class="madiaInfo">'
631 624
			strCon+='<p class="h1Font ellipsisSty">'+ $data.title +'</p>'
632 625
			strCon+='<ul class="showliTop h3Font clearfix">'
633
			strCon+='<li><span class="cmpName"></span></li><li><span>发布于 '+commenTime($data.createTime)+'</span></li>'
626
			strCon+='<li><span>发布于 '+commenTime($data.createTime)+'</span></li>'
634 627
			strCon+= sowU
635 628
			strCon+='</ul>'
636 629
			strCon+='<p class="h2Font ellipsisSty-2">'+$data.descp+'</p>'

+ 36 - 2
js/common.js

@ -573,7 +573,10 @@ function TimeTr(dealtime) {
573 573
	if(s.length <= 6) {
574 574
		formatTime = y + "年" + m.replace(/\b(0+)/gi, "") + "月";
575 575
	} else if(s.length > 6 && s.length <= 8) {
576
		formatTime = y + "年" + m.replace(/\b(0+)/gi, "") + "月" + d.replace(/\b(0+)/gi, "") + "日 ";
576
		formatTime = m.replace(/\b(0+)/gi, "") + "月" + d.replace(/\b(0+)/gi, "") + "日 ";
577
		if(y != myDate.getFullYear()) {
578
			formatTime = y + "年" + m.replace(/\b(0+)/gi, "") + "月" + d.replace(/\b(0+)/gi, "") + "日 ";
579
		}
577 580
	} else {
578 581
		formatTime = m.replace(/\b(0+)/gi, "") + "月" + d.replace(/\b(0+)/gi, "") + "日 " + h + ":" + minute;
579 582
		if(y != myDate.getFullYear()) {
@ -1122,4 +1125,35 @@ var bannerRotate = {// banner rotating
1122 1125
			_this.bannerStart();
1123 1126
		});
1124 1127
	}
1125
};
1128
};
1129
1130
var currentdate;
1131
function getNowFormatDate(num) {
1132
    var date = new Date();
1133
    var seperator1 = "-";
1134
    var seperator2 = ":";
1135
    var month = date.getMonth() + 1;
1136
    var strDate = date.getDate();
1137
    var getHours = date.getHours();
1138
    var getMinutes = date.getMinutes();
1139
    if (month >= 1 && month <= 9) {
1140
        month = "0" + month;
1141
    }
1142
    if (strDate >= 0 && strDate <= 9) {
1143
        strDate = "0" + strDate;
1144
    }
1145
    if (getMinutes >= 0 && getMinutes <= 9) {
1146
        getMinutes = "0" + getMinutes;
1147
    }
1148
     if (getHours >= 0 && getHours <= 9) {
1149
        getHours = "0" + getHours;
1150
    }
1151
    var currentdate = date.getFullYear() + seperator1 + month + seperator1 + strDate
1152
            + " " + getHours + seperator2 + getMinutes
1153
    if(num==1){
1154
    	currentdate = date.getFullYear() + seperator1 + month + seperator1 + strDate
1155
    }
1156
    
1157
           
1158
    return currentdate;
1159
}

+ 218 - 390
js/myDemand.js

@ -4,20 +4,169 @@ $(document).ready(function() {
4 4
	loginStatus(); //判断个人是否登录
5 5
	valUser();
6 6
	var userid = $.cookie("userid");
7
	var yesNo = "",
8
		oSortType = 0,
9
		demandType, orgId;
7
    var statusN="";
8
	myDemandList(true, 1, 10);
9
	
10
	var sureOrg ='<div class="mb-list mb-listL" style="text-align:left"><p class="msg-tit">请先确认您的所在机构:<small>(建议填写正式全称)</small></p>'+
11
		'<input type="text" class="form-control sureOrg" placeholder="如:北京科袖科技有限公司" /><p class="msg-warning">50字以内</p>'+
12
		'<div class="msg-tip"><p>注:</p><p>1. 只能发布您所在机构的需求。</p><p>2. 当您在资料中变更了所在机构后,该需求将会自动关闭。</p></div></div>';
13
	var seleTime = '<div class="mb-list mb-listR"><p class="msg-tit">请设置需求的有效期:</p>'+
14
		'<div class="formTime"><div class="form-group">'+
15
        '<input size="16" type="text" value="" readonly class="form-control form_datetime">'+
16
    	'</div></div></div>';
17
	
18
	$(".setTimeBlock").on("focus",".sureOrg",function(){
19
		$(".msg-warning").show();
20
	}).on("blur",".sureOrg",function(){
21
		$(".msg-warning").hide();
22
	}).on("keyup",".sureOrg",function(){
23
		if($(this).val().length>0){
24
			$(".setTimeBlock").find(".mb_btnOkpub").removeAttr("disabled");
25
		}else{
26
			$(".setTimeBlock").find(".mb_btnOkpub").attr("disabled",true)
27
		}
28
	})
29
	$(".issueSpanBlock").on("click",".issueSpan",function(){
30
		var $status=["0","1"];
31
		$.ajax({//查询是否有发布中和已过期的需求
32
			url:"/ajax/demand/qc",
33
			type:"get",
34
			data:{
35
				state:$status,
36
				uid:userid
37
			},
38
			async:true,
39
			datatype:"json",
40
			traditional: true,
41
			success:function(data){
42
				console.log(data)
43
				var statusN=data.data;
44
				if(statusN!=0){
45
					window.open("postDemand.html");
46
				}else{
47
					$(".blackcover2").fadeIn();
48
					var btnOk='<input class="mb_btn mb_btnOk mb_btnOkpub" type="button" disabled value="确定">'
49
					$(".modelContain").show(); $("body").addClass("modelOpen");
50
					$(".mb-listL").remove();$("#promotTh").prepend(sureOrg);
51
					$(".mb_btnOk").remove(); $("#promotGt").prepend(btnOk);
52
					
53
					$.ajax({
54
						"url": "/ajax/professor/editBaseInfo/" + userid,
55
						"type": "get",
56
						"async": true,
57
						"datatype":"json",
58
						"success": function(data) {
59
							if(data.success && data.data) {
60
								if(data.data.orgName!=""){
61
									$(".setTimeBlock .sureOrg").val(data.data.orgName);
62
									$("#oldName").val(data.data.orgName);
63
								}
64
								if($(".setTimeBlock .sureOrg").val().length>0){
65
									$(".setTimeBlock").find(".mb_btnOkpub").removeAttr("disabled");
66
								}
67
							}
68
						}
69
					});
70
					
71
					$(".mb_btnOkpub").on("click", function() {
72
						$(".blackcover2").fadeOut();
73
						$(".modelContain").hide();
74
						$("body").removeClass("modelOpen");
75
						var newName=$(".setTimeBlock .sureOrg").val();
76
						if(newName.length<50){
77
							if(newName == $("#oldName").val()){
78
								location.href="postDemand.html";
79
							}else{
80
								updateOrgName(newName);
81
							}
82
						}else{
83
							$.MsgBox.Alert("提示", "机构名称不得超过50个字");
84
						}
85
						
86
					})
87
				}
88
			}
89
		});
10 90
		
11
	myDemandList(true, 1, 5);
91
	})
92
	
93
	$("#myneedList").on("click",".delayThis",function(){//延期
94
		var dataId=$(this).parents("li").find(".urlHref").attr("data-id");
95
		$(".blackcover2").fadeIn();
96
		var btnOk='<input class="mb_btn mb_btnOk mb_btnOkset" type="button" value="确定">'
97
		$(".mb_btnOk").remove(); $("#promotGt").prepend(btnOk);
98
		$(".modelContain").show(); $("body").addClass("modelOpen");
99
		$(".mb-listR").remove(); $("#promotTh").append(seleTime);//时间选择器
100
		$(".mb-listR .form_datetime").datetimepicker({
101
			format: 'yyyy-mm-dd',
102
			forceParse:0,
103
			autoclose: 1,
104
			language:  'en',
105
			startDate: getNowFormatDate(),
106
	        weekStart: 0,
107
	        todayBtn:  1,
108
			todayHighlight: 1,
109
			startView: 2,
110
			minView: 2,
111
		});
112
		$(".mb-listR .form_datetime").val(getNowFormatDate(1));
113
		$(".mb_btnOkset").on("click", function() {
114
			var delayTime=$(".mb-listR .form_datetime").val();
115
			$.ajax({
116
				"url": "/ajax/demand/defer",
117
				"type": "POST",
118
				"async": true,
119
				"data":{
120
					"id":dataId,
121
					"uid":userid,
122
					"day":st6This(delayTime)
123
				},
124
				"success": function(data) {
125
					if(data.success && data.data) {
126
						$(".blackcover2").fadeOut();
127
						$(".modelContain").hide();
128
						$("body").removeClass("modelOpen");
129
						myDemandList(true,1,10);
130
					}
131
				}
132
			});
133
		})
134
	})
135
	$("#myneedList").on("click",".updateThis",function(){//修改
136
		var dataId=$(this).parents("li").find(".urlHref").attr("data-id");
137
		window.open("demandModify.html?demandId="+dataId)
138
	})
139
	$("#myneedList").on("click",".overThis",function(){//完成
140
		var dataId=$(this).parents("li").find(".urlHref").attr("data-id");
141
		$.MsgBox.Confirm("提示", "确认该需求已解决?",function(){
142
			$.ajax({
143
				"url": "/ajax/demand/over",
144
				"type": "POST",
145
				"async": true,
146
				"data":{
147
					"id":dataId,
148
					"uid":userid
149
				},
150
				"success": function(data) {
151
					if(data.success && data.data) {
152
						console.log(data);
153
						$(".madiaEdit").remove();
154
						demandList(true,10, 1);
155
					}
156
				}
157
			});
158
		});
159
	})
160
	
12 161
	/*我的需求列表*/
13 162
	function myDemandList(isbind, page, pageNum) {
14 163
		$.ajax({
15
			url: "/ajax/demand/pqDemander",
164
			url: "/ajax/demand/pq",
16 165
			type: "GET",
17 166
			timeout: 10000,
18 167
			dataType: "json",
19 168
			data: {
20
				"demander": userid,
169
				"uid": userid,
21 170
				"pageNo": page,
22 171
				"pageSize": pageNum
23 172
			},
@ -28,18 +177,24 @@ $(document).ready(function() {
28 177
				if(data.success) {
29 178
					$("#myneedList").html("");
30 179
					var $info = data.data.data;
180
					console.log(data)
31 181
					if($info.length > 0){
32 182
						for(var i = 0; i < $info.length; i++) {
33 183
							var liStr=$("<li></li>").appendTo("#myneedList");
34 184
							demandHtml($info[i],liStr);
185
							if($info[i].state==0 || $info[i].state==1){
186
								liStr.find(".urlHref").attr("href","demandModify.html?demandId="+$info[i].id);
187
							}else{
188
								liStr.find(".urlHref").attr("href","demandShow.html?demandId="+$info[i].id);
189
							}
35 190
						}
36 191
						if(isbind == true) {
37 192
							$(".tcdPageCode").createPage({
38 193
								pageCount: Math.ceil(data.data.total / pageNum),
39
								current: data.data.data.pageNo,
194
								current: data.data.pageNo,
40 195
								backFn: function(p) {
41 196
									$("#myneedList").html("");
42
									myDemandList(false, p, 5);
197
									myDemandList(false, p, 10);
43 198
									document.body.scrollTop = document.documentElement.scrollTop = 0;
44 199
								}
45 200
							});
@ -61,30 +216,25 @@ $(document).ready(function() {
61 216
			sowU='<li><span>浏览量 '+$data.pageViews+'</span></li>'
62 217
		}
63 218
		var statusU="";
64
		var dateToday = new Date();
65
		var dateInvalid = $data.invalidDay;
66
		dateInvalid.setFullYear(parseInt(startTime.substring(0, 4)));
67
		dateInvalid.setMonth(parseInt(startTime.substring(4, 6)) - 1);
68
		dateInvalid.setDate(parseInt(startTime.substring(6, 8)));
69
		
70
		var dateGap = dateToday.getTime() - dateInvalid.getTime()
71
		
72
		if($data.state==1 && dateGap<604800000){
73
			statusU='<li><span class="draftLable">即将于 '+TimeTr($data.createTime)+'过期</span></li>'
219
		var dateGap = delayDay($data.invalidDay);
220
		if($data.state==1 && dateGap=="1"){
221
			statusU='<li><span class="draftLable">即将于 '+TimeTr($data.invalidDay)+' 过期</span></li>'
74 222
		}
75 223
		if($data.state==0){
76
			statusU='<li><span class="draftLable">已于 '+TimeTr($data.createTime)+'过期</span></li>'
224
			statusU='<li><span class="draftLable">已于 '+TimeTr($data.invalidDay)+' 过期</span></li>'
77 225
		}else if($data.state==2){
78
			statusU='<li><span">已于 '+TimeTr($data.createTime)+'完成</span></li>'
226
			statusU='<li><span">已于 '+TimeTr($data.modifyTime)+' 完成</span></li>'
79 227
		}else if($data.state==3){
80
			statusU='<li><span">已于 '+TimeTr($data.createTime)+'关闭</span></li>'
228
			statusU='<li><span">已于 '+TimeTr($data.modifyTime)+' 关闭</span></li>'
81 229
		}
82 230
		var closStr='';
83
		if($data.state==1){
84
			closStr += '<ul class="madiaEdit"><li><span class="closeThis">关闭</span></li></ul>'
231
		if($data.state==1 && dateGap=="0"){
232
			closStr += '<ul class="madiaEdit"><li><span class="updateThis">修改</span></li><li><span class="overThis">完成</span></li></ul>'
233
		}else if($data.state==0 || ($data.state==1 && dateGap=="1")){
234
			closStr += '<ul class="madiaEdit"><li><span class="delayThis">延期</span></li><li><span class="updateThis">修改</span></li><li><span class="overThis">完成</span></li></ul>'
85 235
		}
86 236
		var strCon='';
87
			strCon+='<a class="madiaInfo" target="_blank" href="">'
237
			strCon+='<a class="madiaInfo urlHref" target="_blank" data-id="'+$data.id+'">'
88 238
			strCon+='<p class="h1Font ellipsisSty">'+ $data.title +'</p>'
89 239
			strCon+='<ul class="showliTop h2Font clearfix">'
90 240
			strCon+='<li><span>发布于 '+commenTime($data.createTime)+'</span></li>'
@ -93,373 +243,51 @@ $(document).ready(function() {
93 243
			strCon+='</ul>'
94 244
			strCon+='</a>'+closStr
95 245
			
96
		$(strCon).appendTo(liStr);								
246
		$(strCon).appendTo(liStr);
247
		
248
		
97 249
	}
98 250

99
//	function demandHtml($data) {
100
//		for(var i = 0; i < $data.length; i++) {
101
//			var oTime, oDemandType, oDemandAim, oDemandStatus;
102
//			if($data[i].demandType == 1) {
103
//				oDemandType = "个人需求"
104
//			} else if($data[i].demandType == 2) {
105
//				oDemandType = "企业需求"
106
//			}
107
//			if($data[i].demandAim == 1) {
108
//				oDemandAim = "技术咨询"
109
//			} else if($data[i].demandAim == 2) {
110
//				oDemandAim = "寻找资源"
111
//			} else if($data[i].demandAim == 3) {
112
//				oDemandAim = "其他需求"
113
//			}
114
//			if($data[i].demandStatus == 0) {
115
//				oDemandStatus = "已关闭"
116
//			} else if($data[i].demandStatus == 1) {
117
//				oDemandStatus = "发布中"
118
//			}
119
//			oTime = $data[i]["createTime"].substr(0, 4) + "年" + $data[i].createTime.substr(4, 2) + "月" + $data[i].createTime.substr(6, 2) + "日" +
120
//				$data[i].createTime.substr(8, 2) + ":" + $data[i].createTime.substr(10, 2);
121
//			var oString = "<div class='workselectitem'><table width='100%'><tbody><tr>"
122
//			oString += "<td style='position:relative;top:20px;'>"
123
//			oString += "<div class='workinfor worksitcon'>"
124
//			oString += "<h4><div class='titList h4Font' style='width:620px'>" + $data[i].demandTitle + "</div></h4>"
125
//			oString += "<h6 style='position:relative;'>"
126
//			oString += "<div class='clearfix'>"
127
//			oString += "<div class='floatL'>发布时间:<span class='lasttime'>" + oTime + "</span></div>"
128
//			if($data[i].closeTime) {
129
//				var oCloseTime = $data[i]["closeTime"].substr(0, 4) + "年" + $data[i].closeTime.substr(4, 2) + "月" + $data[i].closeTime.substr(6, 2) + "日" +
130
//					$data[i].closeTime.substr(8, 2) + ":" + $data[i].closeTime.substr(10, 2);
131
//				oString += "<div class='floatL' style='margin-left:40px;'>关闭时间:<span class='lasttime'>" + oCloseTime + "</span></div></div>"
132
//			}
133
//			oString += "<div style='height:70px'><p class='rebackcon lastReplyCon' style='width: 860px;' >" + $data[i].demandContent + "</p></div></h6></div>"
134
//			oString += "<div class='workhandle'>"
135
//			oString += "<div class='rightopert floatR'>"
136
//			oString += "<span class='replybtn'demanid='" + $data[i].demandId + "'>查看</span></div>"
137
//			oString += "<div class='leftstate floatR'>"
138
//			oString += "<span class='coultstate status-1'><i>" + oDemandStatus + "</i></span></div>"
139
//			oString += "<div class='leftstate floatR'>"
140
//			oString += "<span class='coultstate status-4'><i>" + oDemandAim + "</i></span></div>"
141
//			oString += "<div class='leftstate floatR'>"
142
//			oString += "<span class='coultstate coulstAim status-4'><i>" + oDemandType + "</i></span></div></div></td></tr></tbody></table></div>"
143
//			$("#myNeed").append(oString)
144
//		}
145
//	}
146
	/*检索排序*/
147
//	function selcet(i) {
148
//		$(".selcet" + i).on('click', function(e) {
149
//			var option = $(this).find(".option" + i);
150
//			option.css("display", "block")
151
//			var o_this = $(this);
152
//			o_this.find("li").click(function() {
153
//				o_this.find("li").removeClass("workcurrent");
154
//				$(this).addClass("workcurrent");
155
//				o_this.find("span").text($(this).text());
156
//				option.css("display", "none");
157
//				if($(this).text() == "全部") {
158
//					yesNo = "";
159
//					$(".tcdPageCode").remove();
160
//					$("#workContainer2").append('<div class="tcdPageCode"></div>');
161
//					myDemandList(true, 1, 5, yesNo, oSortType);
162
//				} else if($(this).text() == "发布中") {
163
//					yesNo = 1;
164
//					$(".tcdPageCode").remove();
165
//					$("#workContainer2").append('<div class="tcdPageCode"></div>');
166
//					myDemandList(true, 1, 5, yesNo, oSortType);
167
//				} else if($(this).text() == "已关闭") {
168
//					yesNo = 0;
169
//					$(".tcdPageCode").remove();
170
//					$("#workContainer2").append('<div class="tcdPageCode"></div>');
171
//					myDemandList(true, 1, 5, yesNo, oSortType);
172
//				} else if($(this).text() == "按最早发布时间排序") {
173
//					oSortType = 1;
174
//					$(".tcdPageCode").remove();
175
//					$("#workContainer2").append('<div class="tcdPageCode"></div>');
176
//					myDemandList(true, 1, 5, yesNo, oSortType);
177
//				} else if($(this).text() == "按最新发布时间排序") {
178
//					oSortType = 0;
179
//					$(".tcdPageCode").remove();
180
//					$("#workContainer2").append('<div class="tcdPageCode"></div>');
181
//					myDemandList(true, 1, 5, yesNo, oSortType);
182
//				}
183
//				return false;
184
//			});
185
//			$("body").click(function(e) {
186
//				if($(".option4")[0].style.display == "block" || $(".option1")[0].style.display == "block") {
187
//					$(".option4")[0].style.display = "none";
188
//					$(".option1")[0].style.display = "none";
189
//				}
190
//			});
191
//			return false;
192
//		})
193
//	}
194
//	selcet(1);
195
//	selcet(4);
196
//	$("#myNeed").on("click", ".replybtn", function() {
197
//		var de = $(this).attr("demanid");
198
//		location.href = "needShow.html?demandId=" + de
199
//	});
200
//	/*发布新需求*/
201
//	$("#needIssueBtn").click(function() {
202
//		$.ajax({
203
//			url: "/ajax/professor/baseInfo/" + userid,
204
//			type: "GET",
205
//			timeout: 10000,
206
//			dataType: "json",
207
//			success: function(data) {
208
//				if(data.success) {
209
//					console.log(data);
210
//					var $rta = data.data;
211
//					orgId = $rta.orgId
212
//					console.log(orgId)
213
//					$("#induSub").val("");
214
//					$("textarea").val("");
215
//					$("#demandContent").val("");
216
//					$("#navsub").find("li").removeClass("aimedLi");
217
//					$("#mutChecked").find("li").removeClass("checkedLi");
218
//					$('.checkNow').removeClass('checkNow');
219
//					if($rta.authStatus != 3) {
220
//						if($rta.orgAuth == 1) {
221
//							$(".blackcover ").show();
222
//							$("body").css("position","fixed");
223
//							$("span:contains('企业需求')").addClass("checkNow");
224
//							$("span:contains('个人需求')").addClass("checkNo");
225
//							demandType = 2;
226
//						} else {
227
//							location.href = "realname-authentication.html";
228
//						}
229
//
230
//					} else {
231
//						$(".blackcover ").show();
232
//						$("body").css("position","fixed");
233
//						if($rta.orgAuth == 0) {
234
//							$("span:contains('企业需求')").addClass("checkNo");
235
//							$("span:contains('个人需求')").addClass("checkNow");
236
//							demandType = 1;
237
//						} else {
238
//							demanTy();
239
//						}
240
//					}
241
//
242
//				}
243
//
244
//			},
245
//			error: function(XMLHttpRequest, textStats, errorThrown) {
246
//
247
//			}
248
//		})
249
//
250
//	});
251
//	$("#workclose2").click(function() {
252
//			$(".blackcover ").hide();
253
//			$("body").css("position","relative");
254
//		})
255
//		/*发布新需求目的*/
256
//	var consun;
257
//	tab("navsub"); //身份切换
258
//	function tab(name) {
259
//		var oDome = document.getElementById(name);
260
//		var oSpan = oDome.getElementsByTagName('ul')[0].childNodes;
261
//		for(var i = 0; i < oSpan.length; i++) {
262
//			oSpan[i].onclick = function() {
263
//				for(var i = 0; i < oSpan.length; i++) {
264
//					oSpan[i].className = '';
265
//				}
266
//				this.className = 'aimedLi';
267
//				if(this.getElementsByTagName("span")[0].innerText == "咨询技术难题") {
268
//					consun = 1;
269
//				} else if(this.getElementsByTagName("span")[0].innerText == "寻求研发资源") {
270
//					consun = 2;
271
//				} else {
272
//					consun = 3;
273
//				}
274
//			}
275
//		}
276
//	}
277
//	/*切换需求类型*/
278
//	function demanTy() {
279
//		var deTy = document.getElementsByClassName("boxnavTo")[0];
280
//		var deTyChild = deTy.getElementsByTagName("span");
281
//		if(deTyChild[0].className != "checkNo" && deTyChild[1].className != "checkNo") {
282
//			for(var n = 0; n < deTyChild.length; n++) {
283
//				(function(m) {
284
//					deTyChild[m].onclick = function() {
285
//						this.className = "checkNow";
286
//						if(m == 0) {
287
//							demandType = 1;
288
//							deTyChild[1].className = "";
289
//						} else if(m == 1) {
290
//							demandType = 2;
291
//							deTyChild[0].className = "";
292
//						}
293
//					}
294
//				})(n);
295
//			}
296
//		}
297
//	}
251
	//修改机构名称
252
	function updateOrgName(newName){
253
		$.ajax({
254
			"url": "/ajax/professor/org",
255
			"type": "POST",
256
			"async": true,
257
			"data":{
258
				"id":userid,
259
				"name":newName
260
			},
261
			"success": function(data) {
262
				if(data.success && data.data) {
263
					console.log(data)
264
					$.MsgBox.Confirm("提示", "机构名称修改成功",function(){
265
						location.href="postDemand.html";
266
					});
267
					$("#mb_msgicon").css("background", 'url("images/sign_icon_chenggong_nor.png") 0% 0% / contain');
268
				}
269
			}
270
		});
271
	}
272
	
273
	function delayDay(startTime){
274
		var dateToday = new Date();
275
		var dateInvalid = new Date();
276
		dateInvalid.setFullYear(parseInt(startTime.substring(0, 4)));
277
		dateInvalid.setMonth(parseInt(startTime.substring(4, 6)) - 1);
278
		dateInvalid.setDate(parseInt(startTime.substring(6, 8)));
279
		
280
		var dateGap = Math.abs(dateToday.getTime() - dateInvalid.getTime());
281
		var ifDelay="0";
282
		if(dateGap < 604800000){
283
			ifDelay="1";
284
		}
285
		return ifDelay;
286
	}
287
	
288
	function st6This(osr) {
289
		var tim = osr.substring(0, 4) + osr.substring(5, 7) + osr.substring(8, 10) ;
290
		return tim;
291
	}
298 292

299
//	/*需求题目限制30个字*/
300
//	$("#demandContent").on('keyup', function() {
301
//		if(this.value.length > 30) {
302
//			this.value = this.value.substring(0, 30);
303
//		}
304
//	});
305
//	/*需求内容限制300个字*/
306
//	$("textarea").on('keyup', function() {
307
//		var maxChars = 300;
308
//		if(this.value.length > maxChars) {
309
//			this.value = this.value.substring(0, maxChars);
310
//		}
311
//		var oCanInput = maxChars - this.value.length;
312
//		$("#countNum").text(oCanInput);
313
//	});
314
//	/*查询应用行业及学术领域*/
315
//	function industry(insu) {
316
//		$.ajax({
317
//			url: "/ajax/dataDict/qaDictCode",
318
//			dataType: 'json', //数据格式类型
319
//			type: 'GET', //http请求类型
320
//			timeout: 10000, //超时设置
321
//			data: {
322
//				"dictCode": insu
323
//			},
324
//			success: function(data) {
325
//				if(data.success) {
326
//					var $data = data.data;
327
//					var n;
328
//					($data.length > 5) ? n = 5:
329
//						n = $data.length
330
//					for(var i = 0; i < n; i++) {
331
//						var oString = '<li><span>' + $data[i].caption + '</span></li>';
332
//						$("#mutChecked").append(oString);
333
//					}
334
//				}
335
//			},
336
//			error: function() {
337
//				return;
338
//			}
339
//		});
340
//	}
341
//	industry("INDUSTRY");
342
//	industry("SUBJECT");
343
//	/*行业及领域选择*/
344
//	$('#mutChecked').on('click', 'li', function() {
345
//			if(this.className == "checkedLi") {
346
//				this.className = ""
347
//			} else {
348
//				this.className = "checkedLi"
349
//			}
350
//		})
351
//		/*行业或者领域添加及删除*/
352
//	$("#labelshow").on("click", ".removeNu", function() {
353
//		$(this).parent().remove();
354
//	});
355
//	$("#addIndu").click(function() {
356
//			var oinduSub = $("#induSub").val();
357
//			var oAddNum = $("#labelshow").find("em");
358
//			if(!oinduSub.trim()) {
359
//				$.MsgBox.Alert("消息", "请先添加内容");
360
//				return;
361
//			}
362
//			if(oinduSub.trim().length > 10) {
363
//				$.MsgBox.Alert("消息", "不能多于10个字");
364
//				return;
365
//			}
366
//			if(oAddNum.length == 5) {
367
//				$.MsgBox.Alert("消息", "最多添加五条");
368
//				return;
369
//			}
370
//			for(var i = 0; i < oAddNum.length; i++) {
371
//				if(oAddNum[i].innerHTML == oinduSub) {
372
//					$.MsgBox.Alert("消息", "不能重复添加");
373
//					return;
374
//				}
375
//			}
376
//			$("#labelshow").append('<li class="deleteSubject"><em>' + oinduSub + '</em><span class="removeNu"><img src="images/move.png"></span></li>')
377
//			$("#induSub").val("");
378
//		})
379
//		/*发布新需求*/
380
//	$("#postDemand").click(function() {
381
//		var dd = $("#navsub").find(".aimedLi");
382
//		var cc = $("#navsubTo").find(".checkNow");
383
//		if(dd.length == 0) {
384
//			$.MsgBox.Alert("消息", "请选择您发布需求的目的");
385
//			return;
386
//		}
387
//		if(cc.length == 0) {
388
//			$.MsgBox.Alert("消息", "请选择您的需求类型");
389
//			return;
390
//		}
391
//		if(!$("#demandContent").val().trim()) {
392
//			$.MsgBox.Alert("消息", "请填写需求主题");
393
//			return;
394
//		}
395
//		if(!$("textarea").val().trim()) {
396
//			$.MsgBox.Alert("消息", "请填写需求内容");
397
//			return;
398
//		}
399
//		publish()
400
//	});
401
//
402
//	function publish() {
403
//		var arr = [];
404
//		var oSuin = $(".checkedLi");
405
//		var oin = $("#labelshow").find("li");
406
//		for(var i = 0; i < oSuin.length; i++) {
407
//			arr[i] = oSuin[i].innerText;
408
//		}
409
//		for(var j = 0; j < oin.length; j++, i++) {
410
//			//console.log(oin[j].innerText);
411
//			arr[i] = oin[j].innerText;
412
//		}
413
//		$.ajax({
414
//			url: '/ajax/demand',
415
//			dataType: 'json', //数据格式类型
416
//			type: 'post', //http请求类型
417
//			timeout: 10000, //超时设置
418
//			traditional: true,
419
//			data: {
420
//				"demander": userid,
421
//				"demandAim": consun,
422
//				"demandType": demandType,
423
//				"demandTitle": $("#demandContent").val(),
424
//				"demandContent": $("textarea").val(),
425
//				"args": arr,
426
//				"orgId": (demandType == 2) ? orgId : "",
427
//			},
428
//			success: function(data) {
429
//				if(data.success) {
430
//					myDemandList(true, 1, 5, yesNo, oSortType);
431
//					$(".blackcover ").hide();
432
//					$("body").css("position","relative");
433
//					$.MsgBox.Alert("消息", "需求发布成功!很快会有专家与您联系,您可以在咨询列表中查看专家回复的信息");
434
//					$("#mb_msgicon").css("background", 'url("images/sign_icon_chenggong_nor.png") 0% 0% / contain');
435
//				}
436
//			},
437
//			error: function() {
438
//				return;
439
//			}
440
//		});
441
//	}
442
//	/*判断是否是专家*/
443
//	$.ajax({
444
//		url: "/ajax/professor/auth",
445
//		type: "GET",
446
//		timeout: 10000,
447
//		dataType: "json",
448
//		data: {
449
//			"id": userid,
450
//		},
451
//		success: function(data, textState) {
452
//			if(data.success) {
453
//				var $rta = data.data;
454
//				if($rta.authType == 0) {
455
//					$("#searchDemand").hide();
456
//				}
457
//
458
//			}
459
//
460
//		},
461
//		error: function(XMLHttpRequest, textStats, errorThrown) {
462
//
463
//		}
464
//	})
465 293
})

+ 13 - 6
js/needList.js

@ -4,15 +4,22 @@ $(document).ready(function() {
4 4
	loginStatus();//判断个人是否登录
5 5
	valUser();
6 6
	
7
	demandList(true, 5, 1);
7
	demandList(true,10, 1);
8
	/*点击搜索*/
9
	$(".searchSpan").click(function(){
10
		$(".tcdPageCode").remove();
11
		$(".aboutRes").append('<div class="tcdPageCode"></div>');
12
		demandList(true,10,1);
13
	})
8 14
	/*需求列表*/
9 15
	function demandList(isbind, pageSize, pageNo) {
10 16
		$.ajax({
11
			url: "/ajax/demand/pq",
17
			url: "/ajax/demand/search",
12 18
			type: "GET",
13 19
			timeout: 10000,
14 20
			dataType: "json",
15 21
			data: {
22
				"key":$("#needKey").val(),
16 23
				"pageNo": pageNo,
17 24
				"pageSize":pageSize,
18 25
			},
@ -34,7 +41,7 @@ $(document).ready(function() {
34 41
								pageCount: Math.ceil(data.data.total / pageSize),
35 42
								current: data.data.data.pageNo,
36 43
								backFn: function(p) {
37
									demandList(false, 5, p);
44
									demandList(false,10, p);
38 45
								}
39 46
							});
40 47
						}
@ -55,7 +62,7 @@ $(document).ready(function() {
55 62
			sowU='<li><span>浏览量 '+$data.pageViews +'</span></li>'
56 63
		}
57 64
		var strCon='';
58
			strCon+='<a class="" target="_blank" href="" class="madiaInfo">'
65
			strCon+='<a class="" target="_blank" href="needShow.html?demandId='+$data.id+'" class="madiaInfo">'
59 66
			strCon+='<p class="h1Font ellipsisSty">'+ $data.title +'</p>'
60 67
			strCon+='<ul class="showliTop h3Font clearfix">'
61 68
			strCon+='<li><span class="cmpName"></span></li><li><span>发布于 '+commenTime($data.createTime)+'</span></li>'
@ -65,8 +72,8 @@ $(document).ready(function() {
65 72
			strCon+='<ul class="showli clearfix h3Font">'
66 73
			
67 74
			if($data.city){ strCon+='<li>所在城市:'+$data.city+'</li>' }
68
			if($data.duration){ strCon+='<li>预期时长:'+demandDuration[$data.duration]+'</li>' }
69
			if($data.cost){ strCon+='<li>费用预算:'+demandCost[$data.cost]+'</li>' }
75
			if($data.duration!=0){ strCon+='<li>预期时长:'+demandDuration[$data.duration]+'</li>' }
76
			if($data.cost!=0){ strCon+='<li>费用预算:'+demandCost[$data.cost]+'</li>' }
70 77
			if($data.invalidDay){ strCon+='<li>有效期至:'+TimeTr($data.invalidDay)+'</li>' }
71 78
			
72 79
			strCon+='</ul>'

+ 4 - 3
js/public/shareCom.js

@ -68,7 +68,6 @@ function commenTime(startTime) {
68 68
		}
69 69
	}
70 70
}
71
/*时间转换*/
72 71
function TimeTr(dealtime) {
73 72
	var myDate = new Date();
74 73
	var s = dealtime;
@ -81,7 +80,10 @@ function TimeTr(dealtime) {
81 80
	if(s.length <= 6) {
82 81
		formatTime = y + "年" + m.replace(/\b(0+)/gi, "") + "月";
83 82
	} else if(s.length > 6 && s.length <= 8) {
84
		formatTime = y + "年" + m.replace(/\b(0+)/gi, "") + "月" + d.replace(/\b(0+)/gi, "") + "日 ";
83
		formatTime = m.replace(/\b(0+)/gi, "") + "月" + d.replace(/\b(0+)/gi, "") + "日 ";
84
		if(y != myDate.getFullYear()) {
85
			formatTime = y + "年" + m.replace(/\b(0+)/gi, "") + "月" + d.replace(/\b(0+)/gi, "") + "日 ";
86
		}
85 87
	} else {
86 88
		formatTime = m.replace(/\b(0+)/gi, "") + "月" + d.replace(/\b(0+)/gi, "") + "日 " + h + ":" + minute;
87 89
		if(y != myDate.getFullYear()) {
@ -90,7 +92,6 @@ function TimeTr(dealtime) {
90 92
	}
91 93
	return formatTime;
92 94
}
93

94 95
function shareWays(shareTitle,descContent,lineLink,imgUrl){
95 96
	console.log(arguments);
96 97
	/*微信分享*/

+ 8 - 6
js/userInforShow.js

@ -1170,8 +1170,10 @@ $(function() {
1170 1170
			timeout: 10000,
1171 1171
			dataType: "json",
1172 1172
			data: {
1173
				"state":'1',
1174
				"uid":professorId,
1173 1175
				"pageNo": pageNo,
1174
				"pageSize":pageSize,
1176
				"pageSize":pageSize
1175 1177
			},
1176 1178
			beforeSend: function() {
1177 1179
				$("#showDemand").append('<img src="../images/loading.gif" class="loading" />');
@ -1188,11 +1190,11 @@ $(function() {
1188 1190
							demandHtml($info[i],liStr);
1189 1191
						}
1190 1192
//						if(isbind == true) {
1191
//							$("#showDemand").siblings(".tcdPageCode").off("click").createPage({
1193
//							$(".tcdPageCode").createPage({
1192 1194
//								pageCount: Math.ceil(data.data.total / pageSize),
1193 1195
//								current: data.data.data.pageNo,
1194 1196
//								backFn: function(p) {
1195
//									demandList(false, 5, p);
1197
//									demandList(false,10, p);
1196 1198
//								}
1197 1199
//							});
1198 1200
//						}
@ -1216,15 +1218,15 @@ $(function() {
1216 1218
			strCon+='<a class="" target="_blank" href="" class="madiaInfo">'
1217 1219
			strCon+='<p class="h1Font ellipsisSty">'+ $data.title +'</p>'
1218 1220
			strCon+='<ul class="showliTop h3Font clearfix">'
1219
			strCon+='<li><span class="cmpName"></span></li><li><span>发布于 '+commenTime($data.createTime)+'</span></li>'
1221
			strCon+='<li><span>发布于 '+commenTime($data.createTime)+'</span></li>'
1220 1222
			strCon+= sowU
1221 1223
			strCon+='</ul>'
1222 1224
			strCon+='<p class="h2Font ellipsisSty-2">'+$data.descp+'</p>'
1223 1225
			strCon+='<ul class="showli clearfix h3Font">'
1224 1226
			
1225 1227
			if($data.city){ strCon+='<li>所在城市:'+$data.city+'</li>' }
1226
			if($data.duration){ strCon+='<li>预期时长:'+demandDuration[$data.duration]+'</li>' }
1227
			if($data.cost){ strCon+='<li>费用预算:'+demandCost[$data.cost]+'</li>' }
1228
			if($data.duration!=0){ strCon+='<li>预期时长:'+demandDuration[$data.duration]+'</li>' }
1229
			if($data.cost!=0){ strCon+='<li>费用预算:'+demandCost[$data.cost]+'</li>' }
1228 1230
			if($data.invalidDay){ strCon+='<li>有效期至:'+TimeTr($data.invalidDay)+'</li>' }
1229 1231
			
1230 1232
			strCon+='</ul>'

+ 4 - 3
js/workindex.js

@ -385,11 +385,12 @@ $(function() {
385 385
	/*登录者需求的数量*/
386 386
	function demandNumMy(){
387 387
		$.ajax({
388
			"url":"/ajax/demand/queryMyPublish" ,
388
			"url":"/ajax/demand/qc" ,
389 389
			"type": "get",
390 390
			"async": true,
391 391
			"data":{
392
				"demander": userid
392
//				"state":1,
393
				"uid": userid
393 394
			},
394 395
			"success": function(data) {
395 396
				if(data.success) {
@ -405,7 +406,7 @@ $(function() {
405 406
	}
406 407
	function demandNum(){
407 408
		$.ajax({
408
			"url":"/ajax/demand/queryPublish" ,
409
			"url":"/ajax/demand/qc" ,
409 410
			"type": "get",
410 411
			"async": true,
411 412
			"success": function(data) {

+ 36 - 112
myDemand.html

@ -7,6 +7,7 @@
7 7
<title>需求-我的工作台-科袖网</title>
8 8
<link rel="shortcut icon" type="image/x-icon" href="images/favicon.png" media="screen" />	
9 9
<link type="text/css" href="css/bootstrap.min.css" rel="stylesheet">
10
<link type="text/css" rel="stylesheet" href="css/datetimepicker.css">
10 11
<link type="text/css" href="css/reset.css" rel="stylesheet" />
11 12
<link type="text/css" href="css/common.css" rel="stylesheet">
12 13
<!--<link type="text/css" href="css/workspace.css" rel="stylesheet">
@ -15,80 +16,16 @@
15 16
<script type="text/javascript" src="js/jquery-1.11.1.js"></script>
16 17
</head>
17 18
<body>
18
	<!--needIssue需求发布-->
19
<div class="blackcover displayNone" id="needIssue">
20
	<div class="attentionBox">
21
		<div class="topTit">发布需求</div>
22
		<div class="attentsCon">
23
			<div class="demandBox" style="padding:20px">
24
				<ul class="basicinfo">
25
					<li><label>请选择您发布需求的目的<em class="requiredcon">*</em></label></li>
26
					<li class="divideSpace" id="navsub">
27
						<ul class="boxnav chooseBox demandAim clearfix">
28
							<li><span>咨询技术难题</span></li>
29
							<li><span>寻求研发资源</span></li>
30
							<li><span>其他</span></li>
31
						</ul>
32
					</li>
33
					<li><label>请选择您的需求类型<em class="requiredcon">*</em></label></li>
34
					<li class="divideSpace" id="navsubTo" >
35
						<ul class="boxnav boxnavTo chooseBox clearfix">
36
							<li><span>个人需求</span></li><!--默认状态是无class 选中状态checkNow-->
37
							<li><span>企业需求</span></li><!--不可用状态checkNo-->
38
						</ul>
39
						<div class="littipCh">
40
							<div class="littip">注:当企业入驻科袖后,企业的关联用户将可以发布企业需求</div>
41
							<div class="littip">注:1、当完成实名认证后,您将可以发布个人需求。
42
								<p>2、当您不再是当前企业的认证用户时,您的企业需求将自动关闭。</p></div>
43
						</div>
44
					</li>
45
					<li class="divideSpace">
46
						<div class="littip"></div>
47
					</li>
48
					<li><label>需求主题<em class="requiredcon">*</em></label></li>
49
					<li class="divideSpace basicfrm"><input type="text" name="comname" placeholder="请用一句话概括您的需求" class="frmtype" id="demandContent"></li>
50
					<li><label>需求内容<em class="requiredcon">*</em></label></li>
51
					<li class="divideSpace">
52
						<textarea class="frmtype" placeholder="请详细描述您遇到的问题,以便为您找到最合适的专家"></textarea>
53
						<div class="limitNum">您还能输入<span id="countNum">300</span> 字</div>
54
					</li>
55
					<li><label>请选择需求涉及的行业或领域(可多选)</label></li>
56
					<li class="divideSpace">
57
						<ul class="chooseBox mutChecked clearfix" id="mutChecked">
58
				       		<!--<li><span>材料检测</span></li>
59
				       		<li><span>防腐蚀</span></li>
60
				       		<li class="checkedLi"><span>金属基复合材料</span></li>
61
				       		<li class="checkedLi"><span>金属基复合材料</span></li>
62
				       		<li><span>微晶金属材料</span></li>
63
				       		<li class="checkedLi"><span>金属基复合材料</span></li>
64
				       		<li><span>微晶金属材料</span></li>
65
				       		<li><span>微晶金属材料</span></li>-->
66
				       </ul>
67
					</li>
68
					<li class="divideSpace">
69
						<div class="addlabel clearfix">
70
							<input type="text" placeholder="您可以输入更多需求所涉及的行业或领域" class="frmtype floatL" style="width:78%" id="induSub">
71
							<div class="basicBtn basicBtngo floatL" id="addIndu">
72
								<span>添加</span>
73
							</div>
74
							<!--<button class="frmtype frmbtn floatL addlabelbtn">添加</button>-->
75
						</div>
76
						<div class="labelarea">
77
                        	<ul class="labelshow chooseBox clearfix" id="labelshow">
78
					       		<!--<li class="deleteSubject"><em>66666</em><span class="removeNu"><img src="images/move.png"></span></li>
79
					       		<li class="deleteSubject"><em>66666</em><span class="removeNu"><img src="images/move.png"></span></li>-->
80
					       	</ul>
81
                        </div>
82
					</li>
83
				</ul>
84
				<div class="linespace"></div>
85
		    	<div class="basicBtn basicBtngo" id="postDemand">
86
			        <span style="padding:6px 60px;">发布</span>        
87
		    	</div>
88
			</div>		
89
		</div>
90
		<div style="height: 20px;"></div>
91
		<span class="workclose" id="workclose2"></span>	
19
<!--定时发布弹框-->
20
<div class="blackcover2"></div>
21
<div class="setTimeBlock modelContain">
22
	<span class="mb_tit">提示</span>
23
	<a class="mb_close"></a>
24
	<div class="mb_msg" id="promotTh">
25
		<input type="hidden" id="oldName" />
26
	</div>
27
	<div class="mb_btnbox" id="promotGt">
28
		<input class="mb_btn mb_btnNo" type="button" value="取消">
92 29
	</div>
93 30
</div>
94 31
@ -112,49 +49,26 @@
112 49
				<div class="itemListBolck">
113 50
					<div class="topOperaBlock clearfix">
114 51
						<div class="issueSpanBlock col-w-4 floatR">
115
							<a href="postDemand.html" target="_blank" class="issueSpan">发布需求</a>
52
							<a class="issueSpan">发布需求</a>
116 53
						</div>
117 54
					</div>
118 55
					<div class="form-item itemListCon">
119 56
						<div class="form-result aboutRes">
120 57
							<ul class="form-need" id="myneedList">
121
								<li>
122
									<a target="_blank" href=""class="madiaInfo">
123
											<p class="h1Font ellipsisSty">对对对</p>
124
											<ul class="showliTop h2Font clearfix">
125
												<li><span>发布于 8月30日 13:16</span></li>
126
												<li><span>浏览量 8</span></li>
127
												<li><span class="draftLable">已于 5月19日 23:59 过期</span></li>
128
											</ul>
129
									</a>
130
									<ul class="madiaEdit">
131
										<li><span class="closeThis">关闭</span></li>
132
									</ul>
133
								</li>
134
								<li>
135
									<a target="_blank" href="" class="madiaInfo">
136
											<p class="h1Font ellipsisSty">对对对</p>
137
											<ul class="showliTop h2Font clearfix">
138
												<li><span>发布于 8月30日 13:16</span></li>
139
												<li><span>浏览量 8</span></li>
140
												<li><span class="draftLable">即将于 5月19日 23:59 过期</span></li>
141
											</ul>
142
									</a>
143
									<ul class="madiaEdit">
144
										<li><span class="closeThis">关闭</span></li>
145
									</ul>
146
								</li>
147
								<li>
148
									<a class="" target="_blank" href="">
149
										<div class="madiaInfo">
150
											<p class="h1Font ellipsisSty">对对对</p>
151
											<ul class="showliTop h2Font clearfix">
152
												<li><span>关闭于 8月30日 13:16</span></li>
153
												<li><span>浏览量 8</span></li>
154
											</ul>
155
										</div>
156
									</a>
157
								</li>
58
								<!--<li>
59
									<a target="_blank" href=""class="madiaInfo">
60
											<p class="h1Font ellipsisSty">对对对</p>
61
											<ul class="showliTop h2Font clearfix">
62
												<li><span>发布于 8月30日 13:16</span></li>
63
												<li><span>浏览量 8</span></li>
64
												<li><span class="draftLable">已于 5月19日 23:59 过期</span></li>
65
											</ul>
66
									</a>
67
									<ul class="madiaEdit">
68
										<li><span class="closeThis">关闭</span></li>
69
									</ul>
70
								</li>-->
71
								
158 72
							</ul>
159 73
							<!--无搜索结果-->
160 74
							<div class="nodatabox displayNone">
@ -230,10 +144,20 @@
230 144
231 145
<script type="text/javascript"src="js/jquery.cookie.js"></script>
232 146
<script type="text/javascript"src="js/jquery.similar.msgbox.js"></script>
147
<script type="text/javascript" src="js/public/bootstrap.min.js"></script>
148
<script type="text/javascript" src="js/public/bootstrap-datetimepicker.min.js"></script>
233 149
<script type="text/javascript" src="js/jquery.page.js"></script>
234 150
<script type="text/javascript" src="js/common.js"></script>
235 151
<script type="text/javascript" src="js/popup.js"></script>
236 152
<script type="text/javascript" src="js/myDemand.js"></script>
153
<script type="text/javascript">
154
//Model模态框打开关闭
155
$(".mb_close,.mb_btnNo").click(function() {
156
	$(".modelContain").hide();
157
	$(".blackcover2").fadeOut();
158
	$("body").removeClass("modelOpen");
159
})
160
</script>
237 161
</body>
238 162
</html>
239 163

+ 22 - 40
needList.html

@ -88,51 +88,33 @@
88 88
				<div class="itemListBolck needinfobox">
89 89
					<div class="topOperaBlock clearfix">
90 90
						<div class="searchAbout col-w-8">
91
							<input class="frmcontype" type="search" placeholder="请输入关键词">
91
							<input class="frmcontype" type="search" placeholder="请输入关键词" id="needKey">
92 92
							<span class="searchSpan"></span>
93 93
						</div>
94 94
					</div>
95 95
					<div class="form-item itemListCon needList">
96 96
						<div class="form-result aboutRes">
97 97
							<ul class="form-need" id="demandList">
98
								<li>
99
									<a href="" class="madiaInfo">
100
										<p class="h1Font ellipsisSty">需求主题寻求一名斯特林热机技术顾问</p>
101
										<ul class="showliTop clearfix h3Font">
102
											<li>北京赛亿科技有限公司</li>
103
											<li>发布于 5月8日 18:00</li>
104
											<li>浏览量 1000</li>
105
										</ul>
106
										<p class="h2Font ellipsisSty-2">我们是一家医疗器械公司,主要生产健康理疗类的电子产品,目前希望对护膝、护腰类的产品进行改进,
107
											想先找一位有资深设计经验的三维工业设计专家,通过三维建模的方式先设计出产品的三维模型,用于展示以及为后续生产做准备我们是一家医疗器械公司,主要生产健康理疗类的电子产品,目前希望对护膝、护腰类的产品进行改进,
108
											想先找一位有资深设计经验的三维工业设计专家,通过三维建模的方式先设计出</p>
109
										<ul class="showli clearfix h3Font">
110
											<li>所在城市:北京市</li>
111
											<li>预期时长:1个月内</li>
112
											<li>费用预算:1万元以内</li>
113
											<li>有效期至:8月17日</li>
114
										</ul>
115
									</a>
116
								</li>
117
								<li>
118
									<a href="">
119
										<p class="h1Font ellipsisSty">需求主题寻求一名斯特林热机技术顾问</p>
120
										<ul class="showliTop clearfix h3Font">
121
											<li>北京赛亿科技有限公司</li>
122
											<li>发布于 5月8日 18:00</li>
123
											<li>浏览量 1000</li>
124
										</ul>
125
										<p class="h3Font"><span></span><span></span></p>
126
										<p class="h2Font ellipsisSty-2">我们是一家医疗器械公司,主要生产健康理疗类的电子产品,目前希望对护膝、护腰类的产品进行改进,
127
											想先找一位有资深设计经验的三维工业设计专家,通过三维建模的方式先设计出产品的三维模型,用于展示以及为后续生产做准备...</p>
128
										<ul class="showli clearfix h3Font">
129
											<li>所在城市:北京市</li>
130
											<li>预期时长:1个月内</li>
131
											<li>费用预算:1万元以内</li>
132
											<li>有效期至:8月17日</li>
133
										</ul>
134
									</a>
135
								</li>
98
								<!--<li>
99
									<a href="" class="madiaInfo">
100
										<p class="h1Font ellipsisSty">需求主题寻求一名斯特林热机技术顾问</p>
101
										<ul class="showliTop clearfix h3Font">
102
											<li>北京赛亿科技有限公司</li>
103
											<li>发布于 5月8日 18:00</li>
104
											<li>浏览量 1000</li>
105
										</ul>
106
										<p class="h2Font ellipsisSty-2">我们是一家医疗器械公司,主要生产健康理疗类的电子产品,目前希望对护膝、护腰类的产品进行改进,
107
											想先找一位有资深设计经验的三维工业设计专家,通过三维建模的方式先设计出产品的三维模型,用于展示以及为后续生产做准备我们是一家医疗器械公司,主要生产健康理疗类的电子产品,目前希望对护膝、护腰类的产品进行改进,
108
											想先找一位有资深设计经验的三维工业设计专家,通过三维建模的方式先设计出</p>
109
										<ul class="showli clearfix h3Font">
110
											<li>所在城市:北京市</li>
111
											<li>预期时长:1个月内</li>
112
											<li>费用预算:1万元以内</li>
113
											<li>有效期至:8月17日</li>
114
										</ul>
115
									</a>
116
								</li>-->
117
								
136 118
							</ul>
137 119
						
138 120
							<!--无搜索结果-->
@ -140,7 +122,7 @@
140 122
						        <div class="nodata">
141 123
						            <div class="picbox picNull"></div>
142 124
						            <div class="txtbox">
143
						            	<p class="noContip">尚未任何需求</p>
125
						            	<p class="noContip">暂时没有符合该搜索条件的内容</p>
144 126
						            </div>
145 127
						        </div>
146 128
						    </div>

+ 1 - 35
userInforShow.html

@ -78,41 +78,7 @@
78 78
				    <div class="coninfobox needinfobox displayNone">
79 79
						<div class="coninfocon form-item needList">
80 80
							<ul class="form-need" id="showDemand">
81
								<li>
82
									<a href="">
83
										<p class="h1Font ellipsisSty">需求主题寻求一名斯特林热机技术顾问</p>
84
										<ul class="showliTop clearfix h3Font">
85
											<li>发布于 5月8日 18:00</li>
86
											<li>浏览量 1000</li>
87
										</ul>
88
										<p class="h2Font ellipsisSty-2">我们是一家医疗器械公司,主要生产健康理疗类的电子产品,目前希望对护膝、护腰类的产品进行改进,
89
											想先找一位有资深设计经验的三维工业设计专家,通过三维建模的方式先设计出产品的三维模型,用于展示以及为后续生产做准备我们是一家医疗器械公司,主要生产健康理疗类的电子产品,目前希望对护膝、护腰类的产品进行改进,
90
											想先找一位有资深设计经验的三维工业设计专家,通过三维建模的方式先设计出</p>
91
										<ul class="showli clearfix h3Font">
92
											<li>所在城市:北京市</li>
93
											<li>预期时长:1个月内</li>
94
											<li>费用预算:1万元以内</li>
95
											<li>有效期至:8月17日</li>
96
										</ul>
97
									</a>
98
								</li>
99
								<li>
100
									<a href="">
101
										<p class="h1Font ellipsisSty">需求主题寻求一名斯特林热机技术顾问</p>
102
										<ul class="showliTop clearfix h3Font">
103
											<li>发布于 5月8日 18:00</li>
104
											<li>浏览量 1000</li>
105
										</ul>
106
										<p class="h2Font ellipsisSty-2">我们是一家医疗器械公司,主要生产健康理疗类的电子产品,目前希望对护膝、护腰类的产品进行改进,
107
											想先找一位有资深设计经验的三维工业设计专家,通过三维建模的方式先设计出产品的三维模型,用于展示以及为后续生产做准备...</p>
108
										<ul class="showli clearfix h3Font">
109
											<li>所在城市:北京市</li>
110
											<li>预期时长:1个月内</li>
111
											<li>费用预算:1万元以内</li>
112
											<li>有效期至:8月17日</li>
113
										</ul>
114
									</a>
115
								</li>
81
								
116 82
							</ul>
117 83
						</div>
118 84
					</div>

+ 19 - 8
workspaces.html

@ -7,7 +7,7 @@
7 7
<title>我的工作台-科袖网</title>
8 8
<link rel="shortcut icon" type="image/x-icon" href="images/favicon.png" media="screen" />
9 9
<link type="text/css" href="css/bootstrap.min.css" rel="stylesheet">
10
<link type="text/css" href="css/reset.css" rel="stylesheet" />
10
<link rel="stylesheet" type="text/css" href="css/swiper.min.css"/>
11 11
<link type="text/css" href="css/common.css" rel="stylesheet">
12 12
<link type="text/css" href="css/workspace.css" rel="stylesheet">
13 13
<link type="text/css" href="css/popup.css" rel="stylesheet">
@ -44,13 +44,13 @@
44 44
		<div class="topTit">关注与收藏</div>
45 45
		<div class="fixbox">
46 46
			<ul class="fixbtn" id="fixbtn">
47
				<li index="0" class="col-xs-2 liactive">专家</li>
48
				<li index="1" class="col-xs-2">企业</li>
49
				<!--当前选中状态    'liactive'-->
50
				<li index="2" class="col-xs-2">资源</li>
51
				<li index="3" class="col-xs-2">专利</li>
52
				<li index="4" class="col-xs-2">论文</li>
53
				<li index="5" class="col-xs-2">文章</li>
47
				<li index="0" class="liactive">专家</li>
48
				<li index="1">企业</li>
49
				<li index="2">资源</li>
50
				<li index="3">专利</li>
51
				<li index="4">论文</li>
52
				<li index="5">文章</li>
53
				<li index="6">需求</li>
54 54
			</ul>
55 55
		</div>
56 56
		<div class="attentsCon">
@ -60,6 +60,7 @@
60 60
			<ul class="attentList" id="patent"></ul>
61 61
			<ul class="attentList" id="paper"></ul>
62 62
			<ul class="attentList" id="article"></ul>
63
			<ul class="attentList" id="demands"></ul>
63 64
		</div>
64 65
		<div style="height: 20px;"></div>
65 66
		<span class="workclose" id="workclose"></span>
@ -276,8 +277,18 @@
276 277
<script type="text/javascript" src="js/jquery.cookie.js"></script>
277 278
<script type="text/javascript" src="js/jquery.similar.msgbox.js"></script>
278 279
<script type="text/javascript" src="js/common.js"></script>
280
<script src="js/public/swiper.min.js" type="text/javascript" charset="utf-8"></script>
279 281
<script type="text/javascript" src="js/popup.js"></script>
280 282
<script type="text/javascript" src="js/workindex.js"></script>
281 283
<script type="text/javascript" src="js/attention-list.js"></script>
284
<script type="text/javascript">
285
	 var swiper = new Swiper('.swiper-container', {
286
        pagination: '.swiper-pagination',
287
        slidesPerView: 3,
288
        paginationClickable: true,
289
        spaceBetween: 30,
290
        freeMode: true
291
    });
292
</script>
282 293
</body>
283 294
</html>