|
@@ -1,7 +1,7 @@
|
|
|
var pageSize = 50;
|
|
|
var nbflag = false;//是否显示的是最新招标数据
|
|
|
var currentPage = 1;
|
|
|
-var tol = "L"
|
|
|
+
|
|
|
$(function() {
|
|
|
$("#minprice").click(function(){
|
|
|
$(".pricebut").show();
|
|
@@ -70,14 +70,14 @@ $(function() {
|
|
|
},500);
|
|
|
}
|
|
|
/////////////////
|
|
|
- $(".right-tabBtn button:nth-child(1)").click(function(){
|
|
|
- tol="L"
|
|
|
- getNewBiddings(1)
|
|
|
- })
|
|
|
- $(".right-tabBtn button:nth-child(2)").click(function(){
|
|
|
- tol="T"
|
|
|
- getNewBiddings(1)
|
|
|
- })
|
|
|
+// $(".right-tabBtn button:nth-child(1)").click(function(){
|
|
|
+// tol="L"
|
|
|
+// getNewBiddings(1)
|
|
|
+// })
|
|
|
+// $(".right-tabBtn button:nth-child(2)").click(function(){
|
|
|
+// tol="T"
|
|
|
+// getNewBiddings(1)
|
|
|
+// })
|
|
|
})
|
|
|
//
|
|
|
function next(){
|
|
@@ -108,14 +108,15 @@ function getNewBiddings(page){
|
|
|
$.post("/jylab/supsearch/getNewBids",{pageNumber: page},function(data){
|
|
|
if(data&&data.list.length>0){
|
|
|
$(".pagination-inner").find("span").text(page)
|
|
|
- appendDatas(data.list,false,tol);
|
|
|
+ appendDatas(data.list,false);
|
|
|
}
|
|
|
})
|
|
|
}
|
|
|
//
|
|
|
|
|
|
-function appendDatas(datas,flag,tol){
|
|
|
- var ltHtml = '';
|
|
|
+function appendDatas(datas,flag){
|
|
|
+ var listHtml = '';
|
|
|
+ var tableHtml = '';
|
|
|
var searchvalue = '';
|
|
|
for(var i=0;i<datas.length;i++){
|
|
|
var index = (currentPage - 1) * pageSize + i + 1;
|
|
@@ -152,94 +153,91 @@ function appendDatas(datas,flag,tol){
|
|
|
$("#allnews").hide();
|
|
|
$(".tabContainer-2").show();
|
|
|
}
|
|
|
- if(tol=="L"){
|
|
|
- ltHtml += '<li>'
|
|
|
+ listHtml += '<li>'
|
|
|
+'<div class="liLuceneList">'
|
|
|
+'<div class="luce-left"><em>'+index+'.</em>'
|
|
|
+'<div class="left-title">'
|
|
|
+'<a href="'+aHref+'"> '+title+'</a>'
|
|
|
+'</div>'
|
|
|
if(flag){
|
|
|
- ltHtml += '<div class="left-content">'
|
|
|
+ listHtml += '<div class="left-content">'
|
|
|
+'<a href="'+aHref+'">'+detail+'...</a>'
|
|
|
+'</div>'
|
|
|
}
|
|
|
- ltHtml += '</div><div class="luce-right">'
|
|
|
+ listHtml += '</div><div class="luce-right">'
|
|
|
if($.trim(datas[i].area) != "" && datas[i].area != "A"){
|
|
|
- ltHtml += '<a href="/list/area/'+datas[i].areaadd+'.html">'+datas[i].area+'</a>';
|
|
|
+ listHtml += '<a href="/list/area/'+datas[i].areaadd+'.html">'+datas[i].area+'</a>';
|
|
|
}else{
|
|
|
- ltHtml += '<a href="#" style="display:none;"></a>';
|
|
|
+ listHtml += '<a href="#" style="display:none;"></a>';
|
|
|
}
|
|
|
if(typeof(type) != "undefined" && type != null && type != ""){
|
|
|
- ltHtml += '<a href="/list/stype/'+datas[i].stypeadd+'.html">'+type+'</a>';
|
|
|
+ listHtml += '<a href="/list/stype/'+datas[i].stypeadd+'.html">'+type+'</a>';
|
|
|
}else{
|
|
|
- ltHtml += '<a href="#" style="display:none;"></a>';
|
|
|
+ listHtml += '<a href="#" style="display:none;"></a>';
|
|
|
}
|
|
|
//
|
|
|
- ltHtml += '<a href="/list/stype/'+datas[i].stypeadd+'.html">建筑工程</a>';
|
|
|
+ listHtml += '<a href="/list/stype/'+datas[i].stypeadd+'.html">建筑工程</a>';
|
|
|
//
|
|
|
if(typeof(datas[i].publishtime) != "undefined" && datas[i].publishtime != null && datas[i].publishtime != ""){
|
|
|
var diff = timeDiff(new Date(Number(datas[i].publishtime+"000")));
|
|
|
if(diff != null){
|
|
|
- ltHtml += '<span class="com-time">'+diff+'</span>';
|
|
|
+ listHtml += '<span class="com-time">'+diff+'</span>';
|
|
|
}
|
|
|
}
|
|
|
- ltHtml += '</div></li>';
|
|
|
- }else{
|
|
|
- ltHtml +='<tr>'
|
|
|
+ listHtml += '</div></li>';
|
|
|
+ tableHtml +='<tr>'
|
|
|
+'<td>'+index+'</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){
|
|
|
- ltHtml += '<td>'+diff+'</td>';
|
|
|
+ tableHtml += '<td>'+diff+'</td>';
|
|
|
}
|
|
|
}else{
|
|
|
- ltHtml += '<td></td>';
|
|
|
+ tableHtml += '<td></td>';
|
|
|
}
|
|
|
if(typeof(type) != "undefined" && type != null && type != ""){
|
|
|
- ltHtml += '<td>'+type+'公告</td>';
|
|
|
+ tableHtml += '<td>'+type+'公告</td>';
|
|
|
}else{
|
|
|
- ltHtml += '<td></td>';
|
|
|
+ tableHtml += '<td></td>';
|
|
|
}
|
|
|
if(typeof(datas[i].agency) != "undefined" && datas[i].agency != null && datas[i].agency != ""){
|
|
|
- ltHtml += '<td class="tt-l">'+datas[i].agency+'</td>';
|
|
|
+ tableHtml += '<td class="tt-l">'+datas[i].agency+'</td>';
|
|
|
}else{
|
|
|
- ltHtml += '<td class="tt-l"></td>';
|
|
|
+ tableHtml += '<td class="tt-l"></td>';
|
|
|
}
|
|
|
if(typeof(datas[i].projectname) != "undefined" && datas[i].projectname != null && datas[i].projectname != ""){
|
|
|
- ltHtml += '<td class="tt-l">'+datas[i].projectname+'</td>';
|
|
|
+ tableHtml += '<td class="tt-l">'+datas[i].projectname+'</td>';
|
|
|
}else{
|
|
|
- ltHtml += '<td class="tt-l"></td>';
|
|
|
+ tableHtml += '<td class="tt-l"></td>';
|
|
|
}
|
|
|
if(typeof(datas[i].budget) != "undefined" && datas[i].budget != null && datas[i].budget != ""){
|
|
|
- ltHtml += '<td class="tt-r">'+datas[i].budget+'</td>';
|
|
|
+ var budget =parseInt(datas[i].budget)/10000
|
|
|
+
|
|
|
+ tableHtml += '<td class="tt-r">'+budget+'</td>';
|
|
|
}else{
|
|
|
- ltHtml += '<td class="tt-r"></td>';
|
|
|
+ tableHtml += '<td class="tt-r"></td>';
|
|
|
}
|
|
|
if(typeof(datas[i].bidopentime) != "undefined" && datas[i].bidopentime != null && datas[i].bidopentime != ""){
|
|
|
var diff = formatDate(Number(datas[i].publishtime),"l");
|
|
|
- ltHtml += '<td>'+datas[i].budget+'</td>';
|
|
|
+ tableHtml += '<td>'+diff+'</td>';
|
|
|
}else{
|
|
|
- ltHtml += '<td></td>';
|
|
|
+ tableHtml += '<td></td>';
|
|
|
}
|
|
|
if(typeof(datas[i].winner) != "undefined" && datas[i].winner != null && datas[i].winner != ""){
|
|
|
- ltHtml += '<td class="tt-l">'+datas[i].winner+'</td>';
|
|
|
+ tableHtml += '<td class="tt-l">'+datas[i].winner+'</td>';
|
|
|
}else{
|
|
|
- ltHtml += '<td class="tt-l"></td>';
|
|
|
+ tableHtml += '<td class="tt-l"></td>';
|
|
|
}
|
|
|
if(typeof(datas[i].bidamount) != "undefined" && datas[i].bidamount != null && datas[i].bidamount != ""){
|
|
|
- ltHtml += '<td class="tt-r">'+datas[i].bidamount+'</td>';
|
|
|
+ var bidamount = parseInt(datas[i].bidamount)/10000
|
|
|
+ tableHtml += '<td class="tt-r">'+bidamount+'</td>';
|
|
|
}else{
|
|
|
- ltHtml += '<td class="tt-r"></td>';
|
|
|
+ tableHtml += '<td class="tt-r"></td>';
|
|
|
}
|
|
|
- ltHtml+='</tr>'
|
|
|
- }
|
|
|
- }
|
|
|
- if(tol=="L"){
|
|
|
- $(".tabContainer-2 .lucene ul").html(ltHtml);
|
|
|
- }else{
|
|
|
- $(".tabContainer-2 .lucene-table table tbody").html(ltHtml);
|
|
|
+ tableHtml+='</tr>'
|
|
|
}
|
|
|
+ $(".tabContainer-2 .lucene ul").html(listHtml);
|
|
|
+ $(".tabContainer-2 .lucene-table table tbody").html(tableHtml);
|
|
|
|
|
|
backTopAdjust();
|
|
|
}
|
|
@@ -259,6 +257,12 @@ function formatDate(date,sl) {
|
|
|
var hour = myDate.getHours()
|
|
|
var min = myDate.getMinutes()
|
|
|
if(sl=="l"){
|
|
|
+ if(hour<10){
|
|
|
+ hour="0"+hour
|
|
|
+ }
|
|
|
+ if(min<10){
|
|
|
+ min="0"+min
|
|
|
+ }
|
|
|
return year+"-"+month+"-"+date+"<br>"+hour+":"+min;
|
|
|
}else{
|
|
|
return year+"-"+month+"-"+date;
|