健康同学微信公众号h5项目
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

582 lines
18KB

  1. .home {
  2. overflow: hidden;
  3. .map-con {
  4. height: calc(100vh - 160px);
  5. background-color: $background;
  6. padding: 20px;
  7. overflow: scroll;
  8. .areaMask {
  9. position: absolute;
  10. left: 0;
  11. top: 0;
  12. width: 100%;
  13. height: 100%;
  14. z-index: 666;
  15. }
  16. .top {
  17. width: 100%;
  18. position: absolute;
  19. top: 100px;
  20. left: 0;
  21. font-size: 16px;
  22. /* 掉线提示语 */
  23. .notice-is-online {
  24. height: 80px;
  25. position: relative;
  26. z-index: 11;
  27. .van-notice-bar {
  28. height: 100%;
  29. font-size: 16px;
  30. .van-notice-bar__content {
  31. font-size: 16px !important;
  32. }
  33. .van-notice-bar__left-icon {
  34. font-size: 16px;
  35. }
  36. .van-notice-bar__wrap {
  37. height: 80px;
  38. line-height: 80px;
  39. padding-left: 5px;
  40. font-size: 16px;
  41. }
  42. .van-notice-bar__right-icon {
  43. font-size: 16px;
  44. }
  45. }
  46. }
  47. i.news {
  48. position: absolute;
  49. right: 30px;
  50. top: 30px;
  51. width: 70px;
  52. height: 70px;
  53. display: flex;
  54. align-items: center;
  55. justify-content: center;
  56. background-color: #fff;
  57. border-radius: 50%;
  58. z-index: 11;
  59. &:before {
  60. content: '';
  61. position: absolute;
  62. left: 10px;
  63. top: 10px;
  64. width: 50px;
  65. height: 50px;
  66. @include icon;
  67. @include icon_position(50, 50, 0, 150);
  68. z-index: 8;
  69. }
  70. &.on {
  71. &:after {
  72. content: '';
  73. position: absolute;
  74. right: 2px;
  75. top: 4px;
  76. width: 16px;
  77. height: 16px;
  78. background: #f35151;
  79. border-radius: 50%;
  80. }
  81. }
  82. }
  83. .shortcuts-container {
  84. position: absolute;
  85. right: 30px;
  86. top: 15vh;
  87. width: 110px;
  88. padding: 20px 0;
  89. background-color: #FFFFFF;
  90. border-radius: 55px;
  91. box-shadow: 0px 8px 25px 0px rgba(117,124,140,0.48);
  92. opacity: 0.9;
  93. z-index: 19;
  94. .shortcuts {
  95. position: relative;
  96. border-width: 80%;
  97. height: 80px;
  98. @include center();
  99. flex-direction: column;
  100. padding: 10px;
  101. margin: 10px 0;
  102. /* .van-image {
  103. height: 40px;
  104. width: 40px;
  105. } */
  106. .layer {
  107. height: 40px;
  108. width: 28px;
  109. }
  110. .trajectory {
  111. height: 40px;
  112. width: 36px;
  113. }
  114. .warning {
  115. height: 35px;
  116. width: 40px;
  117. }
  118. .message {
  119. height: 38px;
  120. width: 38px;
  121. }
  122. .phone {
  123. height: 36px;
  124. width: 38px;
  125. }
  126. .spread_right {
  127. height: 35px;
  128. width: 34px;
  129. }
  130. .shortcuts-title {
  131. display: flex;
  132. justify-content: center;
  133. align-items: center;
  134. height: 40px;
  135. p {
  136. font-size: 24px;
  137. line-height: 40px;
  138. color: #666;
  139. padding-top: 8px;
  140. }
  141. }
  142. }
  143. .hide {
  144. @include center();
  145. }
  146. // :nth-child(3)告警消息在哪里就给哪里添加样式 first-child
  147. .shortcuts:nth-child(3) {
  148. .news {
  149. &:before {
  150. }
  151. &.on {
  152. &:after {
  153. content: '';
  154. position: absolute;
  155. right: 1px;
  156. top: 4px;
  157. width: 16px;
  158. height: 16px;
  159. background: #f35151;
  160. border-radius: 50%;
  161. }
  162. }
  163. }
  164. }
  165. .shortcuts:last-child {
  166. border:none;
  167. }
  168. .shortcuts::after {
  169. content: '';
  170. width: 20px;
  171. height: 1px;
  172. display: block;
  173. margin: 0 auto;
  174. border-bottom: 1px solid rgba(151, 151, 151, 0.1);
  175. }
  176. }
  177. .shortcuts-hide {
  178. position: absolute;
  179. right: 0;
  180. top: 60vh;
  181. height: 68px;
  182. width: 129px;
  183. background-color: #FFFFFF;
  184. z-index: 19;
  185. padding: 19px 0;
  186. border-top-left-radius: 53px;
  187. border-bottom-left-radius: 53px;
  188. box-shadow: 0px 8px 25px 0px rgba(117,124,140,0.48);
  189. opacity: 0.9;
  190. p {
  191. font-size: 24px;
  192. margin: 0 34px 0 46px;
  193. }
  194. i {
  195. /* @include icon_position(50, 50, 50, 200); */
  196. background: no-repeat;
  197. margin: 5px 42px 0 53px;
  198. @include bgimg(url('../../assets/myself/home/spread_left.png'), 34, 35);
  199. }
  200. }
  201. .noData {
  202. position: absolute;
  203. left: 0;
  204. width: 100%;
  205. height: 70px;
  206. @include center();
  207. @include colorAndFont(#ff9625, 28);
  208. background-color: #ffe9d2;
  209. z-index: 12;
  210. }
  211. .imgArea {
  212. position: absolute;
  213. top: 20px;
  214. left: 20px;
  215. padding: 8px;
  216. display: flex;
  217. justify-content: flex-start;
  218. align-items: center;
  219. background: #fff;
  220. border-radius: 50px;
  221. z-index: 13;
  222. img {
  223. width: 60px !important;
  224. height: 60px !important;
  225. border-radius: 50%;
  226. object-fit: cover;
  227. }
  228. span {
  229. padding: 0 12px;
  230. @include colorAndFont(#333, 28);
  231. }
  232. }
  233. .conArea {
  234. position: absolute;
  235. left: 0;
  236. top: 0;
  237. width: 100%;
  238. padding: 12px 0 12px 20px;
  239. background: #fff;
  240. box-sizing: border-box;
  241. display: flex;
  242. transform: translateX(-100%);
  243. transition: left .4s ease-in-out;
  244. z-index: 667;
  245. overflow: scroll;
  246. &.active {
  247. transform: translateX(0);
  248. }
  249. .list {
  250. @include center();
  251. flex-flow: column;
  252. @include colorAndFont(#333, 24);
  253. margin-right: 28px;
  254. .Myname {
  255. &.active {
  256. text-decoration: underline;
  257. font-weight: bold;
  258. }
  259. }
  260. .imgA {
  261. width: 100px;
  262. height: 100px;
  263. background: #c5c5c5;
  264. border-radius: 50%;
  265. position: relative;
  266. @include center();
  267. margin-bottom: 12px;
  268. &>img {
  269. width: 88px;
  270. height: 88px;
  271. border-radius: 50%;
  272. object-fit: cover;
  273. }
  274. &.active {
  275. width: 105px;
  276. height: 105px;
  277. position: relative;
  278. background: #c5c5c5;
  279. box-shadow: 0 0 10px 4px rgba(185, 185, 185, 0.8);
  280. &:after {
  281. content: '';
  282. position: absolute;
  283. bottom: -15px;
  284. width: 0;
  285. height: 0;
  286. border-top: 16px solid #c5c5c5;
  287. border-left: 8px solid transparent;
  288. border-right: 8px solid transparent;
  289. }
  290. }
  291. &.online {
  292. background: #5fcc0e;
  293. &.active {
  294. position: relative;
  295. background: #5fcc0e;
  296. box-shadow: 0 0 10px 4px rgba(95, 204, 14, 0.8);
  297. &:after {
  298. content: '';
  299. position: absolute;
  300. bottom: -15px;
  301. width: 0;
  302. height: 0;
  303. border-top: 16px solid #5fcc0e;
  304. border-left: 8px solid transparent;
  305. border-right: 8px solid transparent;
  306. }
  307. }
  308. }
  309. }
  310. }
  311. }
  312. }
  313. .bottom {
  314. width: 100%;
  315. position: fixed;
  316. left: 0;
  317. bottom: 0;
  318. z-index: 600;
  319. box-shadow: 0 0 20px rgba(185, 185, 185, 0.4);
  320. .conArea {
  321. position: relative;
  322. .toggle {
  323. position: absolute;
  324. left: 20px;
  325. // top: px2rem(-238);
  326. top: -154px;
  327. width: 84px;
  328. background: #fff;
  329. border-radius: 10px;
  330. @include center();
  331. flex-flow: column;
  332. span {
  333. width: 84px;
  334. height: 92px;
  335. @include center();
  336. i {
  337. width: 50px;
  338. height: 50px;
  339. @include icon;
  340. @include icon_position(50, 50, 0, 200);
  341. &.tole {
  342. @include icon_position(50, 50, 300, 100);
  343. }
  344. }
  345. // &:last-child i {
  346. // @include icon_position(50, 50, 0, 300);
  347. // &.on {
  348. // -webkit-transform: rotate(360deg);
  349. // animation: rotation 1s linear infinite;
  350. // -moz-animation: rotation 1s linear infinite;
  351. // -webkit-animation: rotation 1s linear infinite;
  352. // -o-animation: rotation 1s linear infinite;
  353. // }
  354. // }
  355. }
  356. }
  357. .con {
  358. margin-bottom: 5px;
  359. padding: 20px 0 0 28px;
  360. // min-height: px2rem(184);
  361. background: #fff;
  362. border-radius: 24px 24px 0 0;
  363. // box-shadow: 0 5px 4px palegoldenrod;
  364. .title {
  365. width: 600px;
  366. @include colorAndFont(#333, 34);
  367. margin-bottom: 36px;
  368. }
  369. .adr {
  370. // @include colorAndFont(#999, 28);
  371. // padding-right: px2rem(140);
  372. // margin-bottom: 36px;
  373. span {
  374. margin-left: 15px;
  375. padding: 0 8px;
  376. height: 30px;
  377. @include colorAndFont(#999, 20);
  378. background: #fafafa;
  379. border: 1px solid #b5b5b5;
  380. border-radius: 4px;
  381. }
  382. }
  383. .states {
  384. display: flex;
  385. justify-content: flex-start;
  386. align-items: center;
  387. span {
  388. display: flex;
  389. justify-content: flex-start;
  390. align-items: center;
  391. @include colorAndFont(#999, 24);
  392. em {
  393. position: relative;
  394. margin-right: 10px;
  395. padding: 1px;
  396. width: 34px;
  397. height: 20px;
  398. border: 2px solid #5fcc0e;
  399. border-radius: 4px;
  400. box-sizing: border-box;
  401. display: flex;
  402. align-items: center;
  403. i {
  404. content: '';
  405. width: 100%;
  406. height: 100%;
  407. background: #5fcc0e;
  408. }
  409. &:after {
  410. content: ' ';
  411. width: 4px;
  412. height: 8px;
  413. background: #5fcc0e;
  414. position: absolute;
  415. right: -4px;
  416. }
  417. &.red {
  418. @include center();
  419. border-color: #ff4b21;
  420. background: transparent;
  421. i {
  422. width: 11px;
  423. height: 14px;
  424. @include icon;
  425. @include icon_position(11, 14, 20, 125);
  426. }
  427. &:after {
  428. background: #ff4b21;
  429. }
  430. }
  431. &.warn {
  432. justify-content: flex-start;
  433. border-color: #ff4b21;
  434. background: transparent;
  435. i {
  436. background: #ff4b21;
  437. }
  438. &:after {
  439. background: #ff4b21;
  440. }
  441. }
  442. }
  443. &:first-child {
  444. color: $blue;
  445. margin-right: 24px;
  446. // &:before {
  447. // content: '';
  448. // margin-right: 10px;
  449. // display: inline-block;
  450. // width: 42px;
  451. // height: px2rem(26);
  452. // background: #ff8c8c;
  453. // }
  454. }
  455. }
  456. }
  457. .operate {
  458. position: absolute;
  459. right: 40px;
  460. top: -50px;
  461. display: flex;
  462. justify-content: flex-start;
  463. align-items: center;
  464. flex-flow: column;
  465. span {
  466. width: 84px;
  467. height: 84px;
  468. background: #fff;
  469. border-radius: 50%;
  470. margin-top: 4px;
  471. margin-bottom: 20px;
  472. box-shadow: 0 0 14px 2px rgba(150, 150, 150, 0.4);
  473. @include center();
  474. i {
  475. width: 50px;
  476. height: 50px;
  477. @include icon;
  478. @include icon_position(50, 50, 0, 300);
  479. }
  480. &.position {
  481. background: $blue;
  482. box-shadow: 0 0 14px 2px rgba(37, 153, 255, 0.4);
  483. i {
  484. @include icon_position(50, 50, 0, 350);
  485. &.on {
  486. -webkit-transform: rotate(360deg);
  487. animation: rotation 1s linear infinite;
  488. -moz-animation: rotation 1s linear infinite;
  489. -webkit-animation: rotation 1s linear infinite;
  490. -o-animation: rotation 1s linear infinite;
  491. }
  492. }
  493. .interval-time {
  494. @include colorAndFont(#eee, 24);
  495. }
  496. .icon-loading {
  497. /* position: absolute;
  498. top: 0;
  499. left: 0; */
  500. height: 40px;
  501. width: 40px;
  502. .van-loading__circular {
  503. background: #3296fa;
  504. }
  505. }
  506. }
  507. }
  508. em {
  509. font-style: normal;
  510. @include colorAndFont(#999, 20);
  511. }
  512. }
  513. }
  514. }
  515. .tarbar {
  516. position: relative;
  517. }
  518. }
  519. }
  520. }