Sfoglia il codice sorgente

新版需求相关

luyanan 7 anni fa
parent
commit
323c496a2d

+ 67 - 4
cmp-portal/cmp-needList.html

@ -31,7 +31,71 @@
31 31
	        		<li><a href="cmp-staffList.html">员工</a></li>
32 32
	        	</ul>
33 33
	        </div>
34
		    <div class="workcon workconG">
34
	        <div class="workcon workconG">
35
				<div class="workcontit"><a class="worksamlltit worksamlltitnow">企业需求</a></div>
36
				<div class="itemListBolck">
37
					<div class="form-item itemListCon">
38
						<div class="form-result aboutRes" style="border:none;margin-top:0;">
39
							<ul class="form-need" id="cmpneedList">
40
								<li>
41
									<a class="" target="_blank" href="">
42
										<div class="madiaInfo">
43
											<p class="h1Font ellipsisSty">对对对</p>
44
											<ul class="showliTop h2Font clearfix">
45
												<li><span>发布于 8月30日 13:16</span></li>
46
												<li><span>浏览量 8</span></li>
47
												<li><span>联系人  张三</span></li>
48
												<li><span class="draftLable">已于 5月19日 23:59 过期</span></li>
49
											</ul>
50
										</div>
51
									</a>
52
									<ul class="madiaEdit">
53
										<li><span class="closeThis">关闭</span></li>
54
									</ul>
55
								</li>
56
								<li>
57
									<a class="" target="_blank" href="">
58
										<div class="madiaInfo">
59
											<p class="h1Font ellipsisSty">对对对</p>
60
											<ul class="h2Font clearfix">
61
												<li><span>发布于 8月30日 13:16</span></li>
62
												<li><span>浏览量 8</span></li>
63
												<li><span>联系人  张三</span></li>
64
												<li><span class="draftLable">即将于 5月19日 23:59 过期</span></li>
65
											</ul>
66
										</div>
67
									</a>
68
									<ul class="madiaEdit">
69
										<li><span class="closeThis">关闭</span></li>
70
									</ul>
71
								</li>
72
								<li>
73
									<a class="" target="_blank" href="">
74
										<div class="madiaInfo">
75
											<p class="h1Font ellipsisSty">对对对</p>
76
											<ul class="h2Font clearfix">
77
												<li><span>关闭于 8月30日 13:16</span></li>
78
												<li><span>浏览量 8</span></li>
79
												<li><span>联系人  张三</span></li>
80
											</ul>
81
										</div>
82
									</a>
83
								</li>
84
							</ul>
85
							<div class="nodatabox displayNone">
86
						        <div class="nodata">
87
						            <div class="picbox picNull"></div>
88
						            <div class="txtbox">
89
						            	<p class="noContip">您的认证员工尚未发布任何需求</p>
90
						            </div>
91
						        </div>
92
						    </div>
93
							<div class="tcdPageCode"></div>
94
						</div>
95
					</div>
96
				</div>
97
			</div>
98
		    <!--<div class="workcon workconG">
35 99
			    <div class="workcontit"><a class="worksamlltit worksamlltitnow">企业需求</a></div>
36 100
			    <div class="worksubcon clearfix">
37 101
			        <div class="workblock identityState" id="identityState" style="display:none">
@ -79,18 +143,17 @@
79 143
			        </div>
80 144
			    </div>
81 145
			
82
			</div>
146
			</div>-->
83 147
        </div>
84 148
	</div>
85 149
</div>
86

87

88 150
<!--底部-->
89 151
<footer>
90 152
	<script type="text/javascript" src="js/public/cmpFooter.js"></script>
91 153
</footer>
92 154
<script type="text/javascript"src="js/public/jquery.cookie.js"></script>
93 155
<script type="text/javascript"src="../js/jquery.page.js"></script>
156
<script type="text/javascript"src="../js/jquery.similar.msgbox.js"></script>
94 157
<script type="text/javascript" src="js/public/common.js"></script>
95 158
<script type="text/javascript" src="js/cmp-needList.js"></script>
96 159
</body>

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

@ -427,11 +427,11 @@ ul.tagList>li .h2Font{color:#666}
427 427
.itemListBolck .itemListCon .form-result{margin:20px 0 30px;border-top:1px solid #E5E5E5;}
428 428
.itemListBolck .itemListCon .madiaHead{width:120px;height:80px;margin-top:-40px;}
429 429
.itemListBolck .itemListCon .madiaInfo>ul>li{float: left;margin-left:20px;}
430
.itemListBolck .itemListCon .madiaInfo .column{color:#666;}
431
.itemListBolck .itemListCon .madiaInfo>ul>li>.column{border:1px solid #28b8fa;padding:0 4px;font-size: 12px;color:#28b8fa;border-radius:4px;}
432 430
.itemListBolck .itemListCon .madiaInfo>ul>li:first-child{margin-left:0;}
431
.itemListBolck .itemListCon .madiaInfo .column{color:#666;}
432
.itemListBolck .itemListCon .madiaInfo>ul>li>.column{border:1px solid #28b8fa;padding:0 4px;font-size: 12px;line-height:normal;color:#28b8fa;border-radius:4px;}
433 433
.itemListBolck .itemListCon .madiaInfo{padding-left:140px;min-height: 80px;padding-top:15px;}
434
.itemListCon.form-item ul .h1Font{font-size:18px;}
434
.itemListCon.form-item ul .h1Font{font-size:18px;margin-bottom:6px;line-height:24px;}
435 435
.itemListCon .draftLable{font-size:14px; color:#e03b43;line-height:24px;}
436 436
.itemListCon .form-result>ul>li .madiaEdit>li{float: left;margin-right: 28px;}
437 437
.itemListCon .form-result>ul>li .madiaEdit .editThis{display:inline-block;width:60px;height:32px;background:url(../images/g_article_button_xiugai_lan_hig.png);background-size:cover;cursor:pointer;}
@ -442,9 +442,11 @@ ul.tagList>li .h2Font{color:#666}
442 442
443 443
.itemListCon li.draftList .madiaInfo{padding-top:4px;}
444 444
445
.itemListBolck .itemListCon .form-need{min-height:130px;}
445 446
.itemListBolck .itemListCon .form-need .madiaInfo{padding-left: 0;}
446 447
.itemListBolck .itemListCon .form-need .madiaEdit{display: block;}
447 448
449
448 450
/*定时发送时间选择器*/
449 451
.blackcover2{display:none;overflow-x: hidden;overflow-y:auto;position:fixed;top:0;right:0;bottom:0;left:0; background:rgba(0,0,0,.5);z-index: 1050;}
450 452
/*.modelContain{display:none;position:relative;clear:both;margin:40px auto;width:600px;background:#fff;border-radius:8px;z-index:1056; 
@ -550,7 +552,7 @@ div.zoomMask{position:absolute;background:url("../images/g-resource-mask.png") r
550 552
.workmenu>ul>li.nowLi:nth-child(4)>a{background-image:url(../images/g_article_icon_wenzhang_2_hig.png);}
551 553
.workmenu>ul>li.nowLi:nth-child(5)>a{background-image:url(../images/g_article_icon_xuqiu_2_hig.png);}
552 554
.workmenu>ul>.nowLi>a:hover{background-color:#e7f5fb;}
553
.conBlock .workconG{float:right;/*width:86%;*/width:87%;background: #FFFFFF;}
555
.conBlock .workconG{float:right;position:relative;width:87%;background: #FFFFFF;}
554 556
.conBlock .workconG .workcontit{height: 60px;padding: 0 20px;font-size: 16px;line-height:60px;border-bottom: 1px solid #e7e7e7;}
555 557
.workcontit a:link, .workcontit a:active, .workcontit a:visited {color: #313131;}
556 558
.conBlock .workconG .worksamlltit{font-size: 16px;line-height: 30px; margin-right:30px;padding: 10px 4px 8px;cursor: pointer;}

+ 5 - 4
cmp-portal/css/common.css

@ -1,9 +1,9 @@
1 1
@charset "utf-8";
2 2
/*reset*/
3
p,dl,dt,dd,ul,ol,li,a,em,div,span,th,td{margin:0;padding:0; word-break:break-all; font-family: PingFang SC,Microsoft Yahei,Arial,WenQuanYi Micro Hei,Helvetica Neue,Hiragino Sans GB,sans-serif;}
4
form,label,button,input,select,textarea{font-size:14px; font-family: PingFang SC,Microsoft Yahei,Arial,WenQuanYi Micro Hei,Helvetica Neue,Hiragino Sans GB,sans-serif;}
5
h1,h2,h3,h4,h5,h6{font-size:100%;margin:0;padding:0; font-family: PingFang SC,Microsoft Yahei,Arial,WenQuanYi Micro Hei,Helvetica Neue,Hiragino Sans GB,sans-serif;}
6
html,body{height:100%; width:100%; margin:0;padding:0;font-family: PingFang SC,Microsoft Yahei,Arial,WenQuanYi Micro Hei,Helvetica Neue,Hiragino Sans GB,sans-serif;}
3
p,dl,dt,dd,ul,ol,li,a,em,div,span,th,td{margin:0;padding:0; word-break:break-all; font-family:PingFang SC,Arial,Microsoft Yahei,WenQuanYi Micro Hei,Helvetica Neue,Hiragino Sans GB,sans-serif;}
4
form,label,button,input,select,textarea{font-size:14px; font-family:PingFang SC,Arial,Microsoft Yahei,WenQuanYi Micro Hei,Helvetica Neue,Hiragino Sans GB,sans-serif;}
5
h1,h2,h3,h4,h5,h6{font-size:100%;margin:0;padding:0; font-family:PingFang SC,Arial,Microsoft Yahei,WenQuanYi Micro Hei,Helvetica Neue,Hiragino Sans GB,sans-serif;}
6
html,body{height:100%; width:100%; margin:0;padding:0;font-family:PingFang SC,Arial,Microsoft Yahei,WenQuanYi Micro Hei,Helvetica Neue,Hiragino Sans GB,sans-serif;}
7 7
input{vertical-align:middle; outline:none;}
8 8
img{color:transparent;font-size:0;vertical-align:middle;-ms-interpolation-mode:bicubic;border:0;padding:0; margin:0;}
9 9
small{font-size:12px;}
@ -66,6 +66,7 @@ a:active,a:hover{outline:0;text-decoration:none;}
66 66
.clearfix{ clear:both;}
67 67
.clearfix:before,.clearfix:after{display:table;content:" "}
68 68
.clearfix:after{clear:both}
69
.loading{position: absolute;top:50%;left:50%;margin-left:-15px;}
69 70
/*更改placeholder的颜色*/
70 71
:-moz-placeholder {color: #999;}
71 72
::-moz-placeholder {color: #999;}

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

@ -51,7 +51,7 @@ function articalList(pageSize, pageNo, isbind, num) {
51 51
		"async": false,
52 52
		"data": $data,
53 53
		"beforeSend": function() {
54
			$("#articalList").append('<img src="../images/loading.gif" class="loading"  style="position: absolute;left: 50%; top: 50%;" />');
54
			$("#articalList").append('<img src="../images/loading.gif" class="loading" />');
55 55
		},
56 56
		"success": function(data) {
57 57
			console.log(data);

+ 184 - 138
cmp-portal/js/cmp-needList.js

@ -47,25 +47,38 @@ $(document).ready(function() {
47 47
				"demandStatus": oDemand,
48 48
				"sortType": oSort
49 49
			},
50
			beforeSend: function() {},
50
			"beforeSend": function() {
51
				$("#cmpneedList").append('<img src="../images/loading.gif" class="loading" />');
52
			},
51 53
			success: function(data, textState) {
52 54
				if(data.success) {
53 55
					console.log(data);
54
					$("#demandList").html(" ");
56
					$("#cmpneedList").html("");
55 57
					var $info = data.data.data;
56
					demandHtml($info);
57
					if($info.length != 0) {
58
						if(isbind == true) {
59
							$(".tcdPageCode").createPage({
60
								pageCount: Math.ceil(data.data.total / pageSize),
61
								current: data.data.data.pageNo,
62
								backFn: function(p) {
63
									demandList(false, 5, p, oDemandAim, oSortType);
64
								}
65
							});
58
					if($info.length > 0){
59
						for(var i = 0; i < $info.length; i++) {
60
							var liStr=$("<li></li>").appendTo("#cmpneedList");
61
							demandHtml($info[i],liStr);
62
						}
63
						if($info.length != 0) {
64
							if(isbind == true) {
65
								$(".tcdPageCode").createPage({
66
									pageCount: Math.ceil(data.data.total / pageSize),
67
									current: data.data.data.pageNo,
68
									backFn: function(p) {
69
										$("#cmpneedList").html("");
70
										demandList(false, 5, p, oDemandAim, oSortType);
71
										document.body.scrollTop = document.documentElement.scrollTop = 0;
72
									}
73
								});
74
							}
66 75
						}
76
					}else{
77
						$("#cmpneedList").parent().find(".nodatabox").removeClass("displayNone")
67 78
					}
79
					
68 80
				}
81
				$(".loading").remove();
69 82

70 83
			},
71 84
			error: function(XMLHttpRequest, textStats, errorThrown) {
@ -74,136 +87,169 @@ $(document).ready(function() {
74 87
		})
75 88
	}
76 89
	demandList(true, 5, 1, oDemandAim, oSortType);
77

78
	function demandHtml($data) {
79
		for(var i = 0; i < $data.length; i++) {
80
			var $obje = $data[i].professor;
81
			var personStr = personalInformation($obje);
82
			var demandAim = "技术咨询",
83
				demandType = "已关闭",
84
				demandStyle = "status-5";
85
			var oImg = "",
86
				oTime = "";
87
			if($data[i].demandAim == 2) {
88
				demandAim = "寻找资源"
89
			} else if($data[i].demandAim == 3) {
90
				demandAim = "其他需求"
91
			}
92
			if($data[i].demandStatus == 1) {
93
				demandType = "发布中";
94
				demandStyle = "status-4";
95
			}
96
			if($obje.hasHeadImage) {
97
				oImg = "/images/head/" + $obje.id + "_l.jpg";
98
			} else {
99
				oImg = "../images/default-photo.jpg"
100
			}
101

102
			oTime = $data[i]["createTime"].substr(0, 4) + "年" + $data[i].createTime.substr(4, 2) + "月" + $data[i].createTime.substr(6, 2) + "日" +
103
				$data[i].createTime.substr(8, 2) + ":" + $data[i].createTime.substr(10, 2);
104
			var oClass = autho($obje.authType, $obje.orgAuth, $obje.authStatus);
105
			var dataString = "<li class='workselectitem'>"
106
			dataString += "<div class='col-w-2'>"
107
			dataString += "<div class='workitimg userRadius'>"
108
			dataString += "<img class='headPhoto' src='" + oImg + "'  width='100%'>"
109
			dataString += "</div></div>"
110
			dataString += "<div class='col-w-10 needinfo'>"
111
			dataString += "<div class='workinfor worksitcon'>"
112
			dataString += "<h4><span class='h1Font'>" + $obje.name + "</span>"
113
			dataString += "<em class='authicon "+oClass.sty+"' title='"+oClass.title+"'></em></h4>"
114
			dataString += "<h6 class='h3Font'>" + personStr + "</h6>"
115
			dataString += "<h6 style='position:relative;'>"
116
			dataString += "<div class='titList'>需求主题:<em class='h4Font'>" + $data[i].demandTitle + "</em></div>"
117
			dataString += "<span class='lasttime rightTime'>" + oTime + "</span>"
118
			dataString += "<p class='rebackcon ellipsisSty-2'>" + $data[i].demandContent + "</p>"
119
			dataString += "</h6></div>"
120
			dataString += "<div class='workhandle'>"
121
			dataString += "<div class='rightopert floatR'>"
122
			dataString += "<span class='replybtn' demanid='" + $data[i].demandId + "'>查看</span></div>"
123
			dataString += "<div class='leftstate floatR'>"
124
			dataString += "<span class='coultstate " + demandStyle + "'><i>" + demandType + "</i></span></div>"
125
			dataString += "<div class='leftstate floatR'>"
126
			dataString += "<span class='coultstate coulstAim status-4'><i>" + demandAim + "</i></span></div></div></div></li>"
127
			$("#demandList").append(dataString);
128
		}
129
	}
130

131
/*职位职称所在机构,部门,地址等等*/
132
function personalInformation($person) {
133
	var arr1 = [$person.title, $person.office, $person.department, $person.orgName, $person.address];
134
	var arr = new Array();
135
	var arr2 = new Array();
136
	var n = 0;
137
	for(var i = 0; i < arr1.length; i++) {
138
		if(arr1[i]) {
139
			arr.push(arr1[i]);
140
			if(arr1[i] == arr1[arr1.length - 1]) {
141
				n = 1;
142
			}
90
	function demandHtml($data,liStr) {
91
		var statusStr='';
92
		var sowU="";
93
		if($data.pageViews!=0){
94
			sowU='<li><span>浏览量 '+$data.pageViews+'</span></li>'
143 95
		}
144
	}
145
	if(n == 1) {
146
		for(var i = 0; i < arr.length - 1; i++) {
147
			arr2.push(arr[i]);
96
		var statusU="";
97
//		if($data.demandStatus){
98
//			statusU='<li><span class="draftLable">即将于 '+TimeTr($data.createTime)+'过期</span></li>'
99
//		}else if(){
100
//			statusU='<li><span class="draftLable">已于 '+TimeTr($data.createTime)+'过期</span></li>'
101
//		}else if(){
102
//			statusU='<li><span">已于 '+TimeTr($data.createTime)+'关闭</span></li>'
103
//		}else if(){
104
//			statusU='<li><span">已于 '+TimeTr($data.createTime)+'完成</span></li>'
105
//		}
106
		var closStr='';
107
		if($data.demandStatus==1){
108
			closStr += '<ul class="madiaEdit"><li><span class="closeThis">关闭</span></li></ul>'
148 109
		}
149
		return arr2.join() + " | " + arr[arr.length - 1];
150
	} else {
151
		return arr.join();
110
		var strCon='';
111
			strCon+='<a class="" target="_blank" href=""><div class="madiaInfo">'
112
			strCon+='<p class="h1Font ellipsisSty">'+ $data.demandTitle +'</p>'
113
			strCon+='<ul class="showliTop h2Font clearfix">'
114
			strCon+='<li><span>发布于 '+TimeTr($data.createTime)+'</span></li>'
115
			strCon+= sowU
116
			strCon+='<li><span>联系人 '+$data.professor.name+'</span></li>'
117
			strCon+= statusU
118
			strCon+='</ul>'
119
			strCon+='</div></a>'+closStr
120
			
121
		$(strCon).appendTo(liStr);								
152 122
	}
153 123

154
}
124
//	function demandHtml($data) {
125
//		for(var i = 0; i < $data.length; i++) {
126
//			var $obje = $data[i].professor;
127
//			var personStr = personalInformation($obje);
128
//			var demandAim = "技术咨询",
129
//				demandType = "已关闭",
130
//				demandStyle = "status-5";
131
//			var oImg = "",
132
//				oTime = "";
133
//			if($data[i].demandAim == 2) {
134
//				demandAim = "寻找资源"
135
//			} else if($data[i].demandAim == 3) {
136
//				demandAim = "其他需求"
137
//			}
138
//			if($data[i].demandStatus == 1) {
139
//				demandType = "发布中";
140
//				demandStyle = "status-4";
141
//			}
142
//			if($obje.hasHeadImage) {
143
//				oImg = "/images/head/" + $obje.id + "_l.jpg";
144
//			} else {
145
//				oImg = "../images/default-photo.jpg"
146
//			}
147
//
148
//			oTime = $data[i]["createTime"].substr(0, 4) + "年" + $data[i].createTime.substr(4, 2) + "月" + $data[i].createTime.substr(6, 2) + "日" +
149
//				$data[i].createTime.substr(8, 2) + ":" + $data[i].createTime.substr(10, 2);
150
//			var oClass = autho($obje.authType, $obje.orgAuth, $obje.authStatus);
151
//			var dataString = "<li class='workselectitem'>"
152
//			dataString += "<div class='col-w-2'>"
153
//			dataString += "<div class='workitimg userRadius'>"
154
//			dataString += "<img class='headPhoto' src='" + oImg + "'  width='100%'>"
155
//			dataString += "</div></div>"
156
//			dataString += "<div class='col-w-10 needinfo'>"
157
//			dataString += "<div class='workinfor worksitcon'>"
158
//			dataString += "<h4><span class='h1Font'>" + $obje.name + "</span>"
159
//			dataString += "<em class='authicon "+oClass.sty+"' title='"+oClass.title+"'></em></h4>"
160
//			dataString += "<h6 class='h3Font'>" + personStr + "</h6>"
161
//			dataString += "<h6 style='position:relative;'>"
162
//			dataString += "<div class='titList'>需求主题:<em class='h4Font'>" + $data[i].demandTitle + "</em></div>"
163
//			dataString += "<span class='lasttime rightTime'>" + oTime + "</span>"
164
//			dataString += "<p class='rebackcon ellipsisSty-2'>" + $data[i].demandContent + "</p>"
165
//			dataString += "</h6></div>"
166
//			dataString += "<div class='workhandle'>"
167
//			dataString += "<div class='rightopert floatR'>"
168
//			dataString += "<span class='replybtn' demanid='" + $data[i].demandId + "'>查看</span></div>"
169
//			dataString += "<div class='leftstate floatR'>"
170
//			dataString += "<span class='coultstate " + demandStyle + "'><i>" + demandType + "</i></span></div>"
171
//			dataString += "<div class='leftstate floatR'>"
172
//			dataString += "<span class='coultstate coulstAim status-4'><i>" + demandAim + "</i></span></div></div></div></li>"
173
//			$("#demandList").append(dataString);
174
//		}
175
//	}
176

177
/*职位职称所在机构,部门,地址等等*/
178
//function personalInformation($person) {
179
//	var arr1 = [$person.title, $person.office, $person.department, $person.orgName, $person.address];
180
//	var arr = new Array();
181
//	var arr2 = new Array();
182
//	var n = 0;
183
//	for(var i = 0; i < arr1.length; i++) {
184
//		if(arr1[i]) {
185
//			arr.push(arr1[i]);
186
//			if(arr1[i] == arr1[arr1.length - 1]) {
187
//				n = 1;
188
//			}
189
//		}
190
//	}
191
//	if(n == 1) {
192
//		for(var i = 0; i < arr.length - 1; i++) {
193
//			arr2.push(arr[i]);
194
//		}
195
//		return arr2.join() + " | " + arr[arr.length - 1];
196
//	} else {
197
//		return arr.join();
198
//	}
199
//
200
//}
155 201
/*检索排序*/
156
function selcet(i) {
157
	$(".selcet" + i).on('click', function(e) {
158
		var option = $(this).find(".option" + i);
159
		option.css("display", "block")
160
		var o_this = $(this);
161
		o_this.find("li").click(function() {
162
			o_this.find("li").removeClass("workcurrent");
163
			$(this).addClass("workcurrent");
164
			o_this.find("span").text($(this).text());
165
			option.css("display", "none");
166
			if($(this).text() == "发布中") {
167
				oDemandAim = 1;
168
				$(".tcdPageCode").remove();
169
				$("#shoudao").append('<div class="tcdPageCode"></div>');
170
				demandList(true, 5, 1, oDemandAim, oSortType);
171
			} else if($(this).text() == "已关闭") {
172
				oDemandAim = 0;
173
				$(".tcdPageCode").remove();
174
				$("#shoudao").append('<div class="tcdPageCode"></div>');
175
				demandList(true, 5, 1, oDemandAim, oSortType);
176
			} else if($(this).text() == "全部") {
177
				oDemandAim = "";
178
				$(".tcdPageCode").remove();
179
				$("#shoudao").append('<div class="tcdPageCode"></div>');
180
				demandList(true, 5, 1, oDemandAim, oSortType);
181
			} else if($(this).text() == "按最早发布时间排序") {
182
				oSortType = 1;
183
				$(".tcdPageCode").remove();
184
				$("#shoudao").append('<div class="tcdPageCode"></div>');
185
				demandList(true, 5, 1, oDemandAim, oSortType);
186
			} else if($(this).text() == "按最新发布时间排序") {
187
				oSortType = 0;
188
				$(".tcdPageCode").remove();
189
				$("#shoudao").append('<div class="tcdPageCode"></div>');
190
				demandList(true, 5, 1, oDemandAim, oSortType);
191
			}
192
			return false;
193
		});
194
		$("body").click(function(e) {
195
			if($(".option4")[0].style.display == "block" || $(".option3")[0].style.display == "block") {
196
				$(".option4")[0].style.display = "none";
197
				$(".option3")[0].style.display = "none";
198
			}
199
		});
200
		return false;
201
	})
202
}
203
selcet(3); selcet(4);
202
//function selcet(i) {
203
//	$(".selcet" + i).on('click', function(e) {
204
//		var option = $(this).find(".option" + i);
205
//		option.css("display", "block")
206
//		var o_this = $(this);
207
//		o_this.find("li").click(function() {
208
//			o_this.find("li").removeClass("workcurrent");
209
//			$(this).addClass("workcurrent");
210
//			o_this.find("span").text($(this).text());
211
//			option.css("display", "none");
212
//			if($(this).text() == "发布中") {
213
//				oDemandAim = 1;
214
//				$(".tcdPageCode").remove();
215
//				$("#shoudao").append('<div class="tcdPageCode"></div>');
216
//				demandList(true, 5, 1, oDemandAim, oSortType);
217
//			} else if($(this).text() == "已关闭") {
218
//				oDemandAim = 0;
219
//				$(".tcdPageCode").remove();
220
//				$("#shoudao").append('<div class="tcdPageCode"></div>');
221
//				demandList(true, 5, 1, oDemandAim, oSortType);
222
//			} else if($(this).text() == "全部") {
223
//				oDemandAim = "";
224
//				$(".tcdPageCode").remove();
225
//				$("#shoudao").append('<div class="tcdPageCode"></div>');
226
//				demandList(true, 5, 1, oDemandAim, oSortType);
227
//			} else if($(this).text() == "按最早发布时间排序") {
228
//				oSortType = 1;
229
//				$(".tcdPageCode").remove();
230
//				$("#shoudao").append('<div class="tcdPageCode"></div>');
231
//				demandList(true, 5, 1, oDemandAim, oSortType);
232
//			} else if($(this).text() == "按最新发布时间排序") {
233
//				oSortType = 0;
234
//				$(".tcdPageCode").remove();
235
//				$("#shoudao").append('<div class="tcdPageCode"></div>');
236
//				demandList(true, 5, 1, oDemandAim, oSortType);
237
//			}
238
//			return false;
239
//		});
240
//		$("body").click(function(e) {
241
//			if($(".option4")[0].style.display == "block" || $(".option3")[0].style.display == "block") {
242
//				$(".option4")[0].style.display = "none";
243
//				$(".option3")[0].style.display = "none";
244
//			}
245
//		});
246
//		return false;
247
//	})
248
//}
249
//selcet(3); selcet(4);
204 250
/*进入needSure.html*/
205
$("#demandList").on("click", ".replybtn", function() {
206
	var demand = $(this).attr("demanid");
207
	location.href = "cmp-needShow.html?demandId=" + demand;
208
})
251
//$("#demandList").on("click", ".replybtn", function() {
252
//	var demand = $(this).attr("demanid");
253
//	location.href = "cmp-needShow.html?demandId=" + demand;
254
//})
209 255
})

+ 16 - 9
cmpInforShow.html

@ -64,15 +64,13 @@
64 64
			</div>
65 65
			<div class="leftconBox floatL" style="padding-bottom: 40px;">
66 66
				<div id="item1user" class="leftconItem">
67
					<!--无搜索结果-->
68
					<div class="nodatabox">
69
				        <div class="nodata">
70
				            <div class="picbox picNull"></div>
71
				            <div class="txtbox">
72
				            	<p class="noContip">企业尚未发布任何内容</p>
73
				            </div>
74
				        </div>
75
				    </div>
67
					<div class="coninfobox needinfobox displayNone">
68
						<div class="coninfocon form-item needList">
69
							<ul class="form-need" id="showDemand">
70
								
71
							</ul>
72
						</div>
73
					</div>
76 74
					<div class="coninfobox displayNone">
77 75
						<div class="coninfotit">企业简介</div>
78 76
						<div class="coninfocon" id="descpS">
@ -103,6 +101,15 @@
103 101
							</ul>
104 102
						</div>
105 103
					</div>
104
					<!--无搜索结果-->
105
					<div class="nodatabox">
106
				        <div class="nodata">
107
				            <div class="picbox picNull"></div>
108
				            <div class="txtbox">
109
				            	<p class="noContip">企业尚未发布任何内容</p>
110
				            </div>
111
				        </div>
112
				    </div>
106 113
				</div>
107 114
				<div id="item2user" class="leftconItem">
108 115
					<div class="coninfobox form-item otherShow">

+ 5 - 4
css/common.css

@ -1,9 +1,9 @@
1 1
@charset "utf-8";
2 2
/*reset*/
3
p,dl,dt,dd,ul,ol,li,a,em,div,span,th,td{margin:0;padding:0; word-break:break-all; font-family: PingFang SC,Microsoft Yahei,Arial,WenQuanYi Micro Hei,Helvetica Neue,Hiragino Sans GB,sans-serif;}
4
form,label,button,input,select,textarea{font-size:14px; font-family: PingFang SC,Microsoft Yahei,Arial,WenQuanYi Micro Hei,Helvetica Neue,Hiragino Sans GB,sans-serif;}
5
h1,h2,h3,h4,h5,h6{font-size:100%;margin:0;padding:0; font-family: PingFang SC,Microsoft Yahei,Arial,WenQuanYi Micro Hei,Helvetica Neue,Hiragino Sans GB,sans-serif;}
6
html,body{height:100%; width:100%; margin:0;padding:0;font-family: PingFang SC,Microsoft Yahei,Arial,WenQuanYi Micro Hei,Helvetica Neue,Hiragino Sans GB,sans-serif;}
3
p,dl,dt,dd,ul,ol,li,a,em,div,span,th,td{margin:0;padding:0; word-break:break-all; font-family: PingFang SC,Arial,Microsoft Yahei,WenQuanYi Micro Hei,Helvetica Neue,Hiragino Sans GB,sans-serif}
4
form,label,button,input,select,textarea{font-size:14px; font-family:PingFang SC,Arial,Microsoft Yahei,WenQuanYi Micro Hei,Helvetica Neue,Hiragino Sans GB,sans-serif}
5
h1,h2,h3,h4,h5,h6{font-size:100%;margin:0;padding:0; font-family:PingFang SC,Arial,Microsoft Yahei,WenQuanYi Micro Hei,Helvetica Neue,Hiragino Sans GB,sans-serif;}
6
html,body{height:100%; width:100%; margin:0;padding:0;font-family:PingFang SC,Arial,Microsoft Yahei,WenQuanYi Micro Hei,Helvetica Neue,Hiragino Sans GB,sans-serif;}
7 7
input{vertical-align:middle; outline:none;}
8 8
img{color:transparent;font-size:0;vertical-align:middle;-ms-interpolation-mode:bicubic;border:0;padding:0; margin:0;}
9 9
small{font-size:12px;}
@ -33,6 +33,7 @@ a,a:active,a:hover{outline:0;text-decoration:none;}
33 33
.clearfix{ clear:both;}
34 34
.clearfix:before,.clearfix:after{display:table;content:" "}
35 35
.clearfix:after{clear:both}
36
.loading{position: absolute;top:50%;left:50%;margin-left: -15px;}
36 37
/*更改placeholder的颜色*/
37 38
:-moz-placeholder {color: #999999;}
38 39
::-moz-placeholder {color: #999999;}

+ 28 - 21
css/genindex.css

@ -348,7 +348,7 @@ ul.artAbout .frmadd{width:auto;position:absolute;right:0;top:0;background: #ff99
348 348
.form-item .madiaInfo{width:100%;padding-left:62px;margin:2px 0;}
349 349
.form-item ul .h1Font{font-size:16px;color:#333;line-height: 20px;margin-bottom:4px;}
350 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;}
351
.form-item ul .time{font-size:14px;/*color:#666;*/line-height: 22px;}
352 352
.form-item ul .h3Font{font-size:13px;color:#999;line-height:20px;}
353 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;}
354 354
.form-drop>ul>li{position:relative;min-height:76px;padding:12px;cursor:pointer;background: #FFFFFF;}
@ -481,7 +481,7 @@ ul.tagList>li .h2Font{color:#666}
481 481
.itemListBolck .searchAbout .frmcontype{height: 36px;font-size: 14px;}
482 482
.itemListBolck .searchAbout .searchSpan{position:absolute;top:50%;margin-top:-9px;right:18px;display:inline-block;width:16px;height:16px;background: url(../images/g_article_icon_sousuo_nor.png);background-size:cover;cursor: pointer;}
483 483
.itemListBolck .frmcontype{width:100%;border-radius: 20px;padding-left:20px;background: #f5f6f8;}
484
.itemListBolck .topOperaBlock{padding:20px 0 0 20px;}
484
.itemListBolck .topOperaBlock{padding:20px 0 0 20px;width: 100%;}
485 485
.itemListBolck .issueSpanBlock{text-align: right;}
486 486
.itemListBolck .issueSpan{position:relative;display:inline-block;background:#e03b43;color:#fff;font-size:16px;cursor:pointer;padding:7px 25px 7px;padding-left:50px;border-radius: 20px 0 0 20px;}
487 487
.itemListBolck .issueSpan:before{position:absolute;content:url(../images/g_article_icon_fanbu_nor.png);top:50%;left:26px;margin-top:-9px;}
@ -490,18 +490,23 @@ ul.tagList>li .h2Font{color:#666}
490 490
.itemListBolck .itemListCon .form-result>ul>li:hover{background:#EEEEEE;}
491 491
.itemListBolck .itemListCon .form-result{margin:20px 0 30px;border-top:1px solid #E5E5E5;}
492 492
.itemListBolck .itemListCon .madiaHead{width:120px;height:80px;margin-top:-40px;}
493
.itemListBolck .itemListCon .madiaInfo>ul>li{float: left;margin-left:20px;}
494
.itemListBolck .itemListCon .madiaInfo>ul>li:first-child{margin-left:0;}
493
495 494
.itemListBolck .itemListCon .madiaInfo{padding-left:140px;min-height: 80px;padding-top:15px;}
496
.itemListCon.form-item ul .h1Font{font-size:18px;}
495
.itemListCon.form-item ul .h1Font{font-size:18px;margin-bottom:6px;line-height:24px;}
497 496
.itemListCon .draftLable{font-size:14px; color:#e03b43;line-height:24px;}
498 497
.itemListCon .form-result>ul>li .madiaEdit>li{float: left;margin-right: 28px;}
499 498
.itemListCon .form-result>ul>li .madiaEdit .editThis{display:inline-block;width:60px;height:32px;background:url(../images/g_article_button_xiugai_hig.png);background-size:cover;cursor:pointer;}
500 499
.itemListCon .form-result>ul>li .madiaEdit .deteleThis2{display:inline-block;width:32px;height:32px;background:url(../images/g_article_button_shanchu_hig.png);background-size:cover;cursor:pointer;}
500
.itemListCon .form-result>ul>li .madiaEdit .closeThis{color:#FF0000;}
501 501
.itemListCon .form-result>ul>li .madiaEdit{display:none;overflow:hidden;position:absolute;top:50%;margin-top:-16px;right:0;}
502 502
.itemListCon .form-result>ul>li:hover .madiaEdit{display: block;}
503 503
504 504
.itemListCon li.draftList .madiaInfo{padding-top:4px;}
505
506
.form-need{min-height:160px;}
507
.form-need a{display:block;}
508
.itemListBolck .itemListCon .form-need .madiaInfo{padding-left: 0;}
509
.itemListBolck .itemListCon .form-need .madiaEdit{display: block;}
505 510
/*.pointSp{position:relative;}
506 511
.pointSp:before{content:"";display: inline-block; width: 0; height: 0;border:2px #999 solid;margin: 2px 6px; border-radius:100%;}
507 512
*/
@ -591,22 +596,23 @@ div.zoomMask{position:absolute;background:url("../images/g-resource-mask.png") r
591 596
.workmenu>ul>li>a{display: inline-block;width: 100%;height:52px;line-height: 52px;color:#666;font-size:16px;background-size:18px 18px;background-position:14px center;background-repeat: no-repeat;}
592 597
.workmenu>ul>li:nth-child(1)>a{background-image:url(../images/g_article_icon_gongzuotai_nor.png);}
593 598
.workmenu>ul>li:nth-child(2)>a{background-image:url(../images/g_article_icon_zixun_nor.png);}
594
.workmenu>ul>li:nth-child(3)>a{background-image:url(../images/g_article_icon_ziyuan_nor.png);}
595
.workmenu>ul>li:nth-child(4)>a{background-image:url(../images/g_article_icon_zhuanli_nor.png);}
596
.workmenu>ul>li:nth-child(5)>a{background-image:url(../images/g_article_icon_lunwen_nor.png);}
597
.workmenu>ul>li:nth-child(6)>a{background-image:url(../images/g_article_icon_wenzhang_nor.png);}
598
.workmenu>ul>li:nth-child(7)>a{background-image:url(../images/g_article_icon_xuqiu_nor.png);}
599
.workmenu>ul>li:nth-child(3)>a{background-image:url(../images/g_article_icon_xuqiu_nor.png);}
600
.workmenu>ul>li:nth-child(4)>a{background-image:url(../images/g_article_icon_ziyuan_nor.png);}
601
.workmenu>ul>li:nth-child(5)>a{background-image:url(../images/g_article_icon_zhuanli_nor.png);}
602
.workmenu>ul>li:nth-child(6)>a{background-image:url(../images/g_article_icon_lunwen_nor.png);}
603
.workmenu>ul>li:nth-child(7)>a{background-image:url(../images/g_article_icon_wenzhang_nor.png);}
599 604
.workmenu>ul>li>a:hover{background-color: #f0f0f0;}
600 605
.workmenu>ul>.nowLi>a{background-color:  #f7eee1;color:#ff9900;}
601 606
.workmenu>ul>li.nowLi:nth-child(1)>a{background-image:url(../images/g_article_icon_gongzuotai_hig.png);}
602 607
.workmenu>ul>li.nowLi:nth-child(2)>a{background-image:url(../images/g_article_icon_zixun_hig.png);}
603
.workmenu>ul>li.nowLi:nth-child(3)>a{background-image:url(../images/g_article_icon_ziyuan_hig.png);}
604
.workmenu>ul>li.nowLi:nth-child(4)>a{background-image:url(../images/g_article_icon_zhuanli_hig.png);}
605
.workmenu>ul>li.nowLi:nth-child(5)>a{background-image:url(../images/g_article_icon_lunwen_hig.png);}
606
.workmenu>ul>li.nowLi:nth-child(6)>a{background-image:url(../images/g_article_icon_wenzhang_hig.png);}
607
.workmenu>ul>li.nowLi:nth-child(7)>a{background-image:url(../images/g_article_icon_xuqiu_hig.png);}
608
.workmenu>ul>li.nowLi:nth-child(3)>a{background-image:url(../images/g_article_icon_xuqiu_hig.png);}
609
.workmenu>ul>li.nowLi:nth-child(4)>a{background-image:url(../images/g_article_icon_ziyuan_hig.png);}
610
.workmenu>ul>li.nowLi:nth-child(5)>a{background-image:url(../images/g_article_icon_zhuanli_hig.png);}
611
.workmenu>ul>li.nowLi:nth-child(6)>a{background-image:url(../images/g_article_icon_lunwen_hig.png);}
612
.workmenu>ul>li.nowLi:nth-child(7)>a{background-image:url(../images/g_article_icon_wenzhang_hig.png);}
613
608 614
.workmenu>ul>.nowLi>a:hover{background-color: #f7eee1;}
609
.conBlock .workconG{float:right;/*width:86%;*/width:87%;background: #FFFFFF;margin-bottom:20px;}
615
.conBlock .workconG{float:right;position:relative;width:87%;background: #FFFFFF;margin-bottom:20px;}
610 616
.conBlock .workconG .workcontit{height: 60px;padding: 0 20px;font-size: 16px;line-height:60px;border-bottom: 1px solid #e7e7e7;}
611 617
.workcontit a:link, .workcontit a:active, .workcontit a:visited {color: #313131;}
612 618
.conBlock .workconG .worksamlltit{font-size: 16px;line-height: 30px; margin-right:30px;padding: 10px 4px 8px;cursor: pointer;}
@ -815,10 +821,11 @@ div.zoomMask{position:absolute;background:url("../images/g-resource-mask.png") r
815 821
816 822
/*--------------新版需求相关--------------*/
817 823
.needinfobox.coninfobox{border-bottom:20px solid #F4F6F8;padding-bottom: 30px;}
818
.needList.form-item .madiaInfo{padding-left:0;}
819
.needList.form-item>ul .h1Font{font-size: 18px;margin-bottom: 10px;}
820
.needList.form-item>ul .h2Font{font-size: 14px;line-height:24px;margin: 10px 0;}
821
.needList.form-item>ul .h3Font{font-size: 14px;color:#999;}
824
/*.needList.form-item .madiaInfo{padding-left:0;}*/
825
.needList.form-item ul .h1Font{font-size: 18px;margin-bottom: 10px;line-height:24px;}
826
.needList.form-item ul .h2Font{font-size: 14px;line-height:24px;margin:8px 0;}
827
.needList.form-item ul .h3Font{font-size: 14px;color:#999;}
822 828
.needList.form-item>ul>li{padding:10px 30px;margin:0 -30px;}
823 829
.needList.form-item>ul>li:hover{background: #EEEEEE;}
824
.needList.form-item ul .showli>li{margin: 6px 0;width:25%;padding-right:16px;float:left;text-overflow:ellipsis;white-space: nowrap;overflow: hidden;}
830
.showli>li{margin: 6px 0;width:25%;padding-right:16px;float:left;text-overflow:ellipsis;white-space: nowrap;overflow: hidden;}
831
.showliTop>li{margin-bottom: 4px;float:left;padding-right:16px;}

+ 1 - 2
index.html

@ -5,10 +5,9 @@
5 5
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
6 6
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
7 7
<meta http-equiv="X-UA-Compatible" content="IE=edge">
8
<meta content="科袖网是一个致力于整合行业内优秀的科研专家与研发资源共享经济平台。通过提供互联网服务,帮助企业寻找攻克技术难题的专家,从而提高企业的研发与创新能力;帮助专家实现研究成果的应用,使科研价值转化为经济价值;让闲置的研发资源得到充分利用,创造更多价值。" name="description">
8
<meta name="description" content="科袖,一个创新的研发资源共享及科技成果转化平台,帮助企业在研发过程中,找到能解决问题的专家;让专家的知识、技能、经验、成果和身边的仪器设备,更有效地帮助企业进行研发,让专家的科研价值变现。">
9 9
<title>科袖网-搭建企业与专家的桥梁</title>
10 10
<link rel="shortcut icon" href="images/favicon.png"/>
11
<!-- <link rel="Bookmark" href="images/favicon.png" /> -->
12 11
<link href="css/bootstrap.min.css" rel="stylesheet">
13 12
<link rel="stylesheet" href="css/reset.css" />
14 13
<link type="text/css" href="css/index.css" rel="stylesheet">

+ 7 - 2
information.html

@ -269,12 +269,17 @@
269 269
			<div class="rightconBox floatR">
270 270
				<div class="conItem statisticsBox alignCenter clearfix">
271 271
					<div class="col-w-12">
272
						<a class="goarrow" target="_blank" href="" id="showMyself">查看我的主页<em></em></a>
272
						<a class="goarrow" target="_blank" id="showMyself">查看我的主页<em></em></a>
273 273
					</div>
274 274
				</div>
275 275
				<div class="conItem statisticsBox alignCenter clearfix">
276 276
					<div class="col-w-12">
277
						<p>发布资源、文章、专利、论文 </p>
277
						<a class="goarrow" target="_blank" href="">下载我的简历<em></em></a>
278
					</div>
279
				</div>
280
				<div class="conItem statisticsBox alignCenter clearfix" style="padding:30px 10px">
281
					<div class="col-w-12">
282
						<p>发布需求、资源、文章、专利、论文 </p>
278 283
						<a class="goarrow" target="_blank" href="workspaces.html">进入我的工作台<em></em></a>
279 284
					</div>
280 285
				</div>

+ 5 - 5
js/articalList.js

@ -1,7 +1,7 @@
1 1
/*文章个人列表*/
2 2
$(function() {
3 3
	$(".onlogin .headnavbtn li").eq(0).addClass("navcurrent");
4
	$(".workmenu>ul>li").eq(5).addClass("nowLi");
4
	$(".workmenu>ul>li:contains('文章')").addClass("nowLi");
5 5
	loginStatus(); //判断个人是否登录
6 6
	valUser();
7 7
	var userid = $.cookie("userid");
@ -75,7 +75,7 @@ function articalList(pageSize, pageNo, isbind, num) {
75 75
		"async": false,
76 76
		"data": $data,
77 77
		"beforeSend": function() {
78
			$("#articalList").append('<img src="../images/loading.gif" class="loading"  style="position: absolute;left: 50%; top: 50%;" />');
78
			$("#articalList").append('<img src="../images/loading.gif" class="loading"  />');
79 79
		},
80 80
		"success": function(data) {
81 81
			console.log(data);
@ -87,17 +87,17 @@ function articalList(pageSize, pageNo, isbind, num) {
87 87
				for(var i = 0; i < data.data.data.length; i++) {
88 88
					if(data.data.data[i].status == 1) {
89 89
						var li = '<li class="newbox"><a href="" target="_blank" class="newurl">';
90
						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>';
90
						var li2 = '<ul class="showliTop 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>';
91 91
						var li3 = '';
92 92
						var li4 = '';
93 93
					} else if(data.data.data[i].status == 0) {
94 94
						var li = '<li class="newbox draftList"><a href="" target="_blank" class="newurl">';
95
						var li2 = '<ul class="h2Font clearfix"><li><span class="time"></span></li></ul>';
95
						var li2 = '<ul class="showliTop h2Font clearfix"><li><span class="time"></span></li></ul>';
96 96
						var li3 = '<span class="draftLable">草稿</span>';
97 97
						var li4 = '<li><a class="editThis" target="_blank"></a></li>';
98 98
					} else if(data.data.data[i].status == 2) {
99 99
						var li = '<li class="newbox draftList"><a href="" class="newurl">';
100
						var li2 = '<ul class="h2Font clearfix"><li><span class="time"></span></li></ul>';
100
						var li2 = '<ul class="showliTop h2Font clearfix"><li><span class="time"></span></li></ul>';
101 101
						var li3 = '<span class="draftLable" id="dsfbtime"></span>';
102 102
						var li4 = '<li><a class="editThis" target="_blank"></a></li>';
103 103
					}

+ 73 - 3
js/cmpInforShow.js

@ -6,9 +6,10 @@ $(function() {
6 6
7 7
8 8
	if(orgId) {
9
		getCmpInfo(orgId); //获取个人详细信息
10
		getResource( 10,1, true); //获取个人发布的资源
11
		getArticle(10, 1, true); //获取个人发布的文章
9
		getCmpInfo(orgId); //获取详细信息
10
		getResource( 10,1, true); //获取发布的资源
11
		getArticle(10, 1, true); //获取发布的文章
12
		getDemands(10,1,true)//获取发布的需求
12 13
		relevantarticalList();//相关文章
13 14
		likeExperts();//感兴趣专家
14 15
		ifcollectionAbout(orgId,$(".goSpan").find(".attenSpan"),6);
@ -575,6 +576,75 @@ $(function() {
575 576
			}
576 577
		});
577 578
	}
579
	//获取需求
580
	function getDemands(pageSize, pageNo,isbind) {
581
		$.ajax({
582
			url: "/ajax/demand/pq",
583
			type: "GET",
584
			timeout: 10000,
585
			dataType: "json",
586
			data: {
587
				"pageNo": pageNo,
588
				"pageSize":pageSize,
589
			},
590
			beforeSend: function() {
591
				$("#showDemand").append('<img src="../images/loading.gif" class="loading" />');
592
			},
593
			success: function(data) {
594
				if(data.success) {
595
					$("#showDemand").html(" ");
596
					var $info = data.data.data;
597
					if($info.length > 0){
598
						$("#showDemand").parents(".needinfobox").removeClass("displayNone");
599
						$("#item1user>.nodatabox").addClass("displayNone");
600
						for(var i = 0; i < $info.length; i++) {
601
							var liStr=$("<li></li>").appendTo("#showDemand");
602
							demandHtml($info[i],liStr);
603
						}
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
					}else{
614
						$("#showDemand").parents(".needinfobox").addClass("displayNone");
615
					}
616
				}
617
				$(".loading").remove();
618
			},
619
			error: function() {
620
				$.MsgBox.Alert('提示', '链接服务器超时')
621
			}
622
		})
623
	}
624
	function demandHtml($data,liStr) {
625
		var sowU="";
626
		if($data.pageViews!=0){
627
			sowU='<li><span>浏览量 '+$data.pageViews +'</span></li>'
628
		}
629
		var strCon='';
630
			strCon+='<a class="" target="_blank" href="" class="madiaInfo">'
631
			strCon+='<p class="h1Font ellipsisSty">'+ $data.title +'</p>'
632
			strCon+='<ul class="showliTop h3Font clearfix">'
633
			strCon+='<li><span class="cmpName"></span></li><li><span>发布于 '+commenTime($data.createTime)+'</span></li>'
634
			strCon+= sowU
635
			strCon+='</ul>'
636
			strCon+='<p class="h2Font ellipsisSty-2">'+$data.descp+'</p>'
637
			strCon+='<ul class="showli clearfix h3Font">'
638
			
639
			if($data.city){ strCon+='<li>所在城市:'+$data.city+'</li>' }
640
			if($data.duration){ strCon+='<li>预期时长:'+demandDuration[$data.duration]+'</li>' }
641
			if($data.cost){ strCon+='<li>费用预算:'+demandCost[$data.cost]+'</li>' }
642
			if($data.invalidDay){ strCon+='<li>有效期至:'+TimeTr($data.invalidDay)+'</li>' }
643
			
644
			strCon+='</ul>'
645
			strCon+='</a>'
646
		$(strCon).appendTo(liStr);	
647
	}
578 648
	
579 649
	
580 650
	//纠错反馈

+ 17 - 0
js/common.js

@ -748,6 +748,23 @@ var columnType = {
748 748
		shortName:"新闻"
749 749
	}	
750 750
}
751
//需求的费用预算
752
var demandCost = {
753
	'1': '1万元以内',
754
	'2': '1-5万元',
755
	'3': '5-10万元',
756
	'4': '10-20万元',
757
	'5': '20-50万元',
758
	'6': '50万元以上'
759
}
760
//需求的预期时长
761
var demandDuration = {
762
	'1': '1个月内',
763
	'2': '1-3个月',
764
	'3': '3-6个月',
765
	'4': '6-12个月',
766
	'5': '1年以上'
767
}
751 768
//反馈意见成功
752 769
function backSuccessed(){
753 770
	$(".correctCon").val("");

+ 1 - 1
js/discover.js

@ -155,7 +155,7 @@ $(function() {
155 155
				"pageNo":pageNo
156 156
			},
157 157
			"beforeSend": function() {
158
				$("#table-item").append('<img src="../images/loading.gif" class="loading"  style="position: absolute;left: 50%; top: 50%;" />');
158
				$(".table-body").append('<img src="../images/loading.gif" class="loading" />');
159 159
			},
160 160
			"success" : function(data) {
161 161
				if (data.success){

+ 426 - 378
js/myDemand.js

@ -1,14 +1,16 @@
1 1
$(document).ready(function() {
2 2
	$(".onlogin .headnavbtn li").eq(0).addClass("navcurrent");
3
	$(".workmenu>ul>li").eq(6).addClass("nowLi");
3
	$(".workmenu>ul>li:contains('需求')").addClass("nowLi");
4 4
	loginStatus(); //判断个人是否登录
5 5
	valUser();
6 6
	var userid = $.cookie("userid");
7 7
	var yesNo = "",
8 8
		oSortType = 0,
9 9
		demandType, orgId;
10
		
11
	myDemandList(true, 1, 5);
10 12
	/*我的需求列表*/
11
	function myDemandList(isbind, page, pageNum, dema, sortType) {
13
	function myDemandList(isbind, page, pageNum) {
12 14
		$.ajax({
13 15
			url: "/ajax/demand/pqDemander",
14 16
			type: "GET",
@ -17,401 +19,447 @@ $(document).ready(function() {
17 19
			data: {
18 20
				"demander": userid,
19 21
				"pageNo": page,
20
				"demandStatus": dema,
21
				"sortType": sortType,
22 22
				"pageSize": pageNum
23 23
			},
24
			beforeSend: function() {},
25
			success: function(data, textState) {
26
				if(data.success) {
27
					//					if(data.data.data.length==0){
28
					//						return;
29
					//					}
30
					$(".workselectitem").html(" ");
31
					demandHtml(data.data.data);
32
					if(data.data.data.length==0) return;
33
					if(isbind == true) {
34
						$(".tcdPageCode").createPage({
35
							pageCount: Math.ceil(data.data.total / pageNum),
36
							current: data.data.data.pageNo,
37
							backFn: function(p) {
38
								myDemandList(false, p, 5, yesNo, oSortType);
39
							}
40
						});
41
					}
42
				}
24
			beforeSend: function() {
25
				$("#myneedList").append('<img src="../images/loading.gif" class="loading" />');
43 26
			},
44
			error: function(XMLHttpRequest, textStats, errorThrown) {
45

46
			}
47
		})
48
	}
49

50
	function demandHtml($data) {
51
		for(var i = 0; i < $data.length; i++) {
52
			var oTime, oDemandType, oDemandAim, oDemandStatus;
53
			if($data[i].demandType == 1) {
54
				oDemandType = "个人需求"
55
			} else if($data[i].demandType == 2) {
56
				oDemandType = "企业需求"
57
			}
58
			if($data[i].demandAim == 1) {
59
				oDemandAim = "技术咨询"
60
			} else if($data[i].demandAim == 2) {
61
				oDemandAim = "寻找资源"
62
			} else if($data[i].demandAim == 3) {
63
				oDemandAim = "其他需求"
64
			}
65
			if($data[i].demandStatus == 0) {
66
				oDemandStatus = "已关闭"
67
			} else if($data[i].demandStatus == 1) {
68
				oDemandStatus = "发布中"
69
			}
70
			oTime = $data[i]["createTime"].substr(0, 4) + "年" + $data[i].createTime.substr(4, 2) + "月" + $data[i].createTime.substr(6, 2) + "日" +
71
				$data[i].createTime.substr(8, 2) + ":" + $data[i].createTime.substr(10, 2);
72
			var oString = "<div class='workselectitem'><table width='100%'><tbody><tr>"
73
			oString += "<td style='position:relative;top:20px;'>"
74
			oString += "<div class='workinfor worksitcon'>"
75
			oString += "<h4><div class='titList h4Font' style='width:620px'>" + $data[i].demandTitle + "</div></h4>"
76
			oString += "<h6 style='position:relative;'>"
77
			oString += "<div class='clearfix'>"
78
			oString += "<div class='floatL'>发布时间:<span class='lasttime'>" + oTime + "</span></div>"
79
			if($data[i].closeTime) {
80
				var oCloseTime = $data[i]["closeTime"].substr(0, 4) + "年" + $data[i].closeTime.substr(4, 2) + "月" + $data[i].closeTime.substr(6, 2) + "日" +
81
					$data[i].closeTime.substr(8, 2) + ":" + $data[i].closeTime.substr(10, 2);
82
				oString += "<div class='floatL' style='margin-left:40px;'>关闭时间:<span class='lasttime'>" + oCloseTime + "</span></div></div>"
83
			}
84
			oString += "<div style='height:70px'><p class='rebackcon lastReplyCon' style='width: 860px;' >" + $data[i].demandContent + "</p></div></h6></div>"
85
			oString += "<div class='workhandle'>"
86
			oString += "<div class='rightopert floatR'>"
87
			oString += "<span class='replybtn'demanid='" + $data[i].demandId + "'>查看</span></div>"
88
			oString += "<div class='leftstate floatR'>"
89
			oString += "<span class='coultstate status-1'><i>" + oDemandStatus + "</i></span></div>"
90
			oString += "<div class='leftstate floatR'>"
91
			oString += "<span class='coultstate status-4'><i>" + oDemandAim + "</i></span></div>"
92
			oString += "<div class='leftstate floatR'>"
93
			oString += "<span class='coultstate coulstAim status-4'><i>" + oDemandType + "</i></span></div></div></td></tr></tbody></table></div>"
94
			$("#myNeed").append(oString)
95
		}
96
	}
97
	myDemandList(true, 1, 5, yesNo, oSortType);
98
	/*检索排序*/
99
	function selcet(i) {
100
		$(".selcet" + i).on('click', function(e) {
101
			var option = $(this).find(".option" + i);
102
			option.css("display", "block")
103
			var o_this = $(this);
104
			o_this.find("li").click(function() {
105
				o_this.find("li").removeClass("workcurrent");
106
				$(this).addClass("workcurrent");
107
				o_this.find("span").text($(this).text());
108
				option.css("display", "none");
109
				if($(this).text() == "全部") {
110
					yesNo = "";
111
					$(".tcdPageCode").remove();
112
					$("#workContainer2").append('<div class="tcdPageCode"></div>');
113
					myDemandList(true, 1, 5, yesNo, oSortType);
114
				} else if($(this).text() == "发布中") {
115
					yesNo = 1;
116
					$(".tcdPageCode").remove();
117
					$("#workContainer2").append('<div class="tcdPageCode"></div>');
118
					myDemandList(true, 1, 5, yesNo, oSortType);
119
				} else if($(this).text() == "已关闭") {
120
					yesNo = 0;
121
					$(".tcdPageCode").remove();
122
					$("#workContainer2").append('<div class="tcdPageCode"></div>');
123
					myDemandList(true, 1, 5, yesNo, oSortType);
124
				} else if($(this).text() == "按最早发布时间排序") {
125
					oSortType = 1;
126
					$(".tcdPageCode").remove();
127
					$("#workContainer2").append('<div class="tcdPageCode"></div>');
128
					myDemandList(true, 1, 5, yesNo, oSortType);
129
				} else if($(this).text() == "按最新发布时间排序") {
130
					oSortType = 0;
131
					$(".tcdPageCode").remove();
132
					$("#workContainer2").append('<div class="tcdPageCode"></div>');
133
					myDemandList(true, 1, 5, yesNo, oSortType);
134
				}
135
				return false;
136
			});
137
			$("body").click(function(e) {
138
				if($(".option4")[0].style.display == "block" || $(".option1")[0].style.display == "block") {
139
					$(".option4")[0].style.display = "none";
140
					$(".option1")[0].style.display = "none";
141
				}
142
			});
143
			return false;
144
		})
145
	}
146
	selcet(1);
147
	selcet(4);
148
	$("#myNeed").on("click", ".replybtn", function() {
149
		var de = $(this).attr("demanid");
150
		location.href = "needShow.html?demandId=" + de
151
	});
152
	/*发布新需求*/
153
	$("#needIssueBtn").click(function() {
154
		$.ajax({
155
			url: "/ajax/professor/baseInfo/" + userid,
156
			type: "GET",
157
			timeout: 10000,
158
			dataType: "json",
159 27
			success: function(data) {
160 28
				if(data.success) {
161
					console.log(data);
162
					var $rta = data.data;
163
					orgId = $rta.orgId
164
					console.log(orgId)
165
					$("#induSub").val("");
166
					$("textarea").val("");
167
					$("#demandContent").val("");
168
					$("#navsub").find("li").removeClass("aimedLi");
169
					$("#mutChecked").find("li").removeClass("checkedLi");
170
					$('.checkNow').removeClass('checkNow');
171
					if($rta.authStatus != 3) {
172
						if($rta.orgAuth == 1) {
173
							$(".blackcover ").show();
174
							$("body").css("position","fixed");
175
							$("span:contains('企业需求')").addClass("checkNow");
176
							$("span:contains('个人需求')").addClass("checkNo");
177
							demandType = 2;
178
						} else {
179
							location.href = "realname-authentication.html";
29
					$("#myneedList").html("");
30
					var $info = data.data.data;
31
					if($info.length > 0){
32
						for(var i = 0; i < $info.length; i++) {
33
							var liStr=$("<li></li>").appendTo("#myneedList");
34
							demandHtml($info[i],liStr);
180 35
						}
181

182
					} else {
183
						$(".blackcover ").show();
184
						$("body").css("position","fixed");
185
						if($rta.orgAuth == 0) {
186
							$("span:contains('企业需求')").addClass("checkNo");
187
							$("span:contains('个人需求')").addClass("checkNow");
188
							demandType = 1;
189
						} else {
190
							demanTy();
36
						if(isbind == true) {
37
							$(".tcdPageCode").createPage({
38
								pageCount: Math.ceil(data.data.total / pageNum),
39
								current: data.data.data.pageNo,
40
								backFn: function(p) {
41
									$("#myneedList").html("");
42
									myDemandList(false, p, 5);
43
									document.body.scrollTop = document.documentElement.scrollTop = 0;
44
								}
45
							});
191 46
						}
47
					}else{
48
						$("#myneedList").parent().find(".nodatabox").removeClass("displayNone")
192 49
					}
193

194 50
				}
195

51
				$(".loading").remove();
196 52
			},
197
			error: function(XMLHttpRequest, textStats, errorThrown) {
53
			error: function() {
198 54

199 55
			}
200 56
		})
201

202
	});
203
	$("#workclose2").click(function() {
204
			$(".blackcover ").hide();
205
			$("body").css("position","relative");
206
		})
207
		/*发布新需求目的*/
208
	var consun;
209
	tab("navsub"); //身份切换
210
	function tab(name) {
211
		var oDome = document.getElementById(name);
212
		var oSpan = oDome.getElementsByTagName('ul')[0].childNodes;
213
		for(var i = 0; i < oSpan.length; i++) {
214
			oSpan[i].onclick = function() {
215
				for(var i = 0; i < oSpan.length; i++) {
216
					oSpan[i].className = '';
217
				}
218
				this.className = 'aimedLi';
219
				if(this.getElementsByTagName("span")[0].innerText == "咨询技术难题") {
220
					consun = 1;
221
				} else if(this.getElementsByTagName("span")[0].innerText == "寻求研发资源") {
222
					consun = 2;
223
				} else {
224
					consun = 3;
225
				}
226
			}
227
		}
228
	}
229
	/*切换需求类型*/
230
	function demanTy() {
231
		var deTy = document.getElementsByClassName("boxnavTo")[0];
232
		var deTyChild = deTy.getElementsByTagName("span");
233
		if(deTyChild[0].className != "checkNo" && deTyChild[1].className != "checkNo") {
234
			for(var n = 0; n < deTyChild.length; n++) {
235
				(function(m) {
236
					deTyChild[m].onclick = function() {
237
						this.className = "checkNow";
238
						if(m == 0) {
239
							demandType = 1;
240
							deTyChild[1].className = "";
241
						} else if(m == 1) {
242
							demandType = 2;
243
							deTyChild[0].className = "";
244
						}
245
					}
246
				})(n);
247
			}
248
		}
249
	}
250

251
	/*需求题目限制30个字*/
252
	$("#demandContent").on('keyup', function() {
253
		if(this.value.length > 30) {
254
			this.value = this.value.substring(0, 30);
255
		}
256
	});
257
	/*需求内容限制300个字*/
258
	$("textarea").on('keyup', function() {
259
		var maxChars = 300;
260
		if(this.value.length > maxChars) {
261
			this.value = this.value.substring(0, maxChars);
262
		}
263
		var oCanInput = maxChars - this.value.length;
264
		$("#countNum").text(oCanInput);
265
	});
266
	/*查询应用行业及学术领域*/
267
	function industry(insu) {
268
		$.ajax({
269
			url: "/ajax/dataDict/qaDictCode",
270
			dataType: 'json', //数据格式类型
271
			type: 'GET', //http请求类型
272
			timeout: 10000, //超时设置
273
			data: {
274
				"dictCode": insu
275
			},
276
			success: function(data) {
277
				if(data.success) {
278
					var $data = data.data;
279
					var n;
280
					($data.length > 5) ? n = 5:
281
						n = $data.length
282
					for(var i = 0; i < n; i++) {
283
						var oString = '<li><span>' + $data[i].caption + '</span></li>';
284
						$("#mutChecked").append(oString);
285
					}
286
				}
287
			},
288
			error: function() {
289
				return;
290
			}
291
		});
292 57
	}
293
	industry("INDUSTRY");
294
	industry("SUBJECT");
295
	/*行业及领域选择*/
296
	$('#mutChecked').on('click', 'li', function() {
297
			if(this.className == "checkedLi") {
298
				this.className = ""
299
			} else {
300
				this.className = "checkedLi"
301
			}
302
		})
303
		/*行业或者领域添加及删除*/
304
	$("#labelshow").on("click", ".removeNu", function() {
305
		$(this).parent().remove();
306
	});
307
	$("#addIndu").click(function() {
308
			var oinduSub = $("#induSub").val();
309
			var oAddNum = $("#labelshow").find("em");
310
			if(!oinduSub.trim()) {
311
				$.MsgBox.Alert("消息", "请先添加内容");
312
				return;
313
			}
314
			if(oinduSub.trim().length > 10) {
315
				$.MsgBox.Alert("消息", "不能多于10个字");
316
				return;
317
			}
318
			if(oAddNum.length == 5) {
319
				$.MsgBox.Alert("消息", "最多添加五条");
320
				return;
321
			}
322
			for(var i = 0; i < oAddNum.length; i++) {
323
				if(oAddNum[i].innerHTML == oinduSub) {
324
					$.MsgBox.Alert("消息", "不能重复添加");
325
					return;
326
				}
327
			}
328
			$("#labelshow").append('<li class="deleteSubject"><em>' + oinduSub + '</em><span class="removeNu"><img src="images/move.png"></span></li>')
329
			$("#induSub").val("");
330
		})
331
		/*发布新需求*/
332
	$("#postDemand").click(function() {
333
		var dd = $("#navsub").find(".aimedLi");
334
		var cc = $("#navsubTo").find(".checkNow");
335
		if(dd.length == 0) {
336
			$.MsgBox.Alert("消息", "请选择您发布需求的目的");
337
			return;
338
		}
339
		if(cc.length == 0) {
340
			$.MsgBox.Alert("消息", "请选择您的需求类型");
341
			return;
58
	function demandHtml($data,liStr) {
59
		var sowU="";
60
		if($data.pageViews!=0){
61
			sowU='<li><span>浏览量 '+$data.pageViews+'</span></li>'
342 62
		}
343
		if(!$("#demandContent").val().trim()) {
344
			$.MsgBox.Alert("消息", "请填写需求主题");
345
			return;
63
		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>'
346 74
		}
347
		if(!$("textarea").val().trim()) {
348
			$.MsgBox.Alert("消息", "请填写需求内容");
349
			return;
75
		if($data.state==0){
76
			statusU='<li><span class="draftLable">已于 '+TimeTr($data.createTime)+'过期</span></li>'
77
		}else if($data.state==2){
78
			statusU='<li><span">已于 '+TimeTr($data.createTime)+'完成</span></li>'
79
		}else if($data.state==3){
80
			statusU='<li><span">已于 '+TimeTr($data.createTime)+'关闭</span></li>'
350 81
		}
351
		publish()
352
	});
353

354
	function publish() {
355
		var arr = [];
356
		var oSuin = $(".checkedLi");
357
		var oin = $("#labelshow").find("li");
358
		for(var i = 0; i < oSuin.length; i++) {
359
			arr[i] = oSuin[i].innerText;
82
		var closStr='';
83
		if($data.state==1){
84
			closStr += '<ul class="madiaEdit"><li><span class="closeThis">关闭</span></li></ul>'
360 85
		}
361
		for(var j = 0; j < oin.length; j++, i++) {
362
			//console.log(oin[j].innerText);
363
			arr[i] = oin[j].innerText;
364
		}
365
		$.ajax({
366
			url: '/ajax/demand',
367
			dataType: 'json', //数据格式类型
368
			type: 'post', //http请求类型
369
			timeout: 10000, //超时设置
370
			traditional: true,
371
			data: {
372
				"demander": userid,
373
				"demandAim": consun,
374
				"demandType": demandType,
375
				"demandTitle": $("#demandContent").val(),
376
				"demandContent": $("textarea").val(),
377
				"args": arr,
378
				"orgId": (demandType == 2) ? orgId : "",
379
			},
380
			success: function(data) {
381
				if(data.success) {
382
					myDemandList(true, 1, 5, yesNo, oSortType);
383
					$(".blackcover ").hide();
384
					$("body").css("position","relative");
385
					$.MsgBox.Alert("消息", "需求发布成功!很快会有专家与您联系,您可以在咨询列表中查看专家回复的信息");
386
					$("#mb_msgicon").css("background", 'url("images/sign_icon_chenggong_nor.png") 0% 0% / contain');
387
				}
388
			},
389
			error: function() {
390
				return;
391
			}
392
		});
86
		var strCon='';
87
			strCon+='<a class="madiaInfo" target="_blank" href="">'
88
			strCon+='<p class="h1Font ellipsisSty">'+ $data.title +'</p>'
89
			strCon+='<ul class="showliTop h2Font clearfix">'
90
			strCon+='<li><span>发布于 '+commenTime($data.createTime)+'</span></li>'
91
			strCon+= sowU
92
			strCon+= statusU
93
			strCon+='</ul>'
94
			strCon+='</a>'+closStr
95
			
96
		$(strCon).appendTo(liStr);								
393 97
	}
394
	/*判断是否是专家*/
395
	$.ajax({
396
		url: "/ajax/professor/auth",
397
		type: "GET",
398
		timeout: 10000,
399
		dataType: "json",
400
		data: {
401
			"id": userid,
402
		},
403
		success: function(data, textState) {
404
			if(data.success) {
405
				var $rta = data.data;
406
				if($rta.authType == 0) {
407
					$("#searchDemand").hide();
408
				}
409 98

410
			}
411

412
		},
413
		error: function(XMLHttpRequest, textStats, errorThrown) {
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
//	}
414 298

415
		}
416
	})
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
//	})
417 465
})

+ 200 - 150
js/needList.js

@ -1,12 +1,12 @@
1 1
$(document).ready(function() {
2 2
	$(".onlogin .headnavbtn li").eq(0).addClass("navcurrent");
3
	$(".workmenu>ul>li").eq(6).addClass("nowLi");
3
	$(".workmenu>ul>li:contains('需求')").addClass("nowLi");
4 4
	loginStatus();//判断个人是否登录
5 5
	valUser();
6
	var oDemandAim = "",
7
		oSortType = "";
6
	
7
	demandList(true, 5, 1);
8 8
	/*需求列表*/
9
	function demandList(isbind, pageSize, pageNo, oDemand, oSort) {
9
	function demandList(isbind, pageSize, pageNo) {
10 10
		$.ajax({
11 11
			url: "/ajax/demand/pq",
12 12
			type: "GET",
@ -14,167 +14,217 @@ $(document).ready(function() {
14 14
			dataType: "json",
15 15
			data: {
16 16
				"pageNo": pageNo,
17
				"demandAim": oDemand,
18
				"sortType": oSort
17
				"pageSize":pageSize,
19 18
			},
20
			beforeSend: function() {},
21
			success: function(data, textState) {
19
			beforeSend: function() {
20
				$("#demandList").append('<img src="../images/loading.gif" class="loading" />');
21
			},
22
			success: function(data) {
22 23
				if(data.success) {
23
					//console.log(data);
24 24
					$("#demandList").html(" ");
25 25
					var $info = data.data.data;
26
					demandHtml($info);
27
					if(isbind == true) {
28
						$(".tcdPageCode").createPage({
29
							pageCount: Math.ceil(data.data.total / pageSize),
30
							current: data.data.data.pageNo,
31
							backFn: function(p) {
32
								demandList(false, 5, p, oDemandAim, oSortType);
33
							}
34
						});
26
					if($info.length > 0){
27
						for(var i = 0; i < $info.length; i++) {
28
							var liStr=$("<li></li>").appendTo("#demandList");
29
							demandHtml($info[i],liStr);
30
							cmpFun($info[i].orgId,liStr);
31
						}
32
						if(isbind == true) {
33
							$(".tcdPageCode").createPage({
34
								pageCount: Math.ceil(data.data.total / pageSize),
35
								current: data.data.data.pageNo,
36
								backFn: function(p) {
37
									demandList(false, 5, p);
38
								}
39
							});
40
						}
41
					}else{
42
						$("#demandList").parent().find(".nodatabox").removeClass("displayNone")
35 43
					}
36 44
				}
37

45
				$(".loading").remove();
38 46
			},
39
			error: function(XMLHttpRequest, textStats, errorThrown) {
40

47
			error: function() {
48
				$.MsgBox.Alert('提示', '链接服务器超时')
41 49
			}
42 50
		})
43 51
	}
44

45
	function demandHtml($data) {
46
		for(var i = 0; i < $data.length; i++) {
47
			var $obje = $data[i].professor;
48
			var personStr = personalInformation($obje);
49
			var demandAim = "技术咨询",
50
				demandType = "企业需求";
51
			var oImg = "",
52
				oTime = "";
53
			if($data[i].demandAim == 2) {
54
				demandAim = "寻找资源"
55
			} else if($data[i].demandAim == 3) {
56
				demandAim = "其他需求"
57
			}
58
			if($data[i].demandType == 1) {
59
				demandType = "个人需求"
60
			}
61
			if($obje.hasHeadImage) {
62
				oImg = "/images/head/" + $obje.id + "_l.jpg";
63
			} else {
64
				oImg = "images/default-photo.jpg"
65
			}
66
			//认证
67
			var oSty=autho($obje.authType,$obje.orgAuth,$obje.authStatus);
68
			typeTname = oSty.sty;
69
			
70
			oTime = $data[i]["createTime"].substr(0, 4) + "年" + $data[i].createTime.substr(4, 2) + "月" + $data[i].createTime.substr(6, 2) + "日" +
71
				$data[i].createTime.substr(8, 2) + ":" + $data[i].createTime.substr(10, 2);
72
			var dataString = "<div class='workselectitem'><table width='100%'>"
73
			dataString += "<tbody><tr><td width='14%' class='messagebox'>"
74
			dataString += "<a class='workhead workitimg userRadius'>"
75
			dataString += "<img class='headPhoto' src='" + oImg + "'  width='100%' height='100%'></a></td>"
76
			dataString += "<td style='position:relative;top:20px;' width='86%'>"
77
			dataString += "<div class='workinfor worksitcon'><h4><a class='named'>" + $obje.name + "</a>"
78
			dataString += "<a class='authiconNew " + typeTname + "' title='"+oSty.title+"' style='top:9px;'></a><input type='text' class='assessStar' style='display: none;'></h4><h6 class='h3Font'>"
79
			dataString += "<span>" + personStr + "</span>"
80
			dataString += "<h6 style='position:relative;'>"
81
			dataString += "<div class='titList'>需求主题:<em class='h4Font'>" + $data[i].demandTitle + "</em></div>"
82
			dataString += "<span class='lasttime rightTime'>" + oTime + "</span>"
83
			dataString += "<div style='height:70px;'><p class='ellipsisSty-2 rebackcon' >" + $data[i].demandContent + "</p></div></div>"
84
			dataString += "<div class='workhandle'><div class='rightopert floatR'>"
85
			dataString += "<span class='replybtn' demanid='" + $data[i].demandId + "'>查看</span></div>"
86
			dataString += "<div class='leftstate floatR'>"
87
			dataString += "<span class='coultstate status-4'><i>" + demandAim + "</i></span></div>"
88
			dataString += "<div class='leftstate floatR'>"
89
			dataString += "<span class='coultstate coulstAim status-4'><i>" + demandType + "</i></span>"
90
			dataString += "</div></div></td></tr></tbody></table></div>"
91
			$("#demandList").append(dataString);
52
	function demandHtml($data,liStr) {
53
		var sowU="";
54
		if($data.pageViews!=0){
55
			sowU='<li><span>浏览量 '+$data.pageViews +'</span></li>'
92 56
		}
57
		var strCon='';
58
			strCon+='<a class="" target="_blank" href="" class="madiaInfo">'
59
			strCon+='<p class="h1Font ellipsisSty">'+ $data.title +'</p>'
60
			strCon+='<ul class="showliTop h3Font clearfix">'
61
			strCon+='<li><span class="cmpName"></span></li><li><span>发布于 '+commenTime($data.createTime)+'</span></li>'
62
			strCon+= sowU
63
			strCon+='</ul>'
64
			strCon+='<p class="h2Font ellipsisSty-2">'+$data.descp+'</p>'
65
			strCon+='<ul class="showli clearfix h3Font">'
66
			
67
			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>' }
70
			if($data.invalidDay){ strCon+='<li>有效期至:'+TimeTr($data.invalidDay)+'</li>' }
71
			
72
			strCon+='</ul>'
73
			strCon+='</a>'
74
		$(strCon).appendTo(liStr);	
93 75
	}
94
	/*职位职称所在机构,部门,地址等等*/
95
	function personalInformation($person) {
96
		var arr1 = [$person.title, $person.office, $person.department, $person.orgName, $person.address];
97
		var arr = new Array();
98
		var arr2 = new Array();
99
		var n = 0;
100
		for(var i = 0; i < arr1.length; i++) {
101
			if(arr1[i]) {
102
				arr.push(arr1[i]);
103
				if(arr1[i] == arr1[arr1.length - 1]) {
104
					n = 1;
76
	/*企业用户信息*/
77
	function cmpFun(id,$listItem) {
78
		$.ajax({
79
			"url": "/ajax/org/" + id,
80
			"type": "get",
81
			"async": true,
82
			"success": function(data) {
83
				if(data.success && data.data) {
84
					if(data.data.forShort) {
85
						$listItem.find(".cmpName").text(data.data.forShort);
86
					}else{
87
						$listItem.find(".cmpName").text(data.data.name);
88
					}
105 89
				}
90
			},
91
			"error": function() {
92
				$.MsgBox.Alert('提示', '链接服务器超时')
106 93
			}
107
		}
108
		if(n == 1) {
109
			for(var i = 0; i < arr.length-1; i++) {
110
				arr2.push(arr[i]);
111
			}
112
			return arr2.join()+ " | " + arr[arr.length - 1]; 
113
		} else {
114
			return arr.join();
115
		}
116

94
		});
117 95
	}
118
	demandList(true, 5, 1, oDemandAim, oSortType);
96
//	function demandHtml($data) {
97
//		for(var i = 0; i < $data.length; i++) {
98
//			var $obje = $data[i].professor;
99
//			var personStr = personalInformation($obje);
100
//			var demandAim = "技术咨询",
101
//				demandType = "企业需求";
102
//			var oImg = "",
103
//				oTime = "";
104
//			if($data[i].demandAim == 2) {
105
//				demandAim = "寻找资源"
106
//			} else if($data[i].demandAim == 3) {
107
//				demandAim = "其他需求"
108
//			}
109
//			if($data[i].demandType == 1) {
110
//				demandType = "个人需求"
111
//			}
112
//			if($obje.hasHeadImage) {
113
//				oImg = "/images/head/" + $obje.id + "_l.jpg";
114
//			} else {
115
//				oImg = "images/default-photo.jpg"
116
//			}
117
//			//认证
118
//			var oSty=autho($obje.authType,$obje.orgAuth,$obje.authStatus);
119
//			typeTname = oSty.sty;
120
//			
121
//			oTime = $data[i]["createTime"].substr(0, 4) + "年" + $data[i].createTime.substr(4, 2) + "月" + $data[i].createTime.substr(6, 2) + "日" +
122
//				$data[i].createTime.substr(8, 2) + ":" + $data[i].createTime.substr(10, 2);
123
//			var dataString = "<div class='workselectitem'><table width='100%'>"
124
//			dataString += "<tbody><tr><td width='14%' class='messagebox'>"
125
//			dataString += "<a class='workhead workitimg userRadius'>"
126
//			dataString += "<img class='headPhoto' src='" + oImg + "'  width='100%' height='100%'></a></td>"
127
//			dataString += "<td style='position:relative;top:20px;' width='86%'>"
128
//			dataString += "<div class='workinfor worksitcon'><h4><a class='named'>" + $obje.name + "</a>"
129
//			dataString += "<a class='authiconNew " + typeTname + "' title='"+oSty.title+"' style='top:9px;'></a><input type='text' class='assessStar' style='display: none;'></h4><h6 class='h3Font'>"
130
//			dataString += "<span>" + personStr + "</span>"
131
//			dataString += "<h6 style='position:relative;'>"
132
//			dataString += "<div class='titList'>需求主题:<em class='h4Font'>" + $data[i].demandTitle + "</em></div>"
133
//			dataString += "<span class='lasttime rightTime'>" + oTime + "</span>"
134
//			dataString += "<div style='height:70px;'><p class='ellipsisSty-2 rebackcon' >" + $data[i].demandContent + "</p></div></div>"
135
//			dataString += "<div class='workhandle'><div class='rightopert floatR'>"
136
//			dataString += "<span class='replybtn' demanid='" + $data[i].demandId + "'>查看</span></div>"
137
//			dataString += "<div class='leftstate floatR'>"
138
//			dataString += "<span class='coultstate status-4'><i>" + demandAim + "</i></span></div>"
139
//			dataString += "<div class='leftstate floatR'>"
140
//			dataString += "<span class='coultstate coulstAim status-4'><i>" + demandType + "</i></span>"
141
//			dataString += "</div></div></td></tr></tbody></table></div>"
142
//			$("#demandList").append(dataString);
143
//		}
144
//	}
145
	/*职位职称所在机构,部门,地址等等*/
146
//	function personalInformation($person) {
147
//		var arr1 = [$person.title, $person.office, $person.department, $person.orgName, $person.address];
148
//		var arr = new Array();
149
//		var arr2 = new Array();
150
//		var n = 0;
151
//		for(var i = 0; i < arr1.length; i++) {
152
//			if(arr1[i]) {
153
//				arr.push(arr1[i]);
154
//				if(arr1[i] == arr1[arr1.length - 1]) {
155
//					n = 1;
156
//				}
157
//			}
158
//		}
159
//		if(n == 1) {
160
//			for(var i = 0; i < arr.length-1; i++) {
161
//				arr2.push(arr[i]);
162
//			}
163
//			return arr2.join()+ " | " + arr[arr.length - 1]; 
164
//		} else {
165
//			return arr.join();
166
//		}
167
//
168
//	}
119 169

120 170
	/*检索排序*/
121
	function selcet(i) {
122
		$(".selcet" + i).on('click', function(e) {
123
			var option = $(this).find(".option" + i);
124
			option.css("display", "block")
125
			var o_this = $(this);
126
			o_this.find("li").click(function() {
127
				o_this.find("li").removeClass("workcurrent");
128
				$(this).addClass("workcurrent");
129
				o_this.find("span").text($(this).text());
130
				option.css("display", "none");
131
				if($(this).text() == "技术咨询") {
132
					oDemandAim = 1;
133
					$(".tcdPageCode").remove();
134
					$("#shoudao").append('<div class="tcdPageCode"></div>');
135
					demandList(true, 5, 1, oDemandAim, oSortType);
136
				} else if($(this).text() == "资源合作") {
137
					oDemandAim = 2;
138
					$(".tcdPageCode").remove();
139
					$("#shoudao").append('<div class="tcdPageCode"></div>');
140
					demandList(true, 5, 1, oDemandAim, oSortType);
141
				} else if($(this).text() == "其他需求") {
142
					oDemandAim = 3;
143
					$(".tcdPageCode").remove();
144
					$("#shoudao").append('<div class="tcdPageCode"></div>');
145
					demandList(true, 5, 1, oDemandAim, oSortType);
146
				} else if($(this).text() == "不限") {
147
					oDemandAim = "";
148
					$(".tcdPageCode").remove();
149
					$("#shoudao").append('<div class="tcdPageCode"></div>');
150
					demandList(true, 5, 1, oDemandAim, oSortType);
151
				} else if($(this).text() == "按最早发布时间排序") {
152
					oSortType = 1;
153
					$(".tcdPageCode").remove();
154
					$("#shoudao").append('<div class="tcdPageCode"></div>');
155
					demandList(true, 5, 1, oDemandAim, oSortType);
156
				} else if($(this).text() == "按最新发布时间排序") {
157
					oSortType = 0;
158
					$(".tcdPageCode").remove();
159
					$("#shoudao").append('<div class="tcdPageCode"></div>');
160
					demandList(true, 5, 1, oDemandAim, oSortType);
161
				}
162
				return false;
163
			});
164
			$("body").click(function(e) {
165
				if($(".option4")[0].style.display == "block" || $(".option3")[0].style.display == "block") {
166
					$(".option4")[0].style.display = "none";
167
					$(".option3")[0].style.display = "none";
168
				}
169
			});
170
			return false;
171
		})
172
	}
173
	selcet(3);
174
	selcet(4);
175
	/*进入needSure.html*/
176
	$("#demandList").on("click", ".replybtn", function() {
177
		var demand = $(this).attr("demanid");
178
		location.href = "needSure.html?demandId=" + demand;
179
	})
171
//	function selcet(i) {
172
//		$(".selcet" + i).on('click', function(e) {
173
//			var option = $(this).find(".option" + i);
174
//			option.css("display", "block")
175
//			var o_this = $(this);
176
//			o_this.find("li").click(function() {
177
//				o_this.find("li").removeClass("workcurrent");
178
//				$(this).addClass("workcurrent");
179
//				o_this.find("span").text($(this).text());
180
//				option.css("display", "none");
181
//				if($(this).text() == "技术咨询") {
182
//					oDemandAim = 1;
183
//					$(".tcdPageCode").remove();
184
//					$("#shoudao").append('<div class="tcdPageCode"></div>');
185
//					demandList(true, 5, 1, oDemandAim, oSortType);
186
//				} else if($(this).text() == "资源合作") {
187
//					oDemandAim = 2;
188
//					$(".tcdPageCode").remove();
189
//					$("#shoudao").append('<div class="tcdPageCode"></div>');
190
//					demandList(true, 5, 1, oDemandAim, oSortType);
191
//				} else if($(this).text() == "其他需求") {
192
//					oDemandAim = 3;
193
//					$(".tcdPageCode").remove();
194
//					$("#shoudao").append('<div class="tcdPageCode"></div>');
195
//					demandList(true, 5, 1, oDemandAim, oSortType);
196
//				} else if($(this).text() == "不限") {
197
//					oDemandAim = "";
198
//					$(".tcdPageCode").remove();
199
//					$("#shoudao").append('<div class="tcdPageCode"></div>');
200
//					demandList(true, 5, 1, oDemandAim, oSortType);
201
//				} else if($(this).text() == "按最早发布时间排序") {
202
//					oSortType = 1;
203
//					$(".tcdPageCode").remove();
204
//					$("#shoudao").append('<div class="tcdPageCode"></div>');
205
//					demandList(true, 5, 1, oDemandAim, oSortType);
206
//				} else if($(this).text() == "按最新发布时间排序") {
207
//					oSortType = 0;
208
//					$(".tcdPageCode").remove();
209
//					$("#shoudao").append('<div class="tcdPageCode"></div>');
210
//					demandList(true, 5, 1, oDemandAim, oSortType);
211
//				}
212
//				return false;
213
//			});
214
//			$("body").click(function(e) {
215
//				if($(".option4")[0].style.display == "block" || $(".option3")[0].style.display == "block") {
216
//					$(".option4")[0].style.display = "none";
217
//					$(".option3")[0].style.display = "none";
218
//				}
219
//			});
220
//			return false;
221
//		})
222
//	}
223
//	selcet(3);
224
//	selcet(4);
225
//	/*进入needSure.html*/
226
//	$("#demandList").on("click", ".replybtn", function() {
227
//		var demand = $(this).attr("demanid");
228
//		location.href = "needSure.html?demandId=" + demand;
229
//	})
180 230
})

+ 1 - 1
js/paperImport.js

@ -1,6 +1,6 @@
1 1
$(document).ready(function(){
2 2
	$(".onlogin .headnavbtn li").eq(0).addClass("navcurrent");
3
	$(".workmenu>ul>li").eq(4).addClass("nowLi");
3
	$(".workmenu>ul>li:contains('论文')").addClass("nowLi");
4 4
	loginStatus(); //判断个人是否登录
5 5
	valUser();
6 6
	var userid = $.cookie("userid");

+ 2 - 2
js/paperList.js

@ -1,6 +1,6 @@
1 1
$(document).ready(function(){
2 2
	$(".onlogin .headnavbtn li").eq(0).addClass("navcurrent");
3
	$(".workmenu>ul>li").eq(4).addClass("nowLi");
3
	$(".workmenu>ul>li:contains('论文')").addClass("nowLi");
4 4
	loginStatus(); //判断个人是否登录
5 5
	valUser();
6 6
	var userid = $.cookie("userid");
@ -127,7 +127,7 @@ function lewordNum(pId) {
127 127
					'<div class="madiaHead paperHead"></div>'	+						
128 128
						'<div class="madiaInfo">'+					
129 129
							'<p class="h1Font ellipsisSty">'+$data[i].name+'</p>'+						
130
							'<ul class="h2Font clearfix">'+
130
							'<ul class="showliTop h2Font clearfix">'+
131 131
								'<li><span>'+oTime+'</span></li>'+pageview+thub+lew+
132 132
							'</ul>'+
133 133
						'</div>'+

+ 1 - 1
js/patentImport.js

@ -1,6 +1,6 @@
1 1
$(document).ready(function() {
2 2
	$(".onlogin .headnavbtn li").eq(0).addClass("navcurrent");
3
	$(".workmenu>ul>li").eq(3).addClass("nowLi");
3
	$(".workmenu>ul>li:contains('专利')").addClass("nowLi");
4 4
	loginStatus(); //判断个人是否登录
5 5
	valUser();
6 6
	var userid = $.cookie("userid");

+ 2 - 2
js/patentList.js

@ -1,6 +1,6 @@
1 1
$(document).ready(function(){
2 2
	$(".onlogin .headnavbtn li").eq(0).addClass("navcurrent");
3
	$(".workmenu>ul>li").eq(3).addClass("nowLi");
3
	$(".workmenu>ul>li:contains('专利')").addClass("nowLi");
4 4
	loginStatus(); //判断个人是否登录
5 5
	valUser();
6 6
	var userid = $.cookie("userid");
@ -126,7 +126,7 @@ function lewordNum(pId) {
126 126
					'<div class="madiaHead patentHead"></div>'	+						
127 127
						'<div class="madiaInfo">'+					
128 128
							'<p class="h1Font ellipsisSty">'+$data[i].name+'</p>'+						
129
							'<ul class="h2Font clearfix">'+
129
							'<ul class="showliTop h2Font clearfix">'+
130 130
								'<li><span>'+oTime+'</span></li>'+pageview+thub+lew+
131 131
							'</ul>'+
132 132
						'</div>'+

+ 1 - 1
js/resourceImport.js

@ -1,6 +1,6 @@
1 1
$(document).ready(function(){
2 2
	$(".onlogin .headnavbtn li").eq(0).addClass("navcurrent");
3
	$(".workmenu>ul>li").eq(2).addClass("nowLi");
3
	$(".workmenu>ul>li:contains('资源')").addClass("nowLi");
4 4
	loginStatus(); //判断个人是否登录
5 5
	valUser();
6 6
	var userid = $.cookie("userid");

+ 2 - 2
js/resourceList.js

@ -1,6 +1,6 @@
1 1
$(document).ready(function(){
2 2
	$(".onlogin .headnavbtn li").eq(0).addClass("navcurrent");
3
	$(".workmenu>ul>li").eq(2).addClass("nowLi");
3
	$(".workmenu>ul>li:contains('资源')").addClass("nowLi");
4 4
	loginStatus(); //判断个人是否登录
5 5
	valUser();
6 6
	var userid = $.cookie("userid");
@ -82,7 +82,7 @@ $(document).ready(function(){
82 82
					'<div class="madiaHead resouseHead" style="background-image: url('+imgSrc+');"></div>'	+						
83 83
						'<div class="madiaInfo">'+					
84 84
							'<p class="h1Font ellipsisSty">'+$data[i].resourceName+'</p>'+						
85
							'<ul class="h2Font clearfix">'+
85
							'<ul class="showliTop h2Font clearfix">'+
86 86
								'<li><span>'+oTime+'</span></li>'+pageview+
87 87
							'</ul>'+draftLable+	
88 88
						'</div>'+

+ 6 - 6
js/searchNew.js

@ -326,7 +326,7 @@ $(function() {
326 326
				"pageNo": pageNo
327 327
			},
328 328
			"beforeSend": function() {
329
				$("#expertList").append('<img src="../images/loading.gif" class="loading"  style="position: absolute;left: 50%; top: 50%;" />');
329
				$("#expertList").append('<img src="../images/loading.gif" class="loading" />');
330 330
			},
331 331
			"success": function(data) {
332 332
				console.log(data);
@ -431,7 +431,7 @@ $(function() {
431 431
				"pageNo": pageNo
432 432
			},
433 433
			"beforeSend": function() {
434
				$("#companyList").append('<img src="../images/loading.gif" class="loading"  style="position: absolute;left: 50%; top: 50%;" />');
434
				$("#companyList").append('<img src="../images/loading.gif" class="loading" />');
435 435
			},
436 436
			"success": function(data) {
437 437
				console.log(data);
@ -516,7 +516,7 @@ $(function() {
516 516
				"pageNo": pageNo
517 517
			},
518 518
			"beforeSend": function() {
519
				$("#articalList").append('<img src="../images/loading.gif" class="loading"  style="position: absolute;left: 50%; top: 50%;" />');
519
				$("#articalList").append('<img src="../images/loading.gif" class="loading" />');
520 520
			},
521 521
			"success": function(data) {
522 522
				console.log(data);
@ -629,7 +629,7 @@ $(function() {
629 629
				"pageNo": pageNo
630 630
			},
631 631
			"beforeSend": function() {
632
				$("#resourceList").append('<img src="../images/loading.gif" class="loading"  style="position: absolute;left: 50%; top: 50%;" />');
632
				$("#resourceList").append('<img src="../images/loading.gif" class="loading" />');
633 633
			},
634 634
			"success": function(data) {
635 635
				console.log(data);
@ -714,7 +714,7 @@ $(function() {
714 714
				"pageNo": pageNo
715 715
			},
716 716
			"beforeSend": function() {
717
				$("#patentList").append('<img src="../images/loading.gif" class="loading"  style="position: absolute;left: 50%; top: 50%;" />');
717
				$("#patentList").append('<img src="../images/loading.gif" class="loading" />');
718 718
			},
719 719
			"success": function(data) {
720 720
				console.log(data);
@ -774,7 +774,7 @@ $(function() {
774 774
				"pageNo": pageNo
775 775
			},
776 776
			"beforeSend": function() {
777
				$("#paperList").append('<img src="../images/loading.gif" class="loading"  style="position: absolute;left: 50%; top: 50%;" />');
777
				$("#paperList").append('<img src="../images/loading.gif" class="loading" />');
778 778
			},
779 779
			"success": function(data) {
780 780
				console.log(data);

+ 71 - 0
js/userInforShow.js

@ -15,6 +15,7 @@ $(function() {
15 15
		getArticle(10,1,true);//获取个人发布的文章
16 16
		getPaper(10,1,true);//获取个人发布的论文
17 17
		getPatent(10,1,true);//获取个人发布的专利
18
		getDemands(5,1,true);//获取个人发布的需求
18 19
		relevantExperts();//合作专家
19 20
		relevantarticalList();//相关文章
20 21
		likeExperts();//感兴趣专家
@ -1161,6 +1162,76 @@ $(function() {
1161 1162
		});
1162 1163
	}
1163 1164
	
1165
	//获取需求
1166
	function getDemands(pageSize, pageNo,isbind) {
1167
		$.ajax({
1168
			url: "/ajax/demand/pq",
1169
			type: "GET",
1170
			timeout: 10000,
1171
			dataType: "json",
1172
			data: {
1173
				"pageNo": pageNo,
1174
				"pageSize":pageSize,
1175
			},
1176
			beforeSend: function() {
1177
				$("#showDemand").append('<img src="../images/loading.gif" class="loading" />');
1178
			},
1179
			success: function(data) {
1180
				if(data.success) {
1181
					$("#showDemand").html(" ");
1182
					var $info = data.data.data;
1183
					if($info.length > 0){
1184
						$("#showDemand").parents(".needinfobox").removeClass("displayNone");
1185
						$("#item1user>.nodatabox").addClass("displayNone");
1186
						for(var i = 0; i < $info.length; i++) {
1187
							var liStr=$("<li></li>").appendTo("#showDemand");
1188
							demandHtml($info[i],liStr);
1189
						}
1190
//						if(isbind == true) {
1191
//							$("#showDemand").siblings(".tcdPageCode").off("click").createPage({
1192
//								pageCount: Math.ceil(data.data.total / pageSize),
1193
//								current: data.data.data.pageNo,
1194
//								backFn: function(p) {
1195
//									demandList(false, 5, p);
1196
//								}
1197
//							});
1198
//						}
1199
					}else{
1200
						$("#showDemand").parents(".needinfobox").addClass("displayNone");
1201
					}
1202
				}
1203
				$(".loading").remove();
1204
			},
1205
			error: function() {
1206
				$.MsgBox.Alert('提示', '链接服务器超时')
1207
			}
1208
		})
1209
	}
1210
	function demandHtml($data,liStr) {
1211
		var sowU="";
1212
		if($data.pageViews!=0){
1213
			sowU='<li><span>浏览量 '+$data.pageViews +'</span></li>'
1214
		}
1215
		var strCon='';
1216
			strCon+='<a class="" target="_blank" href="" class="madiaInfo">'
1217
			strCon+='<p class="h1Font ellipsisSty">'+ $data.title +'</p>'
1218
			strCon+='<ul class="showliTop h3Font clearfix">'
1219
			strCon+='<li><span class="cmpName"></span></li><li><span>发布于 '+commenTime($data.createTime)+'</span></li>'
1220
			strCon+= sowU
1221
			strCon+='</ul>'
1222
			strCon+='<p class="h2Font ellipsisSty-2">'+$data.descp+'</p>'
1223
			strCon+='<ul class="showli clearfix h3Font">'
1224
			
1225
			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.invalidDay){ strCon+='<li>有效期至:'+TimeTr($data.invalidDay)+'</li>' }
1229
			
1230
			strCon+='</ul>'
1231
			strCon+='</a>'
1232
		$(strCon).appendTo(liStr);	
1233
	}
1234
	
1164 1235
	//纠错反馈
1165 1236
	$(".correctSubmit").on("click",function(){
1166 1237
		var cntCon=$(this).siblings(".correctCon").val();

+ 1 - 1
js/workMenu.js

@ -2,11 +2,11 @@ var Html = '';
2 2
	Html += '<ul>'+
3 3
	        	'<li><a href="workspaces.html">工作台</a></li>'+
4 4
	        	'<li><a href="javascript:;" id="gozixu">咨询</a></li>'+
5
	        	'<li><a href="myDemand.html">需求</a></li>'+
5 6
	        	'<li><a href="resourceList.html">资源</a></li>'+
6 7
	        	'<li><a href="patentList.html">专利</a></li>'+
7 8
	        	'<li><a href="paperList.html">论文</a></li>'+
8 9
	        	'<li><a href="articalList.html">文章</a></li>'+
9
	        	'<li><a href="needList.html">需求</a></li>'+
10 10
	        '</ul>';
11 11
	
12 12
document.write(Html);

+ 122 - 57
myDemand.html

@ -9,8 +9,9 @@
9 9
<link type="text/css" href="css/bootstrap.min.css" rel="stylesheet">
10 10
<link type="text/css" href="css/reset.css" rel="stylesheet" />
11 11
<link type="text/css" href="css/common.css" rel="stylesheet">
12
<link type="text/css" href="css/workspace.css" rel="stylesheet">
13
<link type="text/css" href="css/popup.css" rel="stylesheet">
12
<!--<link type="text/css" href="css/workspace.css" rel="stylesheet">
13
<link type="text/css" href="css/popup.css" rel="stylesheet">-->
14
<link type="text/css" href="css/genindex.css" rel="stylesheet">
14 15
<script type="text/javascript" src="js/jquery-1.11.1.js"></script>
15 16
</head>
16 17
<body>
@ -98,66 +99,130 @@
98 99
99 100
<!--中间-->
100 101
<div id="container">
101
	<div class="con-center">
102
        <div class="workmenu">
103
        	<script src="js/workMenu.js"></script>
104
        </div>
105
        <div class="workcon">
106
			<div class="workconitem consublock">
107
    <div class="workcontit"><a  href="needList.html" class="worksamlltit worksamlltit3" id="searchDemand">搜索需求</a><a href="myDemand.html"class="worksamlltit worksamlltit3 worksamlltitnow">我的需求</a></div>
108
    <div class="worksubcon"> 
109
        <div class="workmysrc workmysrc3" id="getReply"style="display:block;"> <!--displayNone-->
110
             <div class="workmenubox clearfix">
111
             	<div class="workmenufrm floatL">
112
             		<span class="frmtype frmbtn" id="needIssueBtn" style="padding:6px 24px;">发布新需求</span>
113
             	</div>
114
                <form class="workmenufrm floatR">
115
                   <div class="workselectbox floatL replySelect selcet1"> 
116
                    	<input id="replySelectId" type="text" value="0" style ="display:none;"/>
117
                        <span id="showStatus2" class="workselectmenu" tip="0">全部</span>
118
                        <div class="replyOption option1" style="display:none;">
119
	                        <ul id="downbox" class="workdropdown" > 
120
	                            <li  class=" workcurrent" tip="0">全部</li> 
121
	                            <li  class="" tip="1">发布中</li> 
122
	                             <li  class="" tip="2">已关闭</li>  
123
	                       </ul>
124
                        </div>
125
                    </div>
126
                    
127
                   <div class="workselectbox floatL timeType selcet4">
128
                    	<input type="text" id="timeTypeId" value="" style="display:none;">
129
                        <span  id="showTimeSort" class="workselectmenu" tim="0">按最早发布时间排序</span>
130
                        <div class="timeOption option4" style="display:none;">
131
	                        <ul id="downbox1" class="workdropdown workdropdown2" > 
132
	                            <li tim="0" class="cur workcurrent">按最早发布时间排序</li> 
133
	                            <li tim="1" class="cur">按最新发布时间排序</li> 
134
	                       </ul>
135
                        </div>
136
                       
137
                    </div>
138
                    
139
                    <input id="timeSortId2" type="text" value="0" style ="display:none;">
140
                
141
                </form>
142
             </div>   
143
             
144
            <div class="workselectcon" id="wode">
145
                <div id="workContainer2">
146
                	<div id="myNeed">
147
                		
148
                	</div>
149
                </div>
150
                <div class="tcdPageCode getReplyPage"></div>
151
            </div>
152
        </div>
153
        
154
    </div>
155
</div>
102
	<div class="containerCon">
103
		<div class="contentCon clearfix conBlock">
104
	        <div class="workmenu">
105
	        	<script src="js/workMenu.js"></script>
106
	        </div>
107
  			<div class="workcon workconG">
108
		    	<div class="workcontit">
109
					<a class="worksamlltit worksamlltitnow">我的需求</a>
110
					<a class="worksamlltit" href="needList.html">需求搜索</a>
111
				</div>
112
				<div class="itemListBolck">
113
					<div class="topOperaBlock clearfix">
114
						<div class="issueSpanBlock col-w-4 floatR">
115
							<a href="postDemand.html" target="_blank" class="issueSpan">发布需求</a>
116
						</div>
117
					</div>
118
					<div class="form-item itemListCon">
119
						<div class="form-result aboutRes">
120
							<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>
158
							</ul>
159
							<!--无搜索结果-->
160
							<div class="nodatabox displayNone">
161
						        <div class="nodata">
162
						            <div class="picbox picNull"></div>
163
						            <div class="txtbox">
164
						            	<p class="noContip">您还未发布任何需求</p>
165
						            </div>
166
						        </div>
167
						    </div>
168
							<div class="tcdPageCode"></div>
169
						</div>
170
					</div>
171
				</div>
172
			</div>
156 173
157 174
        </div>
158 175
    </div>
159 176
</div>
160 177
178
        <!--<div class="workcon">
179
			<div class="workconitem consublock">
180
    <div class="workcontit"><a  href="needList.html" class="worksamlltit worksamlltit3" id="searchDemand">搜索需求</a><a href="myDemand.html"class="worksamlltit worksamlltit3 worksamlltitnow">我的需求</a></div>
181
    <div class="worksubcon"> 
182
        <div class="workmysrc workmysrc3" id="getReply"style="display:block;">
183
             <div class="workmenubox clearfix">
184
             	<div class="workmenufrm floatL">
185
             		<span class="frmtype frmbtn" id="needIssueBtn" style="padding:6px 24px;">发布新需求</span>
186
             	</div>
187
                <form class="workmenufrm floatR">
188
                   <div class="workselectbox floatL replySelect selcet1"> 
189
                    	<input id="replySelectId" type="text" value="0" style ="display:none;"/>
190
                        <span id="showStatus2" class="workselectmenu" tip="0">全部</span>
191
                        <div class="replyOption option1" style="display:none;">
192
	                        <ul id="downbox" class="workdropdown" > 
193
	                            <li  class=" workcurrent" tip="0">全部</li> 
194
	                            <li  class="" tip="1">发布中</li> 
195
	                             <li  class="" tip="2">已关闭</li>  
196
	                       </ul>
197
                        </div>
198
                    </div>
199
                    
200
                   <div class="workselectbox floatL timeType selcet4">
201
                    	<input type="text" id="timeTypeId" value="" style="display:none;">
202
                        <span  id="showTimeSort" class="workselectmenu" tim="0">按最早发布时间排序</span>
203
                        <div class="timeOption option4" style="display:none;">
204
	                        <ul id="downbox1" class="workdropdown workdropdown2" > 
205
	                            <li tim="0" class="cur workcurrent">按最早发布时间排序</li> 
206
	                            <li tim="1" class="cur">按最新发布时间排序</li> 
207
	                       </ul>
208
                        </div>
209
                       
210
                    </div>
211
                    
212
                    <input id="timeSortId2" type="text" value="0" style ="display:none;">
213
                
214
                </form>
215
             </div>   
216
             
217
            <div class="workselectcon" id="wode">
218
                <div id="workContainer2">
219
                	<div id="myNeed">
220
                		
221
                	</div>
222
                </div>
223
                <div class="tcdPageCode getReplyPage"></div>
224
            </div>
225
        </div>-->
161 226
<!--底部-->
162 227
<footer>
163 228
	<script type="text/javascript" src="js/footer.js"></script>

+ 130 - 58
needList.html

@ -9,8 +9,9 @@
9 9
<link type="text/css" href="css/bootstrap.min.css" rel="stylesheet">
10 10
<link type="text/css" href="css/reset.css" rel="stylesheet" />
11 11
<link type="text/css" href="css/common.css" rel="stylesheet">
12
<link type="text/css" href="css/workspace.css" rel="stylesheet">
13
<link type="text/css" href="css/popup.css" rel="stylesheet">
12
<!--<link type="text/css" href="css/workspace.css" rel="stylesheet">-->
13
<!--<link type="text/css" href="css/popup.css" rel="stylesheet">-->
14
<link type="text/css" href="css/genindex.css" rel="stylesheet">
14 15
<script type="text/javascript" src="js/jquery-1.11.1.js"></script>
15 16
</head>
16 17
<body>
@ -21,62 +22,133 @@
21 22
22 23
<!--中间-->
23 24
<div id="container">
24
	<div class="con-center">
25
        <div class="workmenu">
26
        	<script src="js/workMenu.js"></script>
27
        </div>
28
        <div class="workcon">
29
			<div class="workconitem consublock">
30
    <div class="workcontit"><a  href="needList.html" class="worksamlltit worksamlltit3 worksamlltitnow">搜索需求</a><a href="myDemand.html" class="worksamlltit worksamlltit3">我的需求</a></div>
31
    <div class="worksubcon"> 
32
    	<div class="workmysrc workmysrc3 displayNone" id="getConsult">	
33
             <div class="workmenubox clearfix">
34
                <form class="workmenufrm floatR">
35
                    <div class="workselectbox floatL consultSelect selcet3">
36
                       <input type="text" id="consultSelectId" value="0" style="display:none;">
37
                       <span  id="showStatus" class="workselectmenu" tip="0">不限</span>
38
                       <div class="consultOption option3" style="display:none;">
39
	                       <ul id="downbox" class="workdropdown" > 
40
	                            <li class="workcurrent" tip="0">不限</li> 
41
	                            <li class="" tip="1">技术咨询</li> 
42
	                            <li class="" tip="2">资源合作</li>  
43
	                            <li class="" tip="3">其他需求</li> 
44
	                       </ul>
45
                       </div>
46
                    </div>
47
                    <div class="workselectbox floatL timeType selcet4">
48
                    	<input type="text" id="timeTypeId" value="" style="display:none;">
49
                        <span  id="showTimeSort" class="workselectmenu" tim="0">按最早发布时间排序</span>
50
                        <div class="timeOption option4" style="display:none;">
51
	                        <ul id="downbox1" class="workdropdown workdropdown2" > 
52
	                            <li tim="0" class="cur workcurrent">按最早发布时间排序</li> 
53
	                            <li tim="1" class="cur">按最发布时间排序</li> 
54
	                       </ul>
55
                        </div>
56
                       
57
                    </div>
58
                    <input id="timeSortId" type="text" value="0" style="display:none;">
59
                    <div class="workselectbox floatL">
60
                        <div class="orderedbtn" id="consultArrow"><div></div></div>
61
                    </div>
62
                
63
                </form>
64
             </div>   
65
             
66
            <div class="workselectcon" id="shoudao">
67
                <div id="workContainer">
68
                	<div id="workContainer2">
69
                		<div id="demandList">
70
                			
71
                		</div>
72
                	</div>
73
                
74
                </div>
75
                <div class="tcdPageCode getConsultPage"></div>
76
            </div>
77
        </div>
78
    </div>
79
</div>
25
	<div class="containerCon">
26
		<div class="contentCon clearfix conBlock">
27
	        <div class="workmenu">
28
	        	<script src="js/workMenu.js"></script>
29
	        </div>
30
        <!--<div class="workcon">
31
			<div class="workconitem consublock">
32
    <div class="workcontit"><a  href="needList.html" class="worksamlltit worksamlltit3 worksamlltitnow">搜索需求</a><a href="myDemand.html" class="worksamlltit worksamlltit3">我的需求</a></div>
33
    <div class="worksubcon"> 
34
    	<div class="workmysrc workmysrc3 displayNone" id="getConsult">	
35
             <div class="workmenubox clearfix">
36
                <form class="workmenufrm floatR">
37
                    <div class="workselectbox floatL consultSelect selcet3">
38
                       <input type="text" id="consultSelectId" value="0" style="display:none;">
39
                       <span  id="showStatus" class="workselectmenu" tip="0">不限</span>
40
                       <div class="consultOption option3" style="display:none;">
41
	                       <ul id="downbox" class="workdropdown" > 
42
	                            <li class="workcurrent" tip="0">不限</li> 
43
	                            <li class="" tip="1">技术咨询</li> 
44
	                            <li class="" tip="2">资源合作</li>  
45
	                            <li class="" tip="3">其他需求</li> 
46
	                       </ul>
47
                       </div>
48
                    </div>
49
                    <div class="workselectbox floatL timeType selcet4">
50
                    	<input type="text" id="timeTypeId" value="" style="display:none;">
51
                        <span  id="showTimeSort" class="workselectmenu" tim="0">按最早发布时间排序</span>
52
                        <div class="timeOption option4" style="display:none;">
53
	                        <ul id="downbox1" class="workdropdown workdropdown2" > 
54
	                            <li tim="0" class="cur workcurrent">按最发布时间排序</li> 
55
	                            <li tim="1" class="cur">按最新发布时间排序</li> 
56
	                       </ul>
57
                        </div>
58
                       
59
                    </div>
60
                    <input id="timeSortId" type="text" value="0" style="display:none;">
61
                    <div class="workselectbox floatL">
62
                        <div class="orderedbtn" id="consultArrow"><div></div></div>
63
                    </div>
64
                
65
                </form>
66
             </div>   
67
             
68
            <div class="workselectcon" id="shoudao">
69
                <div id="workContainer">
70
                	<div id="workContainer2">
71
                		<div id="demandList">
72
                			
73
                		</div>
74
                	</div>
75
                
76
                </div>
77
                <div class="tcdPageCode getConsultPage"></div>
78
            </div>
79
        </div>
80
    </div>
81
</div>-->
82
83
 			<div class="workcon workconG">
84
		    	<div class="workcontit">
85
					<a class="worksamlltit" href="myDemand.html">我的需求</a>
86
					<a class="worksamlltit worksamlltitnow">需求搜索</a>
87
				</div>
88
				<div class="itemListBolck needinfobox">
89
					<div class="topOperaBlock clearfix">
90
						<div class="searchAbout col-w-8">
91
							<input class="frmcontype" type="search" placeholder="请输入关键词">
92
							<span class="searchSpan"></span>
93
						</div>
94
					</div>
95
					<div class="form-item itemListCon needList">
96
						<div class="form-result aboutRes">
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>
136
							</ul>
137
						
138
							<!--无搜索结果-->
139
							<div class="nodatabox displayNone">
140
						        <div class="nodata">
141
						            <div class="picbox picNull"></div>
142
						            <div class="txtbox">
143
						            	<p class="noContip">尚未任何需求</p>
144
						            </div>
145
						        </div>
146
						    </div>
147
							<div class="tcdPageCode"></div>
148
						</div>
149
					</div>
150
				</div>
151
			</div>
80 152
81 153
        </div>
82 154
    </div>

+ 0 - 1
resourceList.html

@ -8,7 +8,6 @@
8 8
<link rel="shortcut icon" type="image/x-icon" href="images/favicon.png" media="screen" />
9 9
<link href="css/bootstrap.min.css" rel="stylesheet">
10 10
<link type="text/css" href="css/common.css" rel="stylesheet">
11
<!--<link type="text/css" href="css/workspace.css" rel="stylesheet">-->
12 11
<link type="text/css" href="css/genindex.css" rel="stylesheet">
13 12

14 13
<script type="text/javascript" src="js/jquery-1.11.1.js"></script>

+ 51 - 11
userInforShow.html

@ -10,7 +10,6 @@
10 10
<link href="css/bootstrap.min.css" rel="stylesheet">
11 11
<link type="text/css" href="css/common.css" rel="stylesheet">
12 12
<link type="text/css" href="css/popup.css" rel="stylesheet">
13
<!--<link type="text/css" href="css/workspace.css" rel="stylesheet">-->
14 13
<link type="text/css" href="css/genindex.css" rel="stylesheet">
15 14
<script type="text/javascript" src="js/jquery-1.11.1.js"></script>
16 15
</head>
@ -74,17 +73,49 @@
74 73
					<li>资料</li>
75 74
				</ul>
76 75
			</div>
77
			<div class="leftconBox floatL" style="padding-bottom: 40px;">
76
			<div class="leftconBox floatL">
78 77
				<div id="item1user" class="leftconItem">
79
					<!--无搜索结果-->
80
					<div class="nodatabox">
81
				        <div class="nodata">
82
				            <div class="picbox picNull"></div>
83
				            <div class="txtbox">
84
				            	<p class="noContip">用户尚未发布任何内容</p>
85
				            </div>
86
				        </div>
87
				    </div>
78
				    <div class="coninfobox needinfobox displayNone">
79
						<div class="coninfocon form-item needList">
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>
116
							</ul>
117
						</div>
118
					</div>
88 119
					<div class="coninfobox displayNone">
89 120
						<div class="coninfotit">个人简介</div>
90 121
						<div class="coninfocon" id="descpS">
@ -173,6 +204,15 @@
173 204
							</ul>
174 205
						</div>
175 206
					</div>
207
					<!--无搜索结果-->
208
					<div class="nodatabox">
209
				        <div class="nodata">
210
				            <div class="picbox picNull"></div>
211
				            <div class="txtbox">
212
				            	<p class="noContip">用户尚未发布任何内容</p>
213
				            </div>
214
				        </div>
215
				    </div>
176 216
				</div>
177 217
				<div id="item2user" class="leftconItem">
178 218
					<div class="coninfobox form-item otherShow">