index.ftl 28 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677
  1. <!DOCTYPE html>
  2. <#assign base=springMacroRequestContext.getContextUrl("")>
  3. <html lang="en">
  4. <head>
  5. <meta charset="UTF-8">
  6. <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
  7. <meta name="renderer" content="webkit">
  8. <meta name="viewport" content="width=device-width,initial-scale=1.0,user-scalable=no">
  9. <script type="text/javascript" src="${base}/bigscreen/template2/js/rem.js"></script>
  10. <link rel="stylesheet" href="${base}/bigscreen/template2/css/style.css">
  11. <title>智慧物流服务中心-首页</title>
  12. </head>
  13. <body style="visibility: hidden;">
  14. <div class="container-flex" tabindex="0" hidefocus="true">
  15. <div class="box-left">
  16. <div class="left-top">
  17. <div class="current-num">
  18. <div>当前到件量</div>
  19. <p>123,456,789</p>
  20. </div>
  21. </div>
  22. <div class="left-center">
  23. <div class="title-box">
  24. <h6>派件入库量占比</h6>
  25. </div>
  26. <div class="chart-box pie-chart">
  27. <div id="pie"></div>
  28. <div>
  29. <div class="pie-data">
  30. </div>
  31. </div>
  32. </div>
  33. </div>
  34. <div class="left-bottom" class="select">
  35. <div class="title-box">
  36. <h6>广东省寄派件数据</h6>
  37. <img class="line-img" src="${base}/bigscreen/template2/images/line-blue.png" alt="">
  38. <button id="filBtn"><img src="${base}/bigscreen/template2/images/select_icon.png" alt="">筛选</button>
  39. </div>
  40. <div class="chart-box">
  41. <div class="filter-con" id="filCon" data-type="1">
  42. <div class="select" tabindex="0" hidefocus="true">
  43. <div class="select-div">
  44. 派件
  45. </div>
  46. <ul class="select-ul">
  47. <li class="active" data-value="1">派件</li>
  48. <li data-value="2">寄件</li>
  49. </ul>
  50. </div>
  51. <div class="select" tabindex="0" hidefocus="true">
  52. <div class="select-div">
  53. 公司
  54. </div>
  55. <ul class="select-ul company">
  56. <li class="active" data-value="">公司</li>
  57. <li data-value="1">顺丰</li>
  58. <li data-value="2">京东</li>
  59. <li data-value="2">EMS</li>
  60. </ul>
  61. </div>
  62. <div class="select" tabindex="0" hidefocus="true">
  63. <div class="select-div">
  64. 快件类型
  65. </div>
  66. <ul class="select-ul">
  67. <li class="active" data-value="">快件类型</li>
  68. <li data-value="0">文件</li>
  69. <li data-value="1">物品</li>
  70. </ul>
  71. </div>
  72. </div>
  73. <div id="gdMap" class="gd-map"></div>
  74. </div>
  75. </div>
  76. </div>
  77. <div class="box-center">
  78. <div class="center-top">
  79. <h1>智慧物流服务中心</h1>
  80. </div>
  81. <div class="center-center">
  82. <div class="weather-box">
  83. <div class="data">
  84. <p class="time" id="time">00:00:00</p>
  85. <p id="date"></p>
  86. </div>
  87. <div class="weather">
  88. <img id="weatherImg" src="${base}/bigscreen/template2/images/weather/weather_img01.png" alt="">
  89. <div id="weather">
  90. <p class="active">多云</p>
  91. <p>16-22℃</p>
  92. <p>深圳市南山区</p>
  93. </div>
  94. </div>
  95. </div>
  96. <img src="${base}/bigscreen/template2/images/line_bg.png" alt="">
  97. <div class="select-box">
  98. <ul id="barType">
  99. <li class="active" data-value="1">派件</li>
  100. <li data-value="2">寄件</li>
  101. </ul>
  102. <div data-type="2">
  103. <div class="select" tabindex="0" hidefocus="true">
  104. <div class="select-div">
  105. 公司
  106. </div>
  107. <ul class="select-ul company">
  108. <li class="active" data-value="">公司</li>
  109. <li data-value="1">顺丰</li>
  110. <li data-value="2">京东</li>
  111. <li data-value="2">EMS</li>
  112. </ul>
  113. </div>
  114. <div class="select" tabindex="0" hidefocus="true">
  115. <div class="select-div">
  116. 快件类型
  117. </div>
  118. <ul class="select-ul">
  119. <li class="active" data-value="">快件类型</li>
  120. <li data-value="0">文件</li>
  121. <li data-value="1">物品</li>
  122. </ul>
  123. </div>
  124. </div>
  125. </div>
  126. </div>
  127. <div class="center-bottom">
  128. <div class="chart-box">
  129. <div id="chart4" style="width:100%;height:95%;"></div>
  130. </div>
  131. <div class="city-data">
  132. <div class="city-box">
  133. <p id="titleQ"><span>全网</span>到珠海</p>
  134. <ul class="city-btn" data-city="1">
  135. <li class="active">全网</li>
  136. <li>ABCDE</li>
  137. <li>FGHIJ</li>
  138. <li>KLMNO</li>
  139. <li>PQRST</li>
  140. <li>UVWXYZ</li>
  141. </ul>
  142. <ul class="city-div" id="city">
  143. </ul>
  144. </div>
  145. <ul class="ranking-box">
  146. <li><span></span>
  147. <p>城市</p>
  148. <p>派件</p>
  149. </li>
  150. <!-- <li><span>1</span><p>上海</p><p>1sss25(万件)</p></li>-->
  151. </ul>
  152. <div class="enlarge-box">
  153. <button class="enlarge-btn" id="fangda"></button>
  154. <ul class="modal-btn">
  155. <li>
  156. <div></div>1</li>
  157. <li>
  158. <div></div>2</li>
  159. <li>
  160. <div></div>3</li>
  161. <li>
  162. <div></div>4</li>
  163. <li>
  164. <div></div>5</li>
  165. <li>
  166. <div></div>6</li>
  167. </ul>
  168. </div>
  169. </div>
  170. </div>
  171. </div>
  172. <div class="box-right">
  173. <div class="right-top">
  174. <div class="title-box">
  175. <h6 id="barTitle">派件数据</h6>
  176. <img class="line-img" src="${base}/bigscreen/template2/images/line-blue.png" alt="">
  177. <button data-state=1 id="tabBtn"><img src="${base}/bigscreen/template2/images/chart_icon.png" alt=""><span>图表</span></button>
  178. </div>
  179. <p class="unit">单位:件</p>
  180. <div class="chart-box">
  181. <div id="chart3" style="width:100%;height:100%;"></div>
  182. </div>
  183. <div class="data-box" style="display:none;">
  184. <table class="table1">
  185. <tr>
  186. <td>入库件</td>
  187. <td colspan="3" class="table-data dph-data1">0</td>
  188. </tr>
  189. <tr class="bg-color">
  190. <td rowspan="2">在库件</td>
  191. <td rowspan="2" class="table-data dph-data2">0</td>
  192. <td>正常件</td>
  193. <td class="table-data dph-data3">0</td>
  194. </tr>
  195. <tr class="bg-color">
  196. <td>滞留件</td>
  197. <td class="table-data dph-data5">0</td>
  198. </tr>
  199. <tr>
  200. <td rowspan="2">出库件</td>
  201. <td rowspan="2" class="dph-data6">0</td>
  202. <td>派送件</td>
  203. <td class="table-data dph-data7">0</td>
  204. </tr>
  205. <tr>
  206. <td>自提件</td>
  207. <td class="table-data dph-data8">0</td>
  208. </tr>
  209. <tr class="bg-color">
  210. <td>退签件</td>
  211. <td colspan="3" class="table-data dph-data9">0</td>
  212. </tr>
  213. <tr>
  214. <td>丢失件</td>
  215. <td colspan="3" class="table-data dph-data4">0</td>
  216. </tr>
  217. </table>
  218. <table class="table1" style="display:none;">
  219. <tr>
  220. <td>入库件</td>
  221. <td colspan="3" class="table-data mail-data1">1</td>
  222. </tr>
  223. <tr class="bg-color">
  224. <td rowspan="2">在库件</td>
  225. <td rowspan="2" class="table-data mail-data2">1</td>
  226. <td>正常件</td>
  227. <td class="table-data mail-data7">1</td>
  228. </tr>
  229. <tr class="bg-color">
  230. <td>滞留件</td>
  231. <td class="table-data mail-data4">1</td>
  232. </tr>
  233. <tr>
  234. <td>出库件</td>
  235. <td colspan="3" class="mail-data6">1</td>
  236. </tr>
  237. <tr class="bg-color">
  238. <td>丢失件</td>
  239. <td colspan="3" class="mail-data3">1</td>
  240. </tr>
  241. <tr>
  242. <td>撤销件</td>
  243. <td colspan="3" class="table-data mail-data5">1</td>
  244. </tr>
  245. </table>
  246. </div>
  247. </div>
  248. <div class="right-center">
  249. <div class="title-box">
  250. <p id="switchBtn"><span class="active" data-dataType="income">收入数据</span><img class="line-img" src="${base}/bigscreen/template2/images/line-blue.png" alt=""><span data-dataType="expend">支出数据</span></p>
  251. <img class="line-img" src="${base}/bigscreen/template2/images/line-blue.png" alt="">
  252. <button id="dateBtn"><img src="${base}/bigscreen/template2/images/data_icon.png" alt="">日期</button>
  253. </div>
  254. <div class="data-box">
  255. <p class="data-number" id="totalProfit">123,456.5元</p>
  256. <div class="time-box" id="timeBox">
  257. <div class="time-div">
  258. <input class="time-input" type="text" value="" id="startTime">
  259. <img src="${base}/bigscreen/template2/images/selsct_time.png" alt="">
  260. </div>
  261. <div class="time-div end">
  262. <input class="time-input" type="text" value="" id="endTime">
  263. <img src="${base}/bigscreen/template2/images/selsct_time.png" alt="">
  264. </div>
  265. </div>
  266. </div>
  267. </div>
  268. <div class="right-bottom">
  269. <div class="title-box">
  270. <button id="setBtn"><img src="${base}/bigscreen/template2/images/settings_icon.png" alt="">设置</button>
  271. </div>
  272. <div class="data-box">
  273. <div class="settings-box">
  274. <p><img src="${base}/bigscreen/template2/images/teacher_icon.png" alt="">今日值班:<span id="name_a"></span><span id="date_a"></span></p>
  275. <p><img src="${base}/bigscreen/template2/images/people_iocn.png" alt="">负责人:<span id="lea_a"></span></p>
  276. </div>
  277. </div>
  278. </div>
  279. </div>
  280. </div>
  281. <div class="container">
  282. <div class="pop-up">
  283. <span class="close-pop"></span>
  284. <h2 class="title">当前到件量</h2>
  285. <div class="pop-data-box">
  286. <p>123,456,789</p>
  287. </div>
  288. </div>
  289. <div class="pop-up">
  290. <span class="close-pop"></span>
  291. <h2 class="title">派件入库量占比</h2>
  292. <div class="chart-box pie-chart">
  293. <div id="pie1"></div>
  294. <div>
  295. <div class="pie-data">
  296. </div>
  297. </div>
  298. </div>
  299. </div>
  300. <div class="pop-up">
  301. <span class="close-pop"></span>
  302. <h2 class="title">广东省寄派件数据 </h2>
  303. <div class="filter-con pop-filter" style="display:flex" data-type="3">
  304. <div class="select" tabindex="0" hidefocus="true">
  305. <div class="select-div">
  306. 派件
  307. </div>
  308. <ul class="select-ul">
  309. <li class="active" data-value="1">派件</li>
  310. <li data-value="2">寄件</li>
  311. </ul>
  312. </div>
  313. <div class="select" tabindex="0" hidefocus="true">
  314. <div class="select-div">
  315. 公司
  316. </div>
  317. <ul class="select-ul company">
  318. <li class="active" data-value="">公司</li>
  319. <li data-value="1">顺丰</li>
  320. <li data-value="2">京东</li>
  321. <li data-value="2">EMS</li>
  322. </ul>
  323. </div>
  324. <div class="select" tabindex="0" hidefocus="true">
  325. <div class="select-div">
  326. 快件类型
  327. </div>
  328. <ul class="select-ul">
  329. <li class="active" data-value="">快件类型</li>
  330. <li data-value="0">文件</li>
  331. <li data-value="1">物品</li>
  332. </ul>
  333. </div>
  334. </div>
  335. <div class="chart-box pop-chart">
  336. <div id="gdMaps" class="gd-map"></div>
  337. </div>
  338. </div>
  339. <div class="pop-up">
  340. <span class="close-pop"></span>
  341. <div class="filter-con pop-filters" style="display:flex" data-type="4">
  342. <div class="select-pop" tabindex="0" hidefocus="true">
  343. <ul id="barTypes">
  344. <li class="active" data-value="1">派件</li>
  345. <li data-value="2">寄件</li>
  346. </ul>
  347. </div>
  348. <div class="select" tabindex="0" hidefocus="true">
  349. <div class="select-div">
  350. 公司
  351. </div>
  352. <ul class="select-ul company">
  353. <li class="active" data-value="">公司</li>
  354. <li data-value="1">顺丰</li>
  355. <li data-value="2">京东</li>
  356. <li data-value="2">EMS</li>
  357. </ul>
  358. </div>
  359. <div class="select" tabindex="0" hidefocus="true">
  360. <div class="select-div">
  361. 快件类型
  362. </div>
  363. <ul class="select-ul">
  364. <li class="active" data-value="">快件类型</li>
  365. <li data-value="0">文件</li>
  366. <li data-value="1">物品</li>
  367. </ul>
  368. </div>
  369. </div>
  370. <div class="cont-div">
  371. <div class="chart-box pop-charts">
  372. <div id="chart4s" style="width:100%;height:95%;"></div>
  373. </div>
  374. </div>
  375. <div class="cont-div">
  376. <h2 class="title" id="barTitles">派件数据</h2>
  377. <button class="btn-class" data-state=1 id="tabBtns"><img src="${base}/bigscreen/template2/images/chart_icon.png" alt=""><span>图表</span></button>
  378. <div class="chart-box pop-chart">
  379. <div id="chart3s" style="width:100%;height:90%;"></div>
  380. </div>
  381. <div class="data-box" style="top:25%;width:8.6rem;display:none;">
  382. <table class="table2">
  383. <tr>
  384. <td>入库件</td>
  385. <td colspan="3" class="table-data dph-data1">0</td>
  386. </tr>
  387. <tr class="bg-color">
  388. <td rowspan="2">在库件</td>
  389. <td rowspan="2" class="table-data dph-data2">0</td>
  390. <td>正常件</td>
  391. <td class="table-data dph-data3">0</td>
  392. </tr>
  393. <tr class="bg-color">
  394. <td>滞留件</td>
  395. <td class="table-data dph-data5">0</td>
  396. </tr>
  397. <tr>
  398. <td rowspan="2">出库件</td>
  399. <td rowspan="2" class="dph-data6">0</td>
  400. <td>派送件</td>
  401. <td class="table-data dph-data7">0</td>
  402. </tr>
  403. <tr>
  404. <td>自提件</td>
  405. <td class="table-data dph-data8">0</td>
  406. </tr>
  407. <tr class="bg-color">
  408. <td>退签件</td>
  409. <td colspan="3" class="table-data dph-data9">0</td>
  410. </tr>
  411. <tr>
  412. <td>丢失件</td>
  413. <td colspan="3" class="table-data dph-data4">0</td>
  414. </tr>
  415. </table>
  416. <table class="table2" style="display:none;">
  417. <tr>
  418. <td>入库件</td>
  419. <td colspan="3" class="table-data mail-data1">0</td>
  420. </tr>
  421. <tr class="bg-color">
  422. <td rowspan="2">在库件</td>
  423. <td rowspan="2" class="table-data mail-data2">0</td>
  424. <td>正常件</td>
  425. <td class="table-data mail-data7">0</td>
  426. </tr>
  427. <tr class="bg-color">
  428. <td>滞留件</td>
  429. <td class="table-data mail-data4">0</td>
  430. </tr>
  431. <tr>
  432. <td>出库件</td>
  433. <td colspan="3" class="mail-data6">0</td>
  434. </tr>
  435. <tr class="bg-color">
  436. <td>丢失件</td>
  437. <td colspan="3" class="mail-data3">0</td>
  438. </tr>
  439. <tr>
  440. <td>撤销件</td>
  441. <td colspan="3" class="table-data mail-data5">0</td>
  442. </tr>
  443. </table>
  444. </div>
  445. </div>
  446. <div class="cont-div">
  447. <h2 class="title" id="titles"></h2>
  448. <button class="btn-class" id="dateBtns"><img src="${base}/bigscreen/template2/images/data_icon.png" alt="">日期</button>
  449. <div class="data-box pop-time">
  450. <div class="time-box" id="timeBoxs">
  451. <div class="time-div">
  452. <input class="time-input" type="text" value="" id="startTimes">
  453. <img src="${base}/bigscreen/template2/images/selsct_time.png" alt="">
  454. </div>
  455. <div class="time-div end">
  456. <input class="time-input" type="text" value="" id="endTimes">
  457. <img src="${base}/bigscreen/template2/images/selsct_time.png" alt="">
  458. </div>
  459. </div>
  460. </div>
  461. <div class="pop-data-box" id="totalProfits">
  462. <p></p>
  463. </div>
  464. </div>
  465. <div class="pop-data">
  466. <div class="city-data">
  467. <div class="city-box">
  468. <p id="titleQs"><span>全网</span>到珠海</p>
  469. <ul class="city-btn" data-city="2">
  470. <li class="active">全网</li>
  471. <li>ABCDE</li>
  472. <li>FGHIJ</li>
  473. <li>KLMNO</li>
  474. <li>PQRST</li>
  475. <li>UVWXYZ</li>
  476. </ul>
  477. <ul class="city-div" id="citys">
  478. </ul>
  479. </div>
  480. <ul class="ranking-box">
  481. <li><span></span>
  482. <p>城市</p>
  483. <p>派件</p>
  484. </li>
  485. <!-- <li><span>1</span><p>上海</p><p>1sss25(万件)</p></li>-->
  486. </ul>
  487. </div>
  488. </div>
  489. </div>
  490. <div class="pop-up">
  491. <span class="close-pop"></span>
  492. <h2 class="title">设置</h2>
  493. <div class="set-div">
  494. <div class="set-box">
  495. <label class="four-f" for="">排班日期</label>
  496. <div class="time-div">
  497. <input class="time-input" type="text" value="" id="times">
  498. <img src="${base}/bigscreen/template2/images/selsct_time.png" alt="">
  499. </div>
  500. </div>
  501. <div class="set-box">
  502. <label for="">值班人</label>
  503. <input type="text" value="">
  504. <button class="plus" id="addT"></button>
  505. <button class="mineus" id="mineusT" style="display:none;"></button>
  506. </div>
  507. <div class="set-box">
  508. <label for="">负责人</label>
  509. <input type="text" value="">
  510. <button class="plus" id="addL"></button>
  511. <button class="mineus" id="mineusL" style="display:none;"></button>
  512. <button class="add-btn" id="addSet"><img src="${base}/bigscreen/template2/images/plus.png" alt="">添加</button>
  513. </div>
  514. <table class="table3">
  515. <thead>
  516. <tr>
  517. <th>值班人</th>
  518. <th>排班日期</th>
  519. <th>负责人</th>
  520. <th>操作</th>
  521. </tr>
  522. </thead>
  523. <tbody id="tList">
  524. <!--
  525. <tr>
  526. <td colspan="4">
  527. <p style="width:9.6rem;">暂无数据</p>
  528. </td>
  529. </tr>
  530. -->
  531. <tr>
  532. <td>1</td>
  533. <td>1</td>
  534. <td>1</td>
  535. <td>1</td>
  536. </tr>
  537. <tr>
  538. <td>1</td>
  539. <td>1</td>
  540. <td>1</td>
  541. <td>1</td>
  542. </tr>
  543. <tr>
  544. <td>1</td>
  545. <td>1</td>
  546. <td>1</td>
  547. <td>1</td>
  548. </tr>
  549. <tr>
  550. <td>1</td>
  551. <td>1</td>
  552. <td>1</td>
  553. <td>1</td>
  554. </tr>
  555. <tr>
  556. <td>1</td>
  557. <td>1</td>
  558. <td>1</td>
  559. <td>1</td>
  560. </tr>
  561. <tr>
  562. <td>1</td>
  563. <td>1</td>
  564. <td>1</td>
  565. <td>1</td>
  566. </tr>
  567. <tr>
  568. <td>1</td>
  569. <td>1</td>
  570. <td>1</td>
  571. <td>1</td>
  572. </tr>
  573. </tbody>
  574. </table>
  575. <div class="pages-div" class="mineus">
  576. <button class="prev"></button>
  577. <p id="page"><span>0</span>/<span>0</span></p>
  578. <button class="next"></button>
  579. <input type="number">
  580. <button class="skip">跳转</button>
  581. </div>
  582. </div>
  583. <div class="tishi">日期已存在!</div>
  584. <div class="edit-div" style="display:none;">
  585. <h4>编辑</h4>
  586. <span class="close-edit"></span>
  587. <div class="set-box">
  588. <label for="">值班人</label>
  589. <input class="input-edit" id="editT" type="text" value="">
  590. </div>
  591. <div class="set-box">
  592. <label for="">负责人</label>
  593. <input class="input-edit" id="editL" type="text" value="">
  594. </div>
  595. <div class="set-box edit-box">
  596. <button id="qxEdit">取消</button>
  597. <button id="qdEdit">确定</button>
  598. </div>
  599. </div>
  600. </div>
  601. </div>
  602. </body>
  603. <script type="text/javascript" src="${base}/bigscreen/template2/js/jquery-3.3.1.min.js"></script>
  604. <script type="text/javascript" src="${base}/bigscreen/template2/js/layer/layer.min.js"></script>
  605. <script type="text/javascript" src="${base}/bigscreen/template2/js/layer/laydate/laydate.js"></script>
  606. <script type="text/javascript" src="${base}/bigscreen/template2/js/echarts.min.js"></script>
  607. <script type="text/javascript" src="${base}/bigscreen/template2/js/china.js"></script>
  608. <script type="text/javascript" src="${base}/bigscreen/template2/js/data/guangdong.js"></script>
  609. <script type="text/javascript" src="${base}/bigscreen/template2/js/base.js"></script>
  610. <script type="text/javascript">
  611. $('document').ready(function () {
  612. $("body").css('visibility', 'visible');
  613. var localData = [$('#teacher').val(), $('#start').val() + '/' + $('#end').val(), $('#leader').val()]
  614. localStorage.setItem("data", localData);
  615. $('#conBtn').on('click', function () {
  616. localData = [$('#teacher').val(), $('#start').val() + '/' + $('#end').val(), $('#leader').val()]
  617. if (typeof (Storage) !== "undefined") {
  618. localStorage.setItem("data", localData);
  619. var arr = localStorage.getItem("data").split(',');
  620. $('#name_a').html(arr[0]);
  621. $('#date_a').html(arr[1]);
  622. $('#lea_a').html(arr[2]);
  623. }
  624. })
  625. $('#fangda').on('click', function () {
  626. if ($(this).siblings('ul').is(":hidden")) {
  627. $(this).addClass('active').siblings('ul').show();
  628. } else {
  629. $(this).removeClass('active').siblings('ul').hide();
  630. }
  631. })
  632. $('.modal-btn>li').on('click', function () {
  633. var index = $(this).index();
  634. if (index <= 2) {
  635. $('.container').attr('style', 'visibility: visible').find('.pop-up').eq(index).attr('style', 'visibility: visible').siblings().attr('style', 'visibility: hidden');
  636. } else if (index > 2 && index < 5) {
  637. $('.container').attr('style', 'visibility: visible').find('.pop-up').eq(3).attr('style', 'visibility: visible').siblings().attr('style', 'visibility: hidden');
  638. if (index != 3) {
  639. $('.pop-data .ranking-box').hide();
  640. } else {
  641. $('.pop-data .ranking-box').show();
  642. }
  643. $('.cont-div').eq(index - 3).attr('style', 'visibility: visible').siblings('.cont-div').attr('style', 'visibility: hidden');
  644. } else if (index == 5) {
  645. $('.container').attr('style', 'visibility: visible').find('.pop-up').eq(3).attr('style', 'visibility: visible').siblings().attr('style', 'visibility: hidden');
  646. $('.pop-data .ranking-box').hide();
  647. if ($('#switchBtn').find('.active').data('datatype') == "income") {
  648. $('#titles').html('收入数据');
  649. $('#totalProfits').html('123,456.5元');
  650. $('.cont-div').eq(2).attr('style', 'visibility: visible').siblings('.cont-div').attr('style', 'visibility: hidden');
  651. } else if ($('#switchBtn').find('.active').data('datatype') == 'expend') {
  652. $('#titles').html('支出数据');
  653. $('#totalProfits').html('32,111.4元');
  654. $('.cont-div').eq(2).attr('style', 'visibility: visible').siblings('div').attr('style', 'visibility: hidden');
  655. }
  656. }
  657. })
  658. })
  659. </script>
  660. </html>