maxiaoshan 8 tahun lalu
induk
melakukan
f8d4824e60
2 mengubah file dengan 128 tambahan dan 43 penghapusan
  1. 26 2
      src/jfw/front/entsearch.go
  2. 102 41
      src/web/templates/pc/biddingsearch_enterprise.html

+ 26 - 2
src/jfw/front/entsearch.go

@@ -12,7 +12,7 @@ import (
 
 	"jfw/jyutil"
 	//"regexp"
-	//"strconv"
+	"strconv"
 	//"strings"
 	//"sync"
 
@@ -32,6 +32,30 @@ func init() {
 }
 
 func (e *Entsearch) Bidsearchforent() error {
+	searchvalue := e.GetString("searchvalue")
+	area := e.GetString("area")
+	minprice, _ := strconv.Atoi(e.GetString("minprice"))
+	maxprice, _ := strconv.Atoi(e.GetString("maxprice"))
+
+	fmt.Println("searchvalue==", searchvalue)
+	fmt.Println("area==", area)
+	fmt.Println("lower==", minprice)
+	fmt.Println("upper==", maxprice)
+
+	if minprice == 0 {
+		e.T["minprice"] = ""
+	} else {
+		e.T["minprice"] = minprice
+	}
+	if maxprice == 0 {
+		e.T["maxprice"] = ""
+	} else {
+		e.T["maxprice"] = maxprice
+	}
+
+	e.T["searchvalue"] = searchvalue
+	e.T["area"] = area
+
 	log.Println("-------中标企业搜索:")
 
 	list := []map[string]interface{}{}
@@ -45,7 +69,7 @@ func (e *Entsearch) Bidsearchforent() error {
 		t2 := time.Unix(util.Int64All(v["zbtime"]), 0)
 		v["time2"] = util.TimeDiff(t2)
 
-		fmt.Println(v["industry"])
+		//fmt.Println(v["industry"])
 		//for i,z := range v{
 		//	fmt.Println(i)
 		//	fmt.Println(z)

+ 102 - 41
src/web/templates/pc/biddingsearch_enterprise.html

@@ -21,6 +21,82 @@
 			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;
+			}
 		</style>
 	</head>
 
@@ -32,15 +108,15 @@
 				<div class="w searchHeader-container">
 					<!--整体页面切换tab-->
 					<div class="control-tabBtn">
-						<a href="#" class="on">超级搜索</a>
-						<a href="#">中标企业搜索</a>
+						<a href="#">超级搜索</a>
+						<a href="#" class="on">中标企业搜索</a>
 					</div>
 					<!--搜索-->
 					<div class="searchInput clearfix">
-						<form action="" method="post" id="zbSeatchT" class="clearfix" onsubmit="return true">
+						<form action="/jylab/bidsearchforent" method="post" id="zbSeatchT" class="clearfix" onsubmit="return true">
 							<input class="searchname" autocomplete="off" type="search" name="keywords" id="searchinput" value="" placeholder="高速公路" />
 
-							<input type="button" value="搜索" />
+							<input type="button" class="searchBtn" value="搜索" />
 							<!--<div class="searchSlideText">
 								<ul>
 									<li>大连<i>万达集团</i>股份有限公司北京投资管理分公司</li>
@@ -59,8 +135,9 @@
 							</div>-->
 							<input type="hidden" name="searchvalue" value="{{.T.searchvalue}}">
 							<input type="hidden" name="area" value="{{.T.area}}">
-							<input type="hidden" name="minprice" value="">
-							<input type="hidden" name="maxprice" value="">
+							<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">
@@ -92,9 +169,9 @@
 							<span class="active">全部</span>
 							<div class="pricefat">
 								<div class="PriceInput">
-									<input type="text" name="minprice" id="minprice" value="{{.T.lower}}" placeholder="最低价             万元" />
+									<input type="text" name="minprice" id="minprice" value="{{.T.minprice}}" placeholder="最低价              万元" />
 									<span></span>
-									<input type="text" name="maxprice" id="maxprice" value="{{.T.upper}}" placeholder="最高价             万元" />
+									<input type="text" name="maxprice" id="maxprice" value="{{.T.maxprice}}" placeholder="最高价              万元" />
 								</div>
 								<button class="pricebut" style="display:none;">确定</button>
 							</div>
@@ -230,34 +307,16 @@
 			</div>
 			<!--招标搜索页面 END-->
 		</section>
-		<script type="text/javascript">
-//			$(function(){
-				//价格
-//				$("#lower").click(function(){
-//					if(!$(".PriceInput").hasClass("price-active")){
-//						$(".PriceInput").addClass("price-active");
-//					}
-//				})
-//				$("#upper").click(function(){
-//					if(!$(".PriceInput").hasClass("price-active")){
-//						$(".PriceInput").addClass("price-active");
-//					}
-//				})
-//				$("#priceBtn").click(function(){
-//					var lower = $("#lower").val();
-//					var upper = $("#upper").val();	
-//				})
-				
-				
-//			)
-		</script>
 
 	{{include "/common/pcbottom.html"}}
 	{{include "/common/baiducc.html"}}
 	<script>
 		var mainList = {{.T.list}};
+		
+		
 		$(function(){
 			haslogin({{.T.logid}});
+			
 			//价格
 			$("#minprice").click(function(){
 				$(".pricebut").show();
@@ -285,15 +344,8 @@
 				$(".pricefat").addClass("active");
 				$(".Price-content").find("span:first-child").removeClass("active");
 				$(".pricefat").removeClass("customtime-active");
-			})
-			
-			
-			
-			
-//		    for(var i=0;i<mainList.length;i++){
-//		        alert(mainList[i])
-//			}
-
+				beforeSubmit();
+			})		
         });
 		function beforeSubmit(){			
 			//地区
@@ -322,9 +374,18 @@
 			return true
 		}
 //
-function searchOnsubmit(){
-	$("#zbSeatchT").submit();
-}
+		function searchOnsubmit(){
+			var param = {
+						searchvalue: $("#zbSeatchT [name='searchvalue']").val(),
+						area: $("#zbSeatchT [name='area']").val(),
+						minprice: $("#zbSeatchT [name='minprice']").val(),
+						maxprice: $("#zbSeatchT [name='maxprice']").val(),
+					};
+			
+		}
+
+
+
 	</script>
 	</body>