map-index.html 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353
  1. <div class="map_page">
  2. <div>
  3. <img id="mapimg" src="images/map_index.jpg" ng-click="mapImgClick($event)" />
  4. </div>
  5. <div class="search_panel">
  6. <div class="search_label">
  7. <input type="text" style="" ng-model="searchInput" id="searchInput" ng-change="searchBuilding()" placeholder="输入部门/服务点名称查询" />
  8. <img src="images/search3.png" ng-click="searchBuilding()" />
  9. </div>
  10. </div>
  11. <div class="search_list" ng-if="searchInput!='' && isShowSearchList">
  12. <div style="padding:10px;">
  13. <p ng-repeat="it in searchList" ng-click="clickSearchRoom(it)">{{it.BuildingName}}-{{it.FloorName}}-{{it.RoomName}}-{{it.DepartmentOrServiceName}}</p>
  14. </div>
  15. </div>
  16. </div>
  17. <div ng-if="isShowMark" id="nowPositionMask" class="nowPositionMask" ng-click="showModal()" ng-style="nowPositionStyle">
  18. <div class="mask"></div>
  19. </div>
  20. <div ng-if="isShowMark" id="nowPositionCoordinate" ng-click="showModal()" class="nowPositionCoordinate element" ng-style="coordinateStyle">
  21. <img src="images/coordinate.png" />
  22. </div>
  23. <div ng-show="isShowNowModal" ng-class="isShowNowModal?'enter-x-right':'back-x-right'" class="card building_modal" ng-style="modalStyle">
  24. <div class="header" style="height:50px;">
  25. <button type="button" class="close" ng-click="isShowNowModal=false">&times;</button>
  26. <div style="white-space: nowrap; width: 250px; overflow: hidden; text-overflow: ellipsis;">
  27. <h4 class="modal-title">{{nowBuilding.BuildingName}}</h4>
  28. </div>
  29. </div>
  30. <div class="body card-content" id="card-content">
  31. <div class="floor_content">
  32. <div class="left_content">
  33. <p ng-repeat="it in floorList" ng-click="floorClick(it,$index)" ng-class="it.checked?'floorChecked':''" style="padding:0 8px;">
  34. {{it.Name}}
  35. </p>
  36. </div>
  37. <div class="right_content">
  38. <div ng-repeat="floor in floorList" ng-style="{'padding-bottom':$last?(floorList.length*80+'px'):''}">
  39. <p ng-repeat="it in roomList | filter:{BuildingFloorId:floor.BuildingFloorId}" ng-click="showRoom(it)" style="height:40px;font-size:14px;cursor:pointer;margin:0px;display:flex;align-items:center;" ng-class="isHightlight(it)?'hightlight':''">
  40. {{it.RoomName}}&nbsp;&nbsp;{{it.DepartmentOrServiceName}}
  41. </p>
  42. <hr ng-if="!$last" style="margin:10px 0px;" />
  43. </div>
  44. </div>
  45. </div>
  46. </div>
  47. </div>
  48. <div ng-show="isShowNowModal && showModalType==2" class="card card_modal detail_modal" ng-class="showModalType==2?'enter-x-right':'back-x-right'" ng-style="modalStyle">
  49. <div>
  50. <button type="button" class="close bcak_btn" ng-click="coloseRoom()">返回</button>
  51. <div class="top_img">
  52. <!--<img src="images/test.png" />-->
  53. <img ng-if="roomModel.ImgUrl" ng-src="{{roomModel.ImgUrl}}" />
  54. </div>
  55. <div class="detail_content">
  56. <div style="font-size:16px;font-weight:bold;">
  57. {{roomModel.DepartmentOrServiceName}}
  58. </div>
  59. <hr />
  60. <div>
  61. <div class="row">
  62. <div class="col_label">楼层</div>
  63. <div class="col_value">{{roomModel.FloorName}}</div>
  64. </div>
  65. <div class="row">
  66. <div class="col_label">房间号/服务点</div>
  67. <div class="col_value">{{roomModel.RoomName}}</div>
  68. </div>
  69. <div class="row">
  70. <div class="col_label">开放时间</div>
  71. <div class="col_value">{{roomModel.OpenTime}}</div>
  72. </div>
  73. <div class="row">
  74. <div class="col_label">联系方式</div>
  75. <div class="col_value">{{roomModel.ContactType}}</div>
  76. </div>
  77. <div class="row">
  78. <div class="col_label">简介</div>
  79. <div class="col_value">{{roomModel.Description}}</div>
  80. </div>
  81. </div>
  82. </div>
  83. </div>
  84. </div>
  85. <div class="back_btn" ng-click="backMap()">
  86. <img src="images/back.png" />
  87. </div>
  88. <style type="text/css">
  89. .map_page {
  90. display: flex;
  91. justify-content: center;
  92. width: 100%;
  93. background-color: white;
  94. }
  95. .map_page .search_panel {
  96. position: absolute;
  97. z-index: 1000;
  98. top: 50px;
  99. }
  100. .map_page .search_panel .search_label {
  101. border: 1px solid #1692f6;
  102. border-radius: 20px;
  103. display: flex;
  104. justify-content: center;
  105. align-items: center;
  106. box-shadow: 0 0 10px #1692f6;
  107. }
  108. .map_page .search_panel .search_label input {
  109. width: 300px;
  110. height: 40px;
  111. border: none;
  112. margin-left: 20px;
  113. font-size: 16px;
  114. }
  115. .map_page .search_panel .search_label img {
  116. margin: 5px 15px;
  117. cursor: pointer;
  118. }
  119. .map_page .search_list {
  120. position: absolute;
  121. z-index: 1000;
  122. top: 100px;
  123. border-radius: 8px;
  124. background-color: #f7f9fb;
  125. min-width: 380px;
  126. }
  127. .nowPositionMask {
  128. position: absolute;
  129. z-index: 1000;
  130. border: 3px dashed #f00;
  131. }
  132. .nowPositionMask .mask {
  133. background-color: red;
  134. opacity: 0.3;
  135. padding: 3px;
  136. height: 100%;
  137. width: 100%;
  138. }
  139. .nowPositionCoordinate {
  140. position: absolute;
  141. z-index: 1001;
  142. }
  143. /* 定义动画 */
  144. @keyframes jump {
  145. 0% {
  146. transform: translateX(0);
  147. }
  148. /* 初始位置为原点 */
  149. 50% {
  150. transform: translateY(-10px);
  151. }
  152. /* X轴移动-10像素并放大到80% */
  153. 100% {
  154. transform: translateY(0);
  155. }
  156. /* 返回原点 */
  157. }
  158. /* 应用动画到元素 */
  159. .element {
  160. animation: jump 2s infinite; /* 无限重复播放动画,持续时间为2秒 */
  161. }
  162. .card_modal {
  163. position: absolute;
  164. z-index: 1001;
  165. height: 500px;
  166. width: 350px;
  167. background-color: white;
  168. box-shadow: 0 0 18px #1692f6;
  169. border-radius: 10px;
  170. }
  171. .card-content {
  172. height: 440px;
  173. overflow-y: auto;
  174. }
  175. .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 { /*滚动条整体样式*/
  176. width: 8px; /*高宽分别对应横竖滚动条的尺寸*/
  177. height: 8px;
  178. }
  179. .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 { /*滚动条里面小方块*/
  180. border-radius: 5px;
  181. background: #8DC7ED;
  182. }
  183. .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 { /*滚动条里面轨道*/
  184. border-radius: 5px;
  185. background: #F1F1F1;
  186. }
  187. .floorChecked {
  188. color: #1692f6;
  189. }
  190. .floor_content {
  191. display: flex;
  192. }
  193. .left_content {
  194. position: absolute;
  195. left: 15px;
  196. font-size: 14px;
  197. margin-top: 20px;
  198. border: 1px solid #ddd;
  199. border-radius: 6px;
  200. font-weight: bold;
  201. }
  202. .left_content p {
  203. cursor: pointer;
  204. }
  205. .left_content p:first-child {
  206. padding-top: 10px !important;
  207. }
  208. .right_content {
  209. margin-left: 80px;
  210. }
  211. .row {
  212. margin: 15px 0px;
  213. display: flex;
  214. }
  215. .row .col_label {
  216. width: 30%;
  217. }
  218. .row .col_value {
  219. width: 70%;
  220. }
  221. @keyframes enter-x-right {
  222. 0% {
  223. transform: translateX(100px);
  224. opacity: 0;
  225. }
  226. 25% {
  227. transform: translateX(75px);
  228. opacity: 0.5;
  229. }
  230. 50% {
  231. transform: translateX(50px);
  232. opacity: 0.8;
  233. }
  234. 100% {
  235. transform: translateX(0px);
  236. opacity: 1;
  237. }
  238. }
  239. .enter-x-right {
  240. animation: enter-x-right 0.5s linear;
  241. }
  242. @keyframes back-x-right {
  243. 0% {
  244. transform: translateX(0px);
  245. opacity: 1;
  246. }
  247. 25% {
  248. transform: translateX(80px);
  249. opacity: 0.8;
  250. }
  251. 50% {
  252. transform: translateX(160px);
  253. opacity: 0.6;
  254. }
  255. 75% {
  256. transform: translateX(220px);
  257. opacity: 0.3;
  258. }
  259. 100% {
  260. transform: translateX(300px);
  261. opacity: 0;
  262. }
  263. }
  264. .back-x-right {
  265. animation: back-x-right 0.5s linear;
  266. }
  267. .bcak_btn {
  268. position: absolute;
  269. top: 15px;
  270. left: 15px;
  271. font-size: 14px;
  272. opacity: 1;
  273. color: #5e5a5a;
  274. }
  275. .detail_modal .top_img {
  276. height: 150px;
  277. }
  278. .detail_modal .top_img img {
  279. height: 150px;
  280. width: 100%;
  281. object-fit: cover;
  282. border-radius: 10px;
  283. }
  284. .detail_modal .detail_content {
  285. margin: 20px;
  286. }
  287. .building_modal {
  288. position: absolute;
  289. z-index: 1001;
  290. height: 500px;
  291. width: 350px;
  292. background-color: white;
  293. box-shadow: 0 0 18px #1692f6;
  294. border-radius: 10px;
  295. }
  296. .hightlight {
  297. color: #1692f6;
  298. }
  299. .back_btn {
  300. position: absolute;
  301. z-index: 1000;
  302. top:30px;
  303. left:50px;
  304. cursor:pointer;
  305. }
  306. .back_btn img {
  307. width: 30px;
  308. height: 30px;
  309. }
  310. </style>