网站
No puede seleccionar más de 25 temas Los temas deben comenzar con una letra o número, pueden incluir guiones ('-') y pueden tener hasta 35 caracteres de largo.

index.js 23 KiB

hace 4 años
hace 4 años
hace 4 años
hace 4 años
hace 4 años
hace 4 años
hace 4 años
hace 4 años
hace 4 años
hace 4 años
hace 4 años
hace 4 años
hace 4 años
hace 4 años
hace 4 años
hace 4 años
hace 4 años
hace 4 años
hace 4 años
hace 4 años
hace 4 años
hace 4 años
hace 4 años
hace 4 años
hace 4 años
hace 4 años
hace 4 años
hace 4 años
hace 4 años
hace 4 años
hace 4 años
hace 4 años
hace 4 años
hace 4 años
hace 4 años
hace 4 años
hace 4 años
hace 4 años
hace 4 años
hace 4 años
hace 4 años
hace 4 años
hace 4 años
hace 4 años
hace 4 años
hace 4 años
hace 4 años
hace 4 años
hace 4 años
hace 4 años
hace 4 años
hace 4 años
hace 4 años
hace 4 años
hace 4 años
hace 4 años
hace 4 años
hace 4 años
hace 4 años
hace 4 años
hace 4 años
hace 4 años
hace 4 años
hace 4 años
hace 3 años
hace 4 años
hace 4 años
hace 4 años
hace 4 años
hace 4 años
hace 4 años
hace 4 años
hace 4 años
hace 4 años
hace 4 años
hace 4 años
hace 4 años
hace 4 años
hace 4 años
hace 4 años
hace 4 años
hace 4 años
hace 4 años
hace 3 años
hace 4 años
hace 3 años
hace 3 años
hace 3 años
hace 3 años
hace 3 años
hace 4 años
hace 4 años
hace 4 años
hace 4 años
hace 4 años
hace 4 años
hace 3 años
hace 4 años
hace 3 años
hace 3 años
hace 3 años
hace 3 años
hace 4 años
hace 4 años
hace 4 años
hace 3 años
hace 4 años
hace 4 años
hace 4 años
hace 4 años
hace 4 años
hace 4 años
hace 4 años
hace 3 años
hace 4 años
hace 3 años
hace 4 años
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637
  1. /**
  2. * Created by Administrator on 2021/4/5.
  3. */
  4. define(['jquery', "template", "Tools", "echarts", 'swiper'], function ($, template, Tools, echarts, swiper) {
  5. //数据存储
  6. var module = {
  7. data: {
  8. //服务器地址
  9. serverApi:'',
  10. //焦点图数据
  11. focusList: [],
  12. //底部焦点图
  13. focusListNext:[],
  14. //新闻资讯数据
  15. newsInformationList: [],
  16. //政策法规数据
  17. policiesRegulationsList: [],
  18. //交易规则数据
  19. tradingRulesList: [],
  20. //资料下载数据
  21. dataDownloadList: [],
  22. //标的物所在地
  23. deptLocationList:[],
  24. //标的物类型
  25. deptTypeList:[],
  26. //网站配置信息
  27. webConfigInformationList:[],
  28. //底部友情链接
  29. friendsLinksList:[],
  30. //土地林地四荒地数据
  31. landListList:[],
  32. //集体资产数据
  33. collectiveAssetsList:[],
  34. //小型水利设施数据
  35. waterConservancyFacilitiesList:[],
  36. //农业生产设备数据
  37. productionEquipmentList:[],
  38. //挂牌项目总浏览次数
  39. allViewCountList:[],
  40. //成交公示数据
  41. announcementListList:[],
  42. //鉴证公告数据
  43. attestationList:[]
  44. },
  45. //柱状图参数
  46. option: {
  47. xAxis: {
  48. type: 'category',
  49. axisLine: {
  50. show: true,
  51. lineStyle: {
  52. width: 1,
  53. type: "solid"
  54. }
  55. },
  56. axisLabel: { //设置x轴的字
  57. show: true,
  58. interval: 0,//使x轴横坐标全部显示
  59. textStyle: {//x轴字体样式
  60. margin: 15
  61. }
  62. },
  63. data: []
  64. },
  65. yAxis: {
  66. type: 'value',
  67. min: 400,
  68. max: 1000,
  69. splitNumber: 7,
  70. splitLine: {
  71. lineStyle: {
  72. type: 'dashed'
  73. }
  74. },
  75. axisLine: {
  76. show: true,
  77. lineStyle: {
  78. width: 1,
  79. type: "solid"
  80. }
  81. },
  82. },
  83. series: [{
  84. data: [],//实际值减300
  85. type: 'bar',
  86. itemStyle: {
  87. color: '#A9A9A9'
  88. }
  89. }],
  90. grid: {
  91. height: 200,
  92. width: 280,
  93. top: '-5px'
  94. },
  95. tooltip: {
  96. trigger: "axis",
  97. axisPointer: {
  98. // 坐标轴指示器,坐标轴触发有效
  99. type: "shadow", // 默认为直线,可选为:'line' | 'shadow'
  100. },
  101. },
  102. }
  103. };
  104. var tools = new Tools();
  105. module.init = function (page) {
  106. //获取焦点图信息
  107. tools.doGet(websiteNew + '/1/0/4', {}, module.focusNews , true);
  108. //新闻资讯
  109. tools.doGet(websiteNew + '/2/0/6', {}, module.NewsInformation , true);
  110. //政策法规
  111. tools.doGet(websiteNew + '/3/0/6', {}, module.policiesRegulations , true);
  112. //交易规则
  113. tools.doGet(websiteNew + '/4/0/6', {}, module.tradingRules , true);
  114. //资料下载
  115. tools.doGet(websiteNew + '/5/0/6', {}, module.dataDownload, true);
  116. //标的物所在地
  117. tools.doGet(webDept, {deptId:''}, module.deptLocation , true);
  118. //标的物类型
  119. tools.doGet(webDeptType+"/project_type", {}, module.deptType, true);
  120. //标的物类型下拉菜单
  121. tools.doGet(webDeptType+"/project_type", {}, module.deptTypeSelect, true);
  122. //网站配置信息(网站名称 底部联系方式 公安备案号 网站备案号)
  123. tools.getWebConfig();
  124. //底部友情链接
  125. tools.doGet(friendsLinks, {}, module.bottomFriendsLinks, true);
  126. //土地
  127. tools.doGet(webListing + '/1,2,3/0/3', {}, module.landList, true);
  128. //集体资产
  129. tools.doGet(webListing + '/4/0/3', {}, module.collectiveAssets, true);
  130. //农业生产设备
  131. tools.doGet(webListing + '/5/0/3', {}, module.productionEquipment, true);
  132. //小型水利设施
  133. tools.doGet(webListing + '/6/0/3', {}, module.waterConservancyFacilities, true);
  134. //查询挂牌项目浏览总次数
  135. tools.doGet(allViewCount + '/100', {}, module.allViewCount, true);
  136. //查询挂牌项目浏览总次数
  137. tools.doGet(announcementList + '/0/4', {}, module.announcementList, true);
  138. //查询挂牌项目浏览总次数
  139. tools.doGet(biddingHallList + '/0/10', {}, module.biddingHallList, true);
  140. //查询挂牌项目浏览总次数
  141. tools.doGet(attestationList + '/0/5', {}, module.attestationList, true);
  142. //个人供求
  143. tools.doGet(supplyDemand + '/100/1/5', {}, module.supplyDemand, true);
  144. tools.doGet(supplyDemand + '/100/2/5', {}, module.supplyDemand2, true);
  145. //互动交流
  146. tools.doGet(communicateList + '/100/5/notnull', {}, module.communicateList, true);
  147. //土地挂牌价格走势统计图
  148. tools.doGet(statistics, {deptId: 100}, module.statisticsContent, true);
  149. //竞价大厅-滚动
  150. module.hallRolling();
  151. setTimeout(function(){
  152. //主题图片切换
  153. module.switchTheme();
  154. },500)
  155. };
  156. //主题图片切换
  157. module.switchTheme = function(){
  158. if(themeColor == 'red'){
  159. document.getElementById('centerBanner').src = './static/images/centerBanner_red.jpg'
  160. document.getElementById('bannerBottom').src = './static/images/bannerBottom_red.jpg'
  161. }else if(themeColor == 'green'){
  162. document.getElementById('centerBanner').src = './static/images/centerBanner.jpg'
  163. document.getElementById('bannerBottom').src = './static/images/bannerBottom.jpg'
  164. }
  165. }
  166. //焦点图数据
  167. module.focusNews = function (data) {
  168. if (data.code == 200) {
  169. var content = data.data;
  170. var focusList = [];
  171. for (var i = 0; i < content.length; i++) {
  172. var imgStrs = content[i].content.match(/<img.*?>/g)
  173. var title = content[i].title;
  174. var id = content[i].id;
  175. if (imgStrs != null && imgStrs != '') {
  176. focusList.push({img:imgStrs[0],title:title,id:id})
  177. }
  178. }
  179. //console.log(focusList)
  180. module.data.focusList = focusList;
  181. var bannerFocusData = template('bannerFocusData', module.data);
  182. $("#bannerFocusContent").html(bannerFocusData);
  183. new Swiper('#bannerFocusWrap', {
  184. pagination: '.page-pagination',
  185. paginationClickable: true,
  186. autoplay : 2000,
  187. loop:true
  188. })
  189. }
  190. }
  191. module.statisticsContent = function(data){
  192. //console.log(module.option)
  193. //console.log(data)
  194. module.data.nowPriceAvg = data.nowPriceAvg;
  195. module.data.priceRate = data.priceRate;
  196. var statisticsData = template('statisticsData', module.data);
  197. $("#statisticsContent").html(statisticsData);
  198. for (var i = 0 ; i < data.priceAvgList.length ; i++){
  199. module.option.xAxis.data[i] = data.priceAvgList[i].year
  200. module.option.series[0].data[i] = data.priceAvgList[i].price
  201. }
  202. // 柱状图绘制
  203. var chartDom = document.getElementById('chart');
  204. var myChart = echarts.init(chartDom);
  205. module.option && myChart.setOption(module.option);
  206. }
  207. //互动交流
  208. module.communicateList = function (data) {
  209. if (data.code == 200) {
  210. //console.log(data.data)
  211. var content = data.data;
  212. module.data.communicateList = content;
  213. var communicateData = template('communicateData', module.data);
  214. $("#communicateContent").html(communicateData);
  215. }
  216. }
  217. //新闻资讯数据
  218. module.NewsInformation = function (data) {
  219. if (data.code == 200) {
  220. var content = data.data;
  221. //console.log(content)
  222. module.data.newsInformationList = content;
  223. var NewsInformationData = template('NewsInformationData', module.data);
  224. $("#NewsInformationContent").html(NewsInformationData);
  225. }
  226. }
  227. //政策法规
  228. module.policiesRegulations = function (data) {
  229. if (data.code == 200) {
  230. var content = data.data;
  231. module.data.policiesRegulationsList = content;
  232. var policiesRegulationsData = template('policiesRegulationsData', module.data);
  233. $("#policiesRegulationsContent").html(policiesRegulationsData);
  234. }
  235. }
  236. //交易规则
  237. module.tradingRules = function (data) {
  238. if (data.code == 200) {
  239. var content = data.data;
  240. module.data.tradingRulesList = content;
  241. var tradingRulesData = template('tradingRulesData', module.data);
  242. $("#tradingRulesContent").html(tradingRulesData);
  243. }
  244. }
  245. //资料下载
  246. module.dataDownload = function (data) {
  247. if (data.code == 200) {
  248. var content = data.data;
  249. module.data.dataDownloadList = content;
  250. var dataDownloadData = template('dataDownloadData', module.data);
  251. $("#dataDownloadContent").html(dataDownloadData);
  252. }
  253. }
  254. //标的物所在地
  255. module.deptLocation = function (data) {
  256. //console.log(data)
  257. if (data.code == 200) {
  258. var content = data.data ;
  259. var contentList = [];
  260. for (var i = 0 ; i < 5&&i<content.length ; i++){
  261. contentList[i] = content[i];
  262. }
  263. module.data.deptLocationList = contentList;
  264. var deptLocationData = template('deptLocationData', module.data);
  265. $("#deptLocationContent").html(deptLocationData);
  266. }
  267. }
  268. //标的物类型
  269. module.deptType = function (data) {
  270. if (data.code == 200) {
  271. var content = [] ;
  272. for (var i = 0 ; i < 4 ; i++){
  273. content[i] = data.data[i];
  274. }
  275. module.data.deptTypeList = content;
  276. var deptTypeData = template('deptTypeData', module.data);
  277. $("#deptTypeContent").html(deptTypeData);
  278. }
  279. }
  280. //网站配置信息
  281. module.webConfigInformation = function (data) {
  282. if (data.code == 200) {
  283. var content = data.data;
  284. //console.log(content)
  285. $("#webConfigName").html(content[0].configValue);
  286. $("#webConfigRecord").html(content[1].configValue + content[2].configValue);
  287. $("#webConfigAddress").html(content[0].configValue+'&nbsp;'+content[3].configValue);
  288. }
  289. }
  290. //查询挂牌项目浏览总次数
  291. module.allViewCount = function (data) {
  292. if (data.code == 200) {
  293. var content = data.data;
  294. module.data.allViewCountList = content.toString().split("");
  295. var allViewCountData = template('allViewCountData', module.data);
  296. $("#allViewCount").html(allViewCountData);
  297. }
  298. }
  299. //底部友情链接
  300. module.bottomFriendsLinks = function (data) {
  301. if (data.code == 200) {
  302. var content = data.data;
  303. //console.log(content)
  304. module.data.friendsLinksList = content;
  305. var friendsLinksData = template('friendsLinksData', module.data);
  306. $("#friendsLinksContent").html(friendsLinksData);
  307. }
  308. }
  309. //土地林地四荒地
  310. module.landList = function (data) {
  311. if (data.code == 200) {
  312. module.data.serverApi = serverApi;
  313. var content = data.data;
  314. module.data.landListList = content;
  315. var landListData = template('landListData', module.data);
  316. $("#landListContent").html(landListData);
  317. }
  318. }
  319. //集体资产
  320. module.collectiveAssets = function (data) {
  321. if (data.code == 200) {
  322. module.data.serverApi = serverApi;
  323. var content = data.data;
  324. module.data.collectiveAssetsList = content;
  325. var collectiveAssetsData = template('collectiveAssetsData', module.data);
  326. $("#collectiveAssetsContent").html(collectiveAssetsData);
  327. }
  328. }
  329. //小型水利设施
  330. module.waterConservancyFacilities = function (data) {
  331. if (data.code == 200) {
  332. module.data.serverApi = serverApi;
  333. var content = data.data;
  334. module.data.waterConservancyFacilitiesList = content;
  335. var waterConservancyFacilitiesData = template('waterConservancyFacilitiesData', module.data);
  336. $("#waterConservancyFacilitiesContent").html(waterConservancyFacilitiesData);
  337. }
  338. }
  339. //农业生产设备
  340. module.productionEquipment = function (data) {
  341. if (data.code == 200) {
  342. module.data.serverApi = serverApi;
  343. var content = data.data;
  344. module.data.productionEquipmentList = content;
  345. var productionEquipmentData = template('productionEquipmentData', module.data);
  346. $("#productionEquipmentContent").html(productionEquipmentData);
  347. }
  348. }
  349. //成交公示列表
  350. module.announcementList = function (data) {
  351. if (data.code == 200) {
  352. var content = data.data;
  353. module.data.announcementListList = content;
  354. var announcementListData = template('announcementListData', module.data);
  355. $("#announcementListContent").html(announcementListData);
  356. }
  357. }
  358. //鉴证公告列表
  359. module.attestationList = function (data) {
  360. if (data.code == 200) {
  361. var content = data.data;
  362. module.data.attestationList = content;
  363. var attestationData = template('attestationData', module.data);
  364. $("#attestationContent").html(attestationData);
  365. }
  366. }
  367. //竞价大厅列表
  368. module.biddingHallList = function (data) {
  369. if (data.code == 200) {
  370. var content = data.data;
  371. //console.log(content)
  372. module.data.biddingHallListList = content;
  373. for(var i = 0 ; i < content.length ; i++){
  374. if(content[i].biddingStopTime == null || content[i].biddingStartTime == null){continue;}
  375. var endTimes=content[i].biddingStopTime.substring(0,10).split('-');
  376. var biddingStopTime=endTimes[1]+'/'+endTimes[2]+'/'+endTimes[0]+' '+content[i].biddingStopTime.substring(10,19);
  377. var startTimes=content[i].biddingStartTime.substring(0,10).split('-');
  378. var biddingStartTime=startTimes[1]+'/'+startTimes[2]+'/'+startTimes[0]+' '+content[i].biddingStartTime.substring(10,19);
  379. var nowTime = Date.parse(new Date());
  380. var leftTime = Date.parse(biddingStopTime)-nowTime;
  381. var rightTime = Date.parse(biddingStartTime)-nowTime;
  382. //console.log(biddingStopTime)
  383. //console.log(leftTime)
  384. if(leftTime>0){
  385. //console.log('进行中')
  386. content[i].timeType = '进行中'
  387. }
  388. if(leftTime<0){
  389. //console.log('已结束')
  390. content[i].timeType = '已结束'
  391. }
  392. if(rightTime>0){
  393. //console.log('未开始')
  394. content[i].timeType = '未开始'
  395. }
  396. }
  397. //console.log(content)
  398. var biddingHallListData = template('biddingHallListData', module.data);
  399. $("#biddingHallListContent").html(biddingHallListData);
  400. }
  401. }
  402. ///竞价大厅-滚动
  403. module.hallRolling = function () {
  404. var divScroll = document.getElementById('tableList');
  405. window.onmousewheel = divScroll.onmousewheel = function () { return false }
  406. module.timeInter(divScroll);
  407. divScroll.onmouseover = function () {
  408. clearInterval(time);
  409. }
  410. divScroll.onmouseout = function () {
  411. module.timeInter(divScroll);
  412. }
  413. }
  414. //个人供求
  415. module.supplyDemand = function (data) {
  416. if (data.code == 200) {
  417. //console.log(data)
  418. var content = data.data;
  419. module.data.supplyDemandList = content;
  420. var supplyDemandData = template('supplyDemandData', module.data);
  421. $("#supply").html(supplyDemandData);
  422. }
  423. }
  424. //个人供求
  425. module.supplyDemand2 = function (data) {
  426. if (data.code == 200) {
  427. //console.log(data)
  428. var content = data.data;
  429. module.data.supplyDemand2List = content;
  430. var supplyDemand2Data = template('supplyDemand2Data', module.data);
  431. $("#demand").html(supplyDemand2Data);
  432. tools.doGet(supplyDemandRecommend + '/100/5', {}, module.supplyDemandRecommend, true);
  433. }
  434. }
  435. module.supplyDemandRecommend = function(data){
  436. var focusListNext = module.data.focusListNext;
  437. for (var i = 0; i < data.data.length; i++) {
  438. var imgStrs = data.data[i].fileUrl
  439. if (imgStrs != null && imgStrs != '') {
  440. focusListNext.push({img:serverApi+imgStrs,title:data.data[i].projectName,id:data.data[i].id})
  441. }
  442. }
  443. console.log(data)
  444. module.data.focusListNext = focusListNext;
  445. var bannerFocusBottomData = template('bannerFocusBottomData', module.data);
  446. $("#bannerFocusNextContent").html(bannerFocusBottomData);
  447. new Swiper('#bannerFocusNextWrap', {
  448. paginationClickable: true,
  449. pagination: '.a2',
  450. autoplay : 2000,
  451. loop:true
  452. })
  453. }
  454. module.supplyImages = function(){
  455. var focusListNext = module.data.focusListNext;
  456. //console.log(module.data.supplyDemandList)
  457. for (var i = 0; i < module.data.supplyDemandList.length; i++) {
  458. var imgStrs = module.data.supplyDemandList[i].projectContent.match(/<img.*?>/g)
  459. var title = module.data.supplyDemandList[i].projectName
  460. if (imgStrs != null && imgStrs != '') {
  461. focusListNext.push({img:imgStrs[0],title:title})
  462. }
  463. }
  464. for (var i = 0; i < module.data.supplyDemand2List.length; i++) {
  465. var imgStrs = module.data.supplyDemand2List[i].projectContent.match(/<img.*?>/g)
  466. var title = module.data.supplyDemand2List[i].projectName
  467. if (imgStrs != null && imgStrs != '') {
  468. focusListNext.push({img:imgStrs[0],title:title})
  469. }
  470. }
  471. module.data.focusListNext = focusListNext;
  472. var bannerFocusBottomData = template('bannerFocusBottomData', module.data);
  473. $("#bannerFocusNextContent").html(bannerFocusBottomData);
  474. new Swiper('#bannerFocusNextWrap', {
  475. pagination: '.page-pagination1',
  476. paginationClickable: true
  477. })
  478. }
  479. module.timeInter = function (divScroll) {
  480. time = setInterval(function () {
  481. var oldTop = divScroll.scrollTop;
  482. var newTop = oldTop + 1;
  483. divScroll.scrollTop = newTop;
  484. var counst = divScroll.scrollHeight - divScroll.scrollTop - divScroll.clientHeight;
  485. if (1 > counst) {
  486. divScroll.scrollTop = 0;
  487. }
  488. }, 30)
  489. }
  490. //证书查询
  491. goSearchKeyWord = function(){
  492. var type = $('input[name="transaction"]:checked').val();
  493. var searchKeyWord = $('#searchKeyWord').val();
  494. //console.log($('#searchKeyWord').val())
  495. //console.log(type)
  496. if($('#searchKeyWord').val() == '' && type== 'warrant'){
  497. tools.initDialog('提示', '经营权证编号不可为空', function () {
  498. return;
  499. }, '确定')
  500. return;
  501. }
  502. if(type == 'warrant'){
  503. tools.skip('view/announcement/warrantDetail.html?type='+type+'&searchKeyWord='+searchKeyWord)
  504. }else{
  505. tools.skip('view/announcement/announcement.html?type='+type+'&searchKeyWord='+searchKeyWord)
  506. }
  507. }
  508. //项目查询
  509. searchProject = function(){
  510. var projectNum = $('#projectNum').val();
  511. var projectName = $('#projectName').val();
  512. var deptTypeSelect = $("select[name='deptTypeSelect']").val();
  513. tools.skip('view/listingItems/itemsList.html?projectCode='+projectNum+'&projectName='+projectName+'&projectNumber='+deptTypeSelect)
  514. }
  515. //标的物类型
  516. module.deptTypeSelect = function (data) {
  517. if (data.code == 200) {
  518. //console.log(data);
  519. var content = data.data ;
  520. module.data.deptTypeSelectList = content;
  521. var deptTypeSelectData = template('deptTypeSelectData', module.data);
  522. $("#deptTypeSelectContent").html(deptTypeSelectData);
  523. }
  524. }
  525. //切换
  526. tabCheck = function (type) {
  527. if(type == 'supply'){
  528. document.getElementById('demand').style.display = 'none';
  529. document.getElementById('demandBtn').className = '';
  530. }
  531. if(type == 'demand'){
  532. document.getElementById('supply').style.display = 'none';
  533. document.getElementById('supplyBtn').className = '';
  534. }
  535. document.getElementById(type).style.display = 'inline-table';
  536. document.getElementById(type+'Btn').className = 'active';
  537. }
  538. goDetail = function (id) {
  539. tools.skip('view/listingItems/itemsDetail.html?id='+id);
  540. }
  541. goUserInteract = function () {
  542. tools.skip('view/user/user.html?type=goInteract')
  543. }
  544. goListing = function (clickType,dictSort,dictCode) {
  545. tools.skip('view/listingItems/itemsList.html?clickType='+clickType+'&dictSort='+dictSort+'&dictCode='+dictCode);
  546. }
  547. goAnnouncementList = function (type) {
  548. tools.skip('view/announcement/announcement.html?type='+type+'&searchKeyWord=');
  549. }
  550. goNewList = function () {
  551. tools.skip('view/new/newList.html');
  552. }
  553. goPolicy = function (type) {
  554. tools.skip('view/policy/policy.html?type='+type);
  555. }
  556. goBidding = function(){
  557. tools.skip('view/bidding/biddingList.html');
  558. }
  559. goDemand = function(){
  560. tools.skip('view/demand/demand.html');
  561. }
  562. goInteraction = function(){
  563. tools.skip('view/interact/interactList.html');
  564. }
  565. goInteractSearch = function(){
  566. tools.skip('view/interact/interactList.html?keyWord='+$('#interactInput').val());
  567. }
  568. return module;
  569. });