|
|
@@ -42,7 +42,11 @@ define(['jquery', "template", "Tools", "echarts", 'swiper'], function ($, templa |
|
|
|
//成交公示数据 |
|
|
|
announcementListList:[], |
|
|
|
//鉴证公告数据 |
|
|
|
attestationList:[] |
|
|
|
attestationList:[], |
|
|
|
//供应列表 |
|
|
|
supplyDemandList:[], |
|
|
|
//需求列表 |
|
|
|
supplyDemand2List:[] |
|
|
|
}, |
|
|
|
//柱状图参数 |
|
|
|
option: { |
|
|
@@ -398,7 +402,23 @@ define(['jquery', "template", "Tools", "echarts", 'swiper'], function ($, templa |
|
|
|
//console.log(data) |
|
|
|
module.data.serverApi = serverApi; |
|
|
|
var content = data.rows; |
|
|
|
module.data.landListList = content; |
|
|
|
for (let i = 0 ; i < 5 ; i++){ |
|
|
|
if (content[i]==undefined){ |
|
|
|
module.data.landListList.push({ |
|
|
|
projectShowStatus:'', |
|
|
|
projectName :'', |
|
|
|
price :'', |
|
|
|
unit :'', |
|
|
|
outName :'', |
|
|
|
signupStopTime :'', |
|
|
|
biddingStopTime :'', |
|
|
|
locationName:'', |
|
|
|
}); |
|
|
|
}else{ |
|
|
|
module.data.landListList.push(content[i]); |
|
|
|
} |
|
|
|
} |
|
|
|
// module.data.landListList = content; |
|
|
|
var landListData = template('landListData', module.data); |
|
|
|
$("#landListContent").html(landListData); |
|
|
|
} |
|
|
@@ -409,7 +429,28 @@ define(['jquery', "template", "Tools", "echarts", 'swiper'], function ($, templa |
|
|
|
//console.log(data) |
|
|
|
module.data.serverApi = serverApi; |
|
|
|
var content = data.rows; |
|
|
|
module.data.collectiveAssetsList = content; |
|
|
|
|
|
|
|
for (let i = 0 ; i < 5 ; i++){ |
|
|
|
|
|
|
|
console.log(content[i]) |
|
|
|
if (content[i]==undefined){ |
|
|
|
console.log('aaaaaaaaaa') |
|
|
|
module.data.collectiveAssetsList.push({ |
|
|
|
id :'', |
|
|
|
projectName :'', |
|
|
|
price :'', |
|
|
|
needname :'', |
|
|
|
needStartTime :'', |
|
|
|
needStopTime :'', |
|
|
|
phone:'', |
|
|
|
}); |
|
|
|
}else{ |
|
|
|
module.data.collectiveAssetsList.push(content[i]); |
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
// module.data.collectiveAssetsList = content; |
|
|
|
var collectiveAssetsData = template('collectiveAssetsData', module.data); |
|
|
|
$("#collectiveAssetsContent").html(collectiveAssetsData); |
|
|
|
} |
|
|
@@ -546,7 +587,19 @@ define(['jquery', "template", "Tools", "echarts", 'swiper'], function ($, templa |
|
|
|
if (data.code == 200) { |
|
|
|
//console.log(data) |
|
|
|
var content = data.data; |
|
|
|
module.data.supplyDemandList = content; |
|
|
|
for (let i = 0 ; i < 5 ; i++){ |
|
|
|
if (content[i]==undefined){ |
|
|
|
module.data.supplyDemandList.push({ |
|
|
|
id:'', |
|
|
|
projectName:'', |
|
|
|
logintime:'', |
|
|
|
phone:'', |
|
|
|
}); |
|
|
|
}else{ |
|
|
|
module.data.supplyDemandList.push(content[i]); |
|
|
|
} |
|
|
|
} |
|
|
|
// module.data.supplyDemandList = content; |
|
|
|
var supplyDemandData = template('supplyDemandData', module.data); |
|
|
|
$("#supply").html(supplyDemandData); |
|
|
|
} |
|
|
@@ -557,7 +610,19 @@ define(['jquery', "template", "Tools", "echarts", 'swiper'], function ($, templa |
|
|
|
if (data.code == 200) { |
|
|
|
//console.log(data) |
|
|
|
var content = data.data; |
|
|
|
module.data.supplyDemand2List = content; |
|
|
|
for (let i = 0 ; i < 5 ; i++){ |
|
|
|
if (content[i]==undefined){ |
|
|
|
module.data.supplyDemand2List.push({ |
|
|
|
id:'', |
|
|
|
projectName:'', |
|
|
|
logintime:'', |
|
|
|
phone:'', |
|
|
|
}); |
|
|
|
}else{ |
|
|
|
module.data.supplyDemand2List.push(content[i]); |
|
|
|
} |
|
|
|
} |
|
|
|
// module.data.supplyDemand2List = content; |
|
|
|
var supplyDemand2Data = template('supplyDemand2Data', module.data); |
|
|
|
$("#demand").html(supplyDemand2Data); |
|
|
|
tools.doGet(supplyDemandRecommend + '/100/5', {}, module.supplyDemandRecommend, true); |
|
|
@@ -688,6 +753,7 @@ define(['jquery', "template", "Tools", "echarts", 'swiper'], function ($, templa |
|
|
|
} |
|
|
|
|
|
|
|
goDetail = function (id) { |
|
|
|
if (!id)return; |
|
|
|
tools.skip('view/listingItems/itemsDetail.html?id='+id); |
|
|
|
} |
|
|
|
goUserInteract = function () { |
|
|
|