diff --git a/index.html b/index.html index 6576262..62a9c94 100644 --- a/index.html +++ b/index.html @@ -250,7 +250,7 @@
- +

diff --git a/static/js/api/index.js b/static/js/api/index.js index 41a04c7..583fb45 100644 --- a/static/js/api/index.js +++ b/static/js/api/index.js @@ -67,7 +67,7 @@ var friendsLinks = '/transaction/website/links'//查询网站底部友情链接 @param dictType:0 */ -var allViewCount = '/transaction/website/outproject/allViewCount'//查询挂牌项目浏览总次数 +var allViewCount = '/transaction/website/outproject/allViewCount'//查询交易项目浏览总次数 /* @purl /transaction/website/outproject/{projectNumberArr}/{deptId}/{limit} @@ -79,7 +79,7 @@ var allViewCount = '/transaction/website/outproject/allViewCount'//查询挂牌 deptId:行政区划部门ID limit:需要获取的数据条数(如获取3条,参数设置为 3) */ -var webListing = '/transaction/website/outproject'//查询挂牌项目信息列表 +var webListing = '/transaction/website/outproject'//查询交易项目信息列表 /* @purl /transaction/website/outproject/publicity/{deptId}/{limit} diff --git a/static/js/api/items.js b/static/js/api/items.js index ec6805e..ddbe446 100644 --- a/static/js/api/items.js +++ b/static/js/api/items.js @@ -1,5 +1,5 @@ /*-------------- -* 挂牌项目类 +* 交易项目类 -----------------*/ /* @@ -33,14 +33,14 @@ var webDept = '/transaction/website/deptList'//标的物所在地 @param id: 主键ID */ -var outProject = '/transaction/website/outproject'//挂牌项目基本信息 +var outProject = '/transaction/website/outproject'//交易项目基本信息 /* @purl /transaction/website/transfer/{type} @param type: 传递字典类型参数,获取相应的字典值列表List */ -var Dictionaries = '/transaction/website/transfer'//挂牌项目字典 +var Dictionaries = '/transaction/website/transfer'//交易项目字典 /* @purl /transaction/website/outproject/showImg/id/{id} diff --git a/static/js/common/main.js b/static/js/common/main.js index e19b1d2..2538fbd 100644 --- a/static/js/common/main.js +++ b/static/js/common/main.js @@ -1,167 +1,167 @@ -requirejs.config({ - urlArgs: "ver=1.0_" + (new Date).getTime(), - baseUrl: '/static/js/', - paths: { - //第三方库的路径配置 - jquery: 'lib/jquery/jquery-1.9.1.min', //jquery - bootstrap: 'lib/bootstrap/js/bootstrap.min', //bootstrap - jqueryCookie: 'lib/jquery-cookie/jquery.cookie', //cookie插件 - template: 'lib/template/template', //模板引擎 - templaten: 'lib/template/template-native', //模板引擎-后端写法 - jqueryLazyload: 'lib/jQuery-plugins/jquery.lazyload.min', //图片延迟加载 - dialog: 'lib/dialog/dialog', //artDialog弹窗插件 - dialogConf: 'lib/dialog/dialog-config', - drag: 'lib/dialog/drag', - popup: 'lib/dialog/popup', - swiper: 'lib/swiper/swiper.min', //焦点图插件 - nprogress: 'lib/nprogress/nprogress', //页面加载loading组件 - echarts: 'lib/echarts/echarts.min', //echarts组件 - laydata:'lib/laydata/laydata', - paging:'lib/paging/page_common',//分页插件 - cupload:'lib/cupload/cupload',//上传图片插件 - dateTime:'lib/dateTime/dateTime.min',//时间选择器 - signature:'lib/jq-signature/jq-signature', - WritingPad:'lib/jq-signature/WritingPad', - - //自己写的路径配置 - Tools: 'common/tools', - addressApi: 'api/index', //所有Ajax接口存放地 - newApi: 'api/new', //新闻接口 - itemsApi: 'api/items', //挂牌项目接口 - biddingApi: 'api/bidding', //竞价大厅接口 - announApi: 'api/announcementList', //项目公告接口 - demandApi: 'api/demand', //个人供求接口 - policyApi: 'api/policy',//政策法规接口 - interactApi: 'api/interact',//互动交流接口 - user: 'api/user',//用户信息接口 - register:'api/register',//用户注册接口 - ajaxUploadImage:'lib/ajaxUpload/ajaxupload',//上传图片 - kindeditor:'lib/kindeditor/kindeditor-all', - zhCN:'lib/kindeditor/lang/zh-CN', - jsencrypt:'lib/jsencrypt/jsencrypt.min',//加密解密 - }, - shim: { - bootstrap: { - deps: ['jquery'] - }, - jqueryLazyload: { - deps: ['jquery'] - }, - dialog: { - deps: ['jquery', 'dialogConf', 'drag', 'popup'], - exports: 'dialog' - }, - swiper: { - deps: ['jquery'], - exports: 'swiper' - }, - nprogress: { - deps: ['jquery'], - exports: 'nprogress' - }, - paging: { - deps: ['jquery'], - exports: 'paging' - }, - dateTime: { - deps: ['jquery'], - exports: 'dateTime' - }, - ajaxUploadImage: { - deps: ['jquery'], - exports: 'ajaxUploadImage' - }, - kindeditor: { - deps: ['zhCN'], - exports: 'kindeditor' - }, - jsencrypt: { - deps: ['jquery'], - exports: 'jsencrypt' - }, - // WritingPad: { - // deps: ['jquery','signature'], - // exports: 'WritingPad' - // }, - } -}); - -//所有页面都需要的js,先行加载 -require(['jquery', 'addressApi']); - -// require(["jquery", "nprogress"], function ($, nprogress) { -require(["jquery"], function ($) { - //ajax加载页面跳转 - // $(document).ajaxStart(function () { - // // $('.loading').show(); - // // nprogress.start(); - // }).ajaxStop(function () { - // // $('.loading').hide(); - // // nprogress.done(); - // }); - //根据条件加载不同js文件 - var currentPage = $("#require-page").attr("current-page"); - var targetModule = $("#require-page").attr("target-module"); - if (targetModule) { - // 页面加载完毕后再执行相关业务代码比较稳妥 - $(function () { - require([targetModule], function (targetModule) { - //不要在这里写业务代码 - //全部统一调用init方法 - //也就是每个模块都暴露一个init方法用于事件监听,页面内容加载等 - targetModule.init(currentPage); - }); - }); - return; - } -}) - -require(["jquery", "Tools","addressApi"], function ($, Tools) { - var tools = new Tools(); - // document.getElementById('dress').onmouseover = function(){ - // document.getElementById('dressList').style.display = 'block'; - // }; - // document.getElementById('dressList').onmouseover = function(){ - // document.getElementById('dressList').style.display = 'block'; - // }; - // document.getElementById('dress').onmouseout = function(){ - // document.getElementById('dressList').style.display = 'none'; - // }; - // document.getElementById('dressList').onmouseout = function(){ - // document.getElementById('dressList').style.display = 'none'; - // }; - if(tools.getCookie('Admin-Token') != ''){ - document.getElementById('userInfo').style.display = 'block'; - document.getElementById('userLogin').style.display = 'none'; - document.getElementById('userRealName').innerHTML = tools.getCookie('userName'); - document.getElementById('userRealName2').innerHTML = tools.getCookie('userName'); - document.getElementById('userInfo').onmouseover = function(){ - document.getElementById('headHover').style.display = 'block'; - }; - document.getElementById('headHover').onmouseover = function(){ - document.getElementById('headHover').style.display = 'block'; - }; - document.getElementById('userInfo').onmouseout = function(){ - document.getElementById('headHover').style.display = 'none'; - }; - document.getElementById('headHover').onmouseout = function(){ - document.getElementById('headHover').style.display = 'none'; - }; - }else{ - document.getElementById('userLogin').style.display = 'block'; - } - - outLogin = function(){ - tools.removeAllCookie(); - } - - goIndex = function(){ - tools.skip('/'); - } - - searchAllNew = function () { - var searchAllTitle = $('#searchAllTitle').val(); - tools.skip('view/new/newList.html?title='+searchAllTitle); - } - -}) \ No newline at end of file +requirejs.config({ + urlArgs: "ver=1.0_" + (new Date).getTime(), + baseUrl: '/static/js/', + paths: { + //第三方库的路径配置 + jquery: 'lib/jquery/jquery-1.9.1.min', //jquery + bootstrap: 'lib/bootstrap/js/bootstrap.min', //bootstrap + jqueryCookie: 'lib/jquery-cookie/jquery.cookie', //cookie插件 + template: 'lib/template/template', //模板引擎 + templaten: 'lib/template/template-native', //模板引擎-后端写法 + jqueryLazyload: 'lib/jQuery-plugins/jquery.lazyload.min', //图片延迟加载 + dialog: 'lib/dialog/dialog', //artDialog弹窗插件 + dialogConf: 'lib/dialog/dialog-config', + drag: 'lib/dialog/drag', + popup: 'lib/dialog/popup', + swiper: 'lib/swiper/swiper.min', //焦点图插件 + nprogress: 'lib/nprogress/nprogress', //页面加载loading组件 + echarts: 'lib/echarts/echarts.min', //echarts组件 + laydata:'lib/laydata/laydata', + paging:'lib/paging/page_common',//分页插件 + cupload:'lib/cupload/cupload',//上传图片插件 + dateTime:'lib/dateTime/dateTime.min',//时间选择器 + signature:'lib/jq-signature/jq-signature', + WritingPad:'lib/jq-signature/WritingPad', + + //自己写的路径配置 + Tools: 'common/tools', + addressApi: 'api/index', //所有Ajax接口存放地 + newApi: 'api/new', //新闻接口 + itemsApi: 'api/items', //交易项目接口 + biddingApi: 'api/bidding', //竞价大厅接口 + announApi: 'api/announcementList', //项目公告接口 + demandApi: 'api/demand', //个人供求接口 + policyApi: 'api/policy',//政策法规接口 + interactApi: 'api/interact',//互动交流接口 + user: 'api/user',//用户信息接口 + register:'api/register',//用户注册接口 + ajaxUploadImage:'lib/ajaxUpload/ajaxupload',//上传图片 + kindeditor:'lib/kindeditor/kindeditor-all', + zhCN:'lib/kindeditor/lang/zh-CN', + jsencrypt:'lib/jsencrypt/jsencrypt.min',//加密解密 + }, + shim: { + bootstrap: { + deps: ['jquery'] + }, + jqueryLazyload: { + deps: ['jquery'] + }, + dialog: { + deps: ['jquery', 'dialogConf', 'drag', 'popup'], + exports: 'dialog' + }, + swiper: { + deps: ['jquery'], + exports: 'swiper' + }, + nprogress: { + deps: ['jquery'], + exports: 'nprogress' + }, + paging: { + deps: ['jquery'], + exports: 'paging' + }, + dateTime: { + deps: ['jquery'], + exports: 'dateTime' + }, + ajaxUploadImage: { + deps: ['jquery'], + exports: 'ajaxUploadImage' + }, + kindeditor: { + deps: ['zhCN'], + exports: 'kindeditor' + }, + jsencrypt: { + deps: ['jquery'], + exports: 'jsencrypt' + }, + // WritingPad: { + // deps: ['jquery','signature'], + // exports: 'WritingPad' + // }, + } +}); + +//所有页面都需要的js,先行加载 +require(['jquery', 'addressApi']); + +// require(["jquery", "nprogress"], function ($, nprogress) { +require(["jquery"], function ($) { + //ajax加载页面跳转 + // $(document).ajaxStart(function () { + // // $('.loading').show(); + // // nprogress.start(); + // }).ajaxStop(function () { + // // $('.loading').hide(); + // // nprogress.done(); + // }); + //根据条件加载不同js文件 + var currentPage = $("#require-page").attr("current-page"); + var targetModule = $("#require-page").attr("target-module"); + if (targetModule) { + // 页面加载完毕后再执行相关业务代码比较稳妥 + $(function () { + require([targetModule], function (targetModule) { + //不要在这里写业务代码 + //全部统一调用init方法 + //也就是每个模块都暴露一个init方法用于事件监听,页面内容加载等 + targetModule.init(currentPage); + }); + }); + return; + } +}) + +require(["jquery", "Tools","addressApi"], function ($, Tools) { + var tools = new Tools(); + // document.getElementById('dress').onmouseover = function(){ + // document.getElementById('dressList').style.display = 'block'; + // }; + // document.getElementById('dressList').onmouseover = function(){ + // document.getElementById('dressList').style.display = 'block'; + // }; + // document.getElementById('dress').onmouseout = function(){ + // document.getElementById('dressList').style.display = 'none'; + // }; + // document.getElementById('dressList').onmouseout = function(){ + // document.getElementById('dressList').style.display = 'none'; + // }; + if(tools.getCookie('Admin-Token') != ''){ + document.getElementById('userInfo').style.display = 'block'; + document.getElementById('userLogin').style.display = 'none'; + document.getElementById('userRealName').innerHTML = tools.getCookie('userName'); + document.getElementById('userRealName2').innerHTML = tools.getCookie('userName'); + document.getElementById('userInfo').onmouseover = function(){ + document.getElementById('headHover').style.display = 'block'; + }; + document.getElementById('headHover').onmouseover = function(){ + document.getElementById('headHover').style.display = 'block'; + }; + document.getElementById('userInfo').onmouseout = function(){ + document.getElementById('headHover').style.display = 'none'; + }; + document.getElementById('headHover').onmouseout = function(){ + document.getElementById('headHover').style.display = 'none'; + }; + }else{ + document.getElementById('userLogin').style.display = 'block'; + } + + outLogin = function(){ + tools.removeAllCookie(); + } + + goIndex = function(){ + tools.skip('/'); + } + + searchAllNew = function () { + var searchAllTitle = $('#searchAllTitle').val(); + tools.skip('view/new/newList.html?title='+searchAllTitle); + } + +}) diff --git a/static/js/project/bidding/biddingBigData.js b/static/js/project/bidding/biddingBigData.js index 605cb2b..1da166a 100644 --- a/static/js/project/bidding/biddingBigData.js +++ b/static/js/project/bidding/biddingBigData.js @@ -16,7 +16,7 @@ define(['jquery', "template", "Tools", "biddingApi", "itemsApi"], function ($, t var tools = new Tools(); module.init = function (page) { - //查询挂牌项目浏览总次数 + //查询交易项目浏览总次数 // tools.doGet(biddingHallList + '/0/10', {}, module.biddingHallList, true); tools.doGet(biddingList, {deptId:100}, module.biddingHallList,true); //竞价大厅-滚动 @@ -175,4 +175,4 @@ define(['jquery', "template", "Tools", "biddingApi", "itemsApi"], function ($, t } return module; -}); \ No newline at end of file +}); diff --git a/static/js/project/bidding/biddingBigDataDetail.js b/static/js/project/bidding/biddingBigDataDetail.js index 87378c8..7147427 100644 --- a/static/js/project/bidding/biddingBigDataDetail.js +++ b/static/js/project/bidding/biddingBigDataDetail.js @@ -63,7 +63,7 @@ define(['jquery', "template", "Tools", "biddingApi", "itemsApi"], function ($, t tools.doGet(Dictionaries+'/bidding_type', {}, module.biddingTypeDictionaries,true); //期满处理字典 tools.doGet(Dictionaries+'/bidding_direct', {}, module.biddingDirectDictionaries,true); - //挂牌项目竞价记录 + //交易项目竞价记录 tools.doGet(biddinglist, {projectId:getQueryVariable('id')}, module.biddinglistInformation,true); } @@ -260,4 +260,4 @@ define(['jquery', "template", "Tools", "biddingApi", "itemsApi"], function ($, t } return module; -}); \ No newline at end of file +}); diff --git a/static/js/project/bidding/biddingList.js b/static/js/project/bidding/biddingList.js index 5293a3a..f38255f 100644 --- a/static/js/project/bidding/biddingList.js +++ b/static/js/project/bidding/biddingList.js @@ -150,7 +150,7 @@ define(['jquery', "template", "Tools", "biddingApi", "itemsApi", "paging",'dateT document.getElementById('bannerBottom').src = '../../static/images/bannerBottom.jpg' } } - //挂牌项目列表 + //交易项目列表 module.biddingList = function (data) { if (data.code == 200) { console.log(data) @@ -369,4 +369,4 @@ define(['jquery', "template", "Tools", "biddingApi", "itemsApi", "paging",'dateT tools.skip('../listingItems/itemsDetail.html?id='+id); } return module; -}); \ No newline at end of file +}); diff --git a/static/js/project/index.js b/static/js/project/index.js index d2738bd..3e0d292 100644 --- a/static/js/project/index.js +++ b/static/js/project/index.js @@ -1,833 +1,833 @@ -/** - * Created by Administrator on 2021/4/5. - */ -define(['jquery', "template", "Tools", "echarts", 'swiper'], function ($, template, Tools, echarts, swiper) { - //数据存储 - var module = { - data: { - //服务器地址 - serverApi:'', - //焦点图数据 - focusList: [], - //焦点图数据 - focusListTop: [], - //底部焦点图 - focusListNext:[], - //新闻资讯数据 - newsInformationList: [], - //政策法规数据 - policiesRegulationsList: [], - //交易规则数据 - tradingRulesList: [], - //资料下载数据 - dataDownloadList: [], - //标的物所在地 - deptLocationList:[], - //标的物类型 - deptTypeList:[], - //网站配置信息 - webConfigInformationList:[], - //底部友情链接 - friendsLinksList:[], - //土地林地四荒地数据 - landListList:[], - //集体资产数据 - collectiveAssetsList:[], - //小型水利设施数据 - waterConservancyFacilitiesList:[], - //农业生产设备数据 - productionEquipmentList:[], - //挂牌项目总浏览次数 - allViewCountList:[], - //成交公示数据 - announcementListList:[], - //鉴证公告数据 - attestationList:[], - //供应列表 - supplyDemandList:[], - //需求列表 - supplyDemand2List:[] - }, - //柱状图参数 - option: { - xAxis: { - type: 'category', - axisLine: { - show: true, - lineStyle: { - width: 1, - type: "solid" - } - }, - axisLabel: { //设置x轴的字 - show: true, - interval: 0,//使x轴横坐标全部显示 - textStyle: {//x轴字体样式 - margin: 15 - } - }, - data: [] - }, - yAxis: { - type: 'value', - min: 400, - max: 1000, - splitNumber: 7, - splitLine: { - lineStyle: { - type: 'dashed' - } - }, - axisLine: { - show: true, - lineStyle: { - width: 1, - type: "solid" - } - }, - - }, - series: [{ - data: [],//实际值减300 - type: 'bar', - itemStyle: { - color: '#007b76' - } - }], - grid: { - height: 200, - width: 230, - top: '-5px' - }, - tooltip: { - trigger: "axis", - axisPointer: { - // 坐标轴指示器,坐标轴触发有效 - type: "shadow", // 默认为直线,可选为:'line' | 'shadow' - }, - }, - } - }; - var tools = new Tools(); - - module.init = function (page) { - //获取焦点图信息 - tools.doGet(websitePicture, {picType:1,status:0,orderByColumn:'picSort',isAsc:'desc'}, module.focusNewsTop , true); - //获取焦点图信息 - tools.doGet(websitePicture, {picType:2,status:0,orderByColumn:'picSort',isAsc:'desc'}, module.focusNewsPC , true); - - //获取焦点图信息 - tools.doGet(websiteNew + '/1/0/4', {}, module.focusNews , true); - - //新闻资讯 - tools.doGet(websiteNew + '/2/0/6', {}, module.NewsInformation , true); - - //政策法规 - tools.doGet(websiteNew + '/3/0/6', {}, module.policiesRegulations , true); - - //交易规则 - tools.doGet(websiteNew + '/4/0/6', {}, module.tradingRules , true); - - //资料下载 - tools.doGet(websiteNew + '/5/0/6', {}, module.dataDownload, true); - - //标的物所在地 - // tools.doGet(webDept, {deptId:''}, module.deptLocation , true); - - //标的物类型 - tools.doGet(webDeptType+"/project_type", {}, module.deptType, true); - - //标的物类型下拉菜单 - // tools.doGet(webDeptType+"/project_type", {}, module.deptTypeSelect, true); - - //网站配置信息(网站名称 底部联系方式 公安备案号 网站备案号) - tools.getWebConfig(); - - //底部友情链接 - tools.doGet(friendsLinks, {}, module.bottomFriendsLinks, true); - - //供应项目 - tools.doGet(itemsList, {projectNumber:'',pageSize:'5',pageNum:'1'}, module.itemList, true); - - //需求项目 - tools.doGet(needProjectList, {projectNumber:'',pageSize:'5',pageNum:'1'}, module.itemLists, true); - - //农业生产设备 - // tools.doGet(webListing + '/9/0/5', {}, module.productionEquipment, true); - - //小型水利设施 - // tools.doGet(webListing + '/8/0/5', {}, module.waterConservancyFacilities, true); - - //查询挂牌项目浏览总次数 - // tools.doGet(allViewCount + '/100', {}, module.allViewCount, true); - - //查询挂牌项目浏览总次数 - tools.doGet(announcementList + '/0/4', {}, module.announcementList, true); - - //查询挂牌项目浏览总次数 - tools.doGet(biddingHallList + '/0/100', {}, module.biddingHallList, true); - - //查询挂牌项目浏览总次数 - tools.doGet(attestationList + '/0/5', {}, module.attestationList, true); - - //个人供求 - tools.doGet(supplyDemand + '/100/1/5', {}, module.supplyDemand, true); - - tools.doGet(supplyDemand + '/100/2/5', {}, module.supplyDemand2, true); - - //互动交流 - tools.doGet(communicateList + '/100/5/notnull', {}, module.communicateList, true); - - //土地挂牌价格走势统计图 - // tools.doGet(statistics, {deptId: 100}, module.statisticsContent, true); - - //竞价大厅-滚动 - module.hallRolling(); - setTimeout(function(){ - //主题图片切换 - module.switchTheme(); - },500) - - }; - - //主题图片切换 - module.switchTheme = function(){ - if(themeColor == 'red'){ - document.getElementById('centerBanner').src = './static/images/centerBanner_red.jpg' - document.getElementById('bannerBottom').src = './static/images/bannerBottom_red.jpg' - }else if(themeColor == 'green'){ - document.getElementById('centerBanner').src = './static/images/centerBanner.jpg' - document.getElementById('bannerBottom').src = './static/images/bannerBottom.jpg' - } - } - - //焦点图数据 - module.focusNewsTop = function (data) { - - if (data.code == 200) { - - let focusArray = []; - - if(data.data.length<1){ - focusArray.push({ - picUrl:'../static/images/banner1.png' - },{ - picUrl:'../static/images/banner2.png' - },{ - picUrl:'../static/images/banner3.png' - }) - }else{ - data.data.forEach(res=>{ - focusArray.push({ - picUrl:'/api'+res.picUrl - }) - }) - } - - module.data.focusListTop = focusArray; - var bannerFocusDataTop = template('bannerFocusDataTop', module.data); - $("#bannerFocusTopContent").html(bannerFocusDataTop); - - new Swiper('#bannerFocusWrapTop', { - paginationClickable: true, - autoplay : 4000, - loop:true - }) - - } - - } - - //焦点图数据 - module.focusNewsPC = function (data) { - if (data.code == 200) { - module.data.focusListPC = data.data; - var bannerFocusDataPC = template('bannerFocusDataPC', module.data); - $("#bannerFocusPCContent").html(bannerFocusDataPC); - } - } - - //焦点图数据 - module.focusNews = function (data) { - if (data.code == 200) { - var content = data.data; - var focusList = []; - for (var i = 0; i < content.length; i++) { - var imgStrs = content[i].content.match(//g) - var title = content[i].title; - var id = content[i].id; - if (imgStrs != null && imgStrs != '') { - focusList.push({img:imgStrs[0],title:title,id:id}) - } - } - //console.log(focusList) - module.data.focusList = focusList; - var bannerFocusData = template('bannerFocusData', module.data); - $("#bannerFocusContent").html(bannerFocusData); - new Swiper('#bannerFocusWrap', { - pagination: '.page-pagination', - paginationClickable: true, - autoplay : 2000, - loop:true - }) - - } - } - - module.statisticsContent = function(data){ - //console.log(module.option) - //console.log(data) - module.data.nowPriceAvg = data.nowPriceAvg; - module.data.priceRate = data.priceRate; - var statisticsData = template('statisticsData', module.data); - $("#statisticsContent").html(statisticsData); - for (var i = 0 ; i < data.priceAvgList.length ; i++){ - module.option.xAxis.data[i] = data.priceAvgList[i].year - module.option.series[0].data[i] = data.priceAvgList[i].price - } - // 柱状图绘制 - var chartDom = document.getElementById('chart'); - var myChart = echarts.init(chartDom); - module.option && myChart.setOption(module.option); - } - - //互动交流 - module.communicateList = function (data) { - if (data.code == 200) { - //console.log(data.data) - var content = data.data; - module.data.communicateList = content; - var communicateData = template('communicateData', module.data); - $("#communicateContent").html(communicateData); - } - } - - //新闻资讯数据 - module.NewsInformation = function (data) { - if (data.code == 200) { - var content = data.data; - //console.log(content) - module.data.newsInformationList = content; - var NewsInformationData = template('NewsInformationData', module.data); - $("#NewsInformationContent").html(NewsInformationData); - } - } - - //政策法规 - module.policiesRegulations = function (data) { - if (data.code == 200) { - var content = data.data; - module.data.policiesRegulationsList = content; - var policiesRegulationsData = template('policiesRegulationsData', module.data); - $("#policiesRegulationsContent").html(policiesRegulationsData); - } - } - - //交易规则 - module.tradingRules = function (data) { - if (data.code == 200) { - var content = data.data; - module.data.tradingRulesList = content; - var tradingRulesData = template('tradingRulesData', module.data); - $("#tradingRulesContent").html(tradingRulesData); - } - } - - //资料下载 - module.dataDownload = function (data) { - if (data.code == 200) { - var content = data.data; - module.data.dataDownloadList = content; - var dataDownloadData = template('dataDownloadData', module.data); - $("#dataDownloadContent").html(dataDownloadData); - } - } - - //标的物所在地 - module.deptLocation = function (data) { - //console.log(data) - if (data.code == 200) { - var content = data.data ; - var contentList = []; - for (var i = 0 ; i < 5&&i0){ - //console.log('进行中') - content[i].timeType = '进行中' - } - if(leftTime<0){ - //console.log('已结束') - content[i].timeType = '已结束' - } - if(rightTime>0){ - //console.log('未开始') - content[i].timeType = '未开始' - } - } - - module.data.biddingHallListList = content; - //console.log(content) - var biddingHallListData = template('biddingHallListData', module.data); - $("#biddingHallListContent").html(biddingHallListData); - } - } - - ///竞价大厅-滚动 - module.hallRolling = function () { - var divScroll = document.getElementById('tableList'); - window.onmousewheel = divScroll.onmousewheel = function () { return false } - module.timeInter(divScroll); - divScroll.onmouseover = function () { - clearInterval(time); - } - divScroll.onmouseout = function () { - module.timeInter(divScroll); - } - - } - - //个人供求 - module.supplyDemand = function (data) { - if (data.code == 200) { - //console.log(data) - var content = data.data; - 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); - } - } - - //个人供求 - module.supplyDemand2 = function (data) { - if (data.code == 200) { - //console.log(data) - var content = data.data; - 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); - } - } - - module.supplyDemandRecommend = function(data){ - var focusListNext = module.data.focusListNext; - for (var i = 0; i < data.data.length; i++) { - var imgStrs = data.data[i].fileUrl - if (imgStrs != null && imgStrs != '') { - focusListNext.push({img:serverApi+imgStrs,title:data.data[i].projectName,id:data.data[i].id}) - } - } - //console.log(data) - module.data.focusListNext = focusListNext; - var bannerFocusBottomData = template('bannerFocusBottomData', module.data); - $("#bannerFocusNextContent").html(bannerFocusBottomData); - new Swiper('#bannerFocusNextWrap', { - paginationClickable: true, - pagination: '.a2', - autoplay : 2000, - loop:true - }) - } - - module.supplyImages = function(){ - var focusListNext = module.data.focusListNext; - //console.log(module.data.supplyDemandList) - for (var i = 0; i < module.data.supplyDemandList.length; i++) { - var imgStrs = module.data.supplyDemandList[i].projectContent.match(//g) - var title = module.data.supplyDemandList[i].projectName - if (imgStrs != null && imgStrs != '') { - focusListNext.push({img:imgStrs[0],title:title}) - } - } - for (var i = 0; i < module.data.supplyDemand2List.length; i++) { - var imgStrs = module.data.supplyDemand2List[i].projectContent.match(//g) - var title = module.data.supplyDemand2List[i].projectName - if (imgStrs != null && imgStrs != '') { - focusListNext.push({img:imgStrs[0],title:title}) - } - } - module.data.focusListNext = focusListNext; - var bannerFocusBottomData = template('bannerFocusBottomData', module.data); - $("#bannerFocusNextContent").html(bannerFocusBottomData); - new Swiper('#bannerFocusNextWrap', { - pagination: '.page-pagination1', - paginationClickable: true - }) - } - - module.timeInter = function (divScroll) { - time = setInterval(function () { - var oldTop = divScroll.scrollTop; - var newTop = oldTop + 1; - divScroll.scrollTop = newTop; - var counst = divScroll.scrollHeight - divScroll.scrollTop - divScroll.clientHeight; - //console.log(counst) - if (2 > counst) { - divScroll.scrollTop = 0; - } - }, 30) - } - - //证书查询 - goSearchKeyWord = function(){ - var type = $('input[name="transaction"]:checked').val(); - var searchKeyWord = $('#searchKeyWord').val(); - //console.log($('#searchKeyWord').val()) - //console.log(type) - if($('#searchKeyWord').val() == '' && type== 'warrant'){ - tools.initDialog('提示', '经营权证编号不可为空', function () { - return; - }, '确定') - return; - } - if(type == 'warrant'){ - tools.skip('view/announcement/warrantDetail.html?type='+type+'&searchKeyWord='+searchKeyWord) - }else{ - tools.skip('view/announcement/announcement.html?type='+type+'&searchKeyWord='+searchKeyWord) - } - } - - //项目查询 - searchProject = function(){ - var projectNum = $('#projectNum').val(); - var projectName = $('#projectName').val(); - var deptTypeSelect = $("select[name='deptTypeSelect']").val(); - tools.skip('view/listingItems/itemsList.html?projectCode='+projectNum+'&projectName='+projectName+'&projectNumber='+deptTypeSelect) - } - - //标的物类型 - module.deptTypeSelect = function (data) { - if (data.code == 200) { - //console.log(data); - var content = data.data ; - module.data.deptTypeSelectList = content; - var deptTypeSelectData = template('deptTypeSelectData', module.data); - $("#deptTypeSelectContent").html(deptTypeSelectData); - } - } - - //切换 - tabCheck = function (type) { - - if(type == 'supply'){ - document.getElementById('demand').style.display = 'none'; - document.getElementById('demandBtn').className = ''; - } - if(type == 'demand'){ - document.getElementById('supply').style.display = 'none'; - document.getElementById('supplyBtn').className = ''; - } - document.getElementById(type).style.display = 'inline-table'; - document.getElementById(type+'Btn').className = 'active'; - } - - //切换 - tabClick = function (type) { - - document.getElementById('cjgg').style.display = 'none'; - document.getElementById('jzgg').style.display = 'none'; - document.getElementById('cjggBtn').className = ''; - document.getElementById('jzggBtn').className = ''; - - document.getElementById(type).style.display = 'block'; - document.getElementById(type+'Btn').className = 'active'; - } - - goDetail = function (id) { - if (!id)return; - tools.skip('view/listingItems/itemsDetail.html?id='+id); - } - goUserInteract = function () { - tools.skip('view/user/user.html?type=goInteract') - } - goListing = function (clickType,dictSort,dictCode) { - tools.skip('view/listingItems/itemsList.html?clickType='+clickType+'&dictSort='+dictSort+'&dictCode='+dictCode); - } - - goAnnouncementList = function (type) { - tools.skip('view/announcement/announcement.html?type='+type+'&searchKeyWord='); - } - - goNewList = function () { - tools.skip('view/new/newList.html'); - } - - goPolicy = function (type) { - tools.skip('view/policy/policy.html?type='+type); - } - - goBidding = function(){ - tools.skip('view/bidding/biddingList.html'); - } - - goDemand = function(){ - tools.skip('view/demand/demand.html'); - } - - goInteraction = function(){ - tools.skip('view/interact/interactList.html'); - } - goInteractSearch = function(){ - tools.skip('view/interact/interactList.html?keyWord='+$('#interactInput').val()); - } - return module; -}); \ No newline at end of file +/** + * Created by Administrator on 2021/4/5. + */ +define(['jquery', "template", "Tools", "echarts", 'swiper'], function ($, template, Tools, echarts, swiper) { + //数据存储 + var module = { + data: { + //服务器地址 + serverApi:'', + //焦点图数据 + focusList: [], + //焦点图数据 + focusListTop: [], + //底部焦点图 + focusListNext:[], + //新闻资讯数据 + newsInformationList: [], + //政策法规数据 + policiesRegulationsList: [], + //交易规则数据 + tradingRulesList: [], + //资料下载数据 + dataDownloadList: [], + //标的物所在地 + deptLocationList:[], + //标的物类型 + deptTypeList:[], + //网站配置信息 + webConfigInformationList:[], + //底部友情链接 + friendsLinksList:[], + //土地林地四荒地数据 + landListList:[], + //集体资产数据 + collectiveAssetsList:[], + //小型水利设施数据 + waterConservancyFacilitiesList:[], + //农业生产设备数据 + productionEquipmentList:[], + //交易项目总浏览次数 + allViewCountList:[], + //成交公示数据 + announcementListList:[], + //鉴证公告数据 + attestationList:[], + //供应列表 + supplyDemandList:[], + //需求列表 + supplyDemand2List:[] + }, + //柱状图参数 + option: { + xAxis: { + type: 'category', + axisLine: { + show: true, + lineStyle: { + width: 1, + type: "solid" + } + }, + axisLabel: { //设置x轴的字 + show: true, + interval: 0,//使x轴横坐标全部显示 + textStyle: {//x轴字体样式 + margin: 15 + } + }, + data: [] + }, + yAxis: { + type: 'value', + min: 400, + max: 1000, + splitNumber: 7, + splitLine: { + lineStyle: { + type: 'dashed' + } + }, + axisLine: { + show: true, + lineStyle: { + width: 1, + type: "solid" + } + }, + + }, + series: [{ + data: [],//实际值减300 + type: 'bar', + itemStyle: { + color: '#007b76' + } + }], + grid: { + height: 200, + width: 230, + top: '-5px' + }, + tooltip: { + trigger: "axis", + axisPointer: { + // 坐标轴指示器,坐标轴触发有效 + type: "shadow", // 默认为直线,可选为:'line' | 'shadow' + }, + }, + } + }; + var tools = new Tools(); + + module.init = function (page) { + //获取焦点图信息 + tools.doGet(websitePicture, {picType:1,status:0,orderByColumn:'picSort',isAsc:'desc'}, module.focusNewsTop , true); + //获取焦点图信息 + tools.doGet(websitePicture, {picType:2,status:0,orderByColumn:'picSort',isAsc:'desc'}, module.focusNewsPC , true); + + //获取焦点图信息 + tools.doGet(websiteNew + '/1/0/4', {}, module.focusNews , true); + + //新闻资讯 + tools.doGet(websiteNew + '/2/0/6', {}, module.NewsInformation , true); + + //政策法规 + tools.doGet(websiteNew + '/3/0/6', {}, module.policiesRegulations , true); + + //交易规则 + tools.doGet(websiteNew + '/4/0/6', {}, module.tradingRules , true); + + //资料下载 + tools.doGet(websiteNew + '/5/0/6', {}, module.dataDownload, true); + + //标的物所在地 + // tools.doGet(webDept, {deptId:''}, module.deptLocation , true); + + //标的物类型 + tools.doGet(webDeptType+"/project_type", {}, module.deptType, true); + + //标的物类型下拉菜单 + // tools.doGet(webDeptType+"/project_type", {}, module.deptTypeSelect, true); + + //网站配置信息(网站名称 底部联系方式 公安备案号 网站备案号) + tools.getWebConfig(); + + //底部友情链接 + tools.doGet(friendsLinks, {}, module.bottomFriendsLinks, true); + + //供应项目 + tools.doGet(itemsList, {projectNumber:'',pageSize:'5',pageNum:'1'}, module.itemList, true); + + //需求项目 + tools.doGet(needProjectList, {projectNumber:'',pageSize:'5',pageNum:'1'}, module.itemLists, true); + + //农业生产设备 + // tools.doGet(webListing + '/9/0/5', {}, module.productionEquipment, true); + + //小型水利设施 + // tools.doGet(webListing + '/8/0/5', {}, module.waterConservancyFacilities, true); + + //查询交易项目浏览总次数 + // tools.doGet(allViewCount + '/100', {}, module.allViewCount, true); + + //查询交易项目浏览总次数 + tools.doGet(announcementList + '/0/4', {}, module.announcementList, true); + + //查询交易项目浏览总次数 + tools.doGet(biddingHallList + '/0/100', {}, module.biddingHallList, true); + + //查询交易项目浏览总次数 + tools.doGet(attestationList + '/0/5', {}, module.attestationList, true); + + //个人供求 + tools.doGet(supplyDemand + '/100/1/5', {}, module.supplyDemand, true); + + tools.doGet(supplyDemand + '/100/2/5', {}, module.supplyDemand2, true); + + //互动交流 + tools.doGet(communicateList + '/100/5/notnull', {}, module.communicateList, true); + + //土地挂牌价格走势统计图 + // tools.doGet(statistics, {deptId: 100}, module.statisticsContent, true); + + //竞价大厅-滚动 + module.hallRolling(); + setTimeout(function(){ + //主题图片切换 + module.switchTheme(); + },500) + + }; + + //主题图片切换 + module.switchTheme = function(){ + if(themeColor == 'red'){ + document.getElementById('centerBanner').src = './static/images/centerBanner_red.jpg' + document.getElementById('bannerBottom').src = './static/images/bannerBottom_red.jpg' + }else if(themeColor == 'green'){ + document.getElementById('centerBanner').src = './static/images/centerBanner.jpg' + document.getElementById('bannerBottom').src = './static/images/bannerBottom.jpg' + } + } + + //焦点图数据 + module.focusNewsTop = function (data) { + + if (data.code == 200) { + + let focusArray = []; + + if(data.data.length<1){ + focusArray.push({ + picUrl:'../static/images/banner1.png' + },{ + picUrl:'../static/images/banner2.png' + },{ + picUrl:'../static/images/banner3.png' + }) + }else{ + data.data.forEach(res=>{ + focusArray.push({ + picUrl:'/api'+res.picUrl + }) + }) + } + + module.data.focusListTop = focusArray; + var bannerFocusDataTop = template('bannerFocusDataTop', module.data); + $("#bannerFocusTopContent").html(bannerFocusDataTop); + + new Swiper('#bannerFocusWrapTop', { + paginationClickable: true, + autoplay : 4000, + loop:true + }) + + } + + } + + //焦点图数据 + module.focusNewsPC = function (data) { + if (data.code == 200) { + module.data.focusListPC = data.data; + var bannerFocusDataPC = template('bannerFocusDataPC', module.data); + $("#bannerFocusPCContent").html(bannerFocusDataPC); + } + } + + //焦点图数据 + module.focusNews = function (data) { + if (data.code == 200) { + var content = data.data; + var focusList = []; + for (var i = 0; i < content.length; i++) { + var imgStrs = content[i].content.match(//g) + var title = content[i].title; + var id = content[i].id; + if (imgStrs != null && imgStrs != '') { + focusList.push({img:imgStrs[0],title:title,id:id}) + } + } + //console.log(focusList) + module.data.focusList = focusList; + var bannerFocusData = template('bannerFocusData', module.data); + $("#bannerFocusContent").html(bannerFocusData); + new Swiper('#bannerFocusWrap', { + pagination: '.page-pagination', + paginationClickable: true, + autoplay : 2000, + loop:true + }) + + } + } + + module.statisticsContent = function(data){ + //console.log(module.option) + //console.log(data) + module.data.nowPriceAvg = data.nowPriceAvg; + module.data.priceRate = data.priceRate; + var statisticsData = template('statisticsData', module.data); + $("#statisticsContent").html(statisticsData); + for (var i = 0 ; i < data.priceAvgList.length ; i++){ + module.option.xAxis.data[i] = data.priceAvgList[i].year + module.option.series[0].data[i] = data.priceAvgList[i].price + } + // 柱状图绘制 + var chartDom = document.getElementById('chart'); + var myChart = echarts.init(chartDom); + module.option && myChart.setOption(module.option); + } + + //互动交流 + module.communicateList = function (data) { + if (data.code == 200) { + //console.log(data.data) + var content = data.data; + module.data.communicateList = content; + var communicateData = template('communicateData', module.data); + $("#communicateContent").html(communicateData); + } + } + + //新闻资讯数据 + module.NewsInformation = function (data) { + if (data.code == 200) { + var content = data.data; + //console.log(content) + module.data.newsInformationList = content; + var NewsInformationData = template('NewsInformationData', module.data); + $("#NewsInformationContent").html(NewsInformationData); + } + } + + //政策法规 + module.policiesRegulations = function (data) { + if (data.code == 200) { + var content = data.data; + module.data.policiesRegulationsList = content; + var policiesRegulationsData = template('policiesRegulationsData', module.data); + $("#policiesRegulationsContent").html(policiesRegulationsData); + } + } + + //交易规则 + module.tradingRules = function (data) { + if (data.code == 200) { + var content = data.data; + module.data.tradingRulesList = content; + var tradingRulesData = template('tradingRulesData', module.data); + $("#tradingRulesContent").html(tradingRulesData); + } + } + + //资料下载 + module.dataDownload = function (data) { + if (data.code == 200) { + var content = data.data; + module.data.dataDownloadList = content; + var dataDownloadData = template('dataDownloadData', module.data); + $("#dataDownloadContent").html(dataDownloadData); + } + } + + //标的物所在地 + module.deptLocation = function (data) { + //console.log(data) + if (data.code == 200) { + var content = data.data ; + var contentList = []; + for (var i = 0 ; i < 5&&i0){ + //console.log('进行中') + content[i].timeType = '进行中' + } + if(leftTime<0){ + //console.log('已结束') + content[i].timeType = '已结束' + } + if(rightTime>0){ + //console.log('未开始') + content[i].timeType = '未开始' + } + } + + module.data.biddingHallListList = content; + //console.log(content) + var biddingHallListData = template('biddingHallListData', module.data); + $("#biddingHallListContent").html(biddingHallListData); + } + } + + ///竞价大厅-滚动 + module.hallRolling = function () { + var divScroll = document.getElementById('tableList'); + window.onmousewheel = divScroll.onmousewheel = function () { return false } + module.timeInter(divScroll); + divScroll.onmouseover = function () { + clearInterval(time); + } + divScroll.onmouseout = function () { + module.timeInter(divScroll); + } + + } + + //个人供求 + module.supplyDemand = function (data) { + if (data.code == 200) { + //console.log(data) + var content = data.data; + 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); + } + } + + //个人供求 + module.supplyDemand2 = function (data) { + if (data.code == 200) { + //console.log(data) + var content = data.data; + 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); + } + } + + module.supplyDemandRecommend = function(data){ + var focusListNext = module.data.focusListNext; + for (var i = 0; i < data.data.length; i++) { + var imgStrs = data.data[i].fileUrl + if (imgStrs != null && imgStrs != '') { + focusListNext.push({img:serverApi+imgStrs,title:data.data[i].projectName,id:data.data[i].id}) + } + } + //console.log(data) + module.data.focusListNext = focusListNext; + var bannerFocusBottomData = template('bannerFocusBottomData', module.data); + $("#bannerFocusNextContent").html(bannerFocusBottomData); + new Swiper('#bannerFocusNextWrap', { + paginationClickable: true, + pagination: '.a2', + autoplay : 2000, + loop:true + }) + } + + module.supplyImages = function(){ + var focusListNext = module.data.focusListNext; + //console.log(module.data.supplyDemandList) + for (var i = 0; i < module.data.supplyDemandList.length; i++) { + var imgStrs = module.data.supplyDemandList[i].projectContent.match(//g) + var title = module.data.supplyDemandList[i].projectName + if (imgStrs != null && imgStrs != '') { + focusListNext.push({img:imgStrs[0],title:title}) + } + } + for (var i = 0; i < module.data.supplyDemand2List.length; i++) { + var imgStrs = module.data.supplyDemand2List[i].projectContent.match(//g) + var title = module.data.supplyDemand2List[i].projectName + if (imgStrs != null && imgStrs != '') { + focusListNext.push({img:imgStrs[0],title:title}) + } + } + module.data.focusListNext = focusListNext; + var bannerFocusBottomData = template('bannerFocusBottomData', module.data); + $("#bannerFocusNextContent").html(bannerFocusBottomData); + new Swiper('#bannerFocusNextWrap', { + pagination: '.page-pagination1', + paginationClickable: true + }) + } + + module.timeInter = function (divScroll) { + time = setInterval(function () { + var oldTop = divScroll.scrollTop; + var newTop = oldTop + 1; + divScroll.scrollTop = newTop; + var counst = divScroll.scrollHeight - divScroll.scrollTop - divScroll.clientHeight; + //console.log(counst) + if (2 > counst) { + divScroll.scrollTop = 0; + } + }, 30) + } + + //证书查询 + goSearchKeyWord = function(){ + var type = $('input[name="transaction"]:checked').val(); + var searchKeyWord = $('#searchKeyWord').val(); + //console.log($('#searchKeyWord').val()) + //console.log(type) + if($('#searchKeyWord').val() == '' && type== 'warrant'){ + tools.initDialog('提示', '经营权证编号不可为空', function () { + return; + }, '确定') + return; + } + if(type == 'warrant'){ + tools.skip('view/announcement/warrantDetail.html?type='+type+'&searchKeyWord='+searchKeyWord) + }else{ + tools.skip('view/announcement/announcement.html?type='+type+'&searchKeyWord='+searchKeyWord) + } + } + + //项目查询 + searchProject = function(){ + var projectNum = $('#projectNum').val(); + var projectName = $('#projectName').val(); + var deptTypeSelect = $("select[name='deptTypeSelect']").val(); + tools.skip('view/listingItems/itemsList.html?projectCode='+projectNum+'&projectName='+projectName+'&projectNumber='+deptTypeSelect) + } + + //标的物类型 + module.deptTypeSelect = function (data) { + if (data.code == 200) { + //console.log(data); + var content = data.data ; + module.data.deptTypeSelectList = content; + var deptTypeSelectData = template('deptTypeSelectData', module.data); + $("#deptTypeSelectContent").html(deptTypeSelectData); + } + } + + //切换 + tabCheck = function (type) { + + if(type == 'supply'){ + document.getElementById('demand').style.display = 'none'; + document.getElementById('demandBtn').className = ''; + } + if(type == 'demand'){ + document.getElementById('supply').style.display = 'none'; + document.getElementById('supplyBtn').className = ''; + } + document.getElementById(type).style.display = 'inline-table'; + document.getElementById(type+'Btn').className = 'active'; + } + + //切换 + tabClick = function (type) { + + document.getElementById('cjgg').style.display = 'none'; + document.getElementById('jzgg').style.display = 'none'; + document.getElementById('cjggBtn').className = ''; + document.getElementById('jzggBtn').className = ''; + + document.getElementById(type).style.display = 'block'; + document.getElementById(type+'Btn').className = 'active'; + } + + goDetail = function (id) { + if (!id)return; + tools.skip('view/listingItems/itemsDetail.html?id='+id); + } + goUserInteract = function () { + tools.skip('view/user/user.html?type=goInteract') + } + goListing = function (clickType,dictSort,dictCode) { + tools.skip('view/listingItems/itemsList.html?clickType='+clickType+'&dictSort='+dictSort+'&dictCode='+dictCode); + } + + goAnnouncementList = function (type) { + tools.skip('view/announcement/announcement.html?type='+type+'&searchKeyWord='); + } + + goNewList = function () { + tools.skip('view/new/newList.html'); + } + + goPolicy = function (type) { + tools.skip('view/policy/policy.html?type='+type); + } + + goBidding = function(){ + tools.skip('view/bidding/biddingList.html'); + } + + goDemand = function(){ + tools.skip('view/demand/demand.html'); + } + + goInteraction = function(){ + tools.skip('view/interact/interactList.html'); + } + goInteractSearch = function(){ + tools.skip('view/interact/interactList.html?keyWord='+$('#interactInput').val()); + } + return module; +}); diff --git a/static/js/project/listingItems/items.js b/static/js/project/listingItems/items.js index 8ce7b7e..6861cc1 100644 --- a/static/js/project/listingItems/items.js +++ b/static/js/project/listingItems/items.js @@ -284,7 +284,7 @@ define(['jquery', "template", "Tools", 'swiper', 'itemsApi', 'swiper'], function var nowTime = Date.parse(new Date()); if(Date.parse(biddingStartTime)距竞价结束还有:0天0'+m+''+s+'秒') - //挂牌项目竞价记录 + //交易项目竞价记录 tools.doGet(biddinglist, {projectId:getQueryVariable('id')}, module.biddinglistInformationNew,true); if(module.data.outProjectInformationDetail.biddingType != '公开竞价' && module.data.biddingTimeType != 2){ diff --git a/static/js/project/listingItems/itemsList.js b/static/js/project/listingItems/itemsList.js index b984500..d457ba3 100644 --- a/static/js/project/listingItems/itemsList.js +++ b/static/js/project/listingItems/itemsList.js @@ -186,7 +186,7 @@ define(['jquery', "template", "Tools", "itemsApi", "paging", 'dateTime', 'swiper return (false); } - //挂牌项目列表 + //交易项目列表 module.itemList = function (data) { if (data.code == 200) { //console.log(data) @@ -462,4 +462,4 @@ define(['jquery', "template", "Tools", "itemsApi", "paging", 'dateTime', 'swiper } return module; -}); \ No newline at end of file +}); diff --git a/view/announcement/attestation.html b/view/announcement/attestation.html index b687a6b..ea85e5b 100644 --- a/view/announcement/attestation.html +++ b/view/announcement/attestation.html @@ -125,7 +125,7 @@

  • 首页
  • -
  • 挂牌项目
  • +
  • 交易项目
  • 竞价大厅
  • 公示公告
  • 个人供求
  • @@ -271,4 +271,4 @@ - \ No newline at end of file + diff --git a/view/announcement/inviteTendersDetail.html b/view/announcement/inviteTendersDetail.html index 8fc789b..ce265ed 100644 --- a/view/announcement/inviteTendersDetail.html +++ b/view/announcement/inviteTendersDetail.html @@ -125,7 +125,7 @@
    • 首页
    • -
    • 挂牌项目
    • +
    • 交易项目
    • 竞价大厅
    • 公示公告
    • 个人供求
    • @@ -227,4 +227,4 @@ - \ No newline at end of file + diff --git a/view/announcement/warrantDetail.html b/view/announcement/warrantDetail.html index e1ba4d6..639c605 100644 --- a/view/announcement/warrantDetail.html +++ b/view/announcement/warrantDetail.html @@ -125,7 +125,7 @@
      • 首页
      • -
      • 挂牌项目
      • +
      • 交易项目
      • 竞价大厅
      • 公示公告
      • 个人供求
      • @@ -229,4 +229,4 @@ - \ No newline at end of file + diff --git a/view/announcement/winTheBiddingDetail.html b/view/announcement/winTheBiddingDetail.html index db3740f..a7596df 100644 --- a/view/announcement/winTheBiddingDetail.html +++ b/view/announcement/winTheBiddingDetail.html @@ -125,7 +125,7 @@
        • 首页
        • -
        • 挂牌项目
        • +
        • 交易项目
        • 竞价大厅
        • 公示公告
        • 个人供求
        • @@ -197,4 +197,4 @@ - \ No newline at end of file + diff --git a/view/demand/demandDetail.html b/view/demand/demandDetail.html index 0690e10..8829a19 100644 --- a/view/demand/demandDetail.html +++ b/view/demand/demandDetail.html @@ -126,7 +126,7 @@
          • 首页
          • -
          • 挂牌项目
          • +
          • 交易项目
          • 竞价大厅
          • 项目公告
          • 个人供求
          • @@ -204,4 +204,4 @@ target-module="../../static/js/project/demand/demandDetail.js" defer type="text/javascript"> - \ No newline at end of file + diff --git a/view/listingItems/bond.html b/view/listingItems/bond.html index 65ba913..2841808 100644 --- a/view/listingItems/bond.html +++ b/view/listingItems/bond.html @@ -263,7 +263,7 @@

            (三)在本项目公告规定报名截止时间前,足额将交易保证金缴纳给甲方。

            (四)同意按甲方公告要求向甲方支付报名费。

            (五)交易成功后,乙方要按项目公告和流转双方签订的《流转合同》约定支付成交价款和相关费用。

            -

            (六)如挂牌项目有说明需要交纳交易佣金的,乙方必须按甲方项目公告内容的交易佣金收取标准及时缴纳交易佣金;

            +

            (六)如交易项目有说明需要交纳交易佣金的,乙方必须按甲方项目公告内容的交易佣金收取标准及时缴纳交易佣金;

            三、违约责任

            乙方承诺:完全承担规定的全部违约责任。

            四、公告和交易期间,除不可抗力因素外,甲方不得撤销终止挂牌交易。

            diff --git a/view/listingItems/itemsNeedsDetail.html b/view/listingItems/itemsNeedsDetail.html index f55ff28..c47d688 100644 --- a/view/listingItems/itemsNeedsDetail.html +++ b/view/listingItems/itemsNeedsDetail.html @@ -125,7 +125,7 @@