|
@@ -203,7 +203,7 @@ function next(){
|
|
|
}else if(currentPage==2){
|
|
|
$(".nbprev").removeClass("disabled");
|
|
|
}
|
|
|
- if($("#zbSeatchT [name='searchvalue']").val()==""&&$("#zbSeatchT [name='industry']").val()==""){
|
|
|
+ if($("#zbSeatchT [name='keywords']").val()==""&&$("#zbSeatchT [name='industry']").val()==""){
|
|
|
getNewBids(currentPage);
|
|
|
}else{
|
|
|
if($("#right-table").hasClass("active")){
|
|
@@ -227,7 +227,7 @@ function prev(){
|
|
|
}else if(currentPage<10){
|
|
|
$(".nbnext").removeClass("disabled");
|
|
|
}
|
|
|
- if($("#zbSeatchT [name='searchvalue']").val()==""&&$("#zbSeatchT [name='industry']").val()==""){
|
|
|
+ if($("#zbSeatchT [name='keywords']").val()==""&&$("#zbSeatchT [name='industry']").val()==""){
|
|
|
getNewBids(currentPage);
|
|
|
}else{
|
|
|
|
|
@@ -276,7 +276,7 @@ function getNewBiddings(){
|
|
|
var param = {
|
|
|
pageNumber: currentPage,
|
|
|
reqType: "lastNews",
|
|
|
- searchvalue: $("#zbSeatchT [name='searchvalue']").val(),
|
|
|
+ searchvalue: $("#zbSeatchT [name='keywords']").val(),
|
|
|
area: $("#zbSeatchT [name='area']").val(),
|
|
|
subtype: $("#zbSeatchT [name='subtype']").val(),
|
|
|
publishtime: $("#zbSeatchT [name='publishtime']").val(),
|
|
@@ -403,18 +403,18 @@ function appendDatas(datas,flag,isNew){
|
|
|
}
|
|
|
listHtml += '</div></li>';
|
|
|
tableHtml +='<tr onclick="noIn(this)" dataid="'+datas[i]._id+'" dataindustry="'+datas[i].industry+'" target="_blank">'
|
|
|
- +'<td><div>'+index+'</div></td>'
|
|
|
+ +'<td width="48"><div>'+index+'</div></td>'
|
|
|
if(typeof(datas[i].projectname) != "undefined" && datas[i].projectname != null && datas[i].projectname != ""){
|
|
|
datas[i].projectname = keyWordHighlight(datas[i].projectname,searchvalueArray.join("|"),"<font class='com-highlight'>$1</font>");
|
|
|
- tableHtml += '<td class="tt-l"><div>'+datas[i].projectname+'</div></td>';
|
|
|
+ tableHtml += '<td class="tt-l" width="315"><div>'+datas[i].projectname+'</div></td>';
|
|
|
}else{
|
|
|
- tableHtml += '<td class="tt-l"><div>'+datas[i].title+'</div></td>';
|
|
|
+ tableHtml += '<td class="tt-l" width="315"><div>'+datas[i].title+'</div></td>';
|
|
|
}
|
|
|
|
|
|
if(typeof(type) != "undefined" && type != null && type != ""){
|
|
|
- tableHtml += '<td><div>'+type+'公告</div></td>';
|
|
|
+ tableHtml += '<td width="84"><div>'+type+'公告</div></td>';
|
|
|
}else{
|
|
|
- tableHtml += '<td><div></div></td>';
|
|
|
+ tableHtml += '<td width="84"><div></div></td>';
|
|
|
}
|
|
|
|
|
|
if(typeof(datas[i].budget) != "undefined" && datas[i].budget != null && datas[i].budget != ""){
|
|
@@ -426,25 +426,25 @@ function appendDatas(datas,flag,isNew){
|
|
|
budget=budget.toString().substr(0,6)
|
|
|
}
|
|
|
}
|
|
|
- tableHtml += '<td class="tt-r"><div>'+budget+'</div></td>';
|
|
|
+ tableHtml += '<td class="tt-r" width="73"><div>'+budget+'</div></td>';
|
|
|
}else{
|
|
|
- tableHtml += '<td class="tt-r"><div></div></td>';
|
|
|
+ tableHtml += '<td class="tt-r" width="73"><div></div></td>';
|
|
|
}
|
|
|
if(typeof(datas[i].buyer) != "undefined" && datas[i].buyer != null && datas[i].buyer != ""){
|
|
|
- tableHtml += '<td class="tt-l"><div>'+datas[i].buyer+'</div></td>';
|
|
|
+ tableHtml += '<td class="tt-l" width="181"><div>'+datas[i].buyer+'</div></td>';
|
|
|
}else{
|
|
|
- tableHtml += '<td class="tt-l"><div></div></td>';
|
|
|
+ tableHtml += '<td class="tt-l" width="181"><div></div></td>';
|
|
|
}
|
|
|
if(typeof(datas[i].bidopentime) != "undefined" && datas[i].bidopentime != null && datas[i].bidopentime != ""){
|
|
|
var diff = formatDate(Number(datas[i].bidopentime),"l");
|
|
|
- tableHtml += '<td><div>'+diff+'</div></td>';
|
|
|
+ tableHtml += '<td width="103"><div>'+diff+'</div></td>';
|
|
|
}else{
|
|
|
- tableHtml += '<td><div></div></td>';
|
|
|
+ tableHtml += '<td width="103"><div></div></td>';
|
|
|
}
|
|
|
if(typeof(datas[i].winner) != "undefined" && datas[i].winner != null && datas[i].winner != ""){
|
|
|
- tableHtml += '<td class="tt-l"><div>'+datas[i].winner+'</div></td>';
|
|
|
+ tableHtml += '<td class="tt-l" width="174"><div>'+datas[i].winner+'</div></td>';
|
|
|
}else{
|
|
|
- tableHtml += '<td class="tt-l"><div></div></td>';
|
|
|
+ tableHtml += '<td class="tt-l" width="174"><div></div></td>';
|
|
|
}
|
|
|
if(typeof(datas[i].bidamount) != "undefined" && datas[i].bidamount != null && datas[i].bidamount != ""){
|
|
|
var bidamount = parseInt(datas[i].bidamount)/10000;
|
|
@@ -455,28 +455,28 @@ function appendDatas(datas,flag,isNew){
|
|
|
bidamount=bidamount.toString().substr(0,6);
|
|
|
}
|
|
|
}
|
|
|
- tableHtml += '<td class="tt-r"><div>'+bidamount+'</div></td>';
|
|
|
+ tableHtml += '<td class="tt-r" width="76"><div>'+bidamount+'</div></td>';
|
|
|
}else{
|
|
|
- tableHtml += '<td class="tt-r"><div></div></td>';
|
|
|
+ tableHtml += '<td class="tt-r" width="76"><div></div></td>';
|
|
|
}
|
|
|
|
|
|
if(typeof(datas[i].publishtime) != "undefined" && datas[i].publishtime != null && datas[i].publishtime != ""){
|
|
|
var diff = formatDate(Number(datas[i].publishtime),"s");
|
|
|
if(diff != null){
|
|
|
- tableHtml += '<td><div>'+diff+'</div></td>';
|
|
|
+ tableHtml += '<td width="103"><div>'+diff+'</div></td>';
|
|
|
}
|
|
|
}else{
|
|
|
- tableHtml += '<td><div></div></td>';
|
|
|
+ tableHtml += '<td width="103"><div></div></td>';
|
|
|
}
|
|
|
tableHtml+='</tr>'
|
|
|
}
|
|
|
if(!flag||selectType=="title"){
|
|
|
$(".tabContainer-2 .lucene ul").html(listHtml);
|
|
|
- $(".tabContainer-2 .lucene-table table tbody").html(tableHtml);
|
|
|
+ $(".tabContainer-2 .lucene-table>div>table tbody").html(tableHtml);
|
|
|
}else{
|
|
|
if(selectType=="all"){
|
|
|
$(".tabContainer .lucene ul").html(listHtml);
|
|
|
- $(".tabContainer .lucene-table table tbody").html(tableHtml);
|
|
|
+ $(".tabContainer .lucene-table>div>table tbody").html(tableHtml);
|
|
|
}
|
|
|
}
|
|
|
$(".tabContainer").css("min-height","");
|
|
@@ -546,11 +546,11 @@ function getInputTime(){
|
|
|
//---取VIP数据---
|
|
|
function getVIPData(){
|
|
|
var tlflag = false;
|
|
|
- if($("#zbSeatchT [name='keywords']").val()==""&&$("#zbSeatchT [name='searchvalue']").val()==""&&$("#zbSeatchT [name='industry']").val()==""){
|
|
|
+ if($("#zbSeatchT [name='keywords']").val()==""&&$("#zbSeatchT [name='keywords']").val()==""&&$("#zbSeatchT [name='industry']").val()==""){
|
|
|
return true;
|
|
|
}
|
|
|
var tabflag = false;
|
|
|
- if($("#zbSeatchT [name='searchvalue']").val()!=""){
|
|
|
+ if($("#zbSeatchT [name='keywords']").val()!=""){
|
|
|
$("#newsclass").show();
|
|
|
$("#newsnow").hide();
|
|
|
tlflag = true;
|
|
@@ -563,13 +563,13 @@ function getVIPData(){
|
|
|
$(".nbprev").addClass("disabled");
|
|
|
}
|
|
|
var reqType="bidSearch";
|
|
|
- if($("#zbSeatchT [name='searchvalue']").val()==""){
|
|
|
+ if($("#zbSeatchT [name='keywords']").val()==""){
|
|
|
reqType="lastNews";
|
|
|
}
|
|
|
var param = {
|
|
|
pageNumber: currentPage,
|
|
|
reqType: reqType,
|
|
|
- searchvalue: $("#zbSeatchT [name='searchvalue']").val(),
|
|
|
+ searchvalue: $("#zbSeatchT [name='keywords']").val(),
|
|
|
area: $("#zbSeatchT [name='area']").val(),
|
|
|
subtype: $("#zbSeatchT [name='subtype']").val(),
|
|
|
publishtime: $("#zbSeatchT [name='publishtime']").val(),
|
|
@@ -586,9 +586,7 @@ function getVIPData(){
|
|
|
data:param,
|
|
|
dataType:'json',
|
|
|
success:function(r){
|
|
|
- if(typeof(totalPage) != "undefined" && currentPage == 1){
|
|
|
- totalPage = r.totalPage;
|
|
|
- }
|
|
|
+ afterAjaxReq(r);
|
|
|
if(r&&r.list!=null&&r.list.length>0){
|
|
|
$(".tabContainer").show();
|
|
|
$(".pagination").show();
|
|
@@ -716,10 +714,10 @@ function beforeSubmit(n){
|
|
|
$("#zbSeatchT [name='maxprice']").val("");
|
|
|
}
|
|
|
//搜索关键词
|
|
|
- var searchname = $("#zbSeatchT input[name='searchvalue']").val();
|
|
|
+ var searchname = $("#zbSeatchT input[name='keywords']").val();
|
|
|
//$("#zbSeatchT input[name='searchvalue']").val($.trim(searchname));
|
|
|
|
|
|
- if($("#zbSeatchT [name='searchvalue']").val()==""&&$("#zbSeatchT [name='industry']").val()==""){//$("#zbSeatchT [name='area']").val()==""&&$("#zbSeatchT [name='publishtime']").val()==""&&$("#zbSeatchT [name='subtype']").val()==""&&$("#zbSeatchT [name='minprice']").val()==""&&$("#zbSeatchT [name='maxprice']").val()==""){
|
|
|
+ if($("#zbSeatchT [name='keywords']").val()==""&&$("#zbSeatchT [name='industry']").val()==""){//$("#zbSeatchT [name='area']").val()==""&&$("#zbSeatchT [name='publishtime']").val()==""&&$("#zbSeatchT [name='subtype']").val()==""&&$("#zbSeatchT [name='minprice']").val()==""&&$("#zbSeatchT [name='maxprice']").val()==""){
|
|
|
getNewBids(currentPage);
|
|
|
}else{
|
|
|
if(n!="F"){
|
|
@@ -757,7 +755,7 @@ function searchOnsubmit(){
|
|
|
var param = {
|
|
|
pageNumber: currentPage,
|
|
|
reqType: "bidSearch",
|
|
|
- searchvalue: $("#zbSeatchT [name='searchvalue']").val(),
|
|
|
+ searchvalue: $("#zbSeatchT [name='keywords']").val(),
|
|
|
area: $("#zbSeatchT [name='area']").val(),
|
|
|
subtype: $("#zbSeatchT [name='subtype']").val(),
|
|
|
publishtime: $("#zbSeatchT [name='publishtime']").val(),
|
|
@@ -767,9 +765,7 @@ function searchOnsubmit(){
|
|
|
industry : $("#zbSeatchT [name='industry']").val(),
|
|
|
};
|
|
|
$.post("/front/pcAjaxReq",param,function(r){
|
|
|
- if(typeof(totalPage) != "undefined" && currentPage == 1){
|
|
|
- totalPage = r.totalPage;
|
|
|
- }
|
|
|
+ afterAjaxReq(r);
|
|
|
if(r.list == null || r.list.length == 0){
|
|
|
if(currentPage>1){
|
|
|
$(".nbnext").addClass("disabled");
|
|
@@ -791,4 +787,18 @@ function searchOnsubmit(){
|
|
|
}
|
|
|
});
|
|
|
}
|
|
|
-
|
|
|
+function afterAjaxReq(r){
|
|
|
+ if(r.interceptWord != ""){
|
|
|
+ $("#intercept>span").text(r.interceptWord);
|
|
|
+ $("#intercept").removeClass("hidden");
|
|
|
+ }else{
|
|
|
+ $("#intercept").addClass("hidden");
|
|
|
+ }
|
|
|
+ $(".side-bar-bottom-font").text("“"+$.trim($(".searchname").val()).replace(/\s+/," ")+"”");
|
|
|
+ if(typeof(r.searchvalue) != "undefined"){
|
|
|
+ searchvalue = r.searchvalue;
|
|
|
+ }
|
|
|
+ if(typeof(totalPage) != "undefined" && currentPage == 1){
|
|
|
+ totalPage = r.totalPage;
|
|
|
+ }
|
|
|
+}
|