cybj.html 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450
  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="js/vue.min.js"></script>
  9. <script src="js/echarts.min.js"></script>
  10. <!-- 引入样式 -->
  11. <link rel="stylesheet" href="css/index.css">
  12. <!-- 引入组件库 -->
  13. <script src="js/index.js"></script>
  14. <link rel="stylesheet" href="swiper/swiper-bundle.css">
  15. <!-- jquery-->
  16. <script src="js/jquery-3.5.1.min.js"></script>
  17. <script src="js/urljson.js"></script>
  18. <script src="js/nanan.js" type="text/javascript"></script>
  19. <style>
  20. * {
  21. padding: 0;
  22. margin: 0;
  23. }
  24. ul {
  25. list-style-type: none;
  26. }
  27. li {
  28. list-style: none;
  29. }
  30. @font-face {
  31. font-family: 'DOUYU';
  32. src: url('fonts/DOUYUFONT-2.OTF');
  33. font-weight: normal;
  34. font-style: normal;
  35. }
  36. @font-face {
  37. font-family: 'Source Han Sans SC';
  38. src: url('fonts/MSYHL.TTC');
  39. font-weight: normal;
  40. font-style: normal;
  41. }
  42. .backbutton img {
  43. margin-right: 0.625rem;
  44. }
  45. #indexcygyy {
  46. height: 100vh;
  47. background-image: url(images/indexcygyy.png);
  48. background-size: 100% 100%;
  49. font-family: Microsoft YaHei;
  50. color: #FFFFFF;
  51. padding-top: 10px;
  52. box-sizing: border-box;
  53. position: relative;
  54. }
  55. .content {
  56. /* min-width: 402px; */
  57. height: 100%;
  58. background: rgb(4 20 40 / 50%);
  59. display: flex;
  60. border-radius: 1.525rem;
  61. }
  62. .list {
  63. width: calc(30% - 40px);
  64. display: flex;
  65. flex-direction: column;
  66. align-items: center;
  67. border-radius: 1.17rem;
  68. padding: 20px;
  69. margin-right: 40px;
  70. }
  71. .map {
  72. width: 40%;
  73. height: 70%;
  74. margin: auto;
  75. display: flex;
  76. flex-direction: column;
  77. align-items: center;
  78. border-left: 1px solid rgba(214, 225, 240, .5);
  79. border-right: 1px solid rgba(214, 225, 240, .5);
  80. }
  81. #mapEcharts {
  82. width: 70%;
  83. height: 70%;
  84. padding-top: 10%;
  85. position: relative;
  86. z-index: 999;
  87. }
  88. .dec {
  89. width: 30%;
  90. padding-top: 3.5%;
  91. padding-left: 2rem;
  92. padding-right: 2rem;
  93. }
  94. .dec>div {
  95. text-indent: 2em;
  96. color: #fff;
  97. font-size: 1.17rem;
  98. line-height: 35px;
  99. padding-top: 2rem;
  100. }
  101. .dec>span {
  102. background: #176ED0;
  103. border-radius: 10px;
  104. color: #fff;
  105. display: inline-block;
  106. padding: 20px 25px;
  107. font-size: 1.17rem;
  108. }
  109. .mapdec {
  110. color: #fff;
  111. font-size: 0.925rem;
  112. text-align: center;
  113. padding-top: 20px;
  114. }
  115. .title {
  116. color: #FFFFFF;
  117. width: 100%;
  118. display: flex;
  119. justify-content: space-between;
  120. padding-bottom: 45px;
  121. align-items: center;
  122. }
  123. .subtitle {
  124. font-size: 1.725rem;
  125. display: inline-block;
  126. }
  127. .backbutton {
  128. width: 117px;
  129. height: 42px;
  130. background: url(images/buttonbg.png) no-repeat;
  131. background-size: 100% 100%;
  132. border-radius: 10px;
  133. font-family: Microsoft YaHei;
  134. font-weight: 400;
  135. font-size: 16px;
  136. color: #fff;
  137. display: flex;
  138. align-items: center;
  139. justify-content: center;
  140. margin-right: 10px;
  141. cursor: pointer;
  142. }
  143. .backbutton img {
  144. margin-right: 10px;
  145. }
  146. .contentList {
  147. height: calc(100% / 6);
  148. justify-content: space-between;
  149. line-height: normal;
  150. background-color: transparent;
  151. color: #FFFFFF !important;
  152. font-size: 1.17rem;
  153. font-family: Microsoft YaHei;
  154. letter-spacing: 2px;
  155. padding: 0 10px;
  156. border-radius: 10px;
  157. width: 100%;
  158. display: flex;
  159. justify-content: space-between;
  160. cursor: pointer;
  161. }
  162. .contentList:hover {
  163. background-color: rgba(23, 110, 208, .5);
  164. font-size: 1.37rem;
  165. }
  166. .listRight {
  167. display: flex;
  168. align-items: center;
  169. }
  170. .listRight>img {
  171. width: 0.7rem;
  172. height: 1.2rem;
  173. }
  174. .el-collapse-item__content {
  175. padding: 0 15px 15px 15px;
  176. }
  177. .listLeft {
  178. display: flex;
  179. align-items: center;
  180. }
  181. .collapseItem {
  182. color: #DFDFDF;
  183. display: flex;
  184. flex-wrap: wrap;
  185. font-size: 0.9rem;
  186. }
  187. .link {
  188. cursor: pointer;
  189. width: 50%;
  190. }
  191. .listLeft>img {
  192. width: 3rem;
  193. height: 3rem;
  194. }
  195. .content>.title {
  196. /* margin-top: 1.875rem; */
  197. font-family: DOUYU;
  198. font-weight: normal;
  199. font-size: 1.625rem;
  200. color: #FFFFFF;
  201. /* line-height: 3rem; */
  202. /* text-shadow: 0px 2px 4px rgba(11, 96, 169, 0.25); */
  203. background: linear-gradient(0deg, rgba(184, 225, 255, 0.98) 0%, rgba(255, 255, 255, 0.98) 100%);
  204. -webkit-background-clip: text;
  205. -webkit-text-fill-color: transparent;
  206. }
  207. .content>.line {
  208. width: 37.9375rem;
  209. height: 1.125rem;
  210. /* margin-bottom: 1.25rem; */
  211. }
  212. .content>.text {
  213. width: 95%;
  214. min-height: 120px;
  215. font-size: 1rem;
  216. color: #FFFFFF;
  217. line-height: 1.875rem;
  218. text-indent: 2.5rem;
  219. }
  220. .content .more {
  221. width: 95%;
  222. height: 3.75rem;
  223. background-image: url(images/more-cygyy.png);
  224. background-size: 100% 100%;
  225. font-size: 1.5rem;
  226. color: #E1F0FE;
  227. line-height: 2.75rem;
  228. text-align: center;
  229. cursor: pointer;
  230. }
  231. .contentBox {
  232. width: 80%;
  233. height: 75%;
  234. padding-top: 5%;
  235. padding-left: 10%;
  236. padding-right: 10%;
  237. }
  238. /* 淡出动画 */
  239. .fade-out {
  240. animation: fadeOut 1s forwards;
  241. }
  242. /* 淡入动画 */
  243. .fade-in {
  244. animation: fadeIn 1s forwards;
  245. }
  246. @keyframes fadeOut {
  247. from {
  248. opacity: 0.8;
  249. }
  250. to {
  251. opacity: 0.6;
  252. }
  253. }
  254. @keyframes fadeIn {
  255. from {
  256. opacity: 0.6;
  257. }
  258. to {
  259. opacity: 0.8;
  260. }
  261. }
  262. @media screen and (max-width:1600px) {
  263. html,
  264. body {
  265. font-size: 14px;
  266. }
  267. }
  268. @media screen and (max-width:1400px) {
  269. html,
  270. body {
  271. font-size: 14px;
  272. }
  273. }
  274. @media screen and (max-width:1300px) {
  275. html,
  276. body {
  277. font-size: 10px;
  278. }
  279. }
  280. </style>
  281. </head>
  282. <body>
  283. <div class="" id="indexcygyy" :class="{ 'fade-out': fadeOut, 'fade-in': fadeIn }"
  284. :style="{ backgroundImage: 'url(' + backgroundImage + ')' }">
  285. <div class="contentBox">
  286. <div class="title">
  287. <span class="subtitle">产业园区</span>
  288. <div class="backbutton" @click="window.history.go(-1)">
  289. <img src="images/backlogo.png" alt="">
  290. <span>返回</span>
  291. </div>
  292. </div>
  293. <div class="content">
  294. <div class="list">
  295. <li v-for="(tab, index) in this.titleList" :key="index" class="contentList"
  296. @click="golink(`indexsyy.html?id=${tab.id}`)">
  297. <div class="listLeft">
  298. &emsp;&emsp;&emsp;&emsp;{{tab.title}}
  299. </div>
  300. <div class="listRight">
  301. <img src="images/arrowR.png" />
  302. </div>
  303. </li>
  304. </div>
  305. <div class="map">
  306. <div id="mapEcharts"></div>
  307. <div class="mapdec">南岸区产业布局图</div>
  308. </div>
  309. <div class="dec">
  310. <span>产业简介及发展重点</span>
  311. <div>
  312. 重庆经开区的“四园一港”是指‌南坪西区产业园、‌长江绿色创新产业园、‌先进汽车电子产业园、‌茶园工业园以及‌迎龙创新港。‌这一概念是为了形成高质量发展的区域空间格局,推动经济社会高质量发展,培育推动经济社会产生高质量变革的新质生产力,壮大经济发展新动能、新方式、新引擎。
  313. </div>
  314. </div>
  315. </div>
  316. </div>
  317. <!-- <div class="dialog">
  318. <div class="dialogHeader">
  319. <div class="dialogTitle">明星企业</div>
  320. </div>
  321. </div> -->
  322. </div>
  323. </body>
  324. <script>
  325. // 初始化Vue实例
  326. new Vue({
  327. el: '#indexcygyy',
  328. data: function () {
  329. return {
  330. reqPtah: '',
  331. currentTab: -1,
  332. contentList: [],
  333. currentTitle: '',
  334. parkDesc: '',
  335. parkName: '',
  336. titleList: [],
  337. backgroundImage: 'images/yqgkBg.png',
  338. fadeOut: false,
  339. fadeIn: false,
  340. id: null
  341. };
  342. },
  343. created() { },
  344. mounted() {
  345. const url = new URL(window.location.href);
  346. this.id = url.searchParams.get('id');
  347. this.getParkData()
  348. if (this.id == 4) {
  349. this.backgroundImage = 'images/bg-npxq.png';
  350. } else if (this.id == 6) {
  351. this.backgroundImage = 'images/bg-dxkjy.png';
  352. } else if (this.id == 5) {
  353. this.backgroundImage = 'images/bg-ylcxg.jpg';
  354. } else {
  355. this.backgroundImage = 'images/indexsyyg.png';
  356. }
  357. var myChart = echarts.init(document.getElementById('mapEcharts'));
  358. console.log(document.getElementById('mapEcharts'));
  359. // 注册地图(数据放在axios返回对象的data中哦)
  360. echarts.registerMap('nanan', nanan)
  361. window.addEventListener("resize", function () {
  362. myChart.resize();
  363. })
  364. myChart.setOption({
  365. series: [{
  366. type: 'map',
  367. map: 'nanan',
  368. regions: []
  369. }]
  370. });
  371. },
  372. methods: {
  373. goIndex() {
  374. window.location.href = "indexsyyg.html"
  375. },
  376. back() {
  377. window.location.href = "indexsyyg.html"
  378. },
  379. golink(hrf, val) {
  380. window.location.href = hrf;
  381. },
  382. getParkData() {
  383. let that = this;
  384. $.ajax({
  385. url: conpath + "/parkData/",
  386. type: "get",
  387. dataType: "json",
  388. success: function (data) {
  389. const arr = []
  390. data.forEach(function (item) {
  391. item.subtitleList = item.subtitle ? item.subtitle.split(",").slice(0, 3) : [];
  392. })
  393. arr.push(data[2], data[0], data[3], data[1], data[4], data[5])
  394. that.titleList = arr;
  395. }
  396. })
  397. }
  398. }
  399. });
  400. </script>
  401. </html>