<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>咨询-我的工作台-科袖网</title>
<link rel="shortcut icon" type="image/x-icon" href="images/favicon.png" media="screen" />
<link type="text/css" href="css/bootstrap.min.css" rel="stylesheet">
<link type="text/css" href="css/reset.css" rel="stylesheet" />
<link type="text/css" href="css/common.css" rel="stylesheet">
<link type="text/css" href="css/workspace.css" rel="stylesheet">
<script type="text/javascript" src="js/jquery-1.11.1.js"></script>
</head>
<body>
<!--头部-->
<header id="header">
	<script src="js/header.js"></script>
</header>
<!--中间-->
<div id="container">
	<div class="con-center">
		<div class="workmenu">
			<a href="workspaces.html" class="workmenutit">我的工作台</a>
			<a class="worksubmenu subcolor" id="gozixu">咨询</a>
			<a href="newsciresource.html" class="worksubmenu nohide" style="display:none;">资源</a>
			<a href="news-list.html" class="worksubmenu nohide" style="display:none;">文章</a>
			<a href="needList.html" class="worksubmenu">需求</a>
		</div>
		<div class="workcon">
			<div class="workconitem consublock">
				<div class="workcontit">咨询
					<a class="worksamlltit worksamlltit3 worksamlltitnow nohide" href="consult.html" style="display: none;">收到咨询</a>
					<a class="worksamlltit worksamlltit3" href="myConsult.html">我的咨询</a>
				</div>
				<div class="worksubcon">
					<div class="workmysrc workmysrc3 displayNone" id="getConsult">
						<div class="workmenubox clearfix">
							<form class="workmenufrm floatR">
								<!-- <div class="workselectbox floatL consultSelect" onclick="showSelect('consultSelect','consultOption','tip')"> -->
								<div class="workselectbox floatL consultSelect selcet3">
									<input type="text" id="consultSelectId" value="0" style="display:none;">
									<span id="showStatus" class="workselectmenu" tip="0">全部</span>
									<div class="consultOption option3" style="display:none;">
										<ul id="downbox" class="workdropdown">
											<li class="workcurrent" tip="0">全部</li>
											<li class="" tip="1">新咨询</li>
											<li class="" tip="2">进行中</li>
											<li class="" tip="3">已谢绝</li>
											<li class="" tip="4">已完成</li>
										</ul>
									</div>
								</div>

								<!-- <div class="workselectbox floatL timeType" onclick="showSelect('timeType','timeOption','tim')"> -->
								<div class="workselectbox floatL timeType selcet4">
									<input type="text" id="timeTypeId" value="" style="display:none;">
									<span id="showTimeSort" class="workselectmenu" tim="1">按最后回复时间排序</span>
									<div class="timeOption option4" style="display:none;">
										<ul id="downbox1" class="workdropdown workdropdown2">
											<li tim="0" class="cur">按发起时间排序</li>
											<li tim="1" class="cur workcurrent">按最后回复时间排序</li>
											<li tim="2" class="cur">按完成时间排序</li>
										</ul>
									</div>

								</div>
								<input id="timeSortId" type="text" value="0" style="display:none;">
								<div class="workselectbox floatL">
									<div class="orderedbtn" id="consultArrow">
										<div></div>
									</div>
								</div>

							</form>
						</div>

						<div class="workselectcon" id="shoudao">
							<!-- <div class="loding"><img src="images/loading.gif"/></div> -->
							<div id="workContainer"></div>
							<div class="tcdPageCode getConsultPage"></div>
						</div>
					</div>

				</div>
			</div>

		</div>
	</div>
</div>

<!--底部-->
<footer>
	<script type="text/javascript" src="js/footer.js"></script>
</footer>

<script type="text/javascript" src="js/jquery.cookie.js"></script>
<script type="text/javascript" src="js/jquery.similar.msgbox.js"></script>
<script type="text/javascript" src="js/jquery.page.js"></script>
<script type="text/javascript" src="js/common.js"></script>
<script type="text/javascript" src="js/consult.js"></script>
<script type="text/javascript">
	//下拉菜单,点击选项和body,下拉菜单你消失
	function selcet(i) {
		/* console.log($(".selcet"+i)); */
		$(".selcet" + i).on('click', function(e) {

			var attrPa;
			var option = $(this).find(".option" + i);
			/* console.log(option); */
			option
				.css("display", "block")
				.slideDown();

			if($(this).find(".workselectmenu").attr('tip')) {
				attrPa = 'tip';
			}
			if($(this).find(".workselectmenu").attr('tim')) {
				attrPa = 'tim';
			};
			var o_this = $(this);
			o_this.find("li").click(function() {
				option.slideUp();
				/* console.log($(this)); */
				o_this.find("li").removeClass("workcurrent");
				$(this).addClass("workcurrent");
				o_this.find("span").text($(this).text());
				o_this.find("span").attr(attrPa, $(this).attr(attrPa));
				/*  $(this).find("span").attr(attrPa,$(this).attr(attrPa));
				 $(this).find("input").val($(this).attr(attrPa)); */

				consultStatus = $("#consultSelectId").val(); //咨询状态值
				timeType = $("#timeTypeId").val(); //时间类型值
				sortType = $("#timeSortId").val(); //排序值;

				replyStatus = $("#replySelectId").val(); //回复状态值
				timeType2 = $("#timeTypeId2").val(); //回复时间类型值
				sortType2 = $("#timeSortId2").val(); //回复中 排序值;
			});

			$("body").click(function(e) {
				if($(e.target)["0"] == $("#showStatus2")["0"]) {
					$(".select1").slideDown();
				} else if($(e.target)["0"] == $("#showTimeSort2")["0"]) {
					$(".select2").slideDown();
				} else if($(e.target)["0"] == $("#showStatus")["0"]) {
					$(".select3").slideDown();
				} else if($(e.target)["0"] == $("#showTimeSort")["0"]) {
					$(".select4").slideDown();
				} else {
					option.slideUp();
				}

			});

		})
	};
	selcet(3);
	selcet(4);
	/*...点击之后的下拉*/
	$(".moreopert").click(function() {
		$(".moreopertbtn").eq($(".moreopert").index(this)).toggle();

	})
</script>

</body>

</html>