indexsyy.html 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="UTF-8">
  5. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  6. <title></title>
  7. <!-- 引入 Vue -->
  8. <script src="https://unpkg.com/vue@2.6.14/dist/vue.min.js"></script>
  9. <!-- 引入样式 -->
  10. <link rel="stylesheet" href="https://unpkg.com/element-ui/lib/theme-chalk/index.css">
  11. <!-- 引入组件库 -->
  12. <script src="https://unpkg.com/element-ui/lib/index.js"></script>
  13. <link rel="stylesheet" href="swiper/swiper-bundle.css">
  14. <!-- jquery-->
  15. <script src="js/jquery-3.5.1.min.js"></script>
  16. <script src="js/urljson.js"></script>
  17. <style>
  18. * {
  19. padding: 0;
  20. margin: 0;
  21. font-family: Microsoft YaHei;
  22. }
  23. ul {
  24. list-style-type: none;
  25. }
  26. li {
  27. list-style: none;
  28. }
  29. @font-face {
  30. font-family: 'DOUYU';
  31. src: url('fonts/DOUYUFONT-2.OTF');
  32. font-weight: normal;
  33. font-style: normal;
  34. }
  35. @font-face {
  36. font-family: 'Source Han Sans SC';
  37. src: url('fonts/MSYHL.TTC');
  38. font-weight: normal;
  39. font-style: normal;
  40. }
  41. .backbutton img {
  42. margin-right: 0.625rem;
  43. }
  44. #indexcygyy {
  45. height: 100vh;
  46. /* background-image: url(images/indexcygyy.png); */
  47. background-size: 100% 100%;
  48. font-family: Microsoft YaHei;
  49. color: #FFFFFF;
  50. padding-top: 10px;
  51. box-sizing: border-box;
  52. position: relative;
  53. }
  54. .content {
  55. width: 20vw;
  56. /* min-width: 402px; */
  57. height: auto;
  58. background: rgb(4 20 40 / 50%);
  59. display: flex;
  60. flex-direction: column;
  61. align-items: center;
  62. left: 64%;
  63. top: 15vh;
  64. position: absolute;
  65. border-radius: 1.525rem;
  66. padding: 20px;
  67. }
  68. .title {
  69. color: #FFFFFF;
  70. position: absolute;
  71. left: 12%;
  72. top: 15vh;
  73. }
  74. .subtitle {
  75. font-family: DOUYU;
  76. font-size: 2.225rem;
  77. display: inline-block;
  78. padding: 2rem 3rem;
  79. background-color: #176ED0;
  80. border-radius: .5rem;
  81. }
  82. .mainTitle {
  83. border-radius: 0px 60px 0px 0px;
  84. font-size: 1.225rem;
  85. padding: 2rem 3rem;
  86. background-color: rgba(0, 0, 0, .5);
  87. text-indent: 2em;
  88. width: 32vw;
  89. height: 453px;
  90. overflow: auto;
  91. margin-top: 20px;
  92. line-height: 36px;
  93. -ms-overflow-style: none;
  94. scrollbar-width: none;
  95. }
  96. .contentList {
  97. height: auto;
  98. justify-content: space-between;
  99. line-height: normal;
  100. background-color: transparent;
  101. color: #FFFFFF !important;
  102. font-size: 1.37rem;
  103. font-family: Microsoft YaHei;
  104. letter-spacing: 2px;
  105. /* font-weight: 600; */
  106. padding: 25px;
  107. width: 100%;
  108. display: flex;
  109. justify-content: space-between;
  110. cursor: pointer;
  111. box-sizing: border-box;
  112. }
  113. .contentList:hover {
  114. transform: scale(1.2);
  115. }
  116. .listRight {
  117. display: flex;
  118. align-items: center;
  119. }
  120. .listRight>img {
  121. width: 0.7rem;
  122. height: 1.2rem;
  123. }
  124. .el-collapse-item__content {
  125. padding: 0 15px 15px 15px;
  126. }
  127. .listLeft {
  128. display: flex;
  129. align-items: center;
  130. }
  131. .collapseItem {
  132. color: #DFDFDF;
  133. display: flex;
  134. flex-wrap: wrap;
  135. font-size: 0.9rem;
  136. }
  137. .link {
  138. cursor: pointer;
  139. width: 50%;
  140. }
  141. .listLeft>img {
  142. width: 3rem;
  143. height: 3rem;
  144. }
  145. .content>.title {
  146. /* margin-top: 1.875rem; */
  147. font-family: DOUYU;
  148. font-weight: normal;
  149. font-size: 1.625rem;
  150. color: #FFFFFF;
  151. /* line-height: 3rem; */
  152. /* text-shadow: 0px 2px 4px rgba(11, 96, 169, 0.25); */
  153. background: linear-gradient(0deg, rgba(184, 225, 255, 0.98) 0%, rgba(255, 255, 255, 0.98) 100%);
  154. -webkit-background-clip: text;
  155. -webkit-text-fill-color: transparent;
  156. }
  157. .content>.line {
  158. width: 37.9375rem;
  159. height: 1.125rem;
  160. /* margin-bottom: 1.25rem; */
  161. }
  162. .content>.text {
  163. width: 95%;
  164. min-height: 120px;
  165. font-size: 1rem;
  166. color: #FFFFFF;
  167. line-height: 1.875rem;
  168. text-indent: 2.5rem;
  169. }
  170. .dialog {
  171. width: 76vw;
  172. background: rgba(4, 20, 40, .8);
  173. position: absolute;
  174. height: 71vh;
  175. top: 17vh;
  176. left: 12vw;
  177. display: flex;
  178. flex-direction: column;
  179. /* justify-content: center; */
  180. }
  181. .close>img {
  182. width: 1.1rem;
  183. height: 1.1rem;
  184. cursor: pointer;
  185. }
  186. .dialogHeader {
  187. display: flex;
  188. padding: 25px 25px;
  189. justify-content: space-between;
  190. color: #176ED0;
  191. font-size: 1.375rem;
  192. border-bottom: 1px solid #176ED0;
  193. width: calc(100% - 50px);
  194. margin: auto;
  195. font-weight: 600;
  196. }
  197. .dialogContent {
  198. display: grid;
  199. grid-template-columns: 1fr 1fr 1fr 1fr;
  200. grid-template-rows: 1fr 1fr 1fr;
  201. grid-row-gap: 20px;
  202. grid-column-gap: 20px;
  203. padding: 3rem;
  204. flex: 1;
  205. overflow: auto;
  206. -ms-overflow-style: none;
  207. scrollbar-width: none;
  208. }
  209. .diaBox {
  210. text-align: center;
  211. }
  212. .diaBox>img {
  213. width: 90%;
  214. height: 7.5rem;
  215. background-color: #fff;
  216. }
  217. /* 淡出动画 */
  218. .fade-out {
  219. animation: fadeOut 1s forwards;
  220. }
  221. /* 淡入动画 */
  222. .fade-in {
  223. animation: fadeIn 1s forwards;
  224. }
  225. .backbutton {
  226. width: 117px;
  227. height: 42px;
  228. background: url(images/buttonbg.png) no-repeat;
  229. background-size: 100% 100%;
  230. border-radius: 10px;
  231. font-family: Microsoft YaHei;
  232. font-weight: 400;
  233. font-size: 16px;
  234. color: #fff;
  235. display: flex;
  236. align-items: center;
  237. justify-content: center;
  238. margin-right: 10px;
  239. cursor: pointer;
  240. position: absolute;
  241. top: 4vh;
  242. right: 2vw;
  243. }
  244. .backbutton img {
  245. margin-right: 10px;
  246. }
  247. ::-webkit-scrollbar {
  248. display: none;
  249. /* Chrome Safari */
  250. }
  251. .jbqk {
  252. display: flex;
  253. justify-content: space-between;
  254. margin-bottom: 30px;
  255. }
  256. .jbqk img {
  257. margin: 0 10px;
  258. }
  259. .jbqk .list {
  260. width: 189px;
  261. height: 80px;
  262. background: #4EB2AD;
  263. display: flex;
  264. font-family: Microsoft YaHei;
  265. box-sizing: border-box;
  266. font-size: 18px;
  267. color: #ffffff;
  268. align-items: center;
  269. }
  270. .jbqk .right {
  271. display: flex;
  272. flex-direction: column;
  273. text-indent: 0;
  274. justify-content: center;
  275. height: 100%;
  276. box-sizing: border-box;
  277. }
  278. .jbqk .right>div {
  279. text-align: left;
  280. width: auto;
  281. }
  282. .jbqk .right>div span:last-child {
  283. font-size: 12px;
  284. }
  285. .jbqk .right>div span:first-child {
  286. font-size: 26px;
  287. font-weight: bold;
  288. }
  289. .cyfb {
  290. font-size: 12px;
  291. line-height: 15px;
  292. margin-top: 5px;
  293. }
  294. @keyframes fadeOut {
  295. from {
  296. opacity: 0.8;
  297. }
  298. to {
  299. opacity: 0.6;
  300. }
  301. }
  302. @keyframes fadeIn {
  303. from {
  304. opacity: 0.6;
  305. }
  306. to {
  307. opacity: 0.8;
  308. }
  309. }
  310. @media screen and (max-width:1600px) {
  311. html,
  312. body {
  313. font-size: 14px;
  314. }
  315. }
  316. @media screen and (max-width:1400px) {
  317. html,
  318. body {
  319. font-size: 14px;
  320. }
  321. }
  322. @media screen and (max-width:1300px) {
  323. html,
  324. body {
  325. font-size: 10px;
  326. }
  327. }
  328. </style>
  329. </head>
  330. <body>
  331. <div class="" id="indexcygyy" :class="{ 'fade-out': fadeOut, 'fade-in': fadeIn }"
  332. :style="{ backgroundImage: 'url(' + backgroundImage + ')' }">
  333. <div class="title">
  334. <span class="subtitle">{{parkName}}</span>
  335. <div class="mainTitle">
  336. <div class="jbqk">
  337. <div class="list" style="">
  338. <img src="images/jbqki1.png" alt="">
  339. <div class="right">
  340. <div>总面积</div>
  341. <div><span id="totalSpace">-</span><span>平方公里</span></div>
  342. </div>
  343. </div>
  344. <div class="list" style="background-color: #4B98F6;">
  345. <img src="images/jbqki2.png" alt="">
  346. <div class="right">
  347. <div>建成面积</div>
  348. <div><span id="buildSpace">-</span><span>平方公里</span></div>
  349. </div>
  350. </div>
  351. <div class="list" style="background-color: #4BB664;">
  352. <img src="images/jbqki3.png" alt="">
  353. <div class="right" style="justify-content: flex-start;">
  354. <div>产业分布</div>
  355. <span class="cyfb" :title="jbqk.industry">{{this.jbqk.industry?this.jbqk.industry:'- '}}</span>
  356. </div>
  357. </div>
  358. </div>
  359. <div style="text-indent:2em;">
  360. {{parkDesc?parkDesc:'暂无简介'}}
  361. </div>
  362. </div>
  363. </div>
  364. <div class="backbutton" @click="window.history.go(-1)">
  365. <img src="images/backlogo.png" alt="">
  366. <span>返回</span>
  367. </div>
  368. <div class="content">
  369. <li class="contentList" @click="golink('tsfw.html')">
  370. <div class="listLeft">
  371. <img src="images/tsfw.png" />&emsp;特色服务
  372. </div>
  373. <div class="listRight">
  374. <img src="images/arrowR.png" />
  375. </div>
  376. </li>
  377. <li class="contentList" @click="golink('dqfw.html')">
  378. <div class="listLeft">
  379. <img src="images/dqfw.png" />&emsp;党群服务
  380. </div>
  381. <div class="listRight">
  382. <img src="images/arrowR.png" />
  383. </div>
  384. </li>
  385. <li class="contentList" @click="window.open('wybdb.html')">
  386. <div class="listLeft">
  387. <img src="images/bdbfw.png" />&emsp;帮代办服务
  388. </div>
  389. <div class="listRight">
  390. <img src="images/arrowR.png" />
  391. </div>
  392. </li>
  393. <li class="contentList" @click="golink('tdcrlist.html',1)">
  394. <div class="listLeft">
  395. <img src="images/tdcrfw.png" />&emsp;土地出让服务
  396. </div>
  397. <div class="listRight">
  398. <img src="images/arrowR.png" />
  399. </div>
  400. </li>
  401. <li class="contentList" @click="golink('ztcrlist.html',2)">
  402. <div class="listLeft">
  403. <img src="images/ztfw_index.png" />&emsp;载体服务
  404. </div>
  405. <div class="listRight">
  406. <img src="images/arrowR.png" />
  407. </div>
  408. </li>
  409. <li class="contentList" @click="golink('znxzchoice.html')">
  410. <div class="listLeft">
  411. <img src="images/tsfw2.png" />&emsp;智能选址
  412. </div>
  413. <div class="listRight">
  414. <img src="images/arrowR.png" />
  415. </div>
  416. </li>
  417. <li class="contentList" @click="dialogVisible=!dialogVisible">
  418. <div class="listLeft">
  419. <img src="images/mxqy.png" />&emsp;明星企业
  420. </div>
  421. <div class="listRight">
  422. <img src="images/arrowR.png" />
  423. </div>
  424. </li>
  425. </div>
  426. <div v-if="dialogVisible" class="dialog">
  427. <div class="dialogHeader">
  428. <div class="dialogTitle">明星企业</div>
  429. <div class="close" @click="dialogVisible=!dialogVisible">
  430. <img src="images/close.png" />
  431. </div>
  432. </div>
  433. <div class="dialogContent">
  434. <div class="diaBox" v-for="(item,index) in mxqyList" @click="item.link?window.open(item.link):''">
  435. <img :src="item.logo" alt="">
  436. <div>{{item.title}}</div>
  437. </div>
  438. </div>
  439. </div>
  440. </div>
  441. </body>
  442. <script>
  443. // 初始化Vue实例
  444. new Vue({
  445. el: '#indexcygyy',
  446. data: function () {
  447. return {
  448. reqPtah: '',
  449. currentTab: -1,
  450. contentList: [],
  451. currentTitle: '',
  452. parkDesc: '',
  453. parkName: '',
  454. mxqyList: [],
  455. backgroundImage: 'images/indexsyyg.png',
  456. fadeOut: false,
  457. fadeIn: false,
  458. id: null,
  459. dialogVisible: false,
  460. jbqk: {}
  461. };
  462. },
  463. watch: {
  464. dialogVisible: {
  465. handler(val) {
  466. if (val) {
  467. this.getDetail(this.id)
  468. }
  469. }
  470. }
  471. },
  472. mounted() {
  473. const url = new URL(window.location.href);
  474. this.id = url.searchParams.get('id');
  475. this.getJBQK(this.id)
  476. if (this.id == 4) {
  477. this.backgroundImage = 'images/bg-npxq.png';
  478. } else if (this.id == 6) {
  479. this.backgroundImage = 'images/bg-dxkjy.png';
  480. } else if (this.id == 5) {
  481. this.backgroundImage = 'images/bg-ylcxg.jpg';
  482. } else {
  483. this.backgroundImage = 'images/indexsyyg.png';
  484. }
  485. },
  486. methods: {
  487. goIndex() {
  488. window.location.href = "indexsyyg.html"
  489. },
  490. back() {
  491. window.location.href = "indexsyyg.html"
  492. },
  493. getDetail(id) {
  494. let that = this;
  495. $.ajax({
  496. url: conpath + "/parkData/details/" + id,
  497. type: "get",
  498. dataType: "json",
  499. success: function (data) {
  500. that.mxqyList = data.filter(item => item.moduleType === "3");
  501. }
  502. });
  503. },
  504. golink(hrf, val) {
  505. if (!val) {
  506. window.location.href = `${hrf}?id=${this.id}`;
  507. } else {
  508. if (val === 1) {
  509. let that = this;
  510. $.ajax({
  511. url: conpath + "/sellLand",
  512. type: "post",
  513. contentType: 'application/json',
  514. data: JSON.stringify({
  515. "currentPage": 1,
  516. "pageSize": 10000,
  517. "parkId": that.id,
  518. "keyword": ''
  519. }),
  520. dataType: "json",
  521. success: function (data) {
  522. let dataList = data.list;
  523. that.contentList = dataList;
  524. if (that.contentList && !that.contentList.length) {
  525. that.$message.warning('暂无土地出让数据!');
  526. } else {
  527. window.location.href = `${hrf}?id=${that.id}`;
  528. }
  529. }
  530. });
  531. } else {
  532. let that = this;
  533. $.ajax({
  534. url: conpath + "/sellBuild",
  535. type: "post",
  536. contentType: 'application/json',
  537. data: JSON.stringify({
  538. "currentPage": 1,
  539. "pageSize": 10000,
  540. "parkId": that.id,
  541. "space1": null,
  542. "application": null
  543. }),
  544. dataType: "json",
  545. success: function (data) {
  546. let dataList = data.list;
  547. const contentList = dataList;
  548. if (contentList && !contentList.length) {
  549. that.$message.warning('暂无载体服务数据!');
  550. } else {
  551. window.location.href = `${hrf}?id=${that.id}`;
  552. }
  553. }
  554. });
  555. }
  556. }
  557. },
  558. animateValue(obj, start, end, duration) {
  559. let startTimestamp = null;
  560. const step = (timestamp) => {
  561. if (!startTimestamp) startTimestamp = timestamp;
  562. const progress = Math.min((timestamp - startTimestamp) / duration, 1);
  563. obj.innerHTML = Math.floor(progress * (end - start) + start);
  564. if (progress < 1) {
  565. window.requestAnimationFrame(step);
  566. } else {
  567. obj.innerHTML = end;
  568. obj.classList.remove('animate');
  569. }
  570. };
  571. obj.classList.add('animate');
  572. window.requestAnimationFrame(step);
  573. },
  574. getJBQK(id) {
  575. let that = this;
  576. $.ajax({
  577. url: conpath + "/parkData/" + id,
  578. type: "get",
  579. dataType: "json",
  580. success: function (data) {
  581. that.parkDesc = data.desc;
  582. that.jbqk = data;
  583. that.parkName = data.title;
  584. document.title = data.title;
  585. const time = 500;
  586. // 总面积
  587. const totalSpaceElement = document.getElementById('totalSpace');
  588. that.animateValue(totalSpaceElement, 0, data.totalArea ? parseFloat(data.totalArea).toFixed(2) : '-', time);
  589. // 建成面积
  590. const buildSpaceElement = document.getElementById('buildSpace');
  591. that.animateValue(buildSpaceElement, 0, data.buildArea ? parseFloat(data.buildArea).toFixed(2) : '-', time);
  592. }
  593. })
  594. },
  595. }
  596. });
  597. </script>
  598. </html>