map-index.html 3.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. <div style="display: flex; justify-content: center; width: 100%; background-color: white;">
  2. <div>
  3. <img id="mapimg" src="images/map_index.png" ng-click="mapImgClick($event)" />
  4. </div>
  5. <div style="position:absolute;z-index:1000;top:50px;">
  6. <div style="border: 1px solid #1692f6; border-radius: 20px; display: flex; justify-content: center; align-items: center; box-shadow: 0 0 10px #1692f6;">
  7. <input type="text" style="width: 300px; height: 40px; border: none; margin-left: 20px; font-size: 16px; " ng-model="searchInput" />
  8. <img src="images/search3.png" style="margin: 5px 15px;cursor:pointer;" ng-click="searchBuilding()" />
  9. </div>
  10. </div>
  11. </div>
  12. <div ng-if="isShowNow" style="position: absolute; z-index: 1000;border:3px dashed #f00;" ng-style="nowPositionStyle">
  13. <div style="background-color:red;opacity:0.3;padding:3px;height:100%;width:100%;"></div>
  14. </div>
  15. <div ng-if="isShowNow" class="element" style="position: absolute; z-index: 1001;" ng-style="coordinateStyle">
  16. <img src="images/coordinate.png" />
  17. </div>
  18. <div ng-show="isShowNow" class="card" style="position: absolute; z-index: 1001; height: 500px; width: 300px; background-color: white; box-shadow: 0 0 10px #1692f6;border-radius:10px; " ng-style="modalStyle">
  19. <div class="header" style="height:50px;">
  20. <button type="button" class="close" ng-click="$hide()">&times;</button>
  21. <div style="white-space: nowrap; width: 250px; overflow: hidden; text-overflow: ellipsis;">
  22. <h4 class="modal-title">{{nowBuilding.BuildingName}}</h4>
  23. </div>
  24. </div>
  25. <div class="body card-content" id="card-content" style="height: 440px; overflow-y: auto;">
  26. <div style="display:flex;">
  27. <div style="position: absolute; left: 15px;font-size:16px;">
  28. <p ng-repeat="it in floorList" ng-click="floorClick(it,$index)" ng-class="it.checked?'floorChecked':''">
  29. {{it.FloorName}}
  30. </p>
  31. </div>
  32. <div style="margin-left:60px;">
  33. <p ng-repeat="it in roomList" style="height:30px;font-size:14px;">{{it.RoomName}}</p>
  34. </div>
  35. </div>
  36. </div>
  37. </div>
  38. <style type="text/css">
  39. /* 定义动画 */
  40. @keyframes jump {
  41. 0% {
  42. transform: translateX(0);
  43. }
  44. /* 初始位置为原点 */
  45. 50% {
  46. transform: translateY(-10px);
  47. }
  48. /* X轴移动-10像素并放大到80% */
  49. 100% {
  50. transform: translateY(0);
  51. }
  52. /* 返回原点 */
  53. }
  54. /* 应用动画到元素 */
  55. .element {
  56. animation: jump 2s infinite; /* 无限重复播放动画,持续时间为2秒 */
  57. }
  58. .card-content::-webkit-scrollbar, .tab-pane::-webkit-scrollbar, .fht-tbody::-webkit-scrollbar, .zero-source-table-div::-webkit-scrollbar, .dropdown-menu::-webkit-scrollbar, .dropdown-menu > .inner::-webkit-scrollbar { /*滚动条整体样式*/
  59. width: 8px; /*高宽分别对应横竖滚动条的尺寸*/
  60. height: 8px;
  61. }
  62. .card-content::-webkit-scrollbar-thumb, .tab-pane::-webkit-scrollbar-thumb, .menu::-webkit-scrollbar-thumb, .fht-tbody::-webkit-scrollbar-thumb, .zero-source-table-div::-webkit-scrollbar-thumb, .dropdown-menu::-webkit-scrollbar-thumb, .dropdown-menu > .inner::-webkit-scrollbar-thumb { /*滚动条里面小方块*/
  63. border-radius: 5px;
  64. background: #8DC7ED;
  65. }
  66. .card-content::-webkit-scrollbar-track, .tab-pane::-webkit-scrollbar-track, .menu::-webkit-scrollbar-track, .fht-tbody::-webkit-scrollbar-track, .zero-source-table-div::-webkit-scrollbar-track, .dropdown-menu::-webkit-scrollbar-track, .dropdown-menu > .inner::-webkit-scrollbar-track { /*滚动条里面轨道*/
  67. border-radius: 5px;
  68. background: #F1F1F1;
  69. }
  70. .floorChecked {
  71. color: #1692f6;
  72. }
  73. </style>