common.scss 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784
  1. /* common */
  2. body {
  3. font-size: 32rpx;
  4. }
  5. radio,checkbox {
  6. transform: scale(0.7)
  7. }
  8. /* 修改placeholder颜色 */
  9. .uni-input-placeholder{
  10. color:#999
  11. }
  12. table{
  13. border-collapse: collapse;
  14. width:100%;
  15. text-align:left
  16. }
  17. table,tr,td,th{
  18. border:1px solid #e2e2e2;
  19. }
  20. td,th{
  21. padding:14rpx 10rpx;
  22. font-size:26rpx;
  23. }
  24. /* 一行显示*/
  25. .inOneLine{
  26. white-space: nowrap;
  27. overflow: hidden;
  28. text-overflow: ellipsis;
  29. }
  30. /* 画面监控引入特殊字体 */
  31. @font-face {
  32. font-family: 'FANDOLFANG-REGULAR'; /* project id 2394829 */
  33. src: url('static/font/FANDOLFANG-REGULAR.OTF');
  34. }
  35. /* 巡检计划图表入特殊字体 */
  36. @font-face {
  37. font-family: 'IMPACT'; /* project id 2394829 */
  38. src: url('static/font/IMPACT.TTF');
  39. }
  40. .cu-bar .search-form uni-input{
  41. padding:0 30rpx
  42. }
  43. .searchSelect{
  44. position: -webkit-fixed;
  45. position: fixed;
  46. // top: 88rpx;
  47. top: var(--window-top);
  48. z-index: 999;
  49. -webkit-box-flex: 1;
  50. -webkit-flex: 1;
  51. flex: 1;
  52. -webkit-box-orient: vertical;
  53. -webkit-box-direction: normal;
  54. -webkit-flex-direction: column;
  55. flex-direction: column;
  56. overflow: hidden;
  57. background-color: #fff;
  58. width:254rpx;
  59. .search{
  60. min-height:80rpx;
  61. }
  62. .search-form{
  63. border:1px solid #E9E9E9;
  64. height:50rpx;
  65. line-height:50rpx;
  66. .cuIcon-search{
  67. color:#4074E7
  68. }
  69. input{
  70. padding-left:20rpx;
  71. padding-right:0rpx
  72. }
  73. }
  74. .select-item{
  75. padding:12rpx 32rpx;
  76. text-align:center;
  77. border-top:1px solid #E9E9E9;
  78. font-size:28rpx
  79. }
  80. }
  81. /* 九宫格样式 */
  82. .cu-list.grid>.cu-item uni-text {
  83. color: #333;
  84. font-size: 30rpx;
  85. margin-top:14rpx
  86. }
  87. .cu-list.menu-avatar>.cu-item>.cu-avatar {
  88. left: 24rpx;
  89. background-color:rgba(0,0,0,0)
  90. }
  91. .cu-list.menu-avatar>.cu-item .action {
  92. width: 132rpx
  93. }
  94. .iconfont.phone {
  95. color:#08BE04!important;
  96. font-size:45rpx;
  97. position:relative;
  98. top:6rpx;
  99. left:10rpx;
  100. }
  101. .iconfont.map{
  102. color:#4074E7!important;
  103. font-size:38rpx;
  104. }
  105. /* 列列表公共样式 */
  106. .processWrapper .cu-avatar {
  107. background-repeat: no-repeat;
  108. background-size: cover;
  109. background-color: #fff
  110. }
  111. .cu-avatar.lg {
  112. width: 90rpx;
  113. height: 90rpx
  114. }
  115. .cu-list.menu-avatar .cu-item {
  116. margin-left: 24rpx;
  117. padding: 30rpx 0;
  118. }
  119. .cu-list.menu-avatar>.cu-item>.cu-avatar {
  120. left: 0
  121. }
  122. .cu-list.menu-avatar>.cu-item .content {
  123. left: 120rpx;
  124. width: 580rpx;
  125. }
  126. .unProcess,.error {
  127. color: #FF4E00
  128. }
  129. .processed ,.online{
  130. color: #08BE04
  131. }
  132. .bg-error {
  133. background: #FF4E00;
  134. color:#fff;
  135. display:inline-block;
  136. padding:0 10px ;
  137. }
  138. .bg-online{
  139. background: #08BE04;
  140. color:#fff;
  141. display:inline-block;
  142. padding:0 10px ;
  143. }
  144. // 底部操作样式 (分享 设备注册)
  145. .share{
  146. position:fixed;
  147. bottom:0;
  148. left:0;
  149. width:100%;
  150. background: #f4f5f7;
  151. border: 1px solid #e6e6e6;
  152. .share-item{
  153. padding:20rpx;
  154. }
  155. .share-item:nth-child(2){
  156. border-left:1px solid #e6e6e6;
  157. border-right:1px solid #e6e6e6;
  158. }
  159. }
  160. /* 页面样式 */
  161. /* 站点列表页 */
  162. /* 筛选框 */
  163. .filter-section {
  164. /* position: fixed; */
  165. /* top: 88rpx; */
  166. width: 100%;
  167. z-index: 9
  168. }
  169. .cu-bar .search-form {
  170. background: #fff
  171. }
  172. .cu-btn {
  173. padding: 0 46rpx;
  174. }
  175. /* 站点列表 */
  176. .site-items {
  177. margin-top:100rpx;
  178. width: 100%;
  179. height: calc(100% - 100rpx);
  180. overflow: scroll
  181. }
  182. .site-items .site-tit {
  183. font-size: 32rpx;
  184. color: #333;
  185. justify-content: space-between;
  186. }
  187. .site-items .cu-avatar {}
  188. /* 新增按钮 */
  189. .site-wrapper .plus {
  190. position: fixed;
  191. bottom: 20rpx;
  192. right: 20rpx
  193. }
  194. /* 已处理未处理列表 */
  195. .processList .cu-list.menu-avatar .cu-item {
  196. height: 180rpx;
  197. }
  198. .pro-title {
  199. color: #333;
  200. }
  201. .pro-des,
  202. .pro-date {
  203. font-size: 28rpx;
  204. color: #666;
  205. }
  206. .pro-res {}
  207. .processList{
  208. width: 100%;
  209. height: calc(100% - 90rpx);
  210. overflow-y: scroll;
  211. }
  212. .fireBashWrapper.pushListWrapper{
  213. margin-top:0rpx;
  214. }
  215. .share-item.active{
  216. color:red
  217. }
  218. /* 已处理未处理详情页样式 */
  219. .timeBox {
  220. height: 88rpx;
  221. background: #EFF4FF;
  222. line-height: 88rpx;
  223. .time {
  224. color: #333
  225. }
  226. }
  227. .info-tit {
  228. color: #4074E7;
  229. line-height: 90rpx;
  230. height: 90rpx;
  231. }
  232. /* // 基本信息 */
  233. .info-content>view {
  234. margin-left: 24rpx;
  235. border-bottom: 1px solid #EDEDED;
  236. line-height: 92rpx;
  237. color: #666;
  238. .checkMore {
  239. color: #4074E7!important
  240. }
  241. }
  242. .info-content view text:first-child {
  243. width: auto!important;
  244. display: inline-block
  245. }
  246. //分析页面
  247. .analyse-wrapper {
  248. .top-banner {
  249. width: 100%;
  250. height: 273rpx;
  251. background: url(/static/analyse-bg.png) no-repeat;
  252. background-size:cover;
  253. }
  254. .cu-list.menu-avatar .cu-item{
  255. margin:30rpx 0 0;
  256. margin-left:0;
  257. .cu-avatar{
  258. background-color:rgba(0,0,0,0);
  259. left:26rpx;
  260. }
  261. .content{
  262. left:130rpx;
  263. font-size:32rpx;
  264. }
  265. }
  266. }
  267. //消息页面
  268. .info-wrapper {
  269. .top-banner {
  270. background: url(/static/info-bg.png) no-repeat;
  271. background-size:cover;
  272. }
  273. }
  274. .submitBottomBtn {
  275. position: fixed;
  276. width: 100%;
  277. left:0;
  278. bottom: 44rpx;
  279. z-index: 999;
  280. // background-color: #ffffff;
  281. }
  282. // 权限新增
  283. .siteItems{
  284. z-index:999;
  285. position:absolute;
  286. border:1px solid #eee;
  287. width:100%;
  288. .site-item{
  289. background:#fff;
  290. padding:10rpx;
  291. font-size:28rpx;
  292. }
  293. }
  294. .selectedBox .cuIcon-close{
  295. position:relative;
  296. top:3rpx;
  297. right:-10rpx;
  298. }
  299. .noResult{
  300. padding:0 20rpx;
  301. font-size:28rpx;
  302. color:#aaa
  303. }
  304. // 离线设备
  305. .ding{
  306. position:fixed;
  307. width:100%;
  308. top: var(--window-top);
  309. // position: sticky;
  310. /* #ifdef H5 */
  311. // top: 44px;
  312. /* #endif */
  313. /* #ifndef H5 */
  314. // top: 0;
  315. /* #endif */
  316. z-index: 999;
  317. flex: 1;
  318. flex-direction: column;
  319. overflow: hidden;
  320. background-color: #ffffff;
  321. }
  322. .cu-bar{
  323. min-height:0rpx;
  324. }
  325. .cu-bar .search-form {
  326. margin:26rpx 24rpx 0;
  327. }
  328. uni-textarea{
  329. width:500rpx;
  330. }
  331. select{
  332. outline:none;
  333. border:none;
  334. width:90%;
  335. padding-left:24rpx;
  336. color:#999
  337. }
  338. // 未处理textarea样式
  339. /* // 处理内容 */
  340. .cu-form-group {
  341. background: #f5f5f5;
  342. }
  343. .processStatus {
  344. textarea {
  345. background: #F5F5F5;
  346. color: #999999;
  347. padding:20rpx;
  348. }
  349. }
  350. // textarea
  351. .JTxtArea {
  352. position: relative;
  353. &.sm {
  354. min-height: 60rpx;
  355. }
  356. &.lg {
  357. min-height: 120rpx;
  358. }
  359. &:after {
  360. content: attr(data-maxnum);
  361. position: absolute;
  362. right: 10rpx;
  363. bottom: 0px;
  364. }
  365. }
  366. // 导出页面
  367. .cu-dialog{
  368. width:70%
  369. }
  370. .cu-modal .cu-dialog>.cu-bar:first-child .action{
  371. min-height:50rpx;
  372. min-width:auto;
  373. }
  374. .cu-dialog{
  375. border-radius:20rpx
  376. }
  377. // 设备类型
  378. .cu-list.menu-avatar .deviceTypeItem.cu-item{
  379. height:110rpx;
  380. .content{
  381. left:100rpx!important
  382. }
  383. .cu-avatar.round{
  384. width:70rpx;
  385. height:70rpx
  386. }
  387. .title{
  388. font-size:32rpx!important;
  389. }
  390. .num{
  391. color:#666;
  392. }
  393. }
  394. // 设备详情
  395. .radiusStatus{
  396. width:20rpx;height:20rpx;border-radius:50%;display:inline-block;
  397. margin-right:6rpx
  398. }
  399. .radiusStatus.offLine{
  400. }
  401. .bg-offLine{
  402. background:#ABABAB;
  403. color:#666666;
  404. .radiusStatus{
  405. background:#666
  406. }
  407. }
  408. .bg-onLine{
  409. background:#08BE04;
  410. color:#fff;
  411. .radiusStatus{
  412. background:#fff
  413. }
  414. }
  415. // 巡检计划
  416. .plan-sec{
  417. border-radius:10rpx;
  418. }
  419. .plan-tit{
  420. font-size:34rpx
  421. }
  422. // 巡检新增
  423. .cu-form-group {
  424. border-top: 0;
  425. background: #fff;
  426. padding:0
  427. }
  428. input,
  429. select,
  430. option {
  431. line-height: 70rpx;
  432. padding: 0 20rpx;
  433. height: 70rpx;
  434. border: 1px solid #EDEDED;
  435. // width:500rpx!important;
  436. background-color: #fff;
  437. box-sizing: border-box;
  438. appearance: none;
  439. -moz-appearance: none;
  440. -webkit-appearance: none;
  441. color: #999;
  442. }
  443. select:focus,
  444. select:active,
  445. select:hover {
  446. outline: none;
  447. }
  448. select {
  449. background: url(/static/arrow.png) no-repeat scroll 98% center;
  450. background-size: 6%;
  451. }
  452. textarea{
  453. border:1px solid #EDEDED;
  454. padding:10px;
  455. color: #999;
  456. }
  457. .form-item label text {
  458. position: relative;
  459. top: 2rpx
  460. }
  461. .form-item {
  462. padding: 0 40rpx;
  463. display: flex;
  464. align-items: top;
  465. margin-bottom: 20rpx;
  466. .title {
  467. width: 170rpx;
  468. position: relative;
  469. .necessary {
  470. color: red;
  471. display: inline-block;
  472. position: absolute;
  473. top: -2rpx;
  474. left: -20rpx;
  475. font-size: 40rpx;
  476. }
  477. }
  478. input,
  479. select {
  480. width: 500rpx;
  481. font-size: 28rpx;
  482. }
  483. }
  484. // 巡检详情,已执行
  485. .planDetailDone{
  486. .form-item{
  487. margin-left:24rpx;
  488. padding:26rpx 10rpx;
  489. border-top:1px solid #f1f1f1;
  490. margin-bottom:0
  491. }
  492. }
  493. .repairSquare{
  494. padding:18rpx 20rpx;
  495. border-radius:10rpx;
  496. }
  497. .repairSquare .num,.repairSquare .title{
  498. color:#fff
  499. }
  500. .repairSquare .num{
  501. font-size:36rpx
  502. }
  503. // 设备管理
  504. uni-input, select, option{
  505. border:none
  506. }
  507. // 风险保障
  508. .viewDetail{
  509. color:#4074E7;
  510. }
  511. .qa{
  512. .cu-list+.cu-list{
  513. margin-top:0
  514. }
  515. }
  516. .qa-des{
  517. color:#666;
  518. line-height:1.5;
  519. text-indent:64rpx
  520. }
  521. .bottom-line{
  522. background: rgba(221,221,221,.5);
  523. height:2rpx;
  524. margin-left:30rpx;
  525. }
  526. .cu-list.menu-avatar>.cu-item.qa-tit{
  527. height:auto;
  528. .cu-avatar{
  529. width:32rpx;height:32rpx
  530. }
  531. .content{
  532. left:50rpx
  533. }
  534. }
  535. .messagePush{
  536. .uni-checkbox .uni-checkbox-input{
  537. width:40rpx;
  538. height:40rpx;
  539. }
  540. }
  541. .fireBashWrapper{
  542. .cu-avatar{
  543. width:120rpx;
  544. height:100rpx
  545. }
  546. .cu-list.menu-avatar > .cu-item .content{
  547. left:140rpx;
  548. .pro-date{
  549. position:absolute;
  550. right:20rpx;
  551. bottom:0
  552. }
  553. }
  554. }
  555. // 消防知识库详情页
  556. .fireBashDetailWrapper{
  557. font-size:28rpx;
  558. .cu-avatar{
  559. width:50rpx;
  560. height:50rpx
  561. }
  562. .fireD-content{
  563. position:relative
  564. }
  565. .fireD-content:before{
  566. position: absolute;
  567. top: -8px;
  568. left: -15px;
  569. box-sizing: border-box;
  570. width: calc(100% + 30px);
  571. height: 1px;
  572. background:#EDEDED;
  573. content: " ";
  574. }
  575. .fireD-content view{
  576. line-height:1.5;
  577. // text-indent:56rpx;
  578. }
  579. }
  580. .fireD-tit{
  581. font-size:32rpx;
  582. font-weight:bold
  583. }
  584. .preAndNext{
  585. color:#4074E7;
  586. margin:30rpx 0 80rpx;
  587. }
  588. // 月报详情
  589. .reportD-wrapper{
  590. .title-wrapper{
  591. background:#EFF4FF;
  592. }
  593. .title{
  594. line-height:2
  595. }
  596. .other view{
  597. margin-bottom:10rpx;
  598. }
  599. }
  600. .chart-tit{
  601. color:#4074E7;
  602. font-size:32rpx;
  603. }
  604. // 提交页面
  605. .successWrapper{
  606. text-align:center;
  607. padding-top:100rpx;
  608. img{
  609. width:313rpx;
  610. margin-right:32rpx;
  611. margin-bottom:20rpx
  612. }
  613. view{
  614. font-size:36rpx;
  615. }
  616. }
  617. // 设备注册
  618. .deviceRegistList{
  619. // height:calc(100vh - 490rpx);
  620. checkbox{
  621. position:absolute;
  622. left:0
  623. }
  624. .cu-list.menu-avatar > .cu-item > .cu-avatar{
  625. left:64rpx;
  626. }
  627. .cu-list.menu-avatar > .cu-item .content{
  628. left:170rpx
  629. }
  630. }
  631. .deviceRegistWrapper{
  632. .checkAll{
  633. position:absolute;
  634. top:-60rpx;
  635. left:22rpx
  636. }
  637. .cu-form-group{
  638. min-height:30rpx;
  639. margin-top:0
  640. }
  641. }