瀏覽代碼

修改首页和导航搜索

xuchunyang 8 年之前
父節點
當前提交
87b4715875
共有 3 個文件被更改,包括 8 次插入3 次删除
  1. 4 2
      src/main/webapp/css/index.css
  2. 1 0
      src/main/webapp/index.html
  3. 3 1
      src/main/webapp/js/index.js

+ 4 - 2
src/main/webapp/css/index.css

@ -11,9 +11,11 @@ input{ outline:none;}
11 11
.theme{ width:100%; height:236px; position:absolute; top:50%; margin-top:-60px; }
12 12
.theme h1{font-size:60px;line-height:80px; color:#fff; text-align:center; text-shadow:0px 0px 10px #2d2524;}
13 13
.theme h2{font-size:30px;line-height:50px; color:#fff; text-align:center; text-shadow:0px 0px 10px #2d2524;}
14
.main-search{ width:700px; height:46px; margin:auto; margin-top:20px;}
14
.main-search{ width:700px; height:46px; margin:auto; margin-top:20px; position:relative}
15
.main-search .lookwho{outline:none;position:absolute; height:40px; width:100px;border:none; border-right:1px solid #d6d6d6;border-radius:10px 0 0 10px; background:url(../images/downselect.png) no-repeat 70px center #fff; padding-left:16px; font-size:14px;line-height:38px; color:#888;}
15 16

16
.sear-txt{ width:530px; height:40px; background:#fff; border:none; border-radius:10px 0 0 10px; float:left;font-size:16px;line-height:40px; padding-left:20px; color:#a3a3a3;}
17

18
.sear-txt{ width:530px; height:40px; background:#fff; border:none; border-radius:10px 0 0 10px; float:left;font-size:16px;line-height:40px; padding-left:120px; color:#a3a3a3;}
17 19
.sear-btn{ width:140px; height:40px; background:#ff8400; border-radius:0 10px 10px 0; float:left; cursor:pointer;font-size:18px;line-height:40px;; color:#fff; text-align:center; }
18 20
/*寻找专家流程*/
19 21
.process{ width:806px; height:205px; margin:auto;}

+ 1 - 0
src/main/webapp/index.html

@ -56,6 +56,7 @@
56 56
			<h1>科袖</h1>
57 57
			<h2>搭建专家与企业之间的桥梁</h2>
58 58
			<div class="main-search">
59
			    <select class="lookwho floatL" id="lookFor"><option value="0">找专家</option><option value="1">找资源</option></select>
59 60
				<input type="text" placeholder="搜索专家、研究方向或科研机构" class="sear-txt" id="searchContent" >
60 61
				<div class="sear-btn" id="search" >搜索</div>
61 62
			</div>

+ 3 - 1
src/main/webapp/js/index.js

@ -78,7 +78,9 @@ $("#searchContent").blur(function() {
78 78
});
79 79
$("#search").on("click", function() {
80 80
	var searchContent = $("#searchContent").val();
81
	location.href = "search.html?searchContent=" + encodeURI(searchContent);
81
	var lookFor = $("#lookFor").val();
82
	console.log(lookFor);
83
	location.href = "search.html?searchContent=" + encodeURI(searchContent)+"&lookFor=" + lookFor;
82 84
});
83 85
$("#hsearch").on("click", function() {
84 86
	var searchContent = $("#hsearchContent").val();