@@ -21,7 +21,7 @@ define(['jquery', "template", "Tools", "announApi", "paging"], function ($, temp | |||||
module.bottomFriendsLinks = function (data) { | module.bottomFriendsLinks = function (data) { | ||||
if (data.code == 200) { | if (data.code == 200) { | ||||
var content = data.data; | var content = data.data; | ||||
console.log(content) | |||||
//console.log(content) | |||||
module.data.friendsLinksList = content; | module.data.friendsLinksList = content; | ||||
var friendsLinksData = template('friendsLinksData', module.data); | var friendsLinksData = template('friendsLinksData', module.data); | ||||
$("#friendsLinksContent").html(friendsLinksData); | $("#friendsLinksContent").html(friendsLinksData); | ||||
@@ -41,7 +41,7 @@ define(['jquery', "template", "Tools", "announApi", "paging"], function ($, temp | |||||
//项目公告数据 | //项目公告数据 | ||||
module.announInformation = function (data) { | module.announInformation = function (data) { | ||||
if (data.code == 200) { | if (data.code == 200) { | ||||
console.log(data) | |||||
//console.log(data) | |||||
var content = data.data; | var content = data.data; | ||||
module.data.announcementInformationDetail = content; | module.data.announcementInformationDetail = content; | ||||
var announcementInformationData = template('announcementInformationData', module.data); | var announcementInformationData = template('announcementInformationData', module.data); | ||||
@@ -72,7 +72,7 @@ define(['jquery', "template", "Tools", "announApi", "paging"], function ($, temp | |||||
module.transactionDictionaries = function (data) { | module.transactionDictionaries = function (data) { | ||||
if (data.code == 200) { | if (data.code == 200) { | ||||
var content = data.data; | var content = data.data; | ||||
console.log(content) | |||||
//console.log(content) | |||||
var dealType = content[(module.data.announcementInformationDetail.dealType-1)].dictLabel; | var dealType = content[(module.data.announcementInformationDetail.dealType-1)].dictLabel; | ||||
module.data.announcementInformationDetail.dealType = dealType; | module.data.announcementInformationDetail.dealType = dealType; | ||||
var announcementInformationData = template('announcementInformationData', module.data); | var announcementInformationData = template('announcementInformationData', module.data); | ||||
@@ -31,11 +31,11 @@ define(['jquery', "template", "Tools", "announApi", "paging"], function ($, temp | |||||
var type = getQueryVariable('type'); | var type = getQueryVariable('type'); | ||||
var keyWord = getQueryVariable('searchKeyWord'); | var keyWord = getQueryVariable('searchKeyWord'); | ||||
if(type != undefined && type != ''){ | if(type != undefined && type != ''){ | ||||
console.log('搜索进入') | |||||
//console.log('搜索进入') | |||||
tabList(type); | tabList(type); | ||||
tools.doGet(jzsSearch, {deptId:100, jzsNum:keyWord,pageNum:module.data.pageNum,pageSize:module.data.pageSize}, module.attestationInformation,true); | tools.doGet(jzsSearch, {deptId:100, jzsNum:keyWord,pageNum:module.data.pageNum,pageSize:module.data.pageSize}, module.attestationInformation,true); | ||||
}else{ | }else{ | ||||
console.log('正常进入') | |||||
//console.log('正常进入') | |||||
//鉴证公告 | //鉴证公告 | ||||
tools.doGet(attestationList, {deptId:100,pageNum:module.data.pageNum,pageSize:module.data.pageSize}, module.attestationInformation,true); | tools.doGet(attestationList, {deptId:100,pageNum:module.data.pageNum,pageSize:module.data.pageSize}, module.attestationInformation,true); | ||||
} | } | ||||
@@ -46,7 +46,7 @@ define(['jquery', "template", "Tools", "announApi", "paging"], function ($, temp | |||||
module.bottomFriendsLinks = function (data) { | module.bottomFriendsLinks = function (data) { | ||||
if (data.code == 200) { | if (data.code == 200) { | ||||
var content = data.data; | var content = data.data; | ||||
console.log(content) | |||||
//console.log(content) | |||||
module.data.friendsLinksList = content; | module.data.friendsLinksList = content; | ||||
var friendsLinksData = template('friendsLinksData', module.data); | var friendsLinksData = template('friendsLinksData', module.data); | ||||
$("#friendsLinksContent").html(friendsLinksData); | $("#friendsLinksContent").html(friendsLinksData); | ||||
@@ -118,7 +118,7 @@ define(['jquery', "template", "Tools", "announApi", "paging"], function ($, temp | |||||
} | } | ||||
tabList = function(type){ | tabList = function(type){ | ||||
console.log(type) | |||||
//console.log(type) | |||||
document.getElementById('attestationInformationContent').style.display = 'none'; | document.getElementById('attestationInformationContent').style.display = 'none'; | ||||
document.getElementById('announcementInformationContent').style.display = 'none'; | document.getElementById('announcementInformationContent').style.display = 'none'; | ||||
document.getElementById(type+'InformationContent').style.display = 'block'; | document.getElementById(type+'InformationContent').style.display = 'block'; | ||||
@@ -33,7 +33,7 @@ define(['jquery', "template", "Tools", "announApi", "paging"], function ($, temp | |||||
module.bottomFriendsLinks = function (data) { | module.bottomFriendsLinks = function (data) { | ||||
if (data.code == 200) { | if (data.code == 200) { | ||||
var content = data.data; | var content = data.data; | ||||
console.log(content) | |||||
//console.log(content) | |||||
module.data.friendsLinksList = content; | module.data.friendsLinksList = content; | ||||
var friendsLinksData = template('friendsLinksData', module.data); | var friendsLinksData = template('friendsLinksData', module.data); | ||||
$("#friendsLinksContent").html(friendsLinksData); | $("#friendsLinksContent").html(friendsLinksData); | ||||
@@ -43,7 +43,7 @@ define(['jquery', "template", "Tools", "announApi", "paging"], function ($, temp | |||||
//项目公告数据 | //项目公告数据 | ||||
module.announInformation = function (data) { | module.announInformation = function (data) { | ||||
if (data.code == 200) { | if (data.code == 200) { | ||||
console.log(data) | |||||
//console.log(data) | |||||
var content = data.data; | var content = data.data; | ||||
module.data.announcementInformationDetail = content; | module.data.announcementInformationDetail = content; | ||||
var announcementInformationData = template('announcementInformationData', module.data); | var announcementInformationData = template('announcementInformationData', module.data); | ||||
@@ -33,14 +33,14 @@ define(['jquery', "template", "Tools", "announApi", "paging"], function ($, temp | |||||
module.bottomFriendsLinks = function (data) { | module.bottomFriendsLinks = function (data) { | ||||
if (data.code == 200) { | if (data.code == 200) { | ||||
var content = data.data; | var content = data.data; | ||||
console.log(content) | |||||
//console.log(content) | |||||
module.data.friendsLinksList = content; | module.data.friendsLinksList = content; | ||||
var friendsLinksData = template('friendsLinksData', module.data); | var friendsLinksData = template('friendsLinksData', module.data); | ||||
$("#friendsLinksContent").html(friendsLinksData); | $("#friendsLinksContent").html(friendsLinksData); | ||||
} | } | ||||
} | } | ||||
module.announDetail = function(data){ | module.announDetail = function(data){ | ||||
console.log(data) | |||||
//console.log(data) | |||||
module.data.jyqzNumOne = data.rows[0].jyqzNumOne | module.data.jyqzNumOne = data.rows[0].jyqzNumOne | ||||
module.data.jyqzNumTwo = data.rows[0].jyqzNumTwo | module.data.jyqzNumTwo = data.rows[0].jyqzNumTwo | ||||
tools.doGet(announDetail+'/'+data.rows[0].publicityId, {}, module.announInformation,true); | tools.doGet(announDetail+'/'+data.rows[0].publicityId, {}, module.announInformation,true); | ||||
@@ -78,7 +78,7 @@ define(['jquery', "template", "Tools", "announApi", "paging"], function ($, temp | |||||
module.transactionDictionaries = function (data) { | module.transactionDictionaries = function (data) { | ||||
if (data.code == 200) { | if (data.code == 200) { | ||||
var content = data.data; | var content = data.data; | ||||
console.log(content) | |||||
//console.log(content) | |||||
var dealType = content[(module.data.announcementInformationDetail.dealType-1)].dictLabel; | var dealType = content[(module.data.announcementInformationDetail.dealType-1)].dictLabel; | ||||
module.data.announcementInformationDetail.dealType = dealType; | module.data.announcementInformationDetail.dealType = dealType; | ||||
var announcementInformationData = template('announcementInformationData', module.data); | var announcementInformationData = template('announcementInformationData', module.data); | ||||
@@ -48,7 +48,7 @@ define(['jquery', "template", "Tools", "demandApi", "paging","user"], function ( | |||||
module.demandDetail = function(data){ | module.demandDetail = function(data){ | ||||
if (data.code == 200) { | if (data.code == 200) { | ||||
var content = data.data; | var content = data.data; | ||||
console.log(content) | |||||
//console.log(content) | |||||
module.data.demandInformationDetail = content; | module.data.demandInformationDetail = content; | ||||
tools.doGet(demandImageList+'/'+getQueryVariable('id'), {}, module.demandImageDetail,true); | tools.doGet(demandImageList+'/'+getQueryVariable('id'), {}, module.demandImageDetail,true); | ||||
} | } | ||||
@@ -57,7 +57,7 @@ define(['jquery', "template", "Tools", "demandApi", "paging","user"], function ( | |||||
module.bottomFriendsLinks = function (data) { | module.bottomFriendsLinks = function (data) { | ||||
if (data.code == 200) { | if (data.code == 200) { | ||||
var content = data.data; | var content = data.data; | ||||
console.log(content) | |||||
//console.log(content) | |||||
module.data.friendsLinksList = content; | module.data.friendsLinksList = content; | ||||
var friendsLinksData = template('friendsLinksData', module.data); | var friendsLinksData = template('friendsLinksData', module.data); | ||||
$("#friendsLinksContent").html(friendsLinksData); | $("#friendsLinksContent").html(friendsLinksData); | ||||
@@ -65,7 +65,7 @@ define(['jquery', "template", "Tools", "demandApi", "paging","user"], function ( | |||||
} | } | ||||
module.demandImageDetail = function(data){ | module.demandImageDetail = function(data){ | ||||
console.log(data) | |||||
//console.log(data) | |||||
if (data.code == 200){ | if (data.code == 200){ | ||||
var content = data.data; | var content = data.data; | ||||
var fileUrlList = []; | var fileUrlList = []; | ||||
@@ -164,7 +164,7 @@ define(['jquery', "template", "Tools", "echarts", 'swiper'], function ($, templa | |||||
tools.doGet(supplyDemand + '/100/2/5', {}, module.supplyDemand2, true); | tools.doGet(supplyDemand + '/100/2/5', {}, module.supplyDemand2, true); | ||||
//互动交流 | //互动交流 | ||||
tools.doGet(communicateList + '/100/5', {}, module.communicateList, true); | |||||
tools.doGet(communicateList + '/100/5/notnull', {}, module.communicateList, true); | |||||
//土地挂牌价格走势统计图 | //土地挂牌价格走势统计图 | ||||
tools.doGet(statistics, {deptId: 100}, module.statisticsContent, true); | tools.doGet(statistics, {deptId: 100}, module.statisticsContent, true); | ||||
@@ -202,7 +202,7 @@ define(['jquery', "template", "Tools", "echarts", 'swiper'], function ($, templa | |||||
focusList.push({img:imgStrs[0],title:title,id:id}) | focusList.push({img:imgStrs[0],title:title,id:id}) | ||||
} | } | ||||
} | } | ||||
console.log(focusList) | |||||
//console.log(focusList) | |||||
module.data.focusList = focusList; | module.data.focusList = focusList; | ||||
var bannerFocusData = template('bannerFocusData', module.data); | var bannerFocusData = template('bannerFocusData', module.data); | ||||
$("#bannerFocusContent").html(bannerFocusData); | $("#bannerFocusContent").html(bannerFocusData); | ||||
@@ -215,8 +215,8 @@ define(['jquery', "template", "Tools", "echarts", 'swiper'], function ($, templa | |||||
} | } | ||||
module.statisticsContent = function(data){ | module.statisticsContent = function(data){ | ||||
console.log(module.option) | |||||
console.log(data) | |||||
//console.log(module.option) | |||||
//console.log(data) | |||||
module.data.nowPriceAvg = data.nowPriceAvg; | module.data.nowPriceAvg = data.nowPriceAvg; | ||||
module.data.priceRate = data.priceRate; | module.data.priceRate = data.priceRate; | ||||
var statisticsData = template('statisticsData', module.data); | var statisticsData = template('statisticsData', module.data); | ||||
@@ -234,7 +234,7 @@ define(['jquery', "template", "Tools", "echarts", 'swiper'], function ($, templa | |||||
//互动交流 | //互动交流 | ||||
module.communicateList = function (data) { | module.communicateList = function (data) { | ||||
if (data.code == 200) { | if (data.code == 200) { | ||||
console.log(data.data) | |||||
//console.log(data.data) | |||||
var content = data.data; | var content = data.data; | ||||
module.data.communicateList = content; | module.data.communicateList = content; | ||||
var communicateData = template('communicateData', module.data); | var communicateData = template('communicateData', module.data); | ||||
@@ -246,7 +246,7 @@ define(['jquery', "template", "Tools", "echarts", 'swiper'], function ($, templa | |||||
module.NewsInformation = function (data) { | module.NewsInformation = function (data) { | ||||
if (data.code == 200) { | if (data.code == 200) { | ||||
var content = data.data; | var content = data.data; | ||||
console.log(content) | |||||
//console.log(content) | |||||
module.data.newsInformationList = content; | module.data.newsInformationList = content; | ||||
var NewsInformationData = template('NewsInformationData', module.data); | var NewsInformationData = template('NewsInformationData', module.data); | ||||
$("#NewsInformationContent").html(NewsInformationData); | $("#NewsInformationContent").html(NewsInformationData); | ||||
@@ -285,7 +285,7 @@ define(['jquery', "template", "Tools", "echarts", 'swiper'], function ($, templa | |||||
//标的物所在地 | //标的物所在地 | ||||
module.deptLocation = function (data) { | module.deptLocation = function (data) { | ||||
console.log(data) | |||||
//console.log(data) | |||||
if (data.code == 200) { | if (data.code == 200) { | ||||
var content = data.data ; | var content = data.data ; | ||||
var contentList = []; | var contentList = []; | ||||
@@ -315,7 +315,7 @@ define(['jquery', "template", "Tools", "echarts", 'swiper'], function ($, templa | |||||
module.webConfigInformation = function (data) { | module.webConfigInformation = function (data) { | ||||
if (data.code == 200) { | if (data.code == 200) { | ||||
var content = data.data; | var content = data.data; | ||||
console.log(content) | |||||
//console.log(content) | |||||
$("#webConfigName").html(content[0].configValue); | $("#webConfigName").html(content[0].configValue); | ||||
$("#webConfigRecord").html(content[1].configValue + content[2].configValue); | $("#webConfigRecord").html(content[1].configValue + content[2].configValue); | ||||
$("#webConfigAddress").html(content[0].configValue+' '+content[3].configValue); | $("#webConfigAddress").html(content[0].configValue+' '+content[3].configValue); | ||||
@@ -336,7 +336,7 @@ define(['jquery', "template", "Tools", "echarts", 'swiper'], function ($, templa | |||||
module.bottomFriendsLinks = function (data) { | module.bottomFriendsLinks = function (data) { | ||||
if (data.code == 200) { | if (data.code == 200) { | ||||
var content = data.data; | var content = data.data; | ||||
console.log(content) | |||||
//console.log(content) | |||||
module.data.friendsLinksList = content; | module.data.friendsLinksList = content; | ||||
var friendsLinksData = template('friendsLinksData', module.data); | var friendsLinksData = template('friendsLinksData', module.data); | ||||
$("#friendsLinksContent").html(friendsLinksData); | $("#friendsLinksContent").html(friendsLinksData); | ||||
@@ -411,7 +411,7 @@ define(['jquery', "template", "Tools", "echarts", 'swiper'], function ($, templa | |||||
module.biddingHallList = function (data) { | module.biddingHallList = function (data) { | ||||
if (data.code == 200) { | if (data.code == 200) { | ||||
var content = data.data; | var content = data.data; | ||||
console.log(content) | |||||
//console.log(content) | |||||
module.data.biddingHallListList = content; | module.data.biddingHallListList = content; | ||||
for(var i = 0 ; i < content.length ; i++){ | for(var i = 0 ; i < content.length ; i++){ | ||||
@@ -425,23 +425,23 @@ define(['jquery', "template", "Tools", "echarts", 'swiper'], function ($, templa | |||||
var nowTime = Date.parse(new Date()); | var nowTime = Date.parse(new Date()); | ||||
var leftTime = Date.parse(biddingStopTime)-nowTime; | var leftTime = Date.parse(biddingStopTime)-nowTime; | ||||
var rightTime = Date.parse(biddingStartTime)-nowTime; | var rightTime = Date.parse(biddingStartTime)-nowTime; | ||||
console.log(biddingStopTime) | |||||
console.log(leftTime) | |||||
//console.log(biddingStopTime) | |||||
//console.log(leftTime) | |||||
if(leftTime>0){ | if(leftTime>0){ | ||||
console.log('进行中') | |||||
//console.log('进行中') | |||||
content[i].timeType = '进行中' | content[i].timeType = '进行中' | ||||
} | } | ||||
if(leftTime<0){ | if(leftTime<0){ | ||||
console.log('已结束') | |||||
//console.log('已结束') | |||||
content[i].timeType = '已结束' | content[i].timeType = '已结束' | ||||
} | } | ||||
if(rightTime>0){ | if(rightTime>0){ | ||||
console.log('未开始') | |||||
//console.log('未开始') | |||||
content[i].timeType = '未开始' | content[i].timeType = '未开始' | ||||
} | } | ||||
} | } | ||||
console.log(content) | |||||
//console.log(content) | |||||
var biddingHallListData = template('biddingHallListData', module.data); | var biddingHallListData = template('biddingHallListData', module.data); | ||||
$("#biddingHallListContent").html(biddingHallListData); | $("#biddingHallListContent").html(biddingHallListData); | ||||
} | } | ||||
@@ -464,7 +464,7 @@ define(['jquery', "template", "Tools", "echarts", 'swiper'], function ($, templa | |||||
//个人供求 | //个人供求 | ||||
module.supplyDemand = function (data) { | module.supplyDemand = function (data) { | ||||
if (data.code == 200) { | if (data.code == 200) { | ||||
console.log(data) | |||||
//console.log(data) | |||||
var content = data.data; | var content = data.data; | ||||
module.data.supplyDemandList = content; | module.data.supplyDemandList = content; | ||||
var supplyDemandData = template('supplyDemandData', module.data); | var supplyDemandData = template('supplyDemandData', module.data); | ||||
@@ -475,7 +475,7 @@ define(['jquery', "template", "Tools", "echarts", 'swiper'], function ($, templa | |||||
//个人供求 | //个人供求 | ||||
module.supplyDemand2 = function (data) { | module.supplyDemand2 = function (data) { | ||||
if (data.code == 200) { | if (data.code == 200) { | ||||
console.log(data) | |||||
//console.log(data) | |||||
var content = data.data; | var content = data.data; | ||||
module.data.supplyDemand2List = content; | module.data.supplyDemand2List = content; | ||||
var supplyDemand2Data = template('supplyDemand2Data', module.data); | var supplyDemand2Data = template('supplyDemand2Data', module.data); | ||||
@@ -492,7 +492,7 @@ define(['jquery', "template", "Tools", "echarts", 'swiper'], function ($, templa | |||||
focusListNext.push({img:serverApi+imgStrs,title:data.data[i].projectName}) | focusListNext.push({img:serverApi+imgStrs,title:data.data[i].projectName}) | ||||
} | } | ||||
} | } | ||||
console.log(focusListNext) | |||||
//console.log(focusListNext) | |||||
module.data.focusListNext = focusListNext; | module.data.focusListNext = focusListNext; | ||||
var bannerFocusBottomData = template('bannerFocusBottomData', module.data); | var bannerFocusBottomData = template('bannerFocusBottomData', module.data); | ||||
$("#bannerFocusNextContent").html(bannerFocusBottomData); | $("#bannerFocusNextContent").html(bannerFocusBottomData); | ||||
@@ -503,7 +503,7 @@ define(['jquery', "template", "Tools", "echarts", 'swiper'], function ($, templa | |||||
module.supplyImages = function(){ | module.supplyImages = function(){ | ||||
var focusListNext = module.data.focusListNext; | var focusListNext = module.data.focusListNext; | ||||
console.log(module.data.supplyDemandList) | |||||
//console.log(module.data.supplyDemandList) | |||||
for (var i = 0; i < module.data.supplyDemandList.length; i++) { | for (var i = 0; i < module.data.supplyDemandList.length; i++) { | ||||
var imgStrs = module.data.supplyDemandList[i].projectContent.match(/<img.*?>/g) | var imgStrs = module.data.supplyDemandList[i].projectContent.match(/<img.*?>/g) | ||||
var title = module.data.supplyDemandList[i].projectName | var title = module.data.supplyDemandList[i].projectName | ||||
@@ -543,8 +543,8 @@ define(['jquery', "template", "Tools", "echarts", 'swiper'], function ($, templa | |||||
goSearchKeyWord = function(){ | goSearchKeyWord = function(){ | ||||
var type = $('input[name="transaction"]:checked').val(); | var type = $('input[name="transaction"]:checked').val(); | ||||
var searchKeyWord = $('#searchKeyWord').val(); | var searchKeyWord = $('#searchKeyWord').val(); | ||||
console.log($('#searchKeyWord').val()) | |||||
console.log(type) | |||||
//console.log($('#searchKeyWord').val()) | |||||
//console.log(type) | |||||
if($('#searchKeyWord').val() == '' && type== 'warrant'){ | if($('#searchKeyWord').val() == '' && type== 'warrant'){ | ||||
tools.initDialog('提示', '经营权证编号不可为空', function () { | tools.initDialog('提示', '经营权证编号不可为空', function () { | ||||
return; | return; | ||||
@@ -569,7 +569,7 @@ define(['jquery', "template", "Tools", "echarts", 'swiper'], function ($, templa | |||||
//标的物类型 | //标的物类型 | ||||
module.deptTypeSelect = function (data) { | module.deptTypeSelect = function (data) { | ||||
if (data.code == 200) { | if (data.code == 200) { | ||||
console.log(data); | |||||
//console.log(data); | |||||
var content = data.data ; | var content = data.data ; | ||||
module.data.deptTypeSelectList = content; | module.data.deptTypeSelectList = content; | ||||
var deptTypeSelectData = template('deptTypeSelectData', module.data); | var deptTypeSelectData = template('deptTypeSelectData', module.data); | ||||
@@ -65,15 +65,15 @@ define(['jquery', "template", "Tools", "interactApi", "paging"], function ($, te | |||||
//新闻资讯数据 | //新闻资讯数据 | ||||
module.interactInformation = function (data) { | module.interactInformation = function (data) { | ||||
if (data.code == 200) { | if (data.code == 200) { | ||||
console.log(data) | |||||
//console.log(data) | |||||
var content = data.rows; | var content = data.rows; | ||||
var pageCount = (data.total/module.data.pageSize).toFixed(0); | var pageCount = (data.total/module.data.pageSize).toFixed(0); | ||||
if (pageCount < 1){ | if (pageCount < 1){ | ||||
pageCount = 1; | pageCount = 1; | ||||
} | } | ||||
console.log(module.data.interactInformationList) | |||||
//console.log(module.data.interactInformationList) | |||||
if(module.data.interactInformationList == ''){ | if(module.data.interactInformationList == ''){ | ||||
console.log('aaa') | |||||
//console.log('aaa') | |||||
// 初始化 分页器 | // 初始化 分页器 | ||||
var page_s1=createPage('.page_s1'); | var page_s1=createPage('.page_s1'); | ||||
// 设置分页 | // 设置分页 | ||||
@@ -95,7 +95,7 @@ define(['jquery', "template", "Tools", "interactApi", "paging"], function ($, te | |||||
module.bottomFriendsLinks = function (data) { | module.bottomFriendsLinks = function (data) { | ||||
if (data.code == 200) { | if (data.code == 200) { | ||||
var content = data.data; | var content = data.data; | ||||
console.log(content) | |||||
//console.log(content) | |||||
module.data.friendsLinksList = content; | module.data.friendsLinksList = content; | ||||
var friendsLinksData = template('friendsLinksData', module.data); | var friendsLinksData = template('friendsLinksData', module.data); | ||||
$("#friendsLinksContent").html(friendsLinksData); | $("#friendsLinksContent").html(friendsLinksData); | ||||
@@ -147,9 +147,9 @@ define(['jquery', "template", "Tools", "interactApi", "paging"], function ($, te | |||||
module.data.pageNum = pageNum ; | module.data.pageNum = pageNum ; | ||||
if (module.data.searchType == 'YES'){ | if (module.data.searchType == 'YES'){ | ||||
module.data.turnPage = 'YES'; | module.data.turnPage = 'YES'; | ||||
tools.doGet(interactSearch, {deptId:100,title:module.data.searchTitle,content:module.data.searchContent,pageNum:pageNum,pageSize:module.data.pageSize}, module.searchInteractInformation,true) | |||||
tools.doGet(interactSearch, {deptId:100,title:module.data.searchTitle,content:module.data.searchContent,pageNum:pageNum,pageSize:module.data.pageSize,reply:'notnull'}, module.searchInteractInformation,true) | |||||
}else{ | }else{ | ||||
tools.doGet(interactList, {deptId:100,pageNum:pageNum,pageSize:module.data.pageSize}, module.interactInformation,true); | |||||
tools.doGet(interactList, {deptId:100,pageNum:pageNum,pageSize:module.data.pageSize,reply:'notnull'}, module.interactInformation,true); | |||||
} | } | ||||
} | } | ||||
@@ -43,7 +43,7 @@ define(['jquery', "template", "Tools", "itemsApi", "paging", 'dateTime'], functi | |||||
//竞价结束时间 | //竞价结束时间 | ||||
biddingStopTime: '', | biddingStopTime: '', | ||||
form: { | form: { | ||||
deptId: '', | |||||
deptId: 100, | |||||
projectNumber: '', | projectNumber: '', | ||||
projectShowStatus: '', | projectShowStatus: '', | ||||
signupStartTime: '', | signupStartTime: '', | ||||
@@ -51,7 +51,7 @@ define(['jquery', "template", "Tools", "itemsApi", "paging", 'dateTime'], functi | |||||
biddingStartTime: '', | biddingStartTime: '', | ||||
biddingStopTime: '', | biddingStopTime: '', | ||||
pageNum: 1, | pageNum: 1, | ||||
pageSize: 1, | |||||
pageSize: 20, | |||||
} | } | ||||
}, | }, | ||||
}; | }; | ||||
@@ -61,7 +61,7 @@ define(['jquery', "template", "Tools", "itemsApi", "paging", 'dateTime'], functi | |||||
//底部友情链接 | //底部友情链接 | ||||
tools.doGet(friendsLinks, {}, module.bottomFriendsLinks, true); | tools.doGet(friendsLinks, {}, module.bottomFriendsLinks, true); | ||||
if (getQueryVariable('projectCode') || getQueryVariable('projectName') || getQueryVariable('projectNumber')) { | if (getQueryVariable('projectCode') || getQueryVariable('projectName') || getQueryVariable('projectNumber')) { | ||||
console.log('首页进入') | |||||
//console.log('首页进入') | |||||
tools.doGet(itemsList, { | tools.doGet(itemsList, { | ||||
deptId: 100, | deptId: 100, | ||||
pageNum: module.data.pageNum, | pageNum: module.data.pageNum, | ||||
@@ -100,7 +100,7 @@ define(['jquery', "template", "Tools", "itemsApi", "paging", 'dateTime'], functi | |||||
type: "date", | type: "date", | ||||
value: [new Date().getFullYear(),new Date().getMonth()+1,new Date().getDate()], | value: [new Date().getFullYear(),new Date().getMonth()+1,new Date().getDate()], | ||||
success: function (res) { | success: function (res) { | ||||
console.log(res) | |||||
//console.log(res) | |||||
} | } | ||||
}) | }) | ||||
@@ -108,7 +108,7 @@ define(['jquery', "template", "Tools", "itemsApi", "paging", 'dateTime'], functi | |||||
type: "date", | type: "date", | ||||
value: [new Date().getFullYear(),new Date().getMonth()+1,new Date().getDate()], | value: [new Date().getFullYear(),new Date().getMonth()+1,new Date().getDate()], | ||||
success: function (res) { | success: function (res) { | ||||
console.log(res) | |||||
//console.log(res) | |||||
} | } | ||||
}) | }) | ||||
@@ -116,7 +116,7 @@ define(['jquery', "template", "Tools", "itemsApi", "paging", 'dateTime'], functi | |||||
type: "date", | type: "date", | ||||
value: [new Date().getFullYear(),new Date().getMonth()+1,new Date().getDate()], | value: [new Date().getFullYear(),new Date().getMonth()+1,new Date().getDate()], | ||||
success: function (res) { | success: function (res) { | ||||
console.log(res) | |||||
//console.log(res) | |||||
} | } | ||||
}) | }) | ||||
@@ -124,7 +124,7 @@ define(['jquery', "template", "Tools", "itemsApi", "paging", 'dateTime'], functi | |||||
type: "date", | type: "date", | ||||
value: [new Date().getFullYear(),new Date().getMonth()+1,new Date().getDate()], | value: [new Date().getFullYear(),new Date().getMonth()+1,new Date().getDate()], | ||||
success: function (res) { | success: function (res) { | ||||
console.log(res) | |||||
//console.log(res) | |||||
} | } | ||||
}) | }) | ||||
@@ -145,7 +145,7 @@ define(['jquery', "template", "Tools", "itemsApi", "paging", 'dateTime'], functi | |||||
//挂牌项目列表 | //挂牌项目列表 | ||||
module.itemList = function (data) { | module.itemList = function (data) { | ||||
if (data.code == 200) { | if (data.code == 200) { | ||||
console.log(data) | |||||
//console.log(data) | |||||
module.data.serverApi = serverApi; | module.data.serverApi = serverApi; | ||||
var content = data.rows; | var content = data.rows; | ||||
var pageCount = (data.total / module.data.pageSize).toFixed(0); | var pageCount = (data.total / module.data.pageSize).toFixed(0); | ||||
@@ -177,7 +177,7 @@ define(['jquery', "template", "Tools", "itemsApi", "paging", 'dateTime'], functi | |||||
//标的物类型 | //标的物类型 | ||||
module.deptType = function (data) { | module.deptType = function (data) { | ||||
console.log(data) | |||||
//console.log(data) | |||||
if (data.code == 200) { | if (data.code == 200) { | ||||
var content = data.data; | var content = data.data; | ||||
module.data.deptTypeList = content; | module.data.deptTypeList = content; | ||||
@@ -205,12 +205,12 @@ define(['jquery', "template", "Tools", "itemsApi", "paging", 'dateTime'], functi | |||||
document.getElementById('secondDept').style.display = 'block'; | document.getElementById('secondDept').style.display = 'block'; | ||||
} | } | ||||
if (data.code == 200) { | if (data.code == 200) { | ||||
console.log(data) | |||||
//console.log(data) | |||||
var content = data.data; | var content = data.data; | ||||
module.data.deptSecondLocationList = content; | module.data.deptSecondLocationList = content; | ||||
var deptSecondLocationData = template('deptSecondLocationData', module.data); | var deptSecondLocationData = template('deptSecondLocationData', module.data); | ||||
$("#secondDept").html(deptSecondLocationData); | $("#secondDept").html(deptSecondLocationData); | ||||
console.log(module.data.deptId) | |||||
//console.log(module.data.deptId) | |||||
} | } | ||||
} | } | ||||
@@ -256,7 +256,7 @@ define(['jquery', "template", "Tools", "itemsApi", "paging", 'dateTime'], functi | |||||
module.bottomFriendsLinks = function (data) { | module.bottomFriendsLinks = function (data) { | ||||
if (data.code == 200) { | if (data.code == 200) { | ||||
var content = data.data; | var content = data.data; | ||||
console.log(content) | |||||
//console.log(content) | |||||
module.data.friendsLinksList = content; | module.data.friendsLinksList = content; | ||||
var friendsLinksData = template('friendsLinksData', module.data); | var friendsLinksData = template('friendsLinksData', module.data); | ||||
$("#friendsLinksContent").html(friendsLinksData); | $("#friendsLinksContent").html(friendsLinksData); | ||||
@@ -275,7 +275,7 @@ define(['jquery', "template", "Tools", "itemsApi", "paging", 'dateTime'], functi | |||||
projectNumber = ""; | projectNumber = ""; | ||||
} | } | ||||
module.data.projectNumber = projectNumber;//标的物类型ID | module.data.projectNumber = projectNumber;//标的物类型ID | ||||
console.log(id+'----------------'+projectNumber) | |||||
//console.log(id+'----------------'+projectNumber) | |||||
document.getElementById('standardTypeAll').className = 'auction_hall_table_tab'; | document.getElementById('standardTypeAll').className = 'auction_hall_table_tab'; | ||||
if (id == '') { | if (id == '') { | ||||
id = 'All'; | id = 'All'; | ||||
@@ -312,7 +312,7 @@ define(['jquery', "template", "Tools", "itemsApi", "paging", 'dateTime'], functi | |||||
module.data.form.pageNum = module.data.pageNum; | module.data.form.pageNum = module.data.pageNum; | ||||
module.data.form.pageSize = module.data.pageSize; | module.data.form.pageSize = module.data.pageSize; | ||||
console.log(module.data.form) | |||||
//console.log(module.data.form) | |||||
tools.doGet(itemsList, module.data.form, module.itemList, true); | tools.doGet(itemsList, module.data.form, module.itemList, true); | ||||
} | } | ||||
@@ -23,7 +23,7 @@ define(['jquery', "template", "Tools", "newApi", "paging"], function ($, templat | |||||
//底部友情链接 | //底部友情链接 | ||||
tools.doGet(friendsLinks, {}, module.bottomFriendsLinks, true); | tools.doGet(friendsLinks, {}, module.bottomFriendsLinks, true); | ||||
if(getQueryVariable('title') ){ | if(getQueryVariable('title') ){ | ||||
console.log('搜索进入') | |||||
//console.log('搜索进入') | |||||
//新闻资讯 | //新闻资讯 | ||||
tools.doGet(newList, {deptId:100,pageNum:module.data.pageNum,pageSize:module.data.pageSize,title:getQueryVariable('title')}, module.NewsInformation,true); | tools.doGet(newList, {deptId:100,pageNum:module.data.pageNum,pageSize:module.data.pageSize,title:getQueryVariable('title')}, module.NewsInformation,true); | ||||
}else{ | }else{ | ||||
@@ -48,7 +48,7 @@ define(['jquery', "template", "Tools", "newApi", "paging"], function ($, templat | |||||
module.bottomFriendsLinks = function (data) { | module.bottomFriendsLinks = function (data) { | ||||
if (data.code == 200) { | if (data.code == 200) { | ||||
var content = data.data; | var content = data.data; | ||||
console.log(content) | |||||
//console.log(content) | |||||
module.data.friendsLinksList = content; | module.data.friendsLinksList = content; | ||||
var friendsLinksData = template('friendsLinksData', module.data); | var friendsLinksData = template('friendsLinksData', module.data); | ||||
$("#friendsLinksContent").html(friendsLinksData); | $("#friendsLinksContent").html(friendsLinksData); | ||||
@@ -13,7 +13,7 @@ define(['jquery', "template", "Tools", "newApi"], function ($, template, Tools ) | |||||
module.init = function (page) { | module.init = function (page) { | ||||
//底部友情链接 | //底部友情链接 | ||||
tools.doGet(friendsLinks, {}, module.bottomFriendsLinks, true); | tools.doGet(friendsLinks, {}, module.bottomFriendsLinks, true); | ||||
console.log(getQueryVariable('id')) | |||||
//console.log(getQueryVariable('id')) | |||||
//新闻资讯 | //新闻资讯 | ||||
tools.doGet(newDetail + '/'+getQueryVariable('id'), {}, module.NewsInformation,true); | tools.doGet(newDetail + '/'+getQueryVariable('id'), {}, module.NewsInformation,true); | ||||
@@ -24,7 +24,7 @@ define(['jquery', "template", "Tools", "newApi"], function ($, template, Tools ) | |||||
module.bottomFriendsLinks = function (data) { | module.bottomFriendsLinks = function (data) { | ||||
if (data.code == 200) { | if (data.code == 200) { | ||||
var content = data.data; | var content = data.data; | ||||
console.log(content) | |||||
//console.log(content) | |||||
module.data.friendsLinksList = content; | module.data.friendsLinksList = content; | ||||
var friendsLinksData = template('friendsLinksData', module.data); | var friendsLinksData = template('friendsLinksData', module.data); | ||||
$("#friendsLinksContent").html(friendsLinksData); | $("#friendsLinksContent").html(friendsLinksData); | ||||
@@ -44,7 +44,7 @@ define(['jquery', "template", "Tools", "newApi"], function ($, template, Tools ) | |||||
//新闻资讯数据 | //新闻资讯数据 | ||||
module.NewsInformation = function (data) { | module.NewsInformation = function (data) { | ||||
console.log(data) | |||||
//console.log(data) | |||||
if (data.code == 200) { | if (data.code == 200) { | ||||
var content = data.data; | var content = data.data; | ||||
$("#newTitle").html(content.title); | $("#newTitle").html(content.title); | ||||
@@ -49,7 +49,7 @@ define(['jquery', "template", "Tools", "user", "paging","cupload","kindeditor"], | |||||
window.KindEditor.create('#editor_id') | window.KindEditor.create('#editor_id') | ||||
console.log(tools.getParam('type')) | |||||
//console.log(tools.getParam('type')) | |||||
var type = tools.getParam('type'); | var type = tools.getParam('type'); | ||||
@@ -75,7 +75,7 @@ define(['jquery', "template", "Tools", "user", "paging","cupload","kindeditor"], | |||||
module.bottomFriendsLinks = function (data) { | module.bottomFriendsLinks = function (data) { | ||||
if (data.code == 200) { | if (data.code == 200) { | ||||
var content = data.data; | var content = data.data; | ||||
console.log(content) | |||||
//console.log(content) | |||||
module.data.friendsLinksList = content; | module.data.friendsLinksList = content; | ||||
var friendsLinksData = template('friendsLinksData', module.data); | var friendsLinksData = template('friendsLinksData', module.data); | ||||
$("#friendsLinksContent").html(friendsLinksData); | $("#friendsLinksContent").html(friendsLinksData); | ||||
@@ -110,7 +110,7 @@ define(['jquery', "template", "Tools", "user", "paging","cupload","kindeditor"], | |||||
module.userData = function(data){ | module.userData = function(data){ | ||||
if (data.code == 200) { | if (data.code == 200) { | ||||
var content = data.user; | var content = data.user; | ||||
console.log(content) | |||||
//console.log(content) | |||||
module.data.userId = content.userId; | module.data.userId = content.userId; | ||||
tools.doGet(userMember + '/' + content.userId, {}, module.userMember);//memberType 1个人 2单位 | tools.doGet(userMember + '/' + content.userId, {}, module.userMember);//memberType 1个人 2单位 | ||||
} | } | ||||
@@ -120,7 +120,7 @@ define(['jquery', "template", "Tools", "user", "paging","cupload","kindeditor"], | |||||
module.userMember = function(data){ | module.userMember = function(data){ | ||||
if (data.code == 200) { | if (data.code == 200) { | ||||
var content = data.data; | var content = data.data; | ||||
console.log(data) | |||||
//console.log(data) | |||||
module.data.userInformationDetail = content; | module.data.userInformationDetail = content; | ||||
module.data.memberType = content.memberType; | module.data.memberType = content.memberType; | ||||
@@ -142,7 +142,7 @@ define(['jquery', "template", "Tools", "user", "paging","cupload","kindeditor"], | |||||
document.getElementById('phone').innerHTML = content.phone; | document.getElementById('phone').innerHTML = content.phone; | ||||
module.data.memberId = content.id; | module.data.memberId = content.id; | ||||
console.log(module.data.userId) | |||||
//console.log(module.data.userId) | |||||
//用户图片 | //用户图片 | ||||
tools.doGet(showUserImg+'/'+module.data.memberId, {}, module.showUserImage); | tools.doGet(showUserImg+'/'+module.data.memberId, {}, module.showUserImage); | ||||
@@ -164,7 +164,7 @@ define(['jquery', "template", "Tools", "user", "paging","cupload","kindeditor"], | |||||
} | } | ||||
module.showUserImage = function(data){ | module.showUserImage = function(data){ | ||||
console.log(data) | |||||
//console.log(data) | |||||
if (data.code == 200) { | if (data.code == 200) { | ||||
var content = data.data; | var content = data.data; | ||||
var fileUrlList = []; | var fileUrlList = []; | ||||
@@ -176,7 +176,7 @@ define(['jquery', "template", "Tools", "user", "paging","cupload","kindeditor"], | |||||
if (fileUrlList.length == 0){ | if (fileUrlList.length == 0){ | ||||
fileUrlList = ''; | fileUrlList = ''; | ||||
} | } | ||||
console.log(fileUrlList) | |||||
//console.log(fileUrlList) | |||||
module.data.fileNum = fileNum; | module.data.fileNum = fileNum; | ||||
if(module.data.memberType == '1'){ | if(module.data.memberType == '1'){ | ||||
var cupload2 = new Cupload ({ | var cupload2 = new Cupload ({ | ||||
@@ -195,7 +195,7 @@ define(['jquery', "template", "Tools", "user", "paging","cupload","kindeditor"], | |||||
} | } | ||||
module.showSupplyImage = function(data){ | module.showSupplyImage = function(data){ | ||||
console.log(data) | |||||
//console.log(data) | |||||
if (data.code == 200) { | if (data.code == 200) { | ||||
var content = data.data; | var content = data.data; | ||||
var fileUrlList = []; | var fileUrlList = []; | ||||
@@ -207,7 +207,7 @@ define(['jquery', "template", "Tools", "user", "paging","cupload","kindeditor"], | |||||
if (fileUrlList.length == 0){ | if (fileUrlList.length == 0){ | ||||
fileUrlList = ''; | fileUrlList = ''; | ||||
} | } | ||||
console.log(fileUrlList) | |||||
//console.log(fileUrlList) | |||||
document.getElementById('cupload-1').innerHTML = ''; | document.getElementById('cupload-1').innerHTML = ''; | ||||
module.data.fileNum = fileNum; | module.data.fileNum = fileNum; | ||||
var cupload1 = new Cupload ({ | var cupload1 = new Cupload ({ | ||||
@@ -219,7 +219,7 @@ define(['jquery', "template", "Tools", "user", "paging","cupload","kindeditor"], | |||||
} | } | ||||
deleteList = function(){ | deleteList = function(){ | ||||
console.log(module.data.fileNum[deleteNum]) | |||||
//console.log(module.data.fileNum[deleteNum]) | |||||
tools.doGet(deleteUserImg+'/'+module.data.fileNum[deleteNum], {}, module.Tips); | tools.doGet(deleteUserImg+'/'+module.data.fileNum[deleteNum], {}, module.Tips); | ||||
} | } | ||||
@@ -229,7 +229,7 @@ define(['jquery', "template", "Tools", "user", "paging","cupload","kindeditor"], | |||||
//获取上传图片list | //获取上传图片list | ||||
upLoadAction = function(type){ | upLoadAction = function(type){ | ||||
console.log(type) | |||||
//console.log(type) | |||||
var upLoadList = []; | var upLoadList = []; | ||||
var data = {}; | var data = {}; | ||||
if(type == 'user'){ | if(type == 'user'){ | ||||
@@ -288,10 +288,10 @@ define(['jquery', "template", "Tools", "user", "paging","cupload","kindeditor"], | |||||
//个人中心我的供求 | //个人中心我的供求 | ||||
module.userSupply = function(data){ | module.userSupply = function(data){ | ||||
console.log(data) | |||||
//console.log(data) | |||||
if (data.code == 200) { | if (data.code == 200) { | ||||
var content = data.rows; | var content = data.rows; | ||||
console.log(data) | |||||
//console.log(data) | |||||
var pageCount = (data.total/10).toFixed(0); | var pageCount = (data.total/10).toFixed(0); | ||||
if (pageCount < 1){ | if (pageCount < 1){ | ||||
pageCount = 1; | pageCount = 1; | ||||
@@ -320,7 +320,7 @@ define(['jquery', "template", "Tools", "user", "paging","cupload","kindeditor"], | |||||
module.consulting = function(data){ | module.consulting = function(data){ | ||||
if (data.code == 200) { | if (data.code == 200) { | ||||
var content = data.rows; | var content = data.rows; | ||||
console.log(data ) | |||||
//console.log(data ) | |||||
var pageCount = (data.total/module.data.pageSize).toFixed(0); | var pageCount = (data.total/module.data.pageSize).toFixed(0); | ||||
if (pageCount < 1){ | if (pageCount < 1){ | ||||
pageCount = 1; | pageCount = 1; | ||||
@@ -346,7 +346,7 @@ define(['jquery', "template", "Tools", "user", "paging","cupload","kindeditor"], | |||||
module.bidding = function(data){ | module.bidding = function(data){ | ||||
if (data.code == 200) { | if (data.code == 200) { | ||||
var content = data.rows; | var content = data.rows; | ||||
console.log(content) | |||||
//console.log(content) | |||||
var pageCount = (data.total/module.data.pageSize).toFixed(0); | var pageCount = (data.total/module.data.pageSize).toFixed(0); | ||||
if (pageCount < 1){ | if (pageCount < 1){ | ||||
pageCount = 1; | pageCount = 1; | ||||
@@ -375,7 +375,7 @@ define(['jquery', "template", "Tools", "user", "paging","cupload","kindeditor"], | |||||
document.getElementById('passWord').className = ''; | document.getElementById('passWord').className = ''; | ||||
document.getElementById(type).className = 'active'; | document.getElementById(type).className = 'active'; | ||||
console.log(type) | |||||
//console.log(type) | |||||
document.getElementById('userInformationContent').style.display = 'none'; | document.getElementById('userInformationContent').style.display = 'none'; | ||||
document.getElementById('companyInformationContent').style.display = 'none'; | document.getElementById('companyInformationContent').style.display = 'none'; | ||||
document.getElementById('bankInformationContent').style.display = 'none'; | document.getElementById('bankInformationContent').style.display = 'none'; | ||||
@@ -604,7 +604,7 @@ define(['jquery', "template", "Tools", "user", "paging","cupload","kindeditor"], | |||||
var projectContent = $('#projectContent').val(); | var projectContent = $('#projectContent').val(); | ||||
var logintime = tools.getNowFormatDate(); | var logintime = tools.getNowFormatDate(); | ||||
console.log(demandType); | |||||
//console.log(demandType); | |||||
data['projectName'] = projectName; | data['projectName'] = projectName; | ||||
data['location'] = location; | data['location'] = location; | ||||
data['realname'] = projectRealName; | data['realname'] = projectRealName; | ||||
@@ -809,14 +809,14 @@ define(['jquery', "template", "Tools", "user", "paging","cupload","kindeditor"], | |||||
goSearch = function () { | goSearch = function () { | ||||
var searchTitle = $('#searchTitle').val(); | var searchTitle = $('#searchTitle').val(); | ||||
var searchContent = $('#searchContent').val(); | var searchContent = $('#searchContent').val(); | ||||
console.log(searchTitle) | |||||
//console.log(searchTitle) | |||||
module.data.searchType = 'YES'; | module.data.searchType = 'YES'; | ||||
tools.doGet(userConsulting,{title:searchTitle,content:searchContent,memberId:module.data.memberId,pageNum:module.data.pageNum,pageSize:module.data.pageSize},module.consulting); | tools.doGet(userConsulting,{title:searchTitle,content:searchContent,memberId:module.data.memberId,pageNum:module.data.pageNum,pageSize:module.data.pageSize},module.consulting); | ||||
} | } | ||||
selectUserSupply = function(ids) { | selectUserSupply = function(ids) { | ||||
module.data.supplyType = 'edit' | module.data.supplyType = 'edit' | ||||
console.log('点击修改') | |||||
//console.log('点击修改') | |||||
tools.doGet(selectSupply + '/' + ids, {}, module.selectSupplyDetail);//memberType 1个人 2单位 | tools.doGet(selectSupply + '/' + ids, {}, module.selectSupplyDetail);//memberType 1个人 2单位 | ||||
} | } | ||||
module.selectSupplyDetail = function(data){ | module.selectSupplyDetail = function(data){ | ||||
@@ -44,7 +44,7 @@ define(['jquery', "template", "Tools", "echarts", 'swiper'], function ($, templa | |||||
module.bottomFriendsLinks = function (data) { | module.bottomFriendsLinks = function (data) { | ||||
if (data.code == 200) { | if (data.code == 200) { | ||||
var content = data.data; | var content = data.data; | ||||
console.log(content) | |||||
//console.log(content) | |||||
module.data.friendsLinksList = content; | module.data.friendsLinksList = content; | ||||
var friendsLinksData = template('friendsLinksData', module.data); | var friendsLinksData = template('friendsLinksData', module.data); | ||||
$("#friendsLinksContent").html(friendsLinksData); | $("#friendsLinksContent").html(friendsLinksData); | ||||