bigScreen.1.html 66 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112
  1. {% load staticfiles %}
  2. <!doctype html>
  3. <html>
  4. <head>
  5. <meta charset="utf-8">
  6. <meta http-equiv="X-UA-Compatible" content="IE=edge">
  7. <meta name="viewport" content="initial-scale=1.0, user-scalable=no, width=device-width">
  8. <link rel="stylesheet" href="https://a.amap.com/jsapi_demos/static/demo-center/css/demo-center.css" />
  9. <link rel="stylesheet" href="{% static 'bigData/css/reset.css'%}" media="all">
  10. <link rel="stylesheet" href="{% static 'font-awesome/4.5.0/css/font-awesome.css'%}" media="all">
  11. <title>大数据平台</title>
  12. <style>
  13. /* 天气 */
  14. big {
  15. display: inline-block;
  16. }
  17. big.jpg80 {
  18. background-image: url(static/bigData/imgs/weatherPic.png);
  19. height: 80px;
  20. width: 80px;
  21. }
  22. big.d0 {
  23. background-position: 0 0;
  24. }
  25. big.d1 {
  26. background-position: -80px 0;
  27. }
  28. big.d2 {
  29. background-position: -160px 0;
  30. }
  31. big.d3 {
  32. background-position: -240px 0;
  33. }
  34. big.d4 {
  35. background-position: -320px 0;
  36. }
  37. big.d5 {
  38. background-position: -400px 0;
  39. }
  40. big.d6 {
  41. background-position: -480px 0;
  42. }
  43. big.d7 {
  44. background-position: -560px 0;
  45. }
  46. big.d8 {
  47. background-position: -640px 0;
  48. }
  49. big.d9 {
  50. background-position: 0 -80px;
  51. }
  52. big.d00 {
  53. background-position: 0 0;
  54. }
  55. big.d01 {
  56. background-position: -80px 0;
  57. }
  58. big.d02 {
  59. background-position: -160px 0;
  60. }
  61. big.d03 {
  62. background-position: -240px 0;
  63. }
  64. big.d04 {
  65. background-position: -320px 0;
  66. }
  67. big.d05 {
  68. background-position: -400px 0;
  69. }
  70. big.d06 {
  71. background-position: -480px 0;
  72. }
  73. big.d07 {
  74. background-position: -560px 0;
  75. }
  76. big.d08 {
  77. background-position: -640px 0;
  78. }
  79. big.d09 {
  80. background-position: 0 -80px;
  81. }
  82. big.d10 {
  83. background-position: -80px -80px;
  84. }
  85. big.d11 {
  86. background-position: -160px -80px;
  87. }
  88. big.d12 {
  89. background-position: -240px -80px;
  90. }
  91. big.d13 {
  92. background-position: -320px -80px;
  93. }
  94. big.d14 {
  95. background-position: -400px -80px;
  96. }
  97. big.d15 {
  98. background-position: -480px -80px;
  99. }
  100. big.d16 {
  101. background-position: -560px -80px;
  102. }
  103. big.d17 {
  104. background-position: -640px -80px;
  105. }
  106. big.d18 {
  107. background-position: 0 -160px;
  108. }
  109. /* 清除浮动 */
  110. .clearfix:after {
  111. content: ".";
  112. display: block;
  113. height: 0;
  114. clear: both;
  115. visibility: hidden;
  116. }
  117. .clearfix {
  118. display: block;
  119. }
  120. table {
  121. width: 100%;
  122. }
  123. .font12 {
  124. font-size: 1.2vh;
  125. }
  126. .font14 {
  127. font-size: 1.4vh;
  128. line-height: 18px;
  129. }
  130. .font16 {
  131. font-size: 1.6vh;
  132. }
  133. .font18 {
  134. font-size: 1.8vh;
  135. }
  136. .font20 {
  137. font-size: 2vh;
  138. }
  139. html,
  140. body,
  141. #map {
  142. width: 100%;
  143. height: 100%;
  144. background: #01052d;
  145. }
  146. /* 地图 */
  147. .amap-icon img {
  148. width: 25px;
  149. height: 34px;
  150. }
  151. .caption {
  152. color: #fff;
  153. position: absolute;
  154. top: 10px;
  155. left: 25vw;
  156. right: 25vw;
  157. z-index: 99;
  158. text-align: center;
  159. /* overflow: hidden; */
  160. background: url(static/bigData/imgs/bigDataBj.png) no-repeat center;
  161. background-size: 100% 100%;
  162. }
  163. .caption:before {
  164. position: absolute;
  165. content: '';
  166. left: 0%;
  167. top: -20px;
  168. width: 170px;
  169. height: 50px;
  170. /* transform: scale(.5); */
  171. background: url(static/bigData/imgs/highlight.png) no-repeat center;
  172. background-size: 100%;
  173. animation: mymoveTop 10s 1s infinite alternate;
  174. }
  175. .caption:after {
  176. position: absolute;
  177. content: '';
  178. right: 2%;
  179. bottom: -25px;
  180. width: 170px;
  181. height: 50px;
  182. transform: scale(.5);
  183. background: url(static/bigData/imgs/highlight.png) no-repeat center;
  184. background-size: 100%;
  185. animation: mymoveBottom 10s 1s infinite alternate;
  186. }
  187. #box-title {
  188. line-height: 88px;
  189. font-size: 3vh;
  190. }
  191. @keyframes mymoveTop {
  192. 0% {
  193. left: 0%;
  194. transform: scale(1.2)
  195. }
  196. 100% {
  197. transform: scale(.5);
  198. left: 88%;
  199. }
  200. }
  201. @keyframes mymoveBottom {
  202. from {
  203. left: 80%;
  204. transform: scale(.5);
  205. }
  206. to {
  207. left: 5%;
  208. transform: scale(1.2);
  209. }
  210. }
  211. /* 内容展示框 */
  212. .boxPlace {
  213. position: absolute;
  214. color: White;
  215. z-index: 99;
  216. width: 24vw;
  217. background: rgba(7, 17, 27, 0.7)
  218. }
  219. .box .rightAnimate {
  220. top: 30%;
  221. transform: rotate(90deg);
  222. right: -48px;
  223. position: absolute;
  224. /* animation: mymoveBoxTop 5s 3s infinite alternate; */
  225. }
  226. .box.boxPlaceLeft:after {
  227. position: absolute;
  228. top: 12%;
  229. right: -22px;
  230. content: '';
  231. width: 42px;
  232. height: 45px;
  233. /* transform: scale(1.2); */
  234. background: url(static/bigData/imgs/highlight222.png) no-repeat center;
  235. background-size: 100%;
  236. animation: mymoveBoxTop 5s 1s infinite alternate;
  237. }
  238. .box.boxPlaceRight:after {
  239. position: absolute;
  240. top: 12%;
  241. left: -18px;
  242. content: '';
  243. width: 42px;
  244. height: 45px;
  245. /* transform: scale(1.2); */
  246. background: url(static/bigData/imgs/highlight222.png) no-repeat center;
  247. background-size: 100%;
  248. animation: mymoveBoxTop 5s 5s infinite alternate;
  249. }
  250. .box.boxPlaceBottom:before {
  251. position: absolute;
  252. bottom: -9px;
  253. left: 5px;
  254. content: '';
  255. width: 45px;
  256. height: 20px;
  257. background: url(static/bigData/imgs/highlight2.png) no-repeat center;
  258. background-size: 100%;
  259. z-index: 999;
  260. animation: mymoveBoxBottom 10s 3s infinite alternate;
  261. }
  262. @keyframes mymoveBoxTop {
  263. 0% {
  264. top: 12%;
  265. /* transform: scale(1.2); */
  266. }
  267. 100% {
  268. transform: scale(.8);
  269. top: 79%;
  270. }
  271. }
  272. @keyframes mymoveBoxBottom {
  273. 0% {
  274. left: 1%;
  275. transform: scale(1);
  276. }
  277. 100% {
  278. transform: scale(.5);
  279. left: 88%;
  280. }
  281. }
  282. @keyframes mymoveBoxLeft {
  283. 0% {
  284. top: 20%;
  285. transform: scale(1.2) rotate(90deg);
  286. }
  287. 100% {
  288. transform: scale(.8) rotate(90deg);
  289. top: 82%;
  290. }
  291. }
  292. #box1 {
  293. top: 1vh;
  294. left: 0px;
  295. height: 18vh;
  296. }
  297. #box2 {
  298. top: 21vh;
  299. left: 0px;
  300. height: 32vh;
  301. }
  302. #box3 {
  303. top: 55vh;
  304. left: 0px;
  305. height: 18vh;
  306. }
  307. #box4 {
  308. top: 74vh;
  309. left: 0px;
  310. height: 23vh;
  311. }
  312. #box5 {
  313. top: 1vh;
  314. right: 0px;
  315. height: 20vh;
  316. }
  317. #box6 {
  318. top: 22vh;
  319. right: 0px;
  320. height: 28vh;
  321. }
  322. #box7 {
  323. top: 51vh;
  324. right: 0px;
  325. height: 22vh;
  326. }
  327. #box8 {
  328. top: 74vh;
  329. right: 0px;
  330. height: 23vh;
  331. }
  332. #box9 {
  333. position: absolute;
  334. color: White;
  335. z-index: 99;
  336. top: 64vh;
  337. left: 25vw;
  338. right: 25vw;
  339. height: 33vh;
  340. /* border: 1px solid #2d92c6; */
  341. /* box-shadow: 0px 0px 5px 1px #1a6fa5; */
  342. background-size: 100% 100%;
  343. }
  344. /* 框内内容 */
  345. .innerBox {
  346. position: absolute;
  347. width: 100%;
  348. height: 100%;
  349. overflow: hidden;
  350. }
  351. #scrollParent {
  352. top: 3px;
  353. height: 98%;
  354. }
  355. /* 2框 */
  356. .jkCaption {
  357. line-height: 25px;
  358. /* border-left: 1px solid red; */
  359. padding-left: 10px;
  360. background: -webkit-linear-gradient(90deg, #059bed, rgba(0, 0, 0, 0));
  361. /* Safari 5.1 - 6.0 */
  362. background: -o-linear-gradient(90deg, #059bed, rgba(0, 0, 0, 0));
  363. /* Opera 11.1 - 12.0 */
  364. background: -moz-linear-gradient(90deg, #059bed, rgba(0, 0, 0, 0));
  365. /* Firefox 3.6 - 15 */
  366. background: linear-gradient(90deg, #059bed, rgba(0, 0, 0, 0));
  367. /* 标准的语法(必须放在最后) */
  368. }
  369. .jkcorner {
  370. width: 20px;
  371. height: 20px;
  372. }
  373. .jkcorner1 {
  374. float: right;
  375. border-top: 2px solid #72fafe;
  376. border-left: 2px solid #72fafe;
  377. }
  378. .jkcorner2 {
  379. border-top: 2px solid #72fafe;
  380. border-right: 2px solid #72fafe;
  381. }
  382. .jkcorner3 {
  383. float: right;
  384. border-bottom: 2px solid #72fafe;
  385. border-left: 2px solid #72fafe;
  386. }
  387. .jkcorner4 {
  388. border-bottom: 2px solid #72fafe;
  389. border-right: 2px solid #72fafe;
  390. }
  391. .jkBorderBox {
  392. width: 81%;
  393. height: 0;
  394. padding-bottom: 45%;
  395. position: absolute;
  396. border: 1px solid red;
  397. }
  398. /* 3框 */
  399. .echartsPieTable {
  400. height: 88%;
  401. }
  402. .echartsPieTable td {
  403. width: 50%;
  404. height: 100%
  405. }
  406. .pieEchartsItem {
  407. width: 90%;
  408. height: 100px
  409. }
  410. .kind {
  411. line-height: 18px;
  412. height: 22px;
  413. }
  414. .kind i {
  415. display: inline-block;
  416. width: 10px;
  417. height: 10px;
  418. background: red;
  419. vertical-align: middle;
  420. }
  421. /* 4框 */
  422. #scrollBar {
  423. position: absolute;
  424. top: 0;
  425. left: 0;
  426. right: 0;
  427. }
  428. .swiperList li {
  429. line-height: 35px;
  430. /* text-align: center; */
  431. padding: 0 25px;
  432. overflow: hidden;
  433. text-overflow: ellipsis;
  434. white-space: nowrap;
  435. }
  436. .swiperList a {
  437. color: #a3b5c5;
  438. /* color: #fff; */
  439. }
  440. .swiperList a:hover {
  441. text-decoration: underline;
  442. }
  443. /* 5框 */
  444. .weatcherTop,
  445. .weatcherBottom {
  446. padding: 0 2%;
  447. height: 50%;
  448. }
  449. .weatcherTop table,
  450. .weatcherBottom table {
  451. text-align: center;
  452. }
  453. .weatcherTop table td,
  454. .weatcherBottom table td {
  455. width: 25%;
  456. }
  457. #currCity {
  458. margin-bottom: 3px;
  459. }
  460. /* 6框 */
  461. .retrospectTop {
  462. text-align: center;
  463. margin: 15px 0;
  464. }
  465. .retrospectTop input {
  466. font-size: 1.4vh;
  467. height: 30px;
  468. border-radius: 4px;
  469. border: 1px solid #2d92c6;
  470. color: #ffffff;
  471. outline: 0;
  472. background: #07122087;
  473. width: 70%;
  474. }
  475. .retrospectTop button {
  476. font-size: 1.2vh;
  477. height: 30px;
  478. border-radius: 4px;
  479. border: 1px solid #2d92c6;
  480. color: #ffffff;
  481. outline: 0;
  482. background: #07122087;
  483. width: 15%;
  484. vertical-align: middle;
  485. }
  486. .retrospectTop button:hover {
  487. background: #25466f;
  488. }
  489. .retrospectBottom {
  490. margin: 0 2%
  491. }
  492. .timeline-item {
  493. position: relative;
  494. padding-bottom: 20px;
  495. }
  496. .timeline-item:before {
  497. content: '';
  498. position: absolute;
  499. left: 12px;
  500. top: 0;
  501. z-index: 0;
  502. width: 1px;
  503. height: 100%;
  504. background-color: #e6e6e6;
  505. }
  506. .timeline-item:last-child:before {
  507. display: none
  508. }
  509. .timeline-item i {
  510. position: absolute;
  511. left: 5px;
  512. top: 0;
  513. z-index: 10;
  514. width: 15px;
  515. height: 15px;
  516. line-height: 15px;
  517. background-color: rgba(0, 0, 0);
  518. color: #35d2f4;
  519. border-radius: 50%;
  520. text-align: center;
  521. cursor: pointer;
  522. border: 1px solid;
  523. }
  524. .timeline-item .timeline-content {
  525. padding-left: 25px;
  526. }
  527. .productionTable {
  528. width: 100%;
  529. height: 100%;
  530. line-height: 2.5vh;
  531. font-size: 1.8vh;
  532. font-weight: 700;
  533. }
  534. .leftProDuct {
  535. width: 40%;
  536. padding-left: 5%
  537. }
  538. .productionTitle {
  539. color: #3fd8d7;
  540. font-weight: normal;
  541. font-size: 1.6vh;
  542. }
  543. .exampleImg {
  544. height: 13.4vh;
  545. }
  546. .productionCursor,
  547. .exampleImg {
  548. cursor: pointer;
  549. }
  550. /* 1框 */
  551. .equipTable {
  552. width: 100%;
  553. height: 100%;
  554. text-align: center;
  555. margin-top: 5px;
  556. }
  557. .equipBox li {
  558. float: left;
  559. width: 50%;
  560. }
  561. .equipTable td>img {
  562. cursor: pointer;
  563. vertical-align: middle;
  564. }
  565. .borderCaptionBj {
  566. position: absolute;
  567. top: -3px;
  568. left: 0;
  569. right: 0;
  570. margin-left: 24.5%;
  571. }
  572. .borderAll:before {
  573. position: absolute;
  574. content: ' ';
  575. color: red;
  576. left: 25%;
  577. top: -5px;
  578. right: 25%;
  579. text-align: center;
  580. background: #050d21 url(/static/bigData/imgs/captionBj.png) no-repeat center;
  581. background-size: 100%;
  582. }
  583. .borderAll .top {
  584. height: 0px;
  585. border: 1px solid #2d92c6;
  586. box-shadow: 0px 0px 5px 1px #1a6fa5;
  587. margin-right: 20px;
  588. /* width: 24.5%; */
  589. }
  590. .borderAll .bevel {
  591. height: 0px;
  592. border: 1px solid #2d92c6;
  593. width: 22px;
  594. transform: rotate(36deg);
  595. -o-transform: rotate(36deg);
  596. -moz-transform: rotate(36deg);
  597. -webkit-transform: rotate(36deg);
  598. box-shadow: 0px 0px 5px 1px #1a6fa5;
  599. position: absolute;
  600. right: -1px;
  601. top: 7px;
  602. }
  603. .borderAll .right {
  604. border: 1px solid #2d92c6;
  605. width: 0;
  606. box-shadow: 0px 0px 5px 1px #1a6fa5;
  607. position: absolute;
  608. right: 0;
  609. top: 15px;
  610. bottom: 0;
  611. }
  612. .borderAll .bottom {
  613. position: absolute;
  614. bottom: 0;
  615. border: 1px solid #2d92c6;
  616. width: 100%;
  617. box-shadow: 0px 0px 5px 1px #1a6fa5;
  618. }
  619. .borderAll .left {
  620. position: absolute;
  621. left: 0;
  622. top: 0;
  623. bottom: 0;
  624. border: 1px solid #2d92c6;
  625. width: 0;
  626. box-shadow: 0px 0px 5px 1px #1a6fa5;
  627. }
  628. .equipLogo {
  629. width: 25px;
  630. height: 25px;
  631. border-radius: 50%;
  632. border-width: 0px;
  633. vertical-align: middle;
  634. /* text-align: center; */
  635. /* font-size: 12px; */
  636. /* color: blue; */
  637. /* background-color: rgb(255, 125, 0); */
  638. /* animation: 1s ease 0s infinite normal none running myfirst01; */
  639. display: inline-block;
  640. }
  641. .animate01 {
  642. background-color: #00e921;
  643. animation: 1s ease 0s infinite normal none running myfirst01;
  644. }
  645. .animate02 {
  646. background-color: #fffa02;
  647. animation: 1s ease 0s infinite normal none running myfirst02;
  648. }
  649. .animate03 {
  650. background-color: #4b1382;
  651. animation: 1s ease 0s infinite normal none running myfirst03;
  652. }
  653. .animate04 {
  654. background-color: #ff7d00;
  655. animation: 1s ease 0s infinite normal none running myfirst04;
  656. }
  657. .animate05 {
  658. background-color: #1b7ddd;
  659. animation: 1s ease 0s infinite normal none running myfirst05;
  660. }
  661. .equipItemBox {
  662. cursor: pointer;
  663. }
  664. .equipItemBox:hover {
  665. text-decoration: underline
  666. }
  667. /* 8框 */
  668. #box8 .productionVal {
  669. line-height: 36px;
  670. font-size: 18px;
  671. }
  672. #box8 .table1 {
  673. margin-top: 10px;
  674. }
  675. #box8 .table1,
  676. #box8 .table2 {
  677. height: 10vh;
  678. text-align: center
  679. }
  680. #box8 .table1 .productionTitle {
  681. color: #069aeb;
  682. }
  683. #box8 .table2 .productionVal {
  684. font-size: 24px;
  685. }
  686. #box9>ul {
  687. position: absolute;
  688. left: 0;
  689. right: 0;
  690. bottom: 75%;
  691. }
  692. .category {
  693. float: left;
  694. min-width: 10%;
  695. max-width: 14%;
  696. line-height: 30px;
  697. border: 1px solid #2d92c6;
  698. box-shadow: 0px 0px 5px 1px #1a6fa5;
  699. transform: skew(-45deg);
  700. -ms-transform: skew(-45deg);
  701. /*IE9*/
  702. -moz-transform: skew(-45deg);
  703. /*Firefox*/
  704. -webkit-transform: skew(-45deg);
  705. /*Safari和chrome*/
  706. -o-transform: skew(-45deg);
  707. /*Opera*/
  708. background: linear-gradient(#00406b, rgba(0, 0, 0, 0.23), #003b63);
  709. background: -moz-linear-gradient(#00406b, rgba(0, 0, 0, 0.23), #003b63);
  710. background: -ms-linear-gradient(#00406b, rgba(0, 0, 0, 0.23), #003b63);
  711. background: -webkit-linear-gradient(#00406b, rgba(0, 0, 0, 0.23), #003b63);
  712. /* filter: progid:DXImageTransform.Microsoft.Gradient(startColorstr="#11C3F9", endColorstr="#72C472", gradientType="1"); */
  713. margin-left: 20px;
  714. cursor: pointer;
  715. }
  716. .category.active {
  717. color: #4caf50;
  718. }
  719. .category>div {
  720. transform: skew(45deg);
  721. padding: 0 20px;
  722. overflow: hidden;
  723. text-overflow: ellipsis;
  724. white-space: nowrap;
  725. }
  726. .echartsBox {
  727. border: 1px solid #2d92c6;
  728. box-shadow: 0px 0px 5px 1px #1a6fa5;
  729. position: absolute;
  730. left: 0;
  731. right: 0;
  732. bottom: 0;
  733. height: 68%;
  734. background: rgba(7, 17, 27, 0.7);
  735. }
  736. @keyframes myfirst01 {
  737. 0% {
  738. -moz-box-shadow: 0px 0px 10px 2px #00e921;
  739. box-shadow: 0px 0px 10px 2px #00e921;
  740. }
  741. 50% {
  742. -moz-box-shadow: 0px 0px 20px 2px #00e921;
  743. box-shadow: 0px 0px 20px 2px #00e921;
  744. }
  745. 100% {
  746. -moz-box-shadow: 0px 0px 10px 2px #00e921;
  747. box-shadow: 0px 0px 10px 2px #00e921;
  748. }
  749. }
  750. @keyframes myfirst02 {
  751. 0% {
  752. -moz-box-shadow: 0px 0px 10px 2px #fffa02;
  753. box-shadow: 0px 0px 10px 2px #fffa02;
  754. }
  755. 50% {
  756. -moz-box-shadow: 0px 0px 20px 2px #fffa02;
  757. box-shadow: 0px 0px 20px 2px #fffa02;
  758. }
  759. 100% {
  760. -moz-box-shadow: 0px 0px 10px 2px #fffa02;
  761. box-shadow: 0px 0px 10px 2px #fffa02;
  762. }
  763. }
  764. @keyframes myfirst03 {
  765. 0% {
  766. -moz-box-shadow: 0px 0px 10px 2px #4b1382;
  767. box-shadow: 0px 0px 10px 2px #4b1382;
  768. }
  769. 50% {
  770. -moz-box-shadow: 0px 0px 20px 2px #4b1382;
  771. box-shadow: 0px 0px 20px 2px #4b1382;
  772. }
  773. 100% {
  774. -moz-box-shadow: 0px 0px 10px 2px #4b1382;
  775. box-shadow: 0px 0px 10px 2px #4b1382;
  776. }
  777. }
  778. @keyframes myfirst04 {
  779. 0% {
  780. -moz-box-shadow: 0px 0px 10px 2px #ff7d00;
  781. box-shadow: 0px 0px 10px 2px #ff7d00;
  782. }
  783. 50% {
  784. -moz-box-shadow: 0px 0px 20px 2px #ff7d00;
  785. box-shadow: 0px 0px 20px 2px #ff7d00;
  786. }
  787. 100% {
  788. -moz-box-shadow: 0px 0px 10px 2px #ff7d00;
  789. box-shadow: 0px 0px 10px 2px #ff7d00;
  790. }
  791. }
  792. @keyframes myfirst05 {
  793. 0% {
  794. -moz-box-shadow: 0px 0px 10px 2px #1b7ddd;
  795. box-shadow: 0px 0px 10px 2px #1b7ddd;
  796. }
  797. 50% {
  798. -moz-box-shadow: 0px 0px 20px 2px #1b7ddd;
  799. box-shadow: 0px 0px 20px 2px #1b7ddd;
  800. }
  801. 100% {
  802. -moz-box-shadow: 0px 0px 10px 2px #1b7ddd;
  803. box-shadow: 0px 0px 10px 2px #1b7ddd;
  804. }
  805. }
  806. /* 地图弹出框 */
  807. .custom-input-card {
  808. width: 18rem;
  809. }
  810. .custom-input-card .btn:last-child {
  811. margin-left: 1rem;
  812. }
  813. .content-window-card {
  814. position: relative;
  815. width: 23rem;
  816. padding: 0.75rem 0 0 1.25rem;
  817. box-shadow: none;
  818. bottom: 0;
  819. left: 0;
  820. }
  821. .content-window-card p {
  822. height: 2rem;
  823. }
  824. .input-card {
  825. background-color: #00000063;
  826. }
  827. .amap-info-content {
  828. background-color: #00000063;
  829. border: 1px solid #288bc0;
  830. box-shadow: 0px 0px 5px 0px #4bfafd;
  831. color: #fff;
  832. }
  833. .amap-info-contentContainer:hover .amap-info-outer {
  834. box-shadow: 0px 0px 5px 0px #4bfafd;
  835. }
  836. .bottom-center .amap-info-sharp {
  837. border-top: 8px solid #2d92c6;
  838. }
  839. /* layui弹出框式样覆盖 */
  840. div.layui-layer-title {
  841. /* background-color: #3495c7; */
  842. background-color: #1c658b;
  843. color: #fff;
  844. border-bottom: 1px solid #082d48;
  845. }
  846. .layui-layer-content {
  847. background: #082d48;
  848. }
  849. /* load */
  850. #load {
  851. width: 100%;
  852. height: 100%;
  853. position: absolute;
  854. background: url(../static/bigData/imgs/data08.png) no-repeat #061537;
  855. background-size: cover;
  856. top: 0;
  857. left: 0;
  858. z-index: 999;
  859. }
  860. #load .load_img {
  861. position: absolute;
  862. left: calc(50% - 182px);
  863. top: calc(50% - 182px);
  864. }
  865. .load_img img {
  866. position: absolute;
  867. left: 0;
  868. top: 0;
  869. }
  870. .load_img .jzxz1 {
  871. animation: xz1 8s infinite linear;
  872. }
  873. @keyframes xz1 {
  874. from {
  875. transform: rotate(0deg);
  876. }
  877. 50% {
  878. transform: rotate(180deg);
  879. }
  880. to {
  881. transform: rotate(360deg);
  882. }
  883. }
  884. .load_img .jzxz2 {
  885. animation: xz2 7s infinite linear;
  886. }
  887. @keyframes xz2 {
  888. from {
  889. transform: rotate(0deg);
  890. }
  891. 50% {
  892. transform: rotate(-180deg);
  893. }
  894. to {
  895. transform: rotate(-360deg);
  896. }
  897. }
  898. </style>
  899. </head>
  900. <body>
  901. <div id="load">
  902. <div class="load_img">
  903. <!-- 加载动画 -->
  904. <img class="jzxz1" src="{% static '/bigData/imgs/jzxz1.png'%}">
  905. <img class="jzxz2" src="{% static '/bigData/imgs/jzxz2.png'%}">
  906. </div>
  907. </div>
  908. <div id="map"></div>
  909. <!-- 标题 -->
  910. <div class="caption">
  911. <div id="box-title">智慧农业物联网大数据平台</div>
  912. <!-- <div id="animateBottom">
  913. <img src="{% static '/imgs/highlight.png'%}" width="180" alt="">
  914. </div> -->
  915. </div>
  916. <!-- 小框 -->
  917. <div id="box1" class="box boxPlace boxPlaceLeft boxPlaceBottom">
  918. <img src="{% static '/bigData/imgs/captionBj.png'%}" class="borderCaptionBj" width="50%" alt="">
  919. <div class="borderAll">
  920. <div class="top"></div>
  921. <div class="bevel"></div>
  922. <div class="right"></div>
  923. <div class="bottom"></div>
  924. <div class="left"></div>
  925. </div>
  926. <!-- <img src="{% static '/imgs/highlight.png'%}" class="rightAnimate" width="100" alt=""> -->
  927. <!-- <img src="{% static '/imgs/highlight.png'%}" class="bottomAnimate" width="130" alt=""> -->
  928. <table class="equipTable">
  929. <tr>
  930. <td>
  931. <div class="equipItemBox" data-item="2">
  932. <div class="equipLogo">
  933. <img src="{% static '/bigData/imgs/icon1.svg'%}" width="100%" alt="">
  934. </div>
  935. &nbsp;杀虫灯
  936. <span id="scdNum">873</span>台
  937. </div>
  938. </td>
  939. <td>
  940. <div class="equipItemBox" data-item="3">
  941. <div class="equipLogo">
  942. <img src="{% static '/bigData/imgs/icon2.svg'%}" width="100%" alt="">
  943. </div>
  944. &nbsp;测报灯
  945. <span id="cbdNum">652</span>台
  946. </div>
  947. </td>
  948. </tr>
  949. <tr>
  950. <td>
  951. <div class="equipItemBox" data-item="5">
  952. <div class="equipLogo">
  953. <img src="{% static '/bigData/imgs/icon3.svg'%}" width="100%" alt="">
  954. </div>
  955. &nbsp;环境监测
  956. <span id="qxzNum">434</span>台
  957. </div>
  958. </td>
  959. <td>
  960. <div class="equipItemBox" data-item="6">
  961. <div class="equipLogo">
  962. <img src="{% static '/bigData/imgs/icon4.svg'%}" width="100%" alt="">
  963. </div>
  964. &nbsp;孢子仪
  965. <span id="bzyNum">251</span>台
  966. </div>
  967. </td>
  968. </tr>
  969. <tr>
  970. <td>
  971. <div class="equipItemBox" data-item="7">
  972. <div class="equipLogo">
  973. <img src="{% static '/bigData/imgs/icon5.svg'%}" width="100%" alt="">
  974. </div>
  975. &nbsp;监 控
  976. <span id="jkNum">165</span>台
  977. </div>
  978. </td>
  979. <td>
  980. <div class="equipItemBox" data-item="all">
  981. <!-- <div class="equipLogo"></div> -->
  982. <img src="{% static '/bigData/imgs/locationIcon.png' %}" style="vertical-align: middle;" width="26" alt=""> &nbsp;全部设备
  983. </div>
  984. </td>
  985. </tr>
  986. </table>
  987. </div>
  988. <div id="box2" class="box boxPlace">
  989. <div class="innerBox" style="">
  990. <div class="jkCaption">监控中心</div>
  991. <!-- <div>河南郑州</div> -->
  992. <table style="height:80%;margin-top:10px">
  993. <tr>
  994. <td style="height:22px">
  995. <div class="jkcorner jkcorner1"></div>
  996. </td>
  997. <td></td>
  998. <td>
  999. <div class="jkcorner jkcorner2"></div>
  1000. </td>
  1001. </tr>
  1002. <tr>
  1003. <td></td>
  1004. <td style="width:80%">
  1005. <video id="myPlayer" poster="" controls playsInline webkit-playsinline autoplay style="width:100%;height: 20vh;">
  1006. <!-- <source src="rtmp://rtmp01open.ys7.com/openlive/18319fb1a08249d3a498c5cba3e8bdee.hd" type="" /> -->
  1007. <source src="http://hls01open.ys7.com/openlive/18319fb1a08249d3a498c5cba3e8bdee.hd.m3u8" type="application/x-mpegURL" />
  1008. </video>
  1009. </td>
  1010. <td></td>
  1011. </tr>
  1012. <tr>
  1013. <td style="height:22px">
  1014. <div class="jkcorner jkcorner3"></div>
  1015. </td>
  1016. <td></td>
  1017. <td>
  1018. <div class="jkcorner jkcorner4"></div>
  1019. </td>
  1020. </tr>
  1021. </table>
  1022. </div>
  1023. </div>
  1024. </div>
  1025. <div id="box3" class="box boxPlace">
  1026. <div class="jkCaption">数据</div>
  1027. <table class="echartsPieTable">
  1028. <tr>
  1029. <td>
  1030. <h2>图标1</h2>
  1031. <div style="width:60%;float: left;">
  1032. <div id="pie1" class="pieEchartsItem"></div>
  1033. </div>
  1034. <ul style="width:40%;float: left;">
  1035. <li class="kind">
  1036. <i>&nbsp;</i>
  1037. <span>&nbsp;服务站点</span>
  1038. </li>
  1039. <li class="kind">
  1040. <i>&nbsp;</i>
  1041. <span>&nbsp;服务站点</span>
  1042. </li>
  1043. <li class="kind">
  1044. <i>&nbsp;</i>
  1045. <span>&nbsp;服务站点</span>
  1046. </li>
  1047. <li class="kind">
  1048. <i>&nbsp;</i>
  1049. <span>&nbsp;服务站点</span>
  1050. </li>
  1051. </ul>
  1052. </td>
  1053. <td>
  1054. <h2>图标2</h2>
  1055. <div style="width:60%;float: left;">
  1056. <div id="pie2" class="pieEchartsItem"></div>
  1057. </div>
  1058. <ul style="width:40%;float: right;">
  1059. <li>2222222222</li>
  1060. <li>2</li>
  1061. <li>2</li>
  1062. <li>2</li>
  1063. </ul>
  1064. </td>
  1065. </tr>
  1066. </table>
  1067. </div>
  1068. <div id="box4" class="box boxPlace boxPlace boxPlaceLeft boxPlaceBottom">
  1069. <img src="{% static '/bigData/imgs/captionBj.png'%}" class="borderCaptionBj" width="50%" alt="">
  1070. <div class="borderAll">
  1071. <div class="top"></div>
  1072. <div class="bevel"></div>
  1073. <div class="right"></div>
  1074. <div class="bottom"></div>
  1075. <div class="left"></div>
  1076. </div>
  1077. <div class="innerBox" id="scrollParent">
  1078. <ul class="swiperList" id="scrollBar">
  1079. <li>
  1080. <a data-type="1" target="_blank">
  1081. <i class="fa fa-volume-up" aria-hidden="true"></i>
  1082. 铜梁:推广可降解地膜治理农田“白色污染”
  1083. </a>
  1084. </li>
  1085. <li>
  1086. <a data-type="2" target="_blank">
  1087. <i class="fa fa-volume-up" aria-hidden="true"></i>
  1088. 柳河县:推动秸秆还田配套项目建设
  1089. </a>
  1090. </li>
  1091. <li>
  1092. <a data-type="3" target="_blank">
  1093. <i class="fa fa-volume-up" aria-hidden="true"></i>
  1094. 河南:发展特色蔬菜产业致富路
  1095. </a>
  1096. </li>
  1097. <li>
  1098. <a data-type="4" target="_blank">
  1099. <i class="fa fa-volume-up" aria-hidden="true"></i>
  1100. 玉米、小麦绿色品种指标体系发布
  1101. </a>
  1102. </li>
  1103. <li>
  1104. <a data-type="5" target="_blank">
  1105. <i class="fa fa-volume-up" aria-hidden="true"></i>
  1106. 7月19日,一场汇聚全球智慧农业人的盛会来啦
  1107. </a>
  1108. </li>
  1109. <li>
  1110. <a data-type="6" target="_blank">
  1111. <i class="fa fa-volume-up" aria-hidden="true"></i>
  1112. 7月初总体农药价格行情走势
  1113. </a>
  1114. </li>
  1115. <li>
  1116. <a data-type="7" target="_blank">
  1117. <i class="fa fa-volume-up" aria-hidden="true"></i>
  1118. 农村怪象:农民工看不起大学生,上学无用论盛行,风气不正何时消
  1119. </a>
  1120. </li>
  1121. </ul>
  1122. </div>
  1123. </div>
  1124. <div id="box5" class="box boxPlace boxPlaceRight boxPlaceBottom">
  1125. <img src="{% static '/bigData/imgs/captionBj.png'%}" class="borderCaptionBj" width="50%" alt="">
  1126. <div class="borderAll">
  1127. <div class="top"></div>
  1128. <div class="bevel"></div>
  1129. <div class="right"></div>
  1130. <div class="bottom"></div>
  1131. <div class="left"></div>
  1132. </div>
  1133. <!-- <img src="{% static '/imgs/highlight.png'%}" class="leftAnimate" width="100" alt=""> -->
  1134. <!-- <img src="{% static '/imgs/highlight.png'%}" class="bottomAnimate" width="130" alt=""> -->
  1135. <!-- 天气 -->
  1136. <div class="weatcherTop">
  1137. <table style="height:100%">
  1138. <tr>
  1139. <td>
  1140. <p class="font14" id="currCity"></p>
  1141. <p id="upTime"></p>
  1142. </td>
  1143. <td>
  1144. <big id="weatherIcon" class="jpg80" style="zoom: 50%;"></big>
  1145. </td>
  1146. <td>
  1147. <div id="temScope" class="font20"></div>
  1148. </td>
  1149. <td>
  1150. <div id="wea"></div>
  1151. </td>
  1152. </tr>
  1153. </table>
  1154. </div>
  1155. <div class="weatcherBottom">
  1156. <table style="height:100%">
  1157. <tr>
  1158. <td>
  1159. <p style="margin: 14px 0 4px;">风速</p>
  1160. <p class="font14" id="win_speed"></p>
  1161. </td>
  1162. <td>
  1163. <div>
  1164. <img src="{% static '/bigData/imgs/qw.png'%}" alt="">
  1165. </div>
  1166. <div id="currTem"></div>
  1167. </td>
  1168. <td>
  1169. <div>
  1170. <img src="{% static '/bigData/imgs/sd.png'%}" alt="">
  1171. </div>
  1172. <div id="humidity"></div>
  1173. </td>
  1174. <td>
  1175. <div>
  1176. <img src="{% static '/bigData/imgs/dnf.png'%}" alt="">
  1177. </div>
  1178. <div id="winGrade"></div>
  1179. </td>
  1180. </tr>
  1181. </table>
  1182. </div>
  1183. </div>
  1184. <div id="box6" class="box boxPlace">
  1185. <div class="jkCaption">农业物联网</div>
  1186. <!-- 追溯 -->
  1187. <div style="margin-top:4%;">
  1188. <table class="productionTable">
  1189. <tr>
  1190. <td class="leftProDuct productionCursor" onclick="reateMarke(equipInfo, 7)">
  1191. <div class="productionTitle">生产监控</div>
  1192. <div>354</div>
  1193. </td>
  1194. <td>
  1195. <div class="productionTitle">生态循环</div>
  1196. <div>368</div>
  1197. </td>
  1198. </tr>
  1199. <tr>
  1200. <td class="leftProDuct">
  1201. <div class="productionTitle">生产管理</div>
  1202. <div>567</div>
  1203. </td>
  1204. <td rowspan="2">
  1205. <div class="productionTitle">示范点:云飞展示基地</div>
  1206. <div>
  1207. <img src="{% static '/bigData/imgs/16062573.png'%}" class="exampleImg" onclick="mainModalEvent()" alt="">
  1208. </div>
  1209. </td>
  1210. </tr>
  1211. <tr>
  1212. <td class="leftProDuct">
  1213. <div class="productionTitle">安全追溯</div>
  1214. <div>1123</div>
  1215. </td>
  1216. </tr>
  1217. </table>
  1218. </div>
  1219. </div>
  1220. <div id="box7" class="box boxPlace">
  1221. <!-- <div class="jkCaption">农业物联网</div> -->
  1222. <!-- 统计 -->
  1223. <div id="barEcharts" style="height:100%"></div>
  1224. </div>
  1225. <div id="box8" class="box boxPlace">
  1226. <!-- <div id="box8" class="box boxPlace boxPlaceRight boxPlaceBottom"> -->
  1227. <!-- <img src="{% static '/imgs/captionBj.png'%}" class="borderCaptionBj" width="50%" alt="">
  1228. <div class="borderAll">
  1229. <div class="top"></div>
  1230. <div class="bevel"></div>
  1231. <div class="right"></div>
  1232. <div class="bottom"></div>
  1233. <div class="left"></div>
  1234. </div> -->
  1235. <!-- <img src="{% static '/imgs/highlight.png'%}" class="leftAnimate" width="100" alt=""> -->
  1236. <!-- <img src="{% static '/imgs/highlight.png'%}" class="bottomAnimate" width="130" alt=""> -->
  1237. <div class="jkCaption">农业数字</div>
  1238. <div>
  1239. <table class="table1" style="height:10vh;text-align:center">
  1240. <tr>
  1241. <td>
  1242. <div class="productionTitle">品牌农企</div>
  1243. <div class="productionVal">54</div>
  1244. </td>
  1245. <td>
  1246. <div class="productionTitle">品牌农企</div>
  1247. <div class="productionVal">54</div>
  1248. </td>
  1249. <td>
  1250. <div class="productionTitle">品牌农企</div>
  1251. <div class="productionVal">54</div>
  1252. </td>
  1253. <td>
  1254. <div class="productionTitle">品牌农企</div>
  1255. <div class="productionVal">54</div>
  1256. </td>
  1257. </tr>
  1258. <tr>
  1259. <td>
  1260. <div class="productionTitle">品牌农企</div>
  1261. <div class="productionVal">54</div>
  1262. </td>
  1263. <td>
  1264. <div class="productionTitle">品牌农企</div>
  1265. <div class="productionVal">54</div>
  1266. </td>
  1267. <td>
  1268. <div class="productionTitle">品牌农企</div>
  1269. <div class="productionVal">54</div>
  1270. </td>
  1271. <td>
  1272. <div class="productionTitle">品牌农企</div>
  1273. <div class="productionVal">54</div>
  1274. </td>
  1275. </tr>
  1276. </table>
  1277. <!-- <div class="jkCaption">农业数字</div> -->
  1278. <table class="table2" style="height:10vh;text-align:center">
  1279. <tr>
  1280. <td>
  1281. <div class="productionTitle">产值(亿)</div>
  1282. <div class="productionVal">123.5</div>
  1283. </td>
  1284. <td>
  1285. <div class="productionTitle">总收入(亿)</div>
  1286. <div class="productionVal">54.62</div>
  1287. </td>
  1288. <td>
  1289. <div class="productionTitle">人均收入(亿)</div>
  1290. <div class="productionVal">11152.31111</div>
  1291. </td>
  1292. </tr>
  1293. </table>
  1294. </div>
  1295. </div>
  1296. <div id="box9" class="box">
  1297. <ul class="clearfix" id="categoryTitle">
  1298. <li class="category active">
  1299. <div>智慧农业物联网大数据平台</div>
  1300. </li>
  1301. <li class="category">
  1302. <div>大数据智农业物联网平台</div>
  1303. </li>
  1304. <li class="category">
  1305. <div>农业物联网大数据平台</div>
  1306. </li>
  1307. <li class="category">
  1308. <div>网大数据平台</div>
  1309. </li>
  1310. <li class="category">
  1311. <div>5</div>
  1312. </li>
  1313. </ul>
  1314. <div class="echartsBox">
  1315. <div id="echarts" style="height:100%"></div>
  1316. </div>
  1317. </div>
  1318. <!-- 加载地图JSAPI脚本 -->
  1319. <script src="https://webapi.amap.com/maps?v=1.4.15&key=3939967b919a8003377dd113fc445a3d&plugin=AMap.Geocoder"></script>
  1320. <script src="{% static '/lib/js/jquery-2.1.4.min.js'%}"></script>
  1321. <script src="{% static '/lib/layui/layui.js'%}"></script>
  1322. <!-- <script src="{% static '/lib/weatherIcon.js'%}"></script> -->
  1323. <!-- <script src="{% static '/lib/equipInfo.js'%}"></script> -->
  1324. <script src="https://open.ys7.com/sdk/js/1.3/ezuikit.js"></script>
  1325. <!-- <script src="http://echarts.baidu.com/build/dist/echarts-all.js"></script> -->
  1326. <script src="https://cdnjs.cloudflare.com/ajax/libs/echarts/4.2.1/echarts.js"></script>
  1327. <script>
  1328. var map = new AMap.Map('map', {
  1329. resizeEnable: true, //是否监控地图容器尺寸变化
  1330. zoom: 11, //初始化地图层级
  1331. center: [113.397428, 39.90923] //初始化地图中心点
  1332. });
  1333. map.setMapStyle('amap://styles/darkblue');
  1334. // 1框
  1335. $('.equipTable').on('click', '.equipItemBox', function () {
  1336. console.log($(this))
  1337. console.log($(this).data('item'))
  1338. reateMarke(equipInfo, $(this).data('item'))
  1339. })
  1340. // $.ajax({
  1341. // url: 'map',
  1342. // type: 'post',
  1343. // data: {
  1344. // },
  1345. // dataType: 'json',
  1346. // success: function (data) {
  1347. // // console.log(data);
  1348. // reateMarke(data, 'all')
  1349. // }
  1350. // })
  1351. // reateMarke(equipInfo, 'all')
  1352. function reateMarke(capitals, all) {
  1353. map.clearMap(); // 清除地图覆盖物
  1354. var scd = 0, cbd = 0, bzy = 0, qxz = 0, jk = 0;
  1355. for (var i = 0; i < capitals.length; i += 1) {
  1356. if (capitals[i].equip_type == 2) {
  1357. scd++;
  1358. var bgColor = '#00e921';
  1359. var animationName = 'myfirst01';
  1360. var equipType = '杀虫灯';
  1361. var icon = 'static/imgs/icon1.svg';
  1362. } else if (capitals[i].equip_type == 3) {
  1363. cbd++;
  1364. var bgColor = '#fffa02';
  1365. var animationName = 'myfirst02';
  1366. var equipType = '测报灯';
  1367. var icon = 'static/imgs/icon2.svg';
  1368. } else if (capitals[i].equip_type == 5) {
  1369. qxz++;
  1370. var bgColor = '#4b1382';
  1371. var animationName = 'myfirst03';
  1372. var equipType = '环境监测';
  1373. var icon = 'static/imgs/icon3.svg';
  1374. } else if (capitals[i].equip_type == 6) {
  1375. bzy++;
  1376. var bgColor = '#ff7d00';
  1377. var animationName = 'myfirst04';
  1378. var equipType = '孢子仪';
  1379. var icon = 'static/imgs/icon4.svg';
  1380. } else if (capitals[i].equip_type == 7) {
  1381. jk++;
  1382. var bgColor = '#1b7ddd';
  1383. var animationName = 'myfirst05';
  1384. var equipType = '监控';
  1385. var icon = 'static/imgs/icon5.svg';
  1386. }
  1387. if (all == 'all') {
  1388. var currStatus = true;
  1389. } else {
  1390. var currStatus = capitals[i].equip_type == all
  1391. }
  1392. if (capitals[i].lng && capitals[i].lat && currStatus ) {
  1393. // var text = new AMap.Text({
  1394. // text: ' ',
  1395. // anchor: 'center',
  1396. // verticalAlign: 'middle', //middle 、bottom
  1397. // draggable: false, //设置点标记是否可拖拽移动
  1398. // cursor: 'pointer',
  1399. // angle: 10,
  1400. // style: {
  1401. // 'width': '10px',
  1402. // 'height': '10px',
  1403. // 'border-radius': '50%',
  1404. // 'border-width': 0,
  1405. // 'text-align': 'center',
  1406. // 'font-size': '12px',
  1407. // 'color': 'blue',
  1408. // 'background-color': bgColor,
  1409. // // '-moz-box-shadow': '0px 0px 20px 2px '+capitals[i].color,
  1410. // // 'box-shadow': '0px 0px 20px 2px '+capitals[i].color,
  1411. // 'animation': animationName + ' 1s infinite',
  1412. // // 'animation': 'myfirst 1s infinite'
  1413. // },
  1414. // icon:'http://yingde.hoire.cn/Content/image/Ecommerce1.svg',
  1415. // position: [parseFloat(capitals[i].lng), parseFloat(capitals[i].lat)]
  1416. // // position:[120.11, 30.357574]
  1417. // })
  1418. var text = new AMap.Marker({
  1419. map: map,
  1420. position: [parseFloat(capitals[i].lng), parseFloat(capitals[i].lat)],
  1421. icon: icon, // 添加 Icon 图标 URL
  1422. title: "",
  1423. // extData:{type:12,id:'00000000-0000-0000-0000-000000000000'} //用户自定义属性
  1424. });
  1425. //构建自定义信息窗体
  1426. var info = [];
  1427. info.push("<div class='input-card content-window-card'> ");
  1428. info.push("<div style=\"padding:7px 0px 0px 0px;\"><h4>" + equipType + "设备</h4>");
  1429. info.push("<p style=\"padding:7px 0px 0px 0px;\">设备IMEI :" + capitals[i].equip_id + "</p>");
  1430. info.push("<p class='input-item'>经度 : " + capitals[i].lng + " 纬度 : " + capitals[i].lat + "</p>");
  1431. info.push("<p class='input-item' id='currAddress'>地址 :</p></div></div>");
  1432. var content = info.join("");
  1433. var place = [parseFloat(capitals[i].lng), parseFloat(capitals[i].lat)]
  1434. addClickHandler(text, place, content) //标注点击事件
  1435. text.setMap(this.map); //将标注添加到地图上
  1436. }
  1437. if (i == capitals.length - 1) {
  1438. // $('#scdNum').html(scd);
  1439. // $('#cbdNum').html(cbd);
  1440. // $('#bzyNum').html(bzy);
  1441. // $('#qxzNum').html(qxz);
  1442. // $('#jkNum').html(jk);
  1443. // $('#allNum').html(capitals.length);
  1444. }
  1445. map.setFitView(); //标注在可视范围
  1446. }
  1447. }
  1448. function addClickHandler(marker, place, content) {
  1449. marker.on("mouseover", function (e) {
  1450. // 根据经纬度查询地址
  1451. var geocoder;
  1452. geocoder = new AMap.Geocoder({});
  1453. geocoder.getAddress(place, function (status, result) {
  1454. if (status === 'complete' && result.regeocode) {
  1455. var address = result.regeocode.formattedAddress;
  1456. $('#currAddress').html('地址 :' + address)
  1457. } else {
  1458. alert('根据经纬度查询地址失败')
  1459. }
  1460. });
  1461. //在指定位置打开信息窗体
  1462. var infoWindow = new AMap.InfoWindow({
  1463. content: content, //使用默认信息窗体框样式,显示信息内容
  1464. offset: new AMap.Pixel(5, -15)
  1465. });
  1466. infoWindow.open(map, place)
  1467. });
  1468. }
  1469. // 2框
  1470. // var player = new EZUIPlayer('myPlayer');
  1471. // player.on('error', function () {
  1472. // console.log('error');
  1473. // });
  1474. // 3框
  1475. var myChart1 = echarts.init(document.getElementById('pie1'));
  1476. var myChart2 = echarts.init(document.getElementById('pie2'));
  1477. var pieoption = {
  1478. grid: {
  1479. top: 0,
  1480. left: 0,
  1481. bottom: 0,
  1482. right: 0
  1483. },
  1484. series: [
  1485. {
  1486. name: '访问来源',
  1487. type: 'pie',
  1488. radius: '80%',
  1489. data: [
  1490. { value: 335, name: '直接访问' },
  1491. { value: 310, name: '邮件营销' },
  1492. { value: 234, name: '联盟广告' },
  1493. { value: 135, name: '视频广告' },
  1494. { value: 1548, name: '搜索引擎' }
  1495. ],
  1496. hoverAnimation: false,
  1497. label: {
  1498. normal: {
  1499. show: false,
  1500. position: 'center'
  1501. }
  1502. },
  1503. labelLine: {
  1504. normal: {
  1505. show: false
  1506. }
  1507. },
  1508. itemStyle: {
  1509. //通常情况下:
  1510. normal: {
  1511. //每个柱子的颜色即为colorList数组里的每一项,如果柱子数目多于colorList的长度,则柱子颜色循环使用该数组
  1512. color: function (params) {
  1513. var colorList = [
  1514. '#00FFFF', '#00FF00', '#FFFF00', '#FF8C00', '#FF0000', '#FE8463',
  1515. ];
  1516. return colorList[params.dataIndex]
  1517. }
  1518. }
  1519. }
  1520. }
  1521. ]
  1522. };
  1523. // 为echarts对象加载数据
  1524. myChart1.setOption(pieoption);
  1525. myChart2.setOption(pieoption);
  1526. myChart1.on("click", pieConsole);
  1527. //方法三:http://www.jb51.net/article/125820.htm
  1528. function pieConsole(param) {
  1529. console.log(param)
  1530. // 获取data长度
  1531. alert(option.series[0].data.length);
  1532. // 获取地N个data的值
  1533. //   alert(option.series[0].data[i]);
  1534. // 获取series中param.dataIndex事件对应的值
  1535. alert(param.value);
  1536. alert(param.name);
  1537. // alert(option.series[param.seriesIndex].data[param.dataIndex].value);
  1538. // alert(option.series[param.seriesIndex].data[param.dataIndex].name);
  1539. //   clickFunc(param.dataIndex);//执行点击效果,触发相应js函数
  1540. //param具体包含的方法见 https://blog.csdn.net/allenjay11/article/details/76033232
  1541. //刷新页面
  1542. // location.reload();
  1543. // window.location.reload();
  1544. }
  1545. // 滚动文字4框
  1546. var interval;
  1547. var stap = 1;
  1548. function txtScrollBar() {
  1549. var num = $('#scrollBar li').length; //共多少条
  1550. var height = $('#scrollBar li').eq(0).height(); //每条高度
  1551. var currentNum = Math.round($('#scrollParent').height() / height) //需要部位几个
  1552. interval = setInterval(function () {
  1553. $('#scrollBar li').eq(0).slideUp(function () {
  1554. $('#scrollBar').append($('#scrollBar li').eq(0));
  1555. });
  1556. $('#scrollBar li').show();
  1557. }, 2500)
  1558. }
  1559. $('#scrollBar').on('mouseenter', 'li', function () {
  1560. clearInterval(interval)
  1561. })
  1562. $('#scrollBar').on('mouseleave', 'li', function () {
  1563. txtScrollBar()
  1564. })
  1565. txtScrollBar();
  1566. $('#scrollBar li').on('click', function () {
  1567. var currNum = $(this).find('a').data('type');
  1568. //Ajax获取
  1569. $.get('html_trans', { htmlnum: currNum }, function (str) {
  1570. // console.log(str);
  1571. layui.use('layer', function () {
  1572. var layer = layui.layer;
  1573. layer.open({
  1574. type: 1,
  1575. title: '农业资讯',
  1576. area: ['800px', '600px'],
  1577. offset: '100px',
  1578. shadeClose: true,
  1579. content: str,
  1580. zIndex: layer.zIndex, //重点1
  1581. success: function (layero) {
  1582. // layer.setTop(layero); //重点2
  1583. }
  1584. });
  1585. });
  1586. });
  1587. var url = $(this).find('a').data('href');
  1588. // layui.use('layer', function () {
  1589. // var layer = layui.layer;
  1590. // layer.open({
  1591. // type: 0,
  1592. // // shade: false,
  1593. // area: '500px',
  1594. // maxmin: true,
  1595. // content: 'http://www.layui.com',
  1596. // zIndex: layer.zIndex, //重点1
  1597. // success: function (layero) {
  1598. // layer.setTop(layero); //重点2
  1599. // }
  1600. // });
  1601. // });
  1602. })
  1603. // 天气情况5框
  1604. // $.ajax({
  1605. // url: 'weather',
  1606. // type: 'post',
  1607. // data: {
  1608. // addr: '郑州'
  1609. // },
  1610. // dataType: 'json',
  1611. // success: function (data) {
  1612. // console.log(data);
  1613. // $('#currCity').html(data.city);
  1614. // $('#upTime').html(data.date);
  1615. // var weatherImg = weatherIcon[data.wea]
  1616. // $('#weatherIcon').attr('class', 'jpg80 ' + weatherImg);
  1617. // $('#temScope').html(data.tem2 + '~' + data.tem1 + 'C°');
  1618. // $('#wea').html(data.wea);
  1619. // $('#win_speed').html(data.win_speed);
  1620. // $('#currTem').html('气温 ' + data.tem + 'C°');
  1621. // $('#humidity').html('湿度 ' + data.humidity);
  1622. // $('#winGrade').html(data.win + data.win_speed);
  1623. // }
  1624. // })
  1625. // 6框 追溯
  1626. function mainModalEvent() {
  1627. // $.ajax({
  1628. // url: 'zs_login',
  1629. // type: 'post',
  1630. // data: {
  1631. // },
  1632. // dataType: 'json',
  1633. // success: function (data) {
  1634. // // if(data == 0){
  1635. // layui.use('layer', function () {
  1636. // var layer = layui.layer;
  1637. // layer.open({
  1638. // type: 2,
  1639. // title: '云飞展示基地',
  1640. // area: ['70%', '70%'],
  1641. // btn: false, //可以无限个按钮
  1642. // // offset: '100px',
  1643. // shadeClose: true,
  1644. // content: 'data',
  1645. // zIndex: layer.zIndex, //重点1
  1646. // success: function (layero) {
  1647. // // layer.setTop(layero); //重点2
  1648. // // alert(1)
  1649. // }
  1650. // });
  1651. // });
  1652. // // }
  1653. // }
  1654. // })
  1655. // correct("http://127.0.0.1:8000/static/js/zs_login.js");
  1656. // setTimeout(function(){
  1657. layui.use('layer', function () {
  1658. var layer = layui.layer;
  1659. layer.open({
  1660. type: 2,
  1661. title: '云飞展示基地',
  1662. area: ['70%', '70%'],
  1663. btn: false, //可以无限个按钮
  1664. // offset: '100px',
  1665. shadeClose: true,
  1666. content: 'http://127.0.0.1:9000',
  1667. zIndex: layer.zIndex, //重点1
  1668. success: function (layero) {
  1669. }
  1670. });
  1671. });
  1672. // },3000)
  1673. }
  1674. // 7框 柱形图 农村产业结构
  1675. var myBarChart = echarts.init(document.getElementById('barEcharts'));
  1676. // 指定图表的配置项和数据
  1677. BarOption = {
  1678. title: {
  1679. text: '农村产业结构(亿元)',
  1680. textStyle: {
  1681. color: '#3fd8d7'
  1682. }
  1683. },
  1684. tooltip: {
  1685. trigger: 'axis',
  1686. axisPointer: { // 坐标轴指示器,坐标轴触发有效
  1687. type: 'shadow', // 默认为直线,可选为:'line' | 'shadow'
  1688. lineStyle: { // 直线指示器样式设置
  1689. color: '#fff',
  1690. width: 2,
  1691. type: 'solid'
  1692. },
  1693. // shadowStyle: { // 阴影指示器样式设置
  1694. // width: 'auto', // 阴影大小
  1695. // color: 'rgba(150,150,150,0.3)' // 阴影颜色
  1696. // }
  1697. },
  1698. },
  1699. legend: {
  1700. data: ['最高气温'],
  1701. },
  1702. toolbox: {
  1703. show: true,
  1704. feature: {
  1705. // mark: { show: true },
  1706. // dataView: { show: true, readOnly: false },
  1707. magicType: { show: true, type: ['line', 'bar'], iconStyle: { borderColor: '#48fffe' } },
  1708. // restore: { show: true },
  1709. // saveAsImage: { show: true }
  1710. saveAsImage: { show: true, iconStyle: { borderColor: '#48fffe' } }
  1711. }
  1712. },
  1713. grid: {
  1714. x: '50',
  1715. y: '50',
  1716. x2: '50',
  1717. y2: '50'
  1718. },
  1719. xAxis: [
  1720. {
  1721. type: 'category',
  1722. data: ['农业', '林业', '牧业', '蔬菜', '烟草', '茶叶', '园林'],
  1723. axisLine: { lineStyle: { color: "#2b8dc2" } }
  1724. }
  1725. ],
  1726. yAxis: [
  1727. {
  1728. type: 'value',
  1729. axisLine: { lineStyle: { color: "#2b8dc2" } },
  1730. splitLine: { show: false }
  1731. }
  1732. ],
  1733. // color: ['#2d92c6'],
  1734. series: [{
  1735. name: '',
  1736. type: 'bar',
  1737. data: [10, 52, 200, 334, 390, 330, 220],
  1738. barWidth: '50%',
  1739. itemStyle: {
  1740. normal: {
  1741. // 随机显示
  1742. // color:function(d){return "#"+Math.floor(Math.random()*(256*256*256-1)).toString(16);}
  1743. // 定制显示(按顺序)
  1744. color: function (params) {
  1745. var colorList = ['#C33531', '#EFE42A', '#64BD3D', '#EE9201', '#29AAE3', '#B74AE5', '#0AAF9F', '#E89589', '#16A085', '#4A235A', '#C39BD3 ', '#F9E79F', '#BA4A00', '#ECF0F1', '#616A6B', '#EAF2F8', '#4A235A', '#3498DB'];
  1746. return colorList[params.dataIndex]
  1747. }
  1748. },
  1749. },
  1750. }]
  1751. };
  1752. myBarChart.setOption(BarOption);
  1753. // 9框 标题切换
  1754. // 2基于准备好的dom,初始化echarts实例
  1755. var myChart = echarts.init(document.getElementById('echarts'));
  1756. // 指定图表的配置项和数据
  1757. option = {
  1758. tooltip: {
  1759. trigger: 'axis',
  1760. axisPointer: { // 坐标轴指示器,坐标轴触发有效
  1761. type: 'line', // 默认为直线,可选为:'line' | 'shadow'
  1762. lineStyle: { // 直线指示器样式设置
  1763. color: '#fff',
  1764. width: 2,
  1765. type: 'solid'
  1766. },
  1767. shadowStyle: { // 阴影指示器样式设置
  1768. width: 'auto', // 阴影大小
  1769. color: 'rgba(150,150,150,0.3)' // 阴影颜色
  1770. }
  1771. },
  1772. },
  1773. legend: {
  1774. data: ['最高气温'],
  1775. },
  1776. toolbox: {
  1777. show: true,
  1778. feature: {
  1779. // mark: { show: true },
  1780. // dataView: { show: true, readOnly: false },
  1781. magicType: { show: true, type: ['line', 'bar'] },
  1782. restore: { show: true },
  1783. saveAsImage: { show: true }
  1784. }
  1785. },
  1786. grid: {
  1787. x: '80',
  1788. y: '30',
  1789. x2: '30',
  1790. y2: '30'
  1791. },
  1792. dataZoom: {
  1793. show: false,
  1794. realtime: true,
  1795. dataBackgroundColor: 'rgba(144,197,237,0.2)'
  1796. // fillerColor:'rgba(0,0,0,0)'
  1797. },
  1798. xAxis: {
  1799. type: 'category',
  1800. boundaryGap: false,
  1801. data: [],
  1802. axisLine: { lineStyle: { color: "#2b8dc2" } }
  1803. },
  1804. yAxis: {
  1805. type: 'value',
  1806. axisLine: { lineStyle: { color: "#2b8dc2" } },
  1807. splitLine: { show: false }
  1808. },
  1809. // color: ['#2d92c6'],
  1810. series: [{
  1811. name: '',
  1812. data: [],
  1813. type: 'line',
  1814. // lineStyle: { color: "#red" },
  1815. areaStyle: { color: "rgb(45, 146, 198,.5)" },
  1816. itemStyle: {
  1817. normal: {
  1818. color: '#2d92c6',
  1819. lineStyle: {
  1820. color: '#2d92c6'
  1821. }
  1822. }
  1823. }
  1824. }]
  1825. };
  1826. // setTimeout(function(){
  1827. $.ajax({
  1828. url: 'environmentData',
  1829. type: 'post',
  1830. data: {},
  1831. dataType: 'json',
  1832. success: function (data) {
  1833. // console.log(data)
  1834. var res = data;
  1835. var time = []; //时间集合 --x轴
  1836. var dataGather = []; //数据集合 --y轴
  1837. var tabTitle = [];
  1838. for (var i = 0; i < res.length; i++) {
  1839. time.unshift(res[i].upl_time);
  1840. // 种类集合
  1841. if (i == 0) {
  1842. for (var j = 0; j < res[i].unit.length; j++) {
  1843. tabTitle.push(res[i].unit[j][1] + '(' + res[i].unit[j][2] + ')'); //种类 --头部标签
  1844. // cols.push({ field: j, title: res[i].unit[j][1] + '(' + res[i].unit[j][2] + ')', sort: 'true', align: 'center', width: 100 });
  1845. var firstArr = [];
  1846. firstArr.unshift(res[i].unit[j][0]);
  1847. dataGather.push(firstArr);
  1848. }
  1849. } else {
  1850. for (var z = 0; z < res[i].unit.length; z++) {
  1851. dataGather[z].unshift(res[i].unit[z][0]);
  1852. }
  1853. }
  1854. if (i == res.length - 1) {
  1855. // tab选项卡切换
  1856. $('#categoryTitle').on('click', 'li', function () {
  1857. $('#categoryTitle li').removeClass('active');
  1858. $(this).addClass('active');
  1859. option.xAxis.data = time
  1860. var index = $(this).index();
  1861. option.series[0].data = dataGather[index]
  1862. var legend = tabTitle[index]
  1863. option.legend = { data: [legend], textStyle: { color: '#fff' } }
  1864. option.series[0].name = legend
  1865. myChart.setOption(option);
  1866. myChart.resize();
  1867. })
  1868. $('#categoryTitle li').eq(0).click();
  1869. }
  1870. }
  1871. }
  1872. })
  1873. // },2000)
  1874. window.onresize = function () {
  1875. myChart.resize();
  1876. clearInterval(interval)
  1877. txtScrollBar();
  1878. myChart1.resize();
  1879. myChart2.resize();
  1880. myBarChart.resize();
  1881. }
  1882. //删除加载动画
  1883. $('#load').fadeOut(1000)
  1884. setTimeout(function () {
  1885. $('#load').remove()
  1886. }
  1887. , 1100);
  1888. </script>
  1889. </body>
  1890. </html>