| @@ -19,6 +19,7 @@ define(['jquery', "template", "Tools", 'swiper', 'itemsApi'], function ($, templ | |||||
| tools.getWebConfig(); | tools.getWebConfig(); | ||||
| module.data.loginNow = tools.getCookie('Admin-Token'); | module.data.loginNow = tools.getCookie('Admin-Token'); | ||||
| //浏览次数 | //浏览次数 | ||||
| tools.doGet(outProject, {id:getQueryVariable('id')}, module.projectNum,true); | tools.doGet(outProject, {id:getQueryVariable('id')}, module.projectNum,true); | ||||
| @@ -26,18 +27,15 @@ define(['jquery', "template", "Tools", 'swiper', 'itemsApi'], function ($, templ | |||||
| tools.doGet(outProject + '/id/'+getQueryVariable('id'), {}, module.outProjectInformation,true); | tools.doGet(outProject + '/id/'+getQueryVariable('id'), {}, module.outProjectInformation,true); | ||||
| },100) | },100) | ||||
| //项目基本信息 | |||||
| tools.doGet(showImg + '/'+getQueryVariable('id'), {}, module.showImgInformation,true); | |||||
| //焦点图 | //焦点图 | ||||
| setTimeout(function () { | setTimeout(function () { | ||||
| module.swiperBanner(); | module.swiperBanner(); | ||||
| },2000) | },2000) | ||||
| setTimeout(function(){//项目基本信息 | |||||
| tools.doGet(showImg + '/'+getQueryVariable('id'), {}, module.showImgInformation,true); | |||||
| },100) | |||||
| tools.doGet(webConfig, {}, module.webConfigInformation, true) | tools.doGet(webConfig, {}, module.webConfigInformation, true) | ||||
| }; | }; | ||||
| @@ -61,6 +59,7 @@ define(['jquery', "template", "Tools", 'swiper', 'itemsApi'], function ($, templ | |||||
| module.data.titleConfig = content[9].configValue; | module.data.titleConfig = content[9].configValue; | ||||
| module.data.importantTitle = content[7].configName+':'+ content[7].configValue.substr(3).substr(0,(content[7].configValue.substr(3).length-4)); | module.data.importantTitle = content[7].configName+':'+ content[7].configValue.substr(3).substr(0,(content[7].configValue.substr(3).length-4)); | ||||
| module.data.know = content[6].configValue; | module.data.know = content[6].configValue; | ||||
| $("#know").html(content[6].configValue + '<span style="margin-left: 10px;"></span>' + content[6].configValue); | |||||
| } | } | ||||
| } | } | ||||
| //底部友情链接 | //底部友情链接 | ||||
| @@ -103,7 +102,6 @@ define(['jquery', "template", "Tools", 'swiper', 'itemsApi'], function ($, templ | |||||
| var d,h,m,s; | var d,h,m,s; | ||||
| if(Date.parse(biddingStartTime)<nowTime&&nowTime<Date.parse(biddingStopTime)){ | if(Date.parse(biddingStartTime)<nowTime&&nowTime<Date.parse(biddingStopTime)){ | ||||
| //正在竞价 | //正在竞价 | ||||
| console.log('1') | |||||
| module.data.biddingTimeType = 1; | module.data.biddingTimeType = 1; | ||||
| document.getElementById('biddingTitle').innerHTML = '竞价进行中...'; | document.getElementById('biddingTitle').innerHTML = '竞价进行中...'; | ||||
| document.getElementById('swiperType').style.display = 'block'; | document.getElementById('swiperType').style.display = 'block'; | ||||
| @@ -115,12 +113,10 @@ define(['jquery', "template", "Tools", 'swiper', 'itemsApi'], function ($, templ | |||||
| $('#countDown').html('<span>距竞价结束还有:'+d+'</span>天<span>'+h+'</span>时<span>'+m+'</span>分<span>'+s+'</span>秒') | $('#countDown').html('<span>距竞价结束还有:'+d+'</span>天<span>'+h+'</span>时<span>'+m+'</span>分<span>'+s+'</span>秒') | ||||
| }else if (nowTime>Date.parse(biddingStopTime)){ | }else if (nowTime>Date.parse(biddingStopTime)){ | ||||
| //竞价结束 | //竞价结束 | ||||
| console.log('2') | |||||
| $('#countDown').html('竞价结束') | $('#countDown').html('竞价结束') | ||||
| module.data.biddingTimeType = 2; | module.data.biddingTimeType = 2; | ||||
| }else if (nowTime<Date.parse(biddingStartTime)){ | }else if (nowTime<Date.parse(biddingStartTime)){ | ||||
| //竞价暂未开始 | //竞价暂未开始 | ||||
| console.log('3') | |||||
| document.getElementById('biddingTitle').innerHTML = '竞价暂未开始...'; | document.getElementById('biddingTitle').innerHTML = '竞价暂未开始...'; | ||||
| $('#countDown').html('暂未开始') | $('#countDown').html('暂未开始') | ||||
| module.data.biddingTimeType = 3; | module.data.biddingTimeType = 3; | ||||
| @@ -235,6 +231,7 @@ define(['jquery', "template", "Tools", 'swiper', 'itemsApi'], function ($, templ | |||||
| module.showImgInformation = function (data) { | module.showImgInformation = function (data) { | ||||
| if (data.code == 200) { | if (data.code == 200) { | ||||
| var content = data.data; | var content = data.data; | ||||
| debugger | |||||
| console.log(content) | console.log(content) | ||||
| var contentList = []; | var contentList = []; | ||||
| for(var i = 0 ; i < content.length ; i++){ | for(var i = 0 ; i < content.length ; i++){ | ||||
| @@ -370,10 +367,12 @@ define(['jquery', "template", "Tools", 'swiper', 'itemsApi'], function ($, templ | |||||
| module.economicTypeDictionaries = function (data) { | module.economicTypeDictionaries = function (data) { | ||||
| if (data.code == 200 && module.data.outProjectInformationDetail.economicType!='') { | if (data.code == 200 && module.data.outProjectInformationDetail.economicType!='') { | ||||
| var content = data.data; | var content = data.data; | ||||
| var economicType = content[(module.data.outProjectInformationDetail.economicType-1)].dictLabel; | |||||
| module.data.outProjectInformationDetail.economicType = economicType; | |||||
| var outProjectInformationData = template('outProjectInformationData', module.data); | |||||
| $("#outProjectInformationContent").html(outProjectInformationData); | |||||
| if(content[(module.data.outProjectInformationDetail.economicType-1)] != undefined){ | |||||
| var economicType = content[(module.data.outProjectInformationDetail.economicType-1)].dictLabel; | |||||
| module.data.outProjectInformationDetail.economicType = economicType; | |||||
| var outProjectInformationData = template('outProjectInformationData', module.data); | |||||
| $("#outProjectInformationContent").html(outProjectInformationData); | |||||
| } | |||||
| } | } | ||||
| } | } | ||||