jack 8 years ago
parent
commit
a89664e4b1
8 changed files with 687 additions and 38 deletions
  1. 143 0
      js/myDemand.js
  2. 18 15
      js/needList.js
  3. 85 0
      js/needShow.js
  4. 131 0
      js/needSure.js
  5. 133 0
      myDemand.html
  6. 1 1
      needList.html
  7. 85 9
      needShow.html
  8. 91 13
      needSure.html

+ 143 - 0
js/myDemand.js

@ -0,0 +1,143 @@
1
$(document).ready(function() {
2
	var yesNo = "",
3
		oSortType = 0;
4
	/*我的需求列表*/
5
	function myDemandList(isbind, page,pageNum,dema,sortType) {
6
		$.ajax({
7
			url: "/ajax/demand/pqDemander",
8
			type: "GET",
9
			timeout: 10000,
10
			dataType: "json",
11
			data: {
12
				"demander": userid,
13
				"pageNo": page,
14
				"demandStatus": dema,
15
				"sortType": sortType,
16
				"pageSize": pageNum
17
			},
18
			beforeSend: function() {},
19
			success: function(data, textState) {
20
				if(data.success) {
21
					console.log(data);
22
					$(".workselectitem").html(" ");
23
					demandHtml(data.data.data);
24
					if(isbind == true) {
25
						$(".tcdPageCode").createPage({
26
							pageCount: Math.ceil(data.data.total / pageNum),
27
							current: data.data.data.pageNo,
28
							backFn: function(p) {
29
								myDemandList(false, p,5,yesNo,oSortType);
30
							}
31
						});
32
					}
33
				}
34
			},
35
			error: function(XMLHttpRequest, textStats, errorThrown) {
36

37
			}
38
		})
39
	}
40

41
	function demandHtml($data) {
42
		for(var i = 0; i < $data.length; i++) {
43
			var oTime, oDemandType, oDemandAim, oDemandStatus;
44
			if($data[i].demandType == 1) {
45
				oDemandType = "个人需求"
46
			} else if($data[i].demandType == 2) {
47
				oDemandType = "企业需求"
48
			}
49
			if($data[i].demandAim == 1) {
50
				oDemandAim = "技术咨询"
51
			} else if($data[i].demandAim == 2) {
52
				oDemandAim = "寻找资源"
53
			} else if($data[i].demandAim == 3) {
54
				oDemandAim = "其他需求"
55
			}
56
			if($data[i].demandStatus == 0) {
57
				oDemandStatus = "已关闭"
58
			} else if($data[i].demandStatus == 1) {
59
				oDemandStatus = "发布中"
60
			}
61
			oTime = $data[i]["createTime"].substr(0, 4) + "年" + $data[i].createTime.substr(4, 2) + "月" + $data[i].createTime.substr(6, 2) + "日" +
62
				$data[i].createTime.substr(8, 2) + ":" + $data[i].createTime.substr(10, 2);
63
			var oString = "<table width='100%'><tbody><tr>"
64
			oString += "<td style='position:relative;top:20px;'>"
65
			oString += "<div class='workinfor worksitcon'>"
66
			oString += "<h4><div class='titList h4Font' style='width:620px'>" + $data[i].demandTitle + "</div></h4>"
67
			oString += "<h6 style='position:relative;'>"
68
			oString += "<div class='clearfix'>"
69
			oString += "<div class='floatL'>发布时间:<span class='lasttime'>" + oTime + "</span></div>"
70
			if($data[i].closeTime) {
71
				var oCloseTime = $data[i]["closeTime"].substr(0, 4) + "年" + $data[i].closeTime.substr(4, 2) + "月" + $data[i].closeTime.substr(6, 2) + "日" +
72
					$data[i].closeTime.substr(8, 2) + ":" + $data[i].closeTime.substr(10, 2);
73
				oString += "<div class='floatL' style='margin-left:40px;'>关闭时间:<span class='lasttime'>" + oCloseTime + "</span></div></div>"
74
			}
75
			oString += "<p class='rebackcon lastReplyCon' style='width: 860px;' >" + $data[i].demandContent + "</p></h6></div>"
76
			oString += "<div class='workhandle'>"
77
			oString += "<div class='rightopert floatR'>"
78
			oString += "<span class='replybtn'demanid='" + $data[i].demandId + "'>查看</span></div>"
79
			oString += "<div class='leftstate floatR'>"
80
			oString += "<span class='coultstate status-1'><i>" + oDemandStatus + "</i></span></div>"
81
			oString += "<div class='leftstate floatR'>"
82
			oString += "<span class='coultstate status-4'><i>" + oDemandAim + "</i></span></div>"
83
			oString += "<div class='leftstate floatR'>"
84
			oString += "<span class='coultstate coulstAim status-4'><i>" + oDemandType + "</i></span></div></div></td></tr></tbody></table>"
85
			$(".workselectitem").append(oString)
86
		}
87
	}
88
	myDemandList(true, 1,5,yesNo,oSortType);
89
	/*检索排序*/
90
	function selcet(i) {
91
		$(".selcet" + i).on('click', function(e) {
92
			var option = $(this).find(".option" + i);
93
			option.css("display", "block")
94
			var o_this = $(this);
95
			o_this.find("li").click(function() {
96
				o_this.find("li").removeClass("workcurrent");
97
				$(this).addClass("workcurrent");
98
				o_this.find("span").text($(this).text());
99
				option.css("display", "none");
100
				if($(this).text() == "全部") {
101
					yesNo = "";
102
					$(".tcdPageCode").remove();
103
					$("#workContainer2").append('<div class="tcdPageCode"></div>');
104
					myDemandList(true, 1,5,yesNo,oSortType);
105
				} else if($(this).text() == "发布中") {
106
					yesNo = 1;
107
					$(".tcdPageCode").remove();
108
					$("#workContainer2").append('<div class="tcdPageCode"></div>');
109
					myDemandList(true, 1,5,yesNo,oSortType);
110
				} else if($(this).text() == "已关闭") {
111
					yesNo = 0;
112
					$(".tcdPageCode").remove();
113
					$("#workContainer2").append('<div class="tcdPageCode"></div>');
114
					myDemandList(true, 1,5,yesNo,oSortType);
115
				} else if($(this).text() == "按最早发布时间排序") {
116
					oSortType = 1;
117
					$(".tcdPageCode").remove();
118
					$("#workContainer2").append('<div class="tcdPageCode"></div>');
119
					myDemandList(true, 1,5,yesNo,oSortType);
120
				} else if($(this).text() == "按最新发布时间排序") {
121
					oSortType = 0;
122
					$(".tcdPageCode").remove();
123
					$("#workContainer2").append('<div class="tcdPageCode"></div>');
124
					myDemandList(true, 1,5,yesNo,oSortType);
125
				}
126
				return false;
127
			});
128
			$("body").click(function(e) {
129
				if($(".option4")[0].style.display == "block" || $(".option1")[0].style.display == "block") {
130
					$(".option4")[0].style.display = "none";
131
					$(".option1")[0].style.display = "none";
132
				}
133
			});
134
			return false;
135
		})
136
	}
137
	selcet(1);
138
	selcet(4);
139
	$(".workselectitem").on("click",".replybtn",function(){
140
		var de=$(this).attr("demanid");
141
		location.href="needShow.html?demandId="+de
142
	})
143
})

+ 18 - 15
js/needList.js

@ -2,7 +2,7 @@ $(document).ready(function() {
2 2
	var oDemandAim = "",
3 3
		oSortType = "";
4 4
	/*需求列表*/
5
	function demandList(isbind, pageSize, pageNo,oDemand,oSort) {
5
	function demandList(isbind, pageSize, pageNo, oDemand, oSort) {
6 6
		$.ajax({
7 7
			url: "/ajax/demand/pq",
8 8
			type: "GET",
@ -13,8 +13,7 @@ $(document).ready(function() {
13 13
				"demandAim": oDemand,
14 14
				"sortType": oSort
15 15
			},
16
			beforeSend: function() {
17
			},
16
			beforeSend: function() {},
18 17
			success: function(data, textState) {
19 18
				if(data.success) {
20 19
					$("#demandList").html(" ");
@ -25,7 +24,7 @@ $(document).ready(function() {
25 24
							pageCount: Math.ceil(data.data.total / pageSize),
26 25
							current: data.data.data.pageNo,
27 26
							backFn: function(p) {
28
								demandList(false, 5, p,oDemandAim,oSortType);
27
								demandList(false, 5, p, oDemandAim, oSortType);
29 28
							}
30 29
						});
31 30
					}
@ -87,7 +86,7 @@ $(document).ready(function() {
87 86
			dataString += "<span class='lasttime rightTime'>" + oTime + "</span>"
88 87
			dataString += "<p class='rebackcon' >" + $data[i].demandContent + "</p></div>"
89 88
			dataString += "<div class='workhandle'><div class='rightopert floatR'>"
90
			dataString += "<span class='replybtn'>查看</span></div>"
89
			dataString += "<span class='replybtn' demanid='" + $data[i].demandId + "'>查看</span></div>"
91 90
			dataString += "<div class='leftstate floatR'>"
92 91
			dataString += "<span class='coultstate status-4'><i>" + demandAim + "</i></span></div>"
93 92
			dataString += "<div class='leftstate floatR'>"
@ -120,7 +119,7 @@ $(document).ready(function() {
120 119
		}
121 120

122 121
	}
123
	demandList(true, 5, 1,oDemandAim,oSortType);
122
	demandList(true, 5, 1, oDemandAim, oSortType);
124 123

125 124
	/*检索排序*/
126 125
	function selcet(i) {
@ -137,33 +136,32 @@ $(document).ready(function() {
137 136
					oDemandAim = 1;
138 137
					$(".tcdPageCode").remove();
139 138
					$("#shoudao").append('<div class="tcdPageCode"></div>');
140
					demandList(true, 5, 1,oDemandAim,oSortType);
139
					demandList(true, 5, 1, oDemandAim, oSortType);
141 140
				} else if($(this).text() == "资源合作") {
142 141
					oDemandAim = 2;
143 142
					$(".tcdPageCode").remove();
144 143
					$("#shoudao").append('<div class="tcdPageCode"></div>');
145
					demandList(true, 5, 1,oDemandAim,oSortType);
144
					demandList(true, 5, 1, oDemandAim, oSortType);
146 145
				} else if($(this).text() == "其他需求") {
147 146
					oDemandAim = 3;
148 147
					$(".tcdPageCode").remove();
149 148
					$("#shoudao").append('<div class="tcdPageCode"></div>');
150
					demandList(true, 5, 1,oDemandAim,oSortType);
151
				}else if($(this).text() == "不限") {
149
					demandList(true, 5, 1, oDemandAim, oSortType);
150
				} else if($(this).text() == "不限") {
152 151
					oDemandAim = "";
153 152
					$(".tcdPageCode").remove();
154 153
					$("#shoudao").append('<div class="tcdPageCode"></div>');
155
					demandList(true, 5, 1,oDemandAim,oSortType);
156
				}
157
				else if($(this).text() == "按最早发布时间排序") {
154
					demandList(true, 5, 1, oDemandAim, oSortType);
155
				} else if($(this).text() == "按最早发布时间排序") {
158 156
					oSortType = 1;
159 157
					$(".tcdPageCode").remove();
160 158
					$("#shoudao").append('<div class="tcdPageCode"></div>');
161
					demandList(true, 5, 1,oDemandAim,oSortType);
159
					demandList(true, 5, 1, oDemandAim, oSortType);
162 160
				} else if($(this).text() == "按最新发布时间排序") {
163 161
					oSortType = 0;
164 162
					$(".tcdPageCode").remove();
165 163
					$("#shoudao").append('<div class="tcdPageCode"></div>');
166
					demandList(true, 5, 1,oDemandAim,oSortType);
164
					demandList(true, 5, 1, oDemandAim, oSortType);
167 165
				}
168 166
				return false;
169 167
			});
@ -178,4 +176,9 @@ $(document).ready(function() {
178 176
	}
179 177
	selcet(3);
180 178
	selcet(4);
179
	/*进入needSure.html*/
180
	$("#demandList").on("click", ".replybtn", function() {
181
		var demand = $(this).attr("demanid");
182
		location.href = "needSure.html?demandId=" + demand;
183
	})
181 184
})

+ 85 - 0
js/needShow.js

@ -0,0 +1,85 @@
1
$(document).ready(function(){
2
	var demandId = GetQueryString("demandId");
3
	var consuId, demandTitle, demandContent, oDemandAim;
4

5
	function angleDemand() {
6
		$.ajax({
7
			url: "/ajax/demand/queryOne",
8
			type: "GET",
9
			timeout: 10000,
10
			dataType: "json",
11
			data: {
12
				"demandId": demandId,
13
			},
14
			beforeSend: function() {},
15
			success: function(data, textState) {
16
				if(data.success) {
17
					console.log(data);
18
					var $data = data.data;
19
					var oTime, oDemandType;
20
					$("#dialog_consultTitle").text($data.demandTitle);
21
					oTime = $data["createTime"].substr(0, 4) + "年" + $data.createTime.substr(4, 2) + "月" + $data.createTime.substr(6, 2) + "日" +
22
						$data.createTime.substr(8, 2) + ":" + $data.createTime.substr(10, 2);
23
					$("#dialog_consultTime").text(oTime);
24
					if($data.closeTime){
25
						$("#dil_consultStatus").text("已关闭");
26
						$(".displayNone").show();
27
						var oCloseTime=$data["closeTime"].substr(0, 4) + "年" + $data.closeTime.substr(4, 2) + "月" + $data.createTime.substr(6, 2) + "日" +
28
						$data.closeTime.substr(8, 2) + ":" + $data.closeTime.substr(10, 2);
29
						$("#dialog_consultTime1").text(oCloseTime);
30
						$(".closeBtn").hide();
31
					}else{
32
						$("#dil_consultStatus").text("发布中");
33
					}
34
					if($data.demandType == 1) {
35
						oDemandType = "个人需求"
36
					} else {
37
						oDemandType = "企业需求"
38
					}
39
					$("#dialog_consultType1").text(oDemandType);
40
					if($data.demandAim == 1) {
41
						oDemandAim = "技术咨询"
42
					} else if($data.demandAim == 2) {
43
						oDemandAim = "资源咨询"
44
					} else if($data.demandAim == 3) {
45
						oDemandAim = "其他咨询"
46
					}
47
					$("#dialog_consultType2").text(oDemandAim);
48
					$("#dialog_consultContent").text($data.demandContent);										
49
					consuId = $data.professor.id;
50
					demandTitle = $data.demandTitle;
51
					demandContent = $data.demandContent;
52
					demandType = $data.demandAim
53
				}
54
			},
55
			error: function(XMLHttpRequest, textStats, errorThrown) {
56

57
			}
58
		})
59
	}
60
	angleDemand() ;
61
	$(".closeBtn").click(function(){
62
		$.MsgBox.Confirm("消息", "确认关闭此需求?", closeDemand)
63
	})
64
	function closeDemand(){
65
		$.ajax({
66
			url: "/ajax/demand/close",
67
			type: "POST",
68
			timeout: 10000,
69
			dataType: "json",
70
			data: {
71
				"demandId": demandId,
72
			},
73
			beforeSend: function() {},
74
			success: function(data, textState) {
75
				if(data.success) {
76
					$(".closeBtn").hide();
77
					$("#dil_consultStatus").text("已关闭");
78
				}
79
			},
80
			error: function(XMLHttpRequest, textStats, errorThrown) {
81

82
			}
83
		})
84
	}
85
})

+ 131 - 0
js/needSure.js

@ -0,0 +1,131 @@
1
$(document).ready(function() {
2
	var demandId = GetQueryString("demandId");
3
	var consuId, demandTitle, demandContent, oDemandAim;
4

5
	function angleDemand() {
6
		$.ajax({
7
			url: "/ajax/demand/queryOne",
8
			type: "GET",
9
			timeout: 10000,
10
			dataType: "json",
11
			data: {
12
				"demandId": demandId,
13
			},
14
			beforeSend: function() {},
15
			success: function(data, textState) {
16
				if(data.success) {
17
					var $data = data.data;
18
					var oTime, oDemandType;
19
					$("#dialog_consultTitle").text($data.demandTitle);
20
					oTime = $data["createTime"].substr(0, 4) + "年" + $data.createTime.substr(4, 2) + "月" + $data.createTime.substr(6, 2) + "日" +
21
						$data.createTime.substr(8, 2) + ":" + $data.createTime.substr(10, 2);
22
					$("#dialog_consultTime").text(oTime);
23
					if($data.demandType == 1) {
24
						oDemandType = "个人需求"
25
					} else {
26
						oDemandType = "企业需求"
27
					}
28
					$("#dialog_consultType").text(oDemandType);
29
					if($data.demandAim == 1) {
30
						oDemandAim = "技术咨询"
31
					} else if($data.demandAim == 2) {
32
						oDemandAim = "资源咨询"
33
					} else if($data.demandAim == 3) {
34
						oDemandAim = "其他咨询"
35
					}
36
					$("#dialog_consultType").text(oDemandAim);
37
					$("#dialog_consultContent").text($data.demandContent);
38
					$("#nameS").text($data.professor.name);
39
					if($data.professor.hasHeadImage == 1) {
40
						$("#headImg").attr("src", "/images/head/" + $data.professor.id + "_l.jpg")
41
					}
42
					if($data.professor.authType) {
43
						var typeTname = " authicon authicon-cu"
44
					} else {
45
						if($data.professor.authStatus == 3) {
46
							if($data.professor.authentication == 1) {
47
								var typeTname = " authicon2 authicon-mana";
48
							} else if($data.professor.authentication == 2) {
49
								var typeTname = " authicon2 authicon-staff";
50
							} else {
51
								var typeTname = " authicon2 authicon-stu"
52
							}
53
						}
54
					}
55
					$("#sta").addClass(typeTname);
56
					var oString = todStr($data.professor.title, $data.professor.office, $data.professor.department);
57
					$("#offt").text(oString);
58
					consuId = $data.professor.id;
59
					demandTitle = $data.demandTitle;
60
					demandContent = $data.demandContent;
61
					demandType = $data.demandAim
62
				}
63
			},
64
			error: function(XMLHttpRequest, textStats, errorThrown) {
65

66
			}
67
		})
68
	}
69
	/*职位职称所属机构*/
70
	function todStr() {
71
		var arr = new Array(),
72
			i;
73
		for(i in arguments) {
74
			if(arguments[i]) {
75
				arr.push(arguments[i])
76
			}
77
		}
78
		return arr.join();
79
	}
80
	angleDemand();
81
	/*确认回复*/
82
	$(".basicBtn").find("span").click(function() {
83
		$.ajax({
84
			url: "/ajax/consult/byDemand",
85
			type: "GET",
86
			timeout: 10000,
87
			dataType: "json",
88
			data: {
89
				"demandId": demandId,
90
				"professorId": userid
91
			},
92
			success: function(data, textState) {
93
				if(data.success) {
94
					console.log(data)
95
					if(data.data == null) {
96
						$.MsgBox.Confirm("消息", "确认回复此需求?", createConsult)
97
					} else {
98
						alert(3)
99
					}
100
				}
101
			},
102
			error: function(XMLHttpRequest, textStats, errorThrown) {
103

104
			}
105
		})
106
	})
107

108
	function createConsult() {
109
		$.ajax({
110
			url: "/ajax/consult",
111
			type: "POST",
112
			timeout: 10000,
113
			data: {
114
				"consultType": oDemandAim,
115
				"consultTitle": demandTitle,
116
				"consultContant": demandContent,
117
				"professorId": userid,
118
				"consultantId": consuId,
119
				"demandId": demandId
120
			},
121
			success: function(data, textState) {
122
				if(data.success) {
123

124
				}
125
			},
126
			error: function(XMLHttpRequest, textStats, errorThrown) {
127

128
			}
129
		})
130
	}
131
})

+ 133 - 0
myDemand.html

@ -0,0 +1,133 @@
1
<!DOCTYPE html>
2
<html>
3
<head>
4
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
5
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
6
<meta http-equiv="X-UA-Compatible" content="IE=edge">
7
<title>我的工作台 - 需求</title>
8
<link rel="shortcut icon" type="image/x-icon" href="images/favicon.png" media="screen" />	
9
<link type="text/css" href="css/bootstrap.min.css" rel="stylesheet">
10
<link type="text/css" href="css/reset.css" rel="stylesheet" />
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">
14
</head>
15
<body>
16
<!--头部-->
17
<div id="header">
18
	<a href="index.html" alt="科袖" class="logo"></a>
19
	<div class="searchblock" style="display:block;">
20
		<input type="text" placeholder="搜索专家、研发资源" class="search-txt" id="hsearchContent">
21
		<div class="search-btn" id="hsearch"><span class="search-icon"></span></div>
22
	</div>
23
	<div class="header-right"> 
24
        <!--未登录-->
25
        <div class="unlogin">
26
        	<a class="loginbtn loginlbtn" href="login-invite-code.html">特邀专家登录</a>
27
        	<a class="loginbtn loginrbtn" href="login.html">登录&nbsp;&nbsp;|</a>
28
        	<a class="loginbtn loginrbtn" href="register.html">注册</a>
29
        </div>
30
        <!--已登录-->
31
        <div class="onlogin">
32
        	<a class="myWorkspace" href="workspaces.html">我的工作台</a>
33
	        <div class="head-portrait">
34
	        	<img class="portrait-p headRadius" />
35
	            <div class="personal-infor">
36
	                <div class="triangleB"></div>
37
	                <div class="personal-box bgRadius">
38
	                    <!-- <a href="#"><span class="icon icon1"></span>我的主页</a> -->
39
	                    <a href="information.html"><span class="icon icon2"></span>修改资料</a>
40
	                    <a href="account-set.html"><span class="icon icon3"></span>账户设置</a>
41
	                    <a href="#" onClick="exit()"><span class="icon icon4"></span>退出登录</a>
42
	                </div>              
43
	            </div>
44
	        </div>
45
        </div>
46
	</div>
47
</div>
48
49
<!--中间-->
50
<div id="container">
51
	<div class="con-center">
52
        <div class="workmenu">
53
            <a href="workspaces.html" class="workmenutit">我的工作台</a>
54
            <a class="worksubmenu" id="gozixu">咨询</a>
55
            <a href="newsciresource.html"  class="worksubmenu nohide" style="display:none;">资源</a>
56
            <a href="news-list.html"  class="worksubmenu nohide" style="display:none;">文章</a>
57
            <a href="needList.html"  class="worksubmenu subcolor">需求</a>
58
        </div>
59
        <div class="workcon">
60
			<div class="workconitem consublock">
61
    <div class="workcontit">需求<a  href="needList.html" class="worksamlltit worksamlltit3">搜索需求</a><a href="myDemand.html"class="worksamlltit worksamlltit3 worksamlltitnow">我的需求</a></div>
62
    <div class="worksubcon"> 
63
        <div class="workmysrc workmysrc3" id="getReply"style="display:block;"> <!--displayNone-->
64
             <div class="workmenubox clearfix">
65
             	<div class="workmenufrm floatL">
66
             		<span class="frmtype frmbtn" id="needIssueBtn" style="padding:4px 24px;">发布新需求</span>
67
             	</div>
68
                <form class="workmenufrm floatR">
69
                   <div class="workselectbox floatL replySelect selcet1"> 
70
                    	<input id="replySelectId" type="text" value="0" style ="display:none;"/>
71
                        <span id="showStatus2" class="workselectmenu" tip="0">全部</span>
72
                        <div class="replyOption option1" style="display:none;">
73
	                        <ul id="downbox" class="workdropdown" > 
74
	                            <li  class=" workcurrent" tip="0">全部</li> 
75
	                            <li  class="" tip="1">发布中</li> 
76
	                             <li  class="" tip="2">已关闭</li>  
77
	                       </ul>
78
                        </div>
79
                    </div>
80
                    
81
                   <div class="workselectbox floatL timeType selcet4">
82
                    	<input type="text" id="timeTypeId" value="" style="display:none;">
83
                        <span  id="showTimeSort" class="workselectmenu" tim="0">按最早发布时间排序</span>
84
                        <div class="timeOption option4" style="display:none;">
85
	                        <ul id="downbox1" class="workdropdown workdropdown2" > 
86
	                            <li tim="0" class="cur workcurrent">按最早发布时间排序</li> 
87
	                            <li tim="1" class="cur">按最新发布时间排序</li> 
88
	                       </ul>
89
                        </div>
90
                       
91
                    </div>
92
                    
93
                    <input id="timeSortId2" type="text" value="0" style ="display:none;">
94
                    <div class="workselectbox floatL">
95
                        <div class="orderedbtn" id="replyArrow"><div></div></div> 
96
                    </div>
97
                
98
                </form>
99
             </div>   
100
             
101
            <div class="workselectcon" id="wode">
102
                <div id="workContainer2">
103
                	<div class='workselectitem'>
104
				
105
                	</div>
106
                </div>
107
                <div class="tcdPageCode getReplyPage"></div>
108
            </div>
109
        </div>
110
        
111
    </div>
112
</div>
113
114
        </div>
115
    </div>
116
</div>
117
118
<!--底部-->
119
<footer>
120
	<script type="text/javascript" src="js/footer.js"></script>
121
</footer>
122
123
<script type="text/javascript" src="js/jquery-1.11.1.js"></script>
124
<script type="text/javascript"src="js/jquery.cookie.js"></script>
125
<script type="text/javascript"src="js/jquery.similar.msgbox.js"></script>
126
<script type="text/javascript" src="js/jquery.page.js"></script>
127
<script type="text/javascript" src="js/common.js"></script>
128
<script type="text/javascript" src="js/index.js"></script>
129
<script type="text/javascript" src="js/popup.js"></script>
130
<script type="text/javascript" src="js/myDemand.js"></script>
131
</body>
132
</html>
133

+ 1 - 1
needList.html

@ -58,7 +58,7 @@
58 58
        </div>
59 59
        <div class="workcon">
60 60
			<div class="workconitem consublock">
61
    <div class="workcontit">需求<a class="worksamlltit worksamlltit3 worksamlltitnow" href="#getConsult">搜索需求</a><a class="worksamlltit worksamlltit3" href="#getReply">我的需求</a></div>
61
    <div class="workcontit">需求<a  href="needList.html" class="worksamlltit worksamlltit3 worksamlltitnow">搜索需求</a><a href="myDemand.html" class="worksamlltit worksamlltit3">我的需求</a></div>
62 62
    <div class="worksubcon"> 
63 63
    	<div class="workmysrc workmysrc3 displayNone" id="getConsult">	
64 64
             <div class="workmenubox clearfix">

+ 85 - 9
needShow.html

@ -1,8 +1,67 @@
1
<!DOCTYPE html>
2
<html>
3
<head>
4
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
5
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
6
<meta http-equiv="X-UA-Compatible" content="IE=edge">
7
<title>我的工作台 - 需求</title>
8
<link rel="shortcut icon" type="image/x-icon" href="images/favicon.png" media="screen" />	
9
<link type="text/css" href="css/bootstrap.min.css" rel="stylesheet">
10
<link type="text/css" href="css/reset.css" rel="stylesheet" />
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">
14
</head>
15
<body>
16
<!--头部-->
17
<div id="header">
18
	<a href="index.html" alt="科袖" class="logo"></a>
19
	<div class="searchblock" style="display:block;">
20
		<input type="text" placeholder="搜索专家、研发资源" class="search-txt" id="hsearchContent">
21
		<div class="search-btn" id="hsearch"><span class="search-icon"></span></div>
22
	</div>
23
	<div class="header-right"> 
24
        <!--未登录-->
25
        <div class="unlogin">
26
        	<a class="loginbtn loginlbtn" href="login-invite-code.html">特邀专家登录</a>
27
        	<a class="loginbtn loginrbtn" href="login.html">登录&nbsp;&nbsp;|</a>
28
        	<a class="loginbtn loginrbtn" href="register.html">注册</a>
29
        </div>
30
        <!--已登录-->
31
        <div class="onlogin">
32
        	<a class="myWorkspace" href="workspaces.html">我的工作台</a>
33
	        <div class="head-portrait">
34
	        	<img class="portrait-p headRadius" />
35
	            <div class="personal-infor">
36
	                <div class="triangleB"></div>
37
	                <div class="personal-box bgRadius">
38
	                    <!-- <a href="#"><span class="icon icon1"></span>我的主页</a> -->
39
	                    <a href="information.html"><span class="icon icon2"></span>修改资料</a>
40
	                    <a href="account-set.html"><span class="icon icon3"></span>账户设置</a>
41
	                    <a href="#" onClick="exit()"><span class="icon icon4"></span>退出登录</a>
42
	                </div>              
43
	            </div>
44
	        </div>
45
        </div>
46
	</div>
47
</div>
1 48
2
 <div class="consultdialogbox">
49
<!--中间-->
50
<div id="container">
51
	<div class="con-center">
52
        <div class="workmenu">
53
            <a href="workspaces.html" class="workmenutit">我的工作台</a>
54
            <a class="worksubmenu" id="gozixu">咨询</a>
55
            <a href="newsciresource.html"  class="worksubmenu nohide" style="display:none;">资源</a>
56
            <a href="news-list.html"  class="worksubmenu nohide" style="display:none;">文章</a>
57
            <a href="needList.html"  class="worksubmenu subcolor">需求</a>
58
        </div>
59
        <div class="workcon">
60
			<div class="workconitem consublock">
61
				<div class="consultdialogbox">
3 62
	<div class="consultdialog">
4 63
    	<div class="dialoghead">
5
        	<a class="backupbtn" id="backBtn"></a>
64
        	<a href="myDemand.html"class="backupbtn" id="backBtn"></a>
6 65
            <div class="dheadtit">需求查看</div>
7 66
        </div>
8 67
        <div class="dialogcontain">
@ -20,16 +79,15 @@
20 79
                <!--关闭之后显示-->
21 80
                <div class="dialoginfotype clearfix inline displayNone" style="margin-left:50px">
22 81
                	<span class="floatL" id="">关闭时间:</span>
23
                	<span class="dialogtit floatL" id="dialog_consultTime">2017年3月4日 18:00</span>
82
                	<span class="dialogtit floatL" id="dialog_consultTime1">2017年3月4日 18:00</span>
24 83
                </div>
25
                <div></div>
26 84
                <div class="dialoginfotype clearfix inline">
27 85
                	<span class="floatL" id="">需求类型:</span>
28
                	<span class="dialogtit floatL" id="dialog_consultType">个人需求</span>
86
                	<span class="dialogtit floatL" id="dialog_consultType1">个人需求</span>
29 87
                </div>
30
                <div class="dialoginfotype clearfix inline" style="margin-left:50px">
88
                <div class="dialoginfotype clearfix inline" style="margin-left:50px;">
31 89
                	<span class="floatL" id="">需求目的:</span>
32
                	<span class="dialogtit floatL" id="dialog_consultType">技术咨询</span>
90
                	<span class="dialogtit floatL" id="dialog_consultType2">技术咨询</span>
33 91
                </div>
34 92
                <div class="dialoginfotype clearfix" id="dialog_consultContentContainer">
35 93
                	<div class="floatL" id="dialog_consultContentTitle">需求内容:</div>
@ -38,7 +96,7 @@
38 96
                	</div>
39 97
                </div>
40 98
            </div>
41
            <div class="dialogstatus"><em></em><span id="dil_consultStatus">发布中</span></div><!--已关闭-->
99
            <div class="dialogstatus"><em></em><span id="dil_consultStatus"></span></div><!--已关闭-->
42 100
        </div>
43 101
		<!--关闭之后隐藏-->
44 102
    	<div class="basicBtn">
@ -47,5 +105,23 @@
47 105
    	
48 106
	</div> 
49 107
</div>
108
			</div>
109
        </div>
110
    </div>
111
</div>
112
113
<!--底部-->
114
<footer>
115
	<script type="text/javascript" src="js/footer.js"></script>
116
</footer>
117
118
<script type="text/javascript" src="js/jquery-1.11.1.js"></script>
119
<script type="text/javascript"src="js/jquery.cookie.js"></script>
120
<script type="text/javascript"src="js/jquery.similar.msgbox.js"></script>
121
<script type="text/javascript" src="js/jquery.page.js"></script>
122
<script type="text/javascript" src="js/common.js"></script>
123
<script type="text/javascript" src="js/index.js"></script>
124
<script type="text/javascript" src="js/needShow.js"></script>
125
</body>
126
</html>
50 127
51
<script type="text/javascript"src="js/dialogs.js"></script>

+ 91 - 13
needSure.html

@ -1,8 +1,67 @@
1
<!DOCTYPE html>
2
<html>
3
<head>
4
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
5
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
6
<meta http-equiv="X-UA-Compatible" content="IE=edge">
7
<title>我的工作台 - 需求</title>
8
<link rel="shortcut icon" type="image/x-icon" href="images/favicon.png" media="screen" />	
9
<link type="text/css" href="css/bootstrap.min.css" rel="stylesheet">
10
<link type="text/css" href="css/reset.css" rel="stylesheet" />
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">
14
</head>
15
<body>
16
<!--头部-->
17
<div id="header">
18
	<a href="index.html" alt="科袖" class="logo"></a>
19
	<div class="searchblock" style="display:block;">
20
		<input type="text" placeholder="搜索专家、研发资源" class="search-txt" id="hsearchContent">
21
		<div class="search-btn" id="hsearch"><span class="search-icon"></span></div>
22
	</div>
23
	<div class="header-right"> 
24
        <!--未登录-->
25
        <div class="unlogin">
26
        	<a class="loginbtn loginlbtn" href="login-invite-code.html">特邀专家登录</a>
27
        	<a class="loginbtn loginrbtn" href="login.html">登录&nbsp;&nbsp;|</a>
28
        	<a class="loginbtn loginrbtn" href="register.html">注册</a>
29
        </div>
30
        <!--已登录-->
31
        <div class="onlogin">
32
        	<a class="myWorkspace" href="workspaces.html">我的工作台</a>
33
	        <div class="head-portrait">
34
	        	<img class="portrait-p headRadius" />
35
	            <div class="personal-infor">
36
	                <div class="triangleB"></div>
37
	                <div class="personal-box bgRadius">
38
	                    <!-- <a href="#"><span class="icon icon1"></span>我的主页</a> -->
39
	                    <a href="information.html"><span class="icon icon2"></span>修改资料</a>
40
	                    <a href="account-set.html"><span class="icon icon3"></span>账户设置</a>
41
	                    <a href="#" onClick="exit()"><span class="icon icon4"></span>退出登录</a>
42
	                </div>              
43
	            </div>
44
	        </div>
45
        </div>
46
	</div>
47
</div>
1 48
2
 <div class="consultdialogbox">
49
<!--中间-->
50
<div id="container">
51
	<div class="con-center">
52
        <div class="workmenu">
53
            <a href="workspaces.html" class="workmenutit">我的工作台</a>
54
            <a class="worksubmenu" id="gozixu">咨询</a>
55
            <a href="newsciresource.html"  class="worksubmenu nohide" style="display:none;">资源</a>
56
            <a href="news-list.html"  class="worksubmenu nohide" style="display:none;">文章</a>
57
            <a href="needList.html"  class="worksubmenu subcolor">需求</a>
58
        </div>
59
        <div class="workcon">
60
			<div class="workconitem consublock">
61
				<div class="consultdialogbox">
3 62
	<div class="consultdialog">
4 63
    	<div class="dialoghead">
5
        	<a class="backupbtn" id="backBtn"></a>
64
        	<a href="needList.html"class="backupbtn" id="backBtn"></a>
6 65
            <div class="dheadtit">需求确认</div>
7 66
        </div>
8 67
        <div class="dialogcontain">
@ -39,21 +98,21 @@
39 98
	    	<div class="consultBasic floatL">
40 99
	    		<h5 class="cBasicTit">需求发布者信息</h5>
41 100
	    		<div class="workhs floatL">
42
                    <a class="workhead headRadius" ><img src="images/default-photo.jpg"class="imgProfess" width="100%" height="100%"></a>
101
                    <a class="workhead headRadius" ><img src="images/default-photo.jpg"class="imgProfess" width="100%" height="100%" id="headImg"></a>
43 102
                </div>
44 103
	    		<div class="workinfor floatL">
45
	                <h4><a  class="named" id="nameS">用户姓名</a><a class="modifyicon authicon2 authicon-mana"></a></h4>
46
	                <h5><span id="title">职称</span><span id="office">,职位</span><span id="organization">,所属机构</span></h5>
104
	                <h4><a  class="named" id="nameS">用户姓名</a><a class="modifyicon" id="sta"></a></h4>
105
	                <h5 id="offt"></h5>
47 106
	            </div>
48 107
	    	</div>
49 108
	    	<div class="consultBasic floatL">
50
	    		<!--<h5 class="cBasicTit">机构信息</h5>
51
	    		<div class="workhs floatL">
52
                    <a class="workhead headRadius" ><img src="images/default-photo.jpg"class="imgProfess" width="100%" height="100%"></a>
53
                </div>
54
	    		<div class="workinfor floatL">
55
	                <h4><a  class="named" id="nameS">用户姓名</a><a class="modifyicon authicon authicon-cu"></a></h4>
56
	                <h5><span id="title">职称</span><span id="office">,职位</span><span id="organization">,所属机构</span></h5>
109
	    		<!--<h5 class="cBasicTit">机构信息</h5>
110
	    		<div class="workhs floatL">
111
                    <a class="workhead headRadius" ><img src="images/default-photo.jpg"class="imgProfess" width="100%" height="100%"></a>
112
                </div>
113
	    		<div class="workinfor floatL">
114
	                <h4><a  class="named" id="nameS">用户姓名</a><a class="modifyicon authicon authicon-cu"></a></h4>
115
	                <h5><span id="title">职称</span><span id="office">,职位</span><span id="organization">,所属机构</span></h5>
57 116
	            </div>-->
58 117
	    	</div>
59 118
	    </div>
@ -64,5 +123,24 @@
64 123
    	
65 124
	</div> 
66 125
</div>
126
			
127
			</div>
128
        </div>
129
    </div>
130
</div>
131
132
<!--底部-->
133
<footer>
134
	<script type="text/javascript" src="js/footer.js"></script>
135
</footer>
136
137
<script type="text/javascript" src="js/jquery-1.11.1.js"></script>
138
<script type="text/javascript"src="js/jquery.cookie.js"></script>
139
<script type="text/javascript"src="js/jquery.similar.msgbox.js"></script>
140
<script type="text/javascript" src="js/jquery.page.js"></script>
141
<script type="text/javascript" src="js/common.js"></script>
142
<script type="text/javascript" src="js/index.js"></script>
143
<script type="text/javascript" src="js/needSure.js"></script>
144
</body>
145
</html>
67 146
68
<script type="text/javascript"src="js/dialogs.js"></script>