|
@@ -283,8 +283,15 @@
|
|
|
<div class="w searchHeader-container">
|
|
|
<!--整体页面切换tab-->
|
|
|
<div class="control-tabBtn">
|
|
|
+ {{if .T.supstatus}}
|
|
|
+ {{if eq .T.supstatus "T"}}
|
|
|
+ <a class="supbtn" href="javascript:void(0)">超级搜索</a>
|
|
|
+ <span style="display:none;" class="bidbut">招标搜索</span>
|
|
|
+ {{else}}
|
|
|
<a style="display:none;" class="supbtn" href="javascript:void(0)">超级搜索</a>
|
|
|
- <span class="bidbtn">招标搜索</span>
|
|
|
+ <span class="bidbut">招标搜索</span>
|
|
|
+ {{end}}
|
|
|
+ {{end}}
|
|
|
<a href="#" class="on">中标企业搜索</a>
|
|
|
</div>
|
|
|
<!--搜索-->
|
|
@@ -305,11 +312,11 @@
|
|
|
<input type="hidden" name="pricetype" value="{{.T.pricetype}}">
|
|
|
</form>
|
|
|
<!--筛选-->
|
|
|
- <div id="screenBtn" class="screen up">
|
|
|
+ <div id="screenBtn" class="screen down">
|
|
|
筛选
|
|
|
</div>
|
|
|
<!--开启超级搜索 -->
|
|
|
- <div class="superSearch">
|
|
|
+ <div class="superSearch" {{if .T.supstatus}}{{if eq .T.supstatus "T"}} style="display:none;"{{end}}{{end}}>
|
|
|
开启超级搜索
|
|
|
</div>
|
|
|
<!--二维码-->
|
|
@@ -622,21 +629,14 @@
|
|
|
}
|
|
|
|
|
|
//筛选关闭和打开
|
|
|
- //根据cookie值设置筛选是否显示
|
|
|
+ //根据cookie值设置筛选是否显示
|
|
|
var rsw = localStorage.getItem("entstore");
|
|
|
- if(rsw == null){
|
|
|
- setTimeout(function(){
|
|
|
- $(".searchTender").stop(false,true).slideDown(1000);
|
|
|
- localStorage.setItem("entstore", "D");
|
|
|
- },500);
|
|
|
+ if(rsw=="D"){
|
|
|
+ $("#screenBtn").addClass("down");
|
|
|
+ $(".searchTender").show();
|
|
|
}else{
|
|
|
- if(rsw=="U"){
|
|
|
- $("#screenBtn").addClass("down");
|
|
|
- $(".searchTender").hide();
|
|
|
- }else{
|
|
|
- $("#screenBtn").removeClass("down");
|
|
|
- $(".searchTender").show();
|
|
|
- }
|
|
|
+ $("#screenBtn").removeClass("down");
|
|
|
+ $(".searchTender").hide();
|
|
|
}
|
|
|
|
|
|
//记录用户刷选按钮状态
|
|
@@ -672,18 +672,20 @@
|
|
|
if(info[0]){
|
|
|
var s_supstatus = localStorage.getItem("s_supstatus");
|
|
|
if(s_supstatus != "y"){
|
|
|
- //存入缓存
|
|
|
- localStorage.setItem("s_supstatus","y");
|
|
|
- //修改库中状态
|
|
|
- changeEntAndSupStatus("sup");
|
|
|
- priceCss();
|
|
|
- $(".modal-footer-welcome").text("欢迎体验剑鱼实验室—超级搜索功能。实验随时可能结束,或者进行调整,请密切关注剑鱼通知。");
|
|
|
- $("#welcome").modal("show");
|
|
|
- $("#welcome").on("shown.bs.modal", function () {
|
|
|
- setTimeout(function(){
|
|
|
- labWelClose();
|
|
|
- },5000);
|
|
|
- })
|
|
|
+ if(priceCss()){
|
|
|
+ //存入缓存
|
|
|
+ localStorage.setItem("s_supstatus","y");
|
|
|
+ //修改库中状态
|
|
|
+ changeEntAndSupStatus("sup");
|
|
|
+ priceCss();
|
|
|
+ $(".modal-footer-welcome").text("欢迎体验剑鱼实验室—超级搜索功能。实验随时可能结束,或者进行调整,请密切关注剑鱼通知。");
|
|
|
+ $("#welcome").modal("show");
|
|
|
+ $("#welcome").on("shown.bs.modal", function () {
|
|
|
+ setTimeout(function(){
|
|
|
+ labWelClose();
|
|
|
+ },5000);
|
|
|
+ })
|
|
|
+ }
|
|
|
$("#welcome").on("hidden.bs.modal", function () {
|
|
|
beforeSubmit();
|
|
|
})
|
|
@@ -704,7 +706,7 @@
|
|
|
//设置输入价格的格式
|
|
|
//
|
|
|
var reg = /^[\u4e00-\u9fa5]+$/;
|
|
|
- var minnum = "";
|
|
|
+ var minnum = {{.T.minprice}};
|
|
|
$("#minprice").on("input propertychange",function(){
|
|
|
var minp = $.trim($(this).val()).replace(/\s/g,"");
|
|
|
$(this).val(minp)
|
|
@@ -712,7 +714,7 @@
|
|
|
if((reg.test(minp)||isNaN(minp))&&minp.indexOf(".")<0){
|
|
|
$(this).val(minnum)
|
|
|
}else{
|
|
|
- minp = minp.substr(0,minp.length-1);
|
|
|
+ //minp = minp.substr(0,minp.length-1);
|
|
|
if(reg.test(minp)||isNaN(minp)){
|
|
|
$(this).val(minnum)
|
|
|
}else{
|
|
@@ -720,20 +722,23 @@
|
|
|
var offront = minp.split(".")[0];
|
|
|
var ofafter = minp.split(".")[1];
|
|
|
if(offront.length>9||ofafter.length>2){
|
|
|
- if(offront.length>9){
|
|
|
- $(this).val(offront.substr(0,9)+"."+ minnum.split(".")[1].substr(0,2))
|
|
|
- minnum = offront.substr(0,9)+"."+ minnum.split(".")[1].substr(0,2);
|
|
|
- }else{
|
|
|
- $(this).val(offront.substr(0,9)+"."+ofafter.substr(0,2))
|
|
|
- minnum = offront.substr(0,9)+"."+ofafter.substr(0,2);
|
|
|
- }
|
|
|
+ //if(offront.length>9){
|
|
|
+ $(this).val(minnum)
|
|
|
+ //}else{
|
|
|
+ // $(this).val(offront.substr(0,9)+"."+ofafter.substr(0,2))
|
|
|
+ // minnum = offront.substr(0,9)+"."+ofafter.substr(0,2);
|
|
|
+ //}
|
|
|
}else{
|
|
|
$(this).val(minp)
|
|
|
minnum = minp;
|
|
|
}
|
|
|
}else{
|
|
|
- $(this).val(minp)
|
|
|
- minnum = minp;
|
|
|
+ if(minp.length>9){
|
|
|
+ $(this).val(minnum)
|
|
|
+ }else{
|
|
|
+ $(this).val(minp)
|
|
|
+ minnum = minp;
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
}
|
|
@@ -745,7 +750,7 @@
|
|
|
})
|
|
|
|
|
|
//
|
|
|
- var maxnum = "";
|
|
|
+ var maxnum = {{.T.maxprice}};
|
|
|
$("#maxprice").on("input propertychange",function(){
|
|
|
var maxp = $.trim($(this).val()).replace(/\s/g,"");
|
|
|
$(this).val(maxp)
|
|
@@ -753,7 +758,7 @@
|
|
|
if((reg.test(maxp)||isNaN(maxp))&&maxp.indexOf(".")<0){
|
|
|
$(this).val(maxnum)
|
|
|
}else{
|
|
|
- maxp = maxp.substr(0,maxp.length-1);
|
|
|
+ //maxp = maxp.substr(0,maxp.length-1);
|
|
|
if(reg.test(maxp)||isNaN(maxp)){
|
|
|
$(this).val(maxnum)
|
|
|
}else{
|
|
@@ -761,20 +766,24 @@
|
|
|
var offront = maxp.split(".")[0];
|
|
|
var ofafter = maxp.split(".")[1];
|
|
|
if(offront.length>9||ofafter.length>2){
|
|
|
- if(offront.length>9){
|
|
|
- $(this).val(offront.substr(0,9)+"."+ maxnum.split(".")[1].substr(0,2))
|
|
|
- maxnum = offront.substr(0,9)+"."+ maxnum.split(".")[1].substr(0,2);
|
|
|
- }else{
|
|
|
- $(this).val(offront.substr(0,9)+"."+ofafter.substr(0,2))
|
|
|
- maxnum = offront.substr(0,9)+"."+ofafter.substr(0,2);
|
|
|
- }
|
|
|
+ //if(offront.length>9){
|
|
|
+ $(this).val(maxnum);
|
|
|
+ //}else{
|
|
|
+ // $(this).val(offront.substr(0,9)+"."+ofafter.substr(0,2))
|
|
|
+ // maxnum = offront.substr(0,9)+"."+ofafter.substr(0,2);
|
|
|
+ //}
|
|
|
}else{
|
|
|
$(this).val(maxp)
|
|
|
maxnum = maxp;
|
|
|
}
|
|
|
}else{
|
|
|
- $(this).val(maxp)
|
|
|
- maxnum = maxp;
|
|
|
+ if(maxp.length>9){
|
|
|
+ $(this).val(maxnum)
|
|
|
+ }else{
|
|
|
+ $(this).val(maxp)
|
|
|
+ maxnum = maxp;
|
|
|
+ }
|
|
|
+
|
|
|
}
|
|
|
|
|
|
}
|
|
@@ -896,6 +905,8 @@
|
|
|
$("#maxprice").val("")
|
|
|
}
|
|
|
if ($("#minprice").val()==""&&$("#maxprice").val()==""){
|
|
|
+ $(".pricefat").removeClass("customtime-active");
|
|
|
+ $(".pricebut").hide();
|
|
|
return false;
|
|
|
}
|
|
|
if (parseInt(minp)>parseInt(maxp)){
|
|
@@ -908,6 +919,7 @@
|
|
|
$(".pricefat").removeClass("customtime-active");
|
|
|
pricetype = "y";
|
|
|
$("#zbSeatchT input[name='pricetype']").val(pricetype);
|
|
|
+ return true;
|
|
|
}
|
|
|
|
|
|
|