common.scss 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803
  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-list.menu-avatar .deviceTypeItem.cu-item{
  368. height:110rpx;
  369. .content{
  370. left:100rpx!important
  371. }
  372. .cu-avatar.round{
  373. width:70rpx;
  374. height:70rpx
  375. }
  376. .title{
  377. font-size:32rpx!important;
  378. }
  379. .num{
  380. color:#666;
  381. }
  382. }
  383. // 设备详情
  384. .radiusStatus{
  385. width:20rpx;height:20rpx;border-radius:50%;display:inline-block;
  386. margin-right:6rpx
  387. }
  388. .radiusStatus.offLine{
  389. }
  390. .bg-offLine{
  391. background:#ABABAB;
  392. color:#666666;
  393. .radiusStatus{
  394. background:#666
  395. }
  396. }
  397. .bg-onLine{
  398. background:#08BE04;
  399. color:#fff;
  400. .radiusStatus{
  401. background:#fff
  402. }
  403. }
  404. // 巡检计划
  405. .plan-sec{
  406. border-radius:10rpx;
  407. }
  408. .plan-tit{
  409. font-size:34rpx
  410. }
  411. // 巡检新增
  412. .cu-form-group {
  413. border-top: 0;
  414. background: #fff;
  415. padding:0
  416. }
  417. input,
  418. select,
  419. option {
  420. line-height: 70rpx;
  421. padding: 0 20rpx;
  422. height: 70rpx;
  423. border: 1px solid #EDEDED;
  424. // width:500rpx!important;
  425. background-color: #fff;
  426. box-sizing: border-box;
  427. appearance: none;
  428. -moz-appearance: none;
  429. -webkit-appearance: none;
  430. color: #999;
  431. }
  432. select:focus,
  433. select:active,
  434. select:hover {
  435. outline: none;
  436. }
  437. select {
  438. background: url(/static/arrow.png) no-repeat scroll 98% center;
  439. background-size: 6%;
  440. }
  441. textarea{
  442. border:1px solid #EDEDED;
  443. padding:10px;
  444. color: #999;
  445. }
  446. .form-item label text {
  447. position: relative;
  448. top: 2rpx
  449. }
  450. .form-item {
  451. padding: 0 40rpx;
  452. display: flex;
  453. align-items: top;
  454. margin-bottom: 20rpx;
  455. .title {
  456. width: 200rpx;
  457. position: relative;
  458. .necessary {
  459. color: red;
  460. display: inline-block;
  461. position: absolute;
  462. top: -2rpx;
  463. left: -20rpx;
  464. font-size: 40rpx;
  465. }
  466. }
  467. input,
  468. select {
  469. width: 500rpx;
  470. font-size: 28rpx;
  471. }
  472. }
  473. // 巡检详情,已执行
  474. .planDetailDone{
  475. .form-item{
  476. margin-left:24rpx;
  477. padding:26rpx 10rpx;
  478. border-top:1px solid #f1f1f1;
  479. margin-bottom:0
  480. }
  481. }
  482. .repairSquare{
  483. padding:18rpx 20rpx;
  484. border-radius:10rpx;
  485. }
  486. .repairSquare .num,.repairSquare .title{
  487. color:#fff
  488. }
  489. .repairSquare .num{
  490. font-size:36rpx
  491. }
  492. // 设备管理
  493. uni-input, select, option{
  494. border:none
  495. }
  496. // 风险保障
  497. .viewDetail{
  498. color:#4074E7;
  499. }
  500. .qa{
  501. .cu-list+.cu-list{
  502. margin-top:0
  503. }
  504. }
  505. .qa-des{
  506. color:#666;
  507. line-height:1.5;
  508. text-indent:64rpx
  509. }
  510. .bottom-line{
  511. background: rgba(221,221,221,.5);
  512. height:2rpx;
  513. margin-left:30rpx;
  514. }
  515. .cu-list.menu-avatar>.cu-item.qa-tit{
  516. height:auto;
  517. .cu-avatar{
  518. width:32rpx;height:32rpx
  519. }
  520. .content{
  521. left:50rpx
  522. }
  523. }
  524. .messagePush{
  525. .uni-checkbox .uni-checkbox-input{
  526. width:40rpx;
  527. height:40rpx;
  528. }
  529. }
  530. .fireBashWrapper{
  531. .cu-avatar{
  532. width:120rpx;
  533. height:100rpx
  534. }
  535. .cu-list.menu-avatar > .cu-item .content{
  536. left:140rpx;
  537. .pro-date{
  538. position:absolute;
  539. right:20rpx;
  540. bottom:0
  541. }
  542. }
  543. }
  544. // 消防知识库详情页
  545. .fireBashDetailWrapper{
  546. font-size:28rpx;
  547. .cu-avatar{
  548. width:50rpx;
  549. height:50rpx
  550. }
  551. .fireD-content{
  552. position:relative
  553. }
  554. .fireD-content:before{
  555. position: absolute;
  556. top: -8px;
  557. left: -15px;
  558. box-sizing: border-box;
  559. width: calc(100% + 30px);
  560. height: 1px;
  561. background:#EDEDED;
  562. content: " ";
  563. }
  564. .fireD-content view{
  565. line-height:1.5;
  566. // text-indent:56rpx;
  567. }
  568. }
  569. .fireD-tit{
  570. font-size:32rpx;
  571. font-weight:bold
  572. }
  573. .preAndNext{
  574. color:#4074E7;
  575. margin:30rpx 0 80rpx;
  576. }
  577. // 月报详情
  578. .reportD-wrapper{
  579. .title-wrapper{
  580. background:#EFF4FF;
  581. }
  582. .title{
  583. line-height:2
  584. }
  585. .other view{
  586. margin-bottom:10rpx;
  587. }
  588. }
  589. .chart-tit{
  590. color:#4074E7;
  591. font-size:32rpx;
  592. }
  593. // 提交页面
  594. .successWrapper{
  595. text-align:center;
  596. padding-top:100rpx;
  597. img{
  598. width:313rpx;
  599. margin-right:32rpx;
  600. margin-bottom:20rpx
  601. }
  602. view{
  603. font-size:36rpx;
  604. }
  605. }
  606. // 设备注册
  607. .deviceRegistList{
  608. // height:calc(100vh - 490rpx);
  609. checkbox{
  610. position:absolute;
  611. left:0
  612. }
  613. .cu-list.menu-avatar > .cu-item > .cu-avatar{
  614. left:64rpx;
  615. }
  616. .cu-list.menu-avatar > .cu-item .content{
  617. left:170rpx
  618. }
  619. }
  620. .deviceRegistWrapper{
  621. .checkAll{
  622. position:absolute;
  623. top:-60rpx;
  624. left:22rpx
  625. }
  626. .cu-form-group{
  627. min-height:30rpx;
  628. margin-top:0
  629. }
  630. }
  631. // 导出页面样式start
  632. .cu-dialog{
  633. width:505rpx
  634. }
  635. .cu-modal .cu-dialog>.cu-bar:first-child .action{
  636. min-height:50rpx;
  637. min-width:auto;
  638. }
  639. .cu-dialog{
  640. border-radius:20rpx
  641. }
  642. .export-modal{
  643. .cu-bar .action:first-child{
  644. margin-left:70rpx;
  645. }
  646. .cu-bar.operate .action:last-child{
  647. margin-right:70rpx;
  648. color:#fff;
  649. background:#4074E7;
  650. }
  651. .cu-bar.operate .action{
  652. width:158rpx;
  653. border: 1px solid #bfbfbf;
  654. border-radius: 29rpx;
  655. line-height:56rpx;
  656. font-size:26rpx;
  657. }
  658. }
  659. // 导出页面样式end