王传进 %!s(int64=8) %!d(string=hai) anos
pai
achega
adb8e18d8d
Modificáronse 2 ficheiros con 700 adicións e 607 borrados
  1. 13 9
      src/jfw/front/entsearch.go
  2. 687 598
      src/web/templates/pc/biddingsearch_enterprise.html

+ 13 - 9
src/jfw/front/entsearch.go

@@ -69,7 +69,7 @@ func (e *Entsearch) Bidsearchforent() error {
 	log.Println("-------中标企业搜索:")
 
 	list := []map[string]interface{}{}
-	list = jylabutil.GetProjectByEntName("", "", 0, 0, 1, 10)
+	list = jylabutil.GetProjectByEntName("", "", 0, 0, 1, 50)
 	//jyutil.BidListConvert("", &list)
 
 	for k, v := range list {
@@ -102,14 +102,14 @@ func (e *Entsearch) PcSearchZbqyAjax() error {
 	if pricetype == "n" {
 		//搜索所有价格
 	}
-	fmt.Println("searchvalue==", searchvalue)
-	fmt.Println("area==", area)
-	fmt.Println("lower==", minprice)
-	fmt.Println("upper==", maxprice)
-	fmt.Println("pricetype==", pricetype)
+	//fmt.Println("searchvalue==", searchvalue)
+	//fmt.Println("area==", area)
+	//fmt.Println("lower==", minprice)
+	//fmt.Println("upper==", maxprice)
+	//fmt.Println("pricetype==", pricetype)
 
 	list := []map[string]interface{}{}
-	//list = jylabutil.GetProjectByEntName(searchvalue, area, minprice, maxprice, 1, 10)
+	list = jylabutil.GetProjectByEntName(searchvalue, area, minprice, maxprice, 1, 50)
 	//jyutil.BidListConvert("", &list)
 
 	for k, v := range list {
@@ -125,6 +125,10 @@ func (e *Entsearch) PcSearchZbqyAjax() error {
 		//	fmt.Println(z)
 		//}
 	}
-	e.T["list"] = list
-	return e.Render("/pc/biddingsearch_enterprise.html", &e.T)
+	//e.T["list1"] = list1
+	//return e.Render("/pc/biddingsearch_enterprise.html", &e.T)
+	e.ServeJson(map[string]interface{}{
+		"list": list,
+	})
+	return nil
 }

+ 687 - 598
src/web/templates/pc/biddingsearch_enterprise.html

@@ -1,619 +1,708 @@
 
 <html lang="zh-cn">
-	<head>
-		<title>{{Msg "seo" "qfw.swordfishsl.title"}}</title>
-		<meta http-equiv="X-UA-Compatible" content="IE=edge,Chrome=1" />
-		<meta name="Keywords" content="{{Msg "seo" "qfw.swordfishsl.key"}}"/>
-		<meta name="Description" content="{{Msg "seo" "qfw.swordfishsl.description"}}"/>
-		<meta name="renderer" content="webkit">
-		<meta content="telephone=no" name="format-detection"/>
-		{{include "/common/pnc.html"}}
-		<link href="/css/pc.css?v={{Msg "seo" "version"}}" rel="stylesheet">
-		<link href="/css/dev2/reset_pc.css?v={{Msg "seo" "version"}}" rel="stylesheet">
-		<link href="/css/dev2/biddingSearch.css?v={{Msg "seo" "version"}}" rel="stylesheet">
-		<link href="/css/dev2/superSearch.css?v={{Msg "seo" "version"}}" rel="stylesheet">
-		<script src="/js/jquery.cookie.js"></script>
-		<script src="/js/biddingSearch.js?v={{Msg "seo" "version"}}"></script>
-		<script language="javascript" type="text/javascript" src="/My97DatePicker/WdatePicker.js"></script>
-		
-		<style type="text/css">
-			a{
-				text-decoration: none !important;
-			}
-
-			/*j-wx-code Start*/
-			.j-wx-code{
-				width: 335px;
-				height: 355px;
-				background-color: #fff;
-				-webkit-border-radius: 6px;
-				   -moz-border-radius: 6px;
-				        border-radius: 6px;
-				position: relative;
-				/*margin: 100px auto;*/
-			}
-			.j-wx-code>.code-close{
-				width: 40px;
-				height: 40px;
-				position: absolute;
-				right: -20px;
-				top: -20px;
-				cursor: pointer;
-				-webkit-transition: all 1s;
-				-o-transition: all 1s;
-				-moz-transition: all 1s;
-				transition: all 1s;
-			}
-			.j-wx-code>.code-close:hover{
-				-webkit-transform: scale(1.2);
-				   -moz-transform: scale(1.2);
-				    -ms-transform: scale(1.2);
-				     -o-transform: scale(1.2);
-				        transform: scale(1.2);
-			}
-			.j-wx-code>.code-title{
-				height: 82px;
-				background:url(/images/j-wx-code-title.png) center center no-repeat;
-				-webkit-animation: moveYun 15s infinite linear both;
-				   -moz-animation: moveYun 15s infinite linear both;
-				     -o-animation: moveYun 15s infinite linear both;
-				        animation: moveYun 15s infinite linear both;
-			}
-			.j-wx-code>.code-wxm{
-				text-align: center;
-				margin-bottom: -6px;
-				margin-top: -16px;
-				
-			}
-			.j-wx-code>.code-wxm>img{
-				width: 200px;
-				height: 200px;
-				margin-top: -5px;
-			}
-			.j-wx-code>.code-text{
-				font: 16px "microsoft yahei";
-				text-align: center;
-				color: #252627;
-			}
-			.j-wx-code>.code-bottom{
-				width: 470px;
-				height: 211px;
-				position: absolute;
-				bottom: -113px;
-				left: -73px;
-				background: url(/images/j-wx-code-bottom.png) 0 0 no-repeat;
-			}
-			.j-wx-code>.code-bottom>img{
-				position: absolute;
-				left: 280px;
-				top: 88px;
-				-webkit-animation: codeWxMove 10s linear both;
-				   -moz-animation: codeWxMove 10s linear both;
-				     -o-animation: codeWxMove 10s linear both;
-				        animation: codeWxMove 10s linear both;
-				-webkit-animation-fill-mode:forwards;
-				   -moz-animation-fill-mode:forwards;
-				     -o-animation-fill-mode:forwards;
-				        animation-fill-mode:forwards;
-			}
-			#keyImg{
-				width:198px;
-			}
-			#layerImg{
-				position:absolute;
-				width: 150px !important;
-			    height: 150px !important;
-			    left: 198px;
-			    top: 148px;
-			}
-			#labmodalbody .code-close{
-				width: 40px;
-			    height: 40px;
-			    position: absolute;
-			    right: 40px;
-			    top: -20px;
-			    cursor: pointer;
-			    -webkit-transition: all 1s;
-			    -o-transition: all 1s;
-			    -moz-transition: all 1s;
-			    transition: all 1s;
-			}
-			#labmodalbody .code-close:hover{
-				-webkit-transform: scale(1.2);
-				   -moz-transform: scale(1.2);
-				    -ms-transform: scale(1.2);
-				     -o-transform: scale(1.2);
-				        transform: scale(1.2);
-			}
-			.layheader{
-				position: absolute;
-			    color: #fff;
-			    left: 138px;
-			    top: 40px;
-			    line-height: 32px;
-			    font-family: 微软雅黑;
-			    font-weight: bold;
-			}
-			.layheader div:nth-child(1){
-				font-size:20px;
-			}
-			.layheader div:nth-child(2){
-				font-size:16px;
-				margin-top:10px;
-			}
-			.modal-footer{
-				text-align: center;
-			    position: absolute;
-			    bottom: 65px;
-			    left: 110px;
-			    font-size: 14px;
-			    line-height: 22px;
-			    color: #686868;
-			}
-			.modal-dialog{
-				width:500px;
-			}
-		</style>
-	</head>
-
-	<body>
-	{{include "/common/pchead.html"}}
-		<div class="modal fade" id="labModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
-		    <div class="modal-dialog">
-		        <div class="modal-content" id="labmodalcont">
-		            <div class="modal-body" id="labmodalbody">
-					<img class="code-close" src="/images/j-wx-code-close.png" alt="" onclick="labClose();">
-						<div class="layheader">
-							<div>超级搜索</div>
-							<div>按行业、金额搜索、结果可按表格显示</div>
-						</div>
-						<img src="/images/biddingSearch/labbkimg.png"/>
-						<img id="layerImg" src="/front/share/{{.T.shareid}}"/>
-					</div>
-		            <div class="modal-footer">
-		                此功能尚处在实验阶段,请扫码进入<br>剑鱼实验室,打开相应开关后,即可体验!
-		            </div>
-		        </div><!-- /.modal-content -->
-		    </div><!-- /.modal -->
-		</div>
-		<section id="searchInner">
-			<!--搜索头部 START-->
-			<div class="searchHeader">
-				<div class="w searchHeader-container">
-					<!--整体页面切换tab-->
-					<div class="control-tabBtn">
-						<a href="/jylab/supsearch/index.html">超级搜索</a>
-						<a href="#" class="on">中标企业搜索</a>
-					</div>
-					<!--搜索-->
-					<div class="searchInput clearfix">
-						<form action="/jylab/bidsearchforent/index.html" method="post" id="zbSeatchT" class="clearfix" onsubmit="return true">
-							<input class="searchname" autocomplete="off" type="search" name="keywords" id="searchinput" value="{{.T.searchvalue}}" placeholder="高速公路" />
-
-							<input type="submit" class="searchBtn" value="搜索" />
-							<!--<div class="searchSlideText">
-								<ul>
-									<li>大连<i>万达集团</i>股份有限公司北京投资管理分公司</li>
-									<li>滁州市<i>万达集团</i>公司</li>
-									<li>大连<i>万达集团</i>股份有限公司天津共享服务分公司</li>
-									<li>大连<i>万达集团</i>股份有限公司北京投资管理分公司</li>
-									<li>大连<i>万达集团</i>股份有限公司北京投资管理分公司</li>
-									<li>滁州市<i>万达集团</i>公司</li>
-									<li>大连<i>万达集团</i>股份有限公司天津共享服务分公司</li>
-									<li>大连<i>万达集团</i>股份有限公司北京投资管理分公司</li>
-									<li>大连<i>万达集团</i>股份有限公司北京投资管理分公司</li>
-									<li>滁州市<i>万达集团</i>公司</li>
-									<li>大连<i>万达集团</i>股份有限公司天津共享服务分公司</li>
-									<li>大连<i>万达集团</i>股份有限公司北京投资管理分公司</li>
-								</ul>
-							</div>-->
-							<input type="hidden" name="searchvalue" value="{{.T.searchvalue}}">
-							<input type="hidden" name="area" value="{{.T.area}}">
-							<input type="hidden" name="minprice" value="{{.T.minprice}}">
-							<input type="hidden" name="maxprice" value="{{.T.maxprice}}">
-							<input type="hidden" name="pricetype" value="{{.T.pricetype}}">
-						</form>
-						<!--筛选-->
-						<div id="screenBtn" class="screen up">
-							筛选
-						</div>
-						<!--开启超级搜索 -->
-						<div class="superSearch">
-							开启超级搜索
-						</div>
-						<!--二维码-->
-						<div class="search-right-wx">
-							<img src="/images/biddingSearch/sea-right-wx.png" />
-							<div class="search-right-wx-inner">
-								<div class="wx-inner-title">
-									扫码关注剑鱼招标订阅
-								</div>
-								<div class="wx-inner-ewm">
-									<img  id="keyImg" src="/front/share/{{.T.shareid}}"/>
-								</div>
-								<div class="wx-inner-bottom">
-									微信扫一扫<br>随时随地掌握招标信息
-		<!--						微信扫一扫,及时获取及时获取<i>"1"</i>相关招标信息-->
-								</div>
-							</div>
-						</div>
-					</div>
+    <head>
+	<title>{{Msg "seo" "qfw.swordfishsl.title"}}</title>
+	<meta http-equiv="X-UA-Compatible" content="IE=edge,Chrome=1" />
+	<meta name="Keywords" content="{{Msg "seo" "qfw.swordfishsl.key"}}"/>
+	<meta name="Description" content="{{Msg "seo" "qfw.swordfishsl.description"}}"/>
+	<meta name="renderer" content="webkit">
+	<meta content="telephone=no" name="format-detection"/>
+	{{include "/common/pnc.html"}}
+	<link href="/css/pc.css?v={{Msg "seo" "version"}}" rel="stylesheet">
+	<link href="/css/dev2/reset_pc.css?v={{Msg "seo" "version"}}" rel="stylesheet">
+	<link href="/css/dev2/biddingSearch.css?v={{Msg "seo" "version"}}" rel="stylesheet">
+	<link href="/css/dev2/superSearch.css?v={{Msg "seo" "version"}}" rel="stylesheet">
+	<script src="/js/jquery.cookie.js"></script>
+	<script src="/js/biddingSearch.js?v={{Msg "seo" "version"}}"></script>
+    <script language="javascript" type="text/javascript" src="/My97DatePicker/WdatePicker.js"></script>
+	        
+	<style type="text/css">
+	a{
+		text-decoration: none !important;
+	}
+
+	/*j-wx-code Start*/
+	.j-wx-code{
+		width: 335px;
+		height: 355px;
+		background-color: #fff;
+		-webkit-border-radius: 6px;
+		-moz-border-radius: 6px;
+		border-radius: 6px;
+		position: relative;
+		/*margin: 100px auto;*/
+	}
+	.j-wx-code>.code-close{
+		width: 40px;
+		height: 40px;
+		position: absolute;
+		right: -20px;
+		top: -20px;
+		cursor: pointer;
+		-webkit-transition: all 1s;
+		-o-transition: all 1s;
+		-moz-transition: all 1s;
+		transition: all 1s;
+	}
+	.j-wx-code>.code-close:hover{
+		-webkit-transform: scale(1.2);
+		-moz-transform: scale(1.2);
+		-ms-transform: scale(1.2);
+		-o-transform: scale(1.2);
+		transform: scale(1.2);
+	}
+	.j-wx-code>.code-title{
+		height: 82px;
+		background:url(/images/j-wx-code-title.png) center center no-repeat;
+		-webkit-animation: moveYun 15s infinite linear both;
+		-moz-animation: moveYun 15s infinite linear both;
+		-o-animation: moveYun 15s infinite linear both;
+		animation: moveYun 15s infinite linear both;
+	}
+	.j-wx-code>.code-wxm{
+		text-align: center;
+		margin-bottom: -6px;
+		margin-top: -16px;
+
+	}
+	.j-wx-code>.code-wxm>img{
+		width: 200px;
+		height: 200px;
+		margin-top: -5px;
+	}
+	.j-wx-code>.code-text{
+		font: 16px "microsoft yahei";
+		text-align: center;
+		color: #252627;
+	}
+	.j-wx-code>.code-bottom{
+		width: 470px;
+		height: 211px;
+		position: absolute;
+		bottom: -113px;
+		left: -73px;
+		background: url(/images/j-wx-code-bottom.png) 0 0 no-repeat;
+	}
+	.j-wx-code>.code-bottom>img{
+		position: absolute;
+		left: 280px;
+		top: 88px;
+		-webkit-animation: codeWxMove 10s linear both;
+		-moz-animation: codeWxMove 10s linear both;
+		-o-animation: codeWxMove 10s linear both;
+		animation: codeWxMove 10s linear both;
+		-webkit-animation-fill-mode:forwards;
+		-moz-animation-fill-mode:forwards;
+		-o-animation-fill-mode:forwards;
+		animation-fill-mode:forwards;
+	}
+	#keyImg{
+		width:198px;
+	}
+	#layerImg{
+		position:absolute;
+		width: 150px !important;
+		height: 150px !important;
+		left: 198px;
+		top: 148px;
+	}
+	#labmodalbody .code-close{
+		width: 40px;
+		height: 40px;
+		position: absolute;
+		right: 40px;
+		top: -20px;
+		cursor: pointer;
+		-webkit-transition: all 1s;
+		-o-transition: all 1s;
+		-moz-transition: all 1s;
+		transition: all 1s;
+	}
+	#labmodalbody .code-close:hover{
+		-webkit-transform: scale(1.2);
+		-moz-transform: scale(1.2);
+		-ms-transform: scale(1.2);
+		-o-transform: scale(1.2);
+		transform: scale(1.2);
+	}
+	.layheader{
+		position: absolute;
+		color: #fff;
+		left: 138px;
+		top: 40px;
+		line-height: 32px;
+		font-family: 微软雅黑;
+		font-weight: bold;
+	}
+	.layheader div:nth-child(1){
+		font-size:20px;
+	}
+	.layheader div:nth-child(2){
+		font-size:16px;
+		margin-top:10px;
+	}
+	.modal-footer{
+		text-align: center;
+		position: absolute;
+		bottom: 65px;
+		left: 110px;
+		font-size: 14px;
+		line-height: 22px;
+		color: #686868;
+	}
+	.modal-dialog{
+		width:500px;
+	}
+</style>
+	    </head>
+
+    <body>
+    {{include "/common/pchead.html"}}
+        <div class="modal fade" id="labModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
+	<div class="modal-dialog">
+		<div class="modal-content" id="labmodalcont">
+			<div class="modal-body" id="labmodalbody">
+				<img class="code-close" src="/images/j-wx-code-close.png" alt="" onclick="labClose();">
+				<div class="layheader">
+					<div>超级搜索</div>
+					<div>按行业、金额搜索、结果可按表格显示</div>
 				</div>
+				<img src="/images/biddingSearch/labbkimg.png"/>
+				<img id="layerImg" src="/front/share/{{.T.shareid}}"/>
 			</div>
-			<!--搜索头部 END-->
-
-			<!--招标搜索页面 START-->
-			<div class="searchControl">
-				<!--头部功能-->
-				<div class="searchTender w" style="display:none;">
-					<!--价格区间-->
-					<div class="Price clearfix">
-						<div class="leftTitle">
-							价格区间:
-						</div>
-						<div class="Price-content clearfix">
-							<span class="active">全部</span>
-							<div class="pricefat">
-								<div class="PriceInput">
-									<input type="text" name="minprice" id="minprice" value="{{.T.minprice}}" placeholder="最低价              万元" />
-									<span></span>
-									<input type="text" name="maxprice" id="maxprice" value="{{.T.maxprice}}" placeholder="最高价              万元" />
-								</div>
-								<button class="pricebut" style="display:none;">确定</button>
-							</div>
+			<div class="modal-footer">
+				此功能尚处在实验阶段,请扫码进入<br>剑鱼实验室,打开相应开关后,即可体验!
+			</div>
+		</div><!-- /.modal-content -->
+	</div><!-- /.modal -->
+</div>
+<section id="searchInner">
+	<!--搜索头部 START-->
+	<div class="searchHeader">
+		<div class="w searchHeader-container">
+			<!--整体页面切换tab-->
+			<div class="control-tabBtn">
+				<a href="/jylab/supsearch/index.html">超级搜索</a>
+				<a href="#" class="on">中标企业搜索</a>
+			</div>
+			<!--搜索-->
+			<div class="searchInput clearfix">
+				<form action="/jylab/bidsearchforent/index.html" method="post" id="zbSeatchT" class="clearfix" onsubmit="return true">
+					<input class="searchname" autocomplete="off" type="search" name="keywords" id="searchinput" value="{{.T.searchvalue}}" placeholder="高速公路" />
+
+					<input type="submit" class="searchBtn" value="搜索" />
+					<!--<div class="searchSlideText">
+                        <ul>
+                            <li>大连<i>万达集团</i>股份有限公司北京投资管理分公司</li>
+                            <li>滁州市<i>万达集团</i>公司</li>
+                            <li>大连<i>万达集团</i>股份有限公司天津共享服务分公司</li>
+                            <li>大连<i>万达集团</i>股份有限公司北京投资管理分公司</li>
+                            <li>大连<i>万达集团</i>股份有限公司北京投资管理分公司</li>
+                            <li>滁州市<i>万达集团</i>公司</li>
+                            <li>大连<i>万达集团</i>股份有限公司天津共享服务分公司</li>
+                            <li>大连<i>万达集团</i>股份有限公司北京投资管理分公司</li>
+                            <li>大连<i>万达集团</i>股份有限公司北京投资管理分公司</li>
+                            <li>滁州市<i>万达集团</i>公司</li>
+                            <li>大连<i>万达集团</i>股份有限公司天津共享服务分公司</li>
+                            <li>大连<i>万达集团</i>股份有限公司北京投资管理分公司</li>
+                        </ul>
+                    </div>-->
+					<input type="hidden" name="searchvalue" value="{{.T.searchvalue}}">
+					<input type="hidden" name="area" value="{{.T.area}}">
+					<input type="hidden" name="minprice" value="{{.T.minprice}}">
+					<input type="hidden" name="maxprice" value="{{.T.maxprice}}">
+					<input type="hidden" name="pricetype" value="{{.T.pricetype}}">
+				</form>
+				<!--筛选-->
+				<div id="screenBtn" class="screen up">
+					筛选
+				</div>
+				<!--开启超级搜索 -->
+				<div class="superSearch">
+					开启超级搜索
+				</div>
+				<!--二维码-->
+				<div class="search-right-wx">
+					<img src="/images/biddingSearch/sea-right-wx.png" />
+					<div class="search-right-wx-inner">
+						<div class="wx-inner-title">
+							扫码关注剑鱼招标订阅
 						</div>
-					</div>
-					<!--项目地区-->
-					<div class="region clearfix" style="border: none;">
-						<div class="leftTitle">
-							项目地区:
+						<div class="wx-inner-ewm">
+							<img  id="keyImg" src="/front/share/{{.T.shareid}}"/>
 						</div>
-						<div class="region-content">
-							<span id="regionBtn" class="active">全国</span>
-							<i class="diver"></i>
-							<font class="parent-node">华北地区</font>
-							<font>北京</font>
-							<font>天津</font>
-							<font>河北</font>
-							<font>山西</font>
-							<font>内蒙古</font>
-							<i class="diver"></i>
-							<font class="parent-node">东北地区</font>
-							<font>辽宁</font>
-							<font>吉林</font>
-							<font>黑龙江</font>
-							<i class="diver"></i>
-							<font class="parent-node">华东地区</font>
-							<font>上海</font>
-							<font>江苏</font>
-							<font>浙江</font>
-							<font>安徽</font>
-							<font>福建</font>
-							<font>江西</font>
-							<font>山东</font>
-							<i class="diver"></i>
-							<font class="parent-node">华南地区</font>
-							<font>广东</font>
-							<font>广西</font>
-							<font>海南</font>
-							<i class="diver"></i>
-							<font class="parent-node">华中地区</font>
-							<font>河南</font>
-							<font>湖北</font>
-							<font>湖南</font>
-							<i class="diver"></i>
-							<font class="parent-node">西南地区</font>
-							<font>重庆</font>
-							<font>四川</font>
-							<font>贵州</font>
-							<font>云南</font>
-							<font>西藏</font>
-							<i class="diver"></i>
-							<font class="parent-node">西北地区</font>
-							<font>陕西</font>
-							<font>甘肃</font>
-							<font>青海</font>
-							<font>宁夏</font>
-							<font>新疆</font>
+						<div class="wx-inner-bottom">
+							微信扫一扫<br>随时随地掌握招标信息
+							<!--						微信扫一扫,及时获取及时获取<i>"1"</i>相关招标信息-->
 						</div>
 					</div>
 				</div>
-				<!--招标搜索列表内容-->
-				<div class="seaTender-inner w">
-					<!--招标tab切换-->
-					<div class="tabTitle clearfix">
-						<ul>
-							<li>
-								<a class="active" href="javascript:;">最新招标信息</a>
-							</li>
-						</ul>
-						<div class="right-tabBtn">
-							<button id="listBtn" class="active">列表</button>
-							<button id="tableBtn">表格</button>
+			</div>
+		</div>
+	</div>
+	<!--搜索头部 END-->
+
+	<!--招标搜索页面 START-->
+	<div class="searchControl">
+		<!--头部功能-->
+		<div class="searchTender w" style="display:none;">
+			<!--价格区间-->
+			<div class="Price clearfix">
+				<div class="leftTitle">
+					价格区间:
+				</div>
+				<div class="Price-content clearfix">
+					<span class="active">全部</span>
+					<div class="pricefat">
+						<div class="PriceInput">
+							<input type="text" name="minprice" id="minprice" value="{{.T.minprice}}" placeholder="最低价              万元" />
+							<span></span>
+							<input type="text" name="maxprice" id="maxprice" value="{{.T.maxprice}}" placeholder="最高价              万元" />
 						</div>
+						<button class="pricebut" style="display:none;">确定</button>
 					</div>
-					<!--tab切换内容-->
-					<div class="tabContainer">
-						<!--全文搜索 列表-->
-						<div class="lucene">
-							<ul>
-								{{range $k,$v:= .T.list}}
-								<li>
-									<div class="liLuceneList">
-										<div class="luce-left">
-											<div class="left-title">
-												<a href="/article/content/{{$v._id}}.html"> <em>{{$v.k}}</em>{{$v.projectname}}</a>
-											</div>
-										</div>
-										<div class="luce-right">
-											<a href="#">{{$v.area}}</a>
-											<a href="#">{{$v.bidtype}}</a>
-											<!--<a href="#">{{$v.industry}}</a>-->
-											<span>{{$v.time1}}</span>
-										</div>
+				</div>
+			</div>
+			<!--项目地区-->
+			<div class="region clearfix" style="border: none;">
+				<div class="leftTitle">
+					项目地区:
+				</div>
+				<div class="region-content">
+					<span id="regionBtn" class="active">全国</span>
+					<i class="diver"></i>
+					<font class="parent-node">华北地区</font>
+					<font>北京</font>
+					<font>天津</font>
+					<font>河北</font>
+					<font>山西</font>
+					<font>内蒙古</font>
+					<i class="diver"></i>
+					<font class="parent-node">东北地区</font>
+					<font>辽宁</font>
+					<font>吉林</font>
+					<font>黑龙江</font>
+					<i class="diver"></i>
+					<font class="parent-node">华东地区</font>
+					<font>上海</font>
+					<font>江苏</font>
+					<font>浙江</font>
+					<font>安徽</font>
+					<font>福建</font>
+					<font>江西</font>
+					<font>山东</font>
+					<i class="diver"></i>
+					<font class="parent-node">华南地区</font>
+					<font>广东</font>
+					<font>广西</font>
+					<font>海南</font>
+					<i class="diver"></i>
+					<font class="parent-node">华中地区</font>
+					<font>河南</font>
+					<font>湖北</font>
+					<font>湖南</font>
+					<i class="diver"></i>
+					<font class="parent-node">西南地区</font>
+					<font>重庆</font>
+					<font>四川</font>
+					<font>贵州</font>
+					<font>云南</font>
+					<font>西藏</font>
+					<i class="diver"></i>
+					<font class="parent-node">西北地区</font>
+					<font>陕西</font>
+					<font>甘肃</font>
+					<font>青海</font>
+					<font>宁夏</font>
+					<font>新疆</font>
+				</div>
+			</div>
+		</div>
+		<!--招标搜索列表内容-->
+		<div class="seaTender-inner w">
+			<!--招标tab切换-->
+			<div class="tabTitle clearfix">
+				<ul>
+					<li>
+						<a class="active" href="javascript:;">最新招标信息</a>
+					</li>
+				</ul>
+				<div class="right-tabBtn">
+					<button id="listBtn" class="active">列表</button>
+					<button id="tableBtn">表格</button>
+				</div>
+			</div>
+			<!--tab切换内容-->
+			<div class="tabContainer">
+				<!--全文搜索 列表-->
+				<div class="lucene">
+					<ul>
+						{{range $k,$v:= .T.list}}
+						<li>
+							<div class="liLuceneList">
+								<div class="luce-left">
+									<div class="left-title">
+										<a href="/article/content/{{$v._id}}.html"> <em>{{$v.k}}</em>{{$v.projectname}}</a>
 									</div>
-								</li>
-								{{end}}
-							</ul>
-						</div>
-						<!--全文搜索 表格-->
-						<div class="lucene-table" style="display: none;">
-							<table>
-								<thead>
-									<tr>
-										<td>序号</td>
-										<td width="150">中标日期</td>
-										<td width="830">项目名称</td>
-										<td>中标金额(万元)</td>
-									</tr>
-								</thead>
-								<tbody>
-								{{range $k,$v:= .T.list}}
-									<tr>
-										<td>{{$v.k}}</td>
-										<td>{{$v.time2}} </td>
-										<td class="tt-l"><a href="/article/content/{{$v._id}}.html">{{$v.projectname}}</a></td>
-										<td class="tt-r">{{$v.bidamount}}</td>
-									</tr>
-								{{end}}
-								</tbody>
-							</table>
-						</div>
-					</div>
-					<div class="hasNoData" style="display: none;">
-						<img src="/images/pc_12.png" id="hasNoData">
-					</div>
+								</div>
+								<div class="luce-right">
+									<a href="#">{{$v.area}}</a>
+									<a href="#">{{$v.bidtype}}</a>
+									<!--<a href="#">{{$v.industry}}</a>-->
+									<span>{{$v.time1}}</span>
+								</div>
+							</div>
+						</li>
+						{{end}}
+					</ul>
 				</div>
-				<!--分页-->
-				<div class="pagination clearfix w">
-					<div class="pagination-inner fr">
-						<a class="nbprev disabled" href="#"><i><</i>上一页</a>
-						<span>1</span>
-						<a class="nbnext" href="#">下一页<i>></i></a>
-					</div>
+				<!--全文搜索 表格-->
+				<div class="lucene-table" style="display: none;">
+					<table>
+						<thead>
+						<tr>
+							<td>序号</td>
+							<td width="150">中标日期</td>
+							<td width="830">项目名称</td>
+							<td>中标金额(万元)</td>
+						</tr>
+						</thead>
+						<tbody class="formTable">
+						{{range $k,$v:= .T.list}}
+						<tr>
+							<td>{{$v.k}}</td>
+							<td>{{$v.time2}} </td>
+							<td class="tt-l"><a href="/article/content/{{$v._id}}.html">{{$v.projectname}}</a></td>
+							<td class="tt-r">{{$v.bidamount}}</td>
+						</tr>
+						{{end}}
+						</tbody>
+					</table>
 				</div>
 			</div>
-			<!--招标搜索页面 END-->
-		</section>
-
-	{{include "/common/pcbottom.html"}}
-	{{include "/common/baiducc.html"}}
-	<script>
-		var mainList = {{.T.list}};
-		var submitflag = true;
-		var pricetype = "";
-		var areas = {{.T.area}};
-		var searchvalue = {{.T.searchvalue}};
-		
-		$(function(){
-			haslogin({{.T.logid}});
-			$(".j-nav .j-nav-link:eq(2)").addClass("active");
-			$(window).scroll(function(){
-				if($(this).scrollTop() > 0){
-				$("#backTop").show();
-				}else{
-					$("#backTop").hide();
-				}
-			});
-			
-			//查询数据不存在判断
-			if(mainList == null || mainList.length == 0){
-				$(".tabContainer").hide();
-				$(".pagination").hide();
-				$(".hasNoData").show();
-			}else{
-				$(".tabContainer").show();
-				$(".pagination").show();
-				$(".hasNoData").hide();
-			}
-			//地区回显样式设置
-			if(areas != ""){
-				$("#regionBtn").removeClass("active");
-				areas = areas.split(",");
-				for(var i=0;i<areas.length;i++){
-					$(".region-content>font:not('.parent-node')").each(function(){
-						if($(this).text() == areas[i]){
-							$(this).addClass("active");
-							return false;
-						}
-					});
-				}
-			}
-			$(".region-content .parent-node").each(function(){
-				var fontLen = $(this).nextUntil(".parent-node").filter("font").length;
-				var activeLen = $(this).nextUntil(".parent-node").filter(".active").length;
-				if(fontLen == activeLen){
-					$(this).addClass("active");
-				}
-				if(activeLen >0 && activeLen < fontLen){
-					$(this).addClass("secondActice");
-				}
-			});
-			
-			//搜索关键词回显页面样式设置
-			if(searchvalue != "" && searchvalue != null){
-				$(".seaTender-inner").css({'border':'0px'});
-				$(".lucene-table").css({'padding':'0px','border-bottom':'0px','display':'block'});		
-				$(".tabTitle").addClass("hidden");
-				$(".lucene").attr("style","display:none");
-			}
-			
-			//价格回显样式设置
-			if({{.T.pricetype}} == "y"){
-				$(".Price-content").find("span:first-child").removeClass("active");
-				$(".pricefat").addClass("active");
-			}
-				
-			
-			//筛选关闭和打开
-			//根据cookie值设置筛选是否显示
-			var rsw = localStorage.getItem("entstore");
-			if(rsw == null){
-				setTimeout(function(){
-					$(".searchTender").stop(false,true).slideDown(1000);
-					localStorage.setItem("entstore", "D");
-				},500);
-			}else{
-				if(rsw=="U"){
-					$("#screenBtn").addClass("down");
-					$(".searchTender").hide();
-				}else{
-					$("#screenBtn").removeClass("down");
-					$(".searchTender").show();
-				}
-			}
-				
-			//记录用户刷选按钮状态
-			$("#screenBtn").click(function(){
-				if($(this).attr("class").indexOf("down")>0){
-					localStorage.setItem("entstore", "U");
-				}else{
-					localStorage.setItem("entstore", "D");
-				}
-			})
-					
-			//价格
-			$("#minprice").click(function(){
-				$(".pricebut").show();
-				$(".pricefat").addClass("customtime-active");
-			})
-			$("#maxprice").click(function(){
-				$(".pricebut").show();
-				$(".pricefat").addClass("customtime-active");
-			})
-			//价格的全部按钮
-			$(".Price-content").find("span:first-child").click(function(){
-				$(this).addClass("active");
-				$(".pricefat").removeClass("active");
-				pricetype = "n"
-				$("#zbSeatchT input[name='pricetype']").val(pricetype);
-				beforeSubmit();
-			})
-			//价格的确定按钮
-			$(".pricebut").click(function(){
-				var minp = $("#minprice").val();
-				var maxp = $("#maxprice").val();
-				if (minp==""||maxp==""){
-					return false;
-				}
-				if (minp>maxp){
-					$("#minprice").val(maxp);
-					$("#maxprice").val(minp);
-				}
-				$(this).hide();
-				$(".pricefat").addClass("active");
-				$(".Price-content").find("span:first-child").removeClass("active");
-				$(".pricefat").removeClass("customtime-active");
-				pricetype = "y";
-				$("#zbSeatchT input[name='pricetype']").val(pricetype);
-				beforeSubmit();
-			})	
-			
-			//搜索按钮
-			$(".searchBtn").click(function(){
-				var searchname = $("#zbSeatchT input[name='keywords']").val();
-				$("#zbSeatchT input[name='searchvalue']").val($.trim(searchname));
-				$("#zbSeatchT").submit();
-			})	
-			
-			//点击超级搜索按钮
-			$(".superSearch").click(function(){
-				$("#labModal").modal("show");
-			})	
+			<div class="hasNoData" style="display: none;">
+				<img src="/images/pc_12.png" id="hasNoData">
+			</div>
+		</div>
+		<!--分页-->
+		<div class="pagination clearfix w">
+			<div class="pagination-inner fr">
+				<a class="nbprev disabled" href="#"><i><</i>上一页</a>
+				<span>1</span>
+				<a class="nbnext" href="#">下一页<i>></i></a>
+			</div>
+		</div>
+	</div>
+	<!--招标搜索页面 END-->
+</section>
+
+    {{include "/common/pcbottom.html"}}
+    {{include "/common/baiducc.html"}}
+
+    <script>
+    $(function () {
+        $("#searchinput").on("input propertychange",function(){
+            var searchInput = $("#searchinput").val();
+            if(searchInput.length > 0){
+                getRecList(searchInput);
+            }else{
+                $(".searchSlideText").hide();
+            }
         });
-		
-		function beforeSubmit(){			
-			//地区
-			var selectAreas = "";
-			$(".region-content .active:not(.parent-node)").each(function(){
-				var thisText = $(this).text();
-				if(thisText != "全国"){
-					if(selectAreas != ""){
-						selectAreas += ",";
-					}
-					selectAreas += thisText;
-				}
-			});
-			$("#zbSeatchT [name='area']").val(selectAreas);
-			
-			//价格
-			var selectMinPrices = $(".PriceInput [name='minprice']").val();
-			var selectMaxPrices =  $(".PriceInput [name='maxprice']").val();
-			$("#zbSeatchT [name='minprice']").val(selectMinPrices);
-			$("#zbSeatchT [name='maxprice']").val(selectMaxPrices);
-			
-			//搜索关键词
-			var searchname = $("#zbSeatchT input[name='keywords']").val();
-			$("#zbSeatchT input[name='searchvalue']").val($.trim(searchname))
-			if(submitflag){	
-				if($.trim(searchname) != ""){
-					getTableInfo();
-				}else{
-					$(".tabTitle").removeClass("hidden");
-					$(".lucene").attr("style","display:block");
-					$(".lucene-table").attr("style","display:none");
-					searchOnsubmit();
-				}
-				submitflag=false;
-			}	
-			setTimeout(function(){
-				submitflag=true
-			},200);
-			return true
-		}
-	
-		function getTableInfo(){
-			$(".seaTender-inner").css({'border':'0px'});
-			$(".lucene-table").css({'padding':'0px','border-bottom':'0px','display':'block'});		
-			$(".tabTitle").addClass("hidden");
-			$(".lucene").attr("style","display:none");
-			searchOnsubmit();
-		}
 
-		function searchOnsubmit(){
-			var param = {
-						searchvalue: $("#zbSeatchT [name='searchvalue']").val(),
-						area: $("#zbSeatchT [name='area']").val(),
-						minprice: $("#zbSeatchT [name='minprice']").val(),
-						maxprice: $("#zbSeatchT [name='maxprice']").val(),
-						pricetype: $("#zbSeatchT [name='pricetype']").val()
-					};
-			$.post("/jylab/pcSearchZbqyAjax",param,function(r){
-				
-			});
-		}
+        //隐藏企业推荐列表
+        $("body").on("click",function (e) {
+            if(e.target.id != "searchinput") {
+                $(".searchSlideText").hide();
+            }
+        });
+    });
+
+    //企业推荐列表
+    function getRecList(entName_key) {
+        $(".searchSlideText ul").html("");
+        $.post("/jylab/bidsearchforent/recList",{entName:entName_key},function(r){
+            if(r){
+                if(typeof (r.recList)!="undefined"){
+                    var recList = r.recList;
+                    for(var i=0;i<recList.length;i++){
+                        var entName = recList[i].name;
+                        if(entName!="" && entName.length>36){
+                            entName = entName.substr(0,36)+"...";
+                        }
+                        var obj=$("<li>"+entName.replace(entName_key,"<i>"+entName_key+"</i>")+"</li>");
+                        $(".searchSlideText ul").append(obj);
+                    }
+                }
+            }
+            if($(".searchSlideText ul li").length>=10){
+                $(".searchSlideText").css("height","400px");
+            }else{
+                $(".searchSlideText").css("height","auto");
+            }
+            $(".searchSlideText").show();
+
+            //down选中
+            /*
+            var liArr = $(".searchSlideText ul li");
+            var index = -1;
+            document.onkeydown = function(event){
+                if(event.keyCode===40){
+                    index++;
+                    if(index > liArr.length-1){
+                        index = 0
+                    };
+                    for(var i=0;i<liArr.length;i++){
+                        liArr[i].style.backgroundColor = null;
+                    };
+                    liArr[index].style.backgroundColor = "#f4f4f7";
+                    $("#searchinput").val(liArr[index].innerText);
+                };
+            }*/
+
+            $(".searchSlideText ul li").click(function(){
+                if($(this).text()!=""){
+                    $("#searchinput").val($(this).text());
+                    $(".searchSlideText").hide();
+                    $(".searchBtn").click();
+                }
+            });
+        });
+    }
+</script>
+
+    <script>
+    var mainList = {{.T.list}};
+    var submitflag = true;
+    var pricetype = "";
+    var areas = {{.T.area}};
+    var searchvalue = {{.T.searchvalue}};
+
+    $(function(){
+        haslogin({{.T.logid}});
+        $(".j-nav .j-nav-link:eq(2)").addClass("active");
+        $(window).scroll(function(){
+            if($(this).scrollTop() > 0){
+                $("#backTop").show();
+            }else{
+                $("#backTop").hide();
+            }
+        });
+
+        //查询数据不存在判断
+        if(mainList == null || mainList.length == 0){
+            $(".tabContainer").hide();
+            $(".pagination").hide();
+            $(".hasNoData").show();
+        }else{
+            $(".tabContainer").show();
+            $(".pagination").show();
+            $(".hasNoData").hide();
+        }
+        //地区回显样式设置
+        if(areas != ""){
+            $("#regionBtn").removeClass("active");
+            areas = areas.split(",");
+            for(var i=0;i<areas.length;i++){
+                $(".region-content>font:not('.parent-node')").each(function(){
+                    if($(this).text() == areas[i]){
+                        $(this).addClass("active");
+                        return false;
+                    }
+                });
+            }
+        }
+        $(".region-content .parent-node").each(function(){
+            var fontLen = $(this).nextUntil(".parent-node").filter("font").length;
+            var activeLen = $(this).nextUntil(".parent-node").filter(".active").length;
+            if(fontLen == activeLen){
+                $(this).addClass("active");
+            }
+            if(activeLen >0 && activeLen < fontLen){
+                $(this).addClass("secondActice");
+            }
+        });
+
+        //搜索关键词回显页面样式设置
+        if(searchvalue != "" && searchvalue != null){
+            $(".seaTender-inner").css({'border':'0px'});
+            $(".lucene-table").css({'padding':'0px','border-bottom':'0px','display':'block'});
+            $(".tabTitle").addClass("hidden");
+            $(".lucene").attr("style","display:none");
+        }
+
+        //价格回显样式设置
+        if({{.T.pricetype}} == "y"){
+            $(".Price-content").find("span:first-child").removeClass("active");
+            $(".pricefat").addClass("active");
+        }
+
+
+        //筛选关闭和打开
+        //根据cookie值设置筛选是否显示
+        var rsw = localStorage.getItem("entstore");
+        if(rsw == null){
+            setTimeout(function(){
+                $(".searchTender").stop(false,true).slideDown(1000);
+                localStorage.setItem("entstore", "D");
+            },500);
+        }else{
+            if(rsw=="U"){
+                $("#screenBtn").addClass("down");
+                $(".searchTender").hide();
+            }else{
+                $("#screenBtn").removeClass("down");
+                $(".searchTender").show();
+            }
+        }
+
+        //记录用户刷选按钮状态
+        $("#screenBtn").click(function(){
+            if($(this).attr("class").indexOf("down")>0){
+                localStorage.setItem("entstore", "U");
+            }else{
+                localStorage.setItem("entstore", "D");
+            }
+        })
+
+        //价格
+        $("#minprice").click(function(){
+            $(".pricebut").show();
+            $(".pricefat").addClass("customtime-active");
+        })
+        $("#maxprice").click(function(){
+            $(".pricebut").show();
+            $(".pricefat").addClass("customtime-active");
+        })
+        //价格的全部按钮
+        $(".Price-content").find("span:first-child").click(function(){
+            $(this).addClass("active");
+            $(".pricefat").removeClass("active");
+            pricetype = "n"
+            $("#zbSeatchT input[name='pricetype']").val(pricetype);
+            beforeSubmit();
+        })
+        //价格的确定按钮
+        $(".pricebut").click(function(){
+            var minp = $("#minprice").val();
+            var maxp = $("#maxprice").val();
+            if (minp==""||maxp==""){
+                return false;
+            }
+            if (minp>maxp){
+                $("#minprice").val(maxp);
+                $("#maxprice").val(minp);
+            }
+            $(this).hide();
+            $(".pricefat").addClass("active");
+            $(".Price-content").find("span:first-child").removeClass("active");
+            $(".pricefat").removeClass("customtime-active");
+            pricetype = "y";
+            $("#zbSeatchT input[name='pricetype']").val(pricetype);
+            beforeSubmit();
+        })
+
+        //搜索按钮
+        $(".searchBtn").click(function(){
 
-//        function noIn(p){
-//            var thisId = $(p).attr("dataId");
-//            dataId = thisId;
-//			window.open("/article/content/"+thisId+".html");
-//        }
+            var searchname = $("#zbSeatchT input[name='keywords']").val();
+            $("#zbSeatchT input[name='searchvalue']").val($.trim(searchname));
+            $("#zbSeatchT").submit();
+        })
 
-		//关闭超级搜索遮罩层
-		function labClose(){
-			$("#labModal").modal("hide");
+        //点击超级搜索按钮
+        $(".superSearch").click(function(){
+            $("#labModal").modal("show");
+        })
+    });
+
+    function beforeSubmit(){
+        //地区
+        var selectAreas = "";
+        $(".region-content .active:not(.parent-node)").each(function(){
+            var thisText = $(this).text();
+            if(thisText != "全国"){
+                if(selectAreas != ""){
+                    selectAreas += ",";
+                }
+                selectAreas += thisText;
+            }
+        });
+        $("#zbSeatchT [name='area']").val(selectAreas);
+
+        //价格
+        var selectMinPrices = $(".PriceInput [name='minprice']").val();
+        var selectMaxPrices =  $(".PriceInput [name='maxprice']").val();
+        $("#zbSeatchT [name='minprice']").val(selectMinPrices);
+        $("#zbSeatchT [name='maxprice']").val(selectMaxPrices);
+
+        //搜索关键词
+        var searchname = $("#zbSeatchT input[name='keywords']").val();
+        $("#zbSeatchT input[name='searchvalue']").val($.trim(searchname))
+        if(submitflag){
+            if($.trim(searchname) != ""){
+                getTableInfo();
+            }else{
+                $(".tabTitle").removeClass("hidden");
+                $(".lucene").attr("style","display:block");
+                $(".lucene-table").attr("style","display:none");
+                searchOnsubmit();
+            }
+            submitflag=false;
+        }
+        setTimeout(function(){
+            submitflag=true
+        },200);
+        return true
+    }
+
+    function getTableInfo(){
+        $(".seaTender-inner").css({'border':'0px'});
+        $(".lucene-table").css({'padding':'0px','border-bottom':'0px','display':'block'});
+        $(".tabTitle").addClass("hidden");
+        $(".lucene").attr("style","display:none");
+        searchOnsubmit();
+    }
+
+    function searchOnsubmit(){
+        var param = {
+            searchvalue: $("#zbSeatchT [name='searchvalue']").val(),
+            area: $("#zbSeatchT [name='area']").val(),
+            minprice: $("#zbSeatchT [name='minprice']").val(),
+            maxprice: $("#zbSeatchT [name='maxprice']").val(),
+            pricetype: $("#zbSeatchT [name='pricetype']").val()
+        };
+        $.post("/jylab/pcSearchZbqyAjax",param,function(r){
+            getSearchTable(r);
+            getFormTable(r);
+        });
+    }
+    
+    function getSearchTable(r) {
+        var listItem = "";
+        var formItem = "";
+		listItem += '<ul>';
+		for(var i=0; i<r.list.length; i++){
+            listItem += '<li><div class="liLuceneList"><div class="luce-left"><div class="left-title"><a href="/article/content/'+r.list[i]._id+'.html"><em>'+r.list[i].k+'</em>'+r.list[i].projectname+'</a></div></div><div class="luce-right"><a href="#">'+r.list[i].area+'</a><a href="#">'+r.list[i].bidtype+'</a><span>'+r.list[i].time1+'</span></div></div></li>';
+            formItem += '<tr><td>'+r.list[i].k+'</td><td>'+r.list[i].time2+'</td><td class="tt-l"><a href="/article/content/'+r.list[i]._id+'.html">'+r.list[i].projectname+'</a></td><td class="tt-r">'+r.list[i].bidamount+'</td></tr>'
 		}
-	</script>
-	</body>
+		listItem += '</ul>';
+		$(".lucene").html(listItem);
+		$(".formTable").html(formItem);
+    }
+
+    //        function noIn(p){
+    //            var thisId = $(p).attr("dataId");
+    //            dataId = thisId;
+    //            window.open("/article/content/"+thisId+".html");
+    //        }
+
+    //关闭超级搜索遮罩层
+    function labClose(){
+        $("#labModal").modal("hide");
+    }
+</script>
+    </body>
+
+</html>
 
-</html>