common.scss 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740
  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. /* 站点列表页 */
  146. /* 筛选框 */
  147. .filter-section {
  148. /* position: fixed; */
  149. /* top: 88rpx; */
  150. width: 100%;
  151. z-index: 9
  152. }
  153. .cu-bar .search-form {
  154. background: #fff
  155. }
  156. .cu-btn {
  157. padding: 0 46rpx;
  158. }
  159. /* 站点列表 */
  160. .site-items {
  161. margin-top:100rpx;
  162. width: 100%;
  163. height: calc(100% - 100rpx);
  164. overflow: scroll
  165. }
  166. .site-items .site-tit {
  167. font-size: 32rpx;
  168. color: #333;
  169. justify-content: space-between;
  170. }
  171. .site-items .cu-avatar {}
  172. /* 新增按钮 */
  173. .site-wrapper .plus {
  174. position: fixed;
  175. bottom: 20rpx;
  176. right: 20rpx
  177. }
  178. /* 已处理未处理列表 */
  179. .processList .cu-list.menu-avatar .cu-item {
  180. height: 180rpx;
  181. }
  182. .pro-title {
  183. color: #333;
  184. }
  185. .pro-des,
  186. .pro-date {
  187. font-size: 28rpx;
  188. color: #666;
  189. }
  190. .pro-res {}
  191. .processList,.fireBashWrapper.pushListWrapper{
  192. margin-top:90rpx;
  193. width: 100%;
  194. height: calc(100% - 90rpx);
  195. overflow-y: scroll;
  196. }
  197. .share-item.active{
  198. color:red
  199. }
  200. /* 已处理未处理详情页样式 */
  201. .timeBox {
  202. height: 88rpx;
  203. background: #EFF4FF;
  204. line-height: 88rpx;
  205. .time {
  206. color: #333
  207. }
  208. }
  209. .info-tit {
  210. color: #4074E7;
  211. line-height: 90rpx;
  212. height: 90rpx;
  213. }
  214. /* // 基本信息 */
  215. .info-content>view {
  216. margin-left: 24rpx;
  217. border-bottom: 1px solid #EDEDED;
  218. line-height: 92rpx;
  219. color: #666;
  220. .checkMore {
  221. color: #4074E7!important
  222. }
  223. }
  224. .info-content view text:first-child {
  225. width: auto!important;
  226. display: inline-block
  227. }
  228. //分析页面
  229. .analyse-wrapper {
  230. .top-banner {
  231. width: 100%;
  232. height: 273rpx;
  233. background: url(/static/analyse-bg.png) no-repeat;
  234. background-size:cover;
  235. }
  236. .cu-list.menu-avatar .cu-item{
  237. margin:30rpx 0 0;
  238. margin-left:0;
  239. .cu-avatar{
  240. background-color:rgba(0,0,0,0);
  241. left:26rpx;
  242. }
  243. .content{
  244. left:130rpx;
  245. font-size:32rpx;
  246. }
  247. }
  248. }
  249. //消息页面
  250. .info-wrapper {
  251. .top-banner {
  252. background: url(/static/info-bg.png) no-repeat;
  253. background-size:cover;
  254. }
  255. }
  256. .submitBottomBtn {
  257. position: fixed;
  258. width: 100%;
  259. left:0;
  260. bottom: 44rpx;
  261. z-index: 999;
  262. // background-color: #ffffff;
  263. }
  264. // 权限新增
  265. .siteItems{
  266. z-index:999;
  267. position:absolute;
  268. border:1px solid #eee;
  269. width:100%;
  270. .site-item{
  271. background:#fff;
  272. padding:10rpx;
  273. font-size:28rpx;
  274. }
  275. }
  276. .selectedBox .cuIcon-close{
  277. position:relative;
  278. top:3rpx;
  279. right:-10rpx;
  280. }
  281. .noResult{
  282. padding:0 20rpx;
  283. font-size:28rpx;
  284. color:#aaa
  285. }
  286. // 离线设备
  287. .ding{
  288. position:fixed;
  289. width:100%;
  290. top: var(--window-top);
  291. // position: sticky;
  292. /* #ifdef H5 */
  293. // top: 44px;
  294. /* #endif */
  295. /* #ifndef H5 */
  296. // top: 0;
  297. /* #endif */
  298. z-index: 999;
  299. flex: 1;
  300. flex-direction: column;
  301. overflow: hidden;
  302. background-color: #ffffff;
  303. }
  304. .cu-bar{
  305. min-height:0rpx;
  306. }
  307. .cu-bar .search-form {
  308. margin:26rpx 24rpx 0;
  309. }
  310. uni-textarea{
  311. width:500rpx;
  312. }
  313. select{
  314. outline:none;
  315. border:none;
  316. width:90%;
  317. padding-left:24rpx;
  318. color:#999
  319. }
  320. // 未处理textarea样式
  321. /* // 处理内容 */
  322. .cu-form-group {
  323. background: #f5f5f5;
  324. }
  325. .processStatus {
  326. textarea {
  327. background: #F5F5F5;
  328. color: #999999;
  329. padding:20rpx;
  330. }
  331. }
  332. // textarea
  333. .JTxtArea {
  334. position: relative;
  335. &.sm {
  336. min-height: 60rpx;
  337. }
  338. &.lg {
  339. min-height: 120rpx;
  340. }
  341. &:after {
  342. content: attr(data-maxnum);
  343. position: absolute;
  344. right: 10rpx;
  345. bottom: 0px;
  346. }
  347. }
  348. // 导出页面
  349. .cu-dialog{
  350. width:70%
  351. }
  352. .cu-modal .cu-dialog>.cu-bar:first-child .action{
  353. min-height:50rpx;
  354. min-width:auto;
  355. }
  356. .cu-dialog{
  357. border-radius:20rpx
  358. }
  359. // 设备类型
  360. .cu-list.menu-avatar .deviceTypeItem.cu-item{
  361. height:110rpx;
  362. .content{
  363. left:100rpx!important
  364. }
  365. .cu-avatar.round{
  366. width:70rpx;
  367. height:70rpx
  368. }
  369. .title{
  370. font-size:32rpx!important;
  371. }
  372. .num{
  373. color:#666;
  374. }
  375. }
  376. // 设备详情
  377. .radiusStatus{
  378. width:20rpx;height:20rpx;border-radius:50%;display:inline-block;
  379. margin-right:6rpx
  380. }
  381. .radiusStatus.offLine{
  382. }
  383. .bg-offLine{
  384. background:#ABABAB;
  385. color:#666666;
  386. .radiusStatus{
  387. background:#666
  388. }
  389. }
  390. .bg-onLine{
  391. background:#08BE04;
  392. color:#fff;
  393. .radiusStatus{
  394. background:#fff
  395. }
  396. }
  397. // 巡检计划
  398. .plan-sec{
  399. border-radius:10rpx;
  400. }
  401. .plan-tit{
  402. font-size:34rpx
  403. }
  404. // 巡检新增
  405. .cu-form-group {
  406. border-top: 0;
  407. background: #fff;
  408. padding:0
  409. }
  410. input,
  411. select,
  412. option {
  413. line-height: 70rpx;
  414. padding: 0 20rpx;
  415. height: 70rpx;
  416. border: 1px solid #EDEDED;
  417. // width:500rpx!important;
  418. background-color: #fff;
  419. box-sizing: border-box;
  420. appearance: none;
  421. -moz-appearance: none;
  422. -webkit-appearance: none;
  423. color: #999;
  424. }
  425. select:focus,
  426. select:active,
  427. select:hover {
  428. outline: none;
  429. }
  430. select {
  431. background: url(/static/arrow.png) no-repeat scroll 98% center;
  432. background-size: 6%;
  433. }
  434. textarea{
  435. border:1px solid #EDEDED;
  436. padding:10px;
  437. color: #999;
  438. }
  439. .form-item label text {
  440. position: relative;
  441. top: 2rpx
  442. }
  443. .form-item {
  444. padding: 0 40rpx;
  445. display: flex;
  446. align-items: top;
  447. margin-bottom: 20rpx;
  448. .title {
  449. width: 170rpx;
  450. position: relative;
  451. .necessary {
  452. color: red;
  453. display: inline-block;
  454. position: absolute;
  455. top: -2rpx;
  456. left: -20rpx;
  457. font-size: 40rpx;
  458. }
  459. }
  460. input,
  461. select {
  462. width: 500rpx;
  463. font-size: 28rpx;
  464. }
  465. }
  466. // 巡检详情,已执行
  467. .planDetailDone{
  468. .form-item{
  469. margin-left:24rpx;
  470. padding:26rpx 10rpx;
  471. border-top:1px solid #f1f1f1;
  472. margin-bottom:0
  473. }
  474. }
  475. .repairSquare{
  476. padding:18rpx 20rpx;
  477. border-radius:10rpx;
  478. }
  479. .repairSquare .num,.repairSquare .title{
  480. color:#fff
  481. }
  482. .repairSquare .num{
  483. font-size:36rpx
  484. }
  485. // 设备管理
  486. uni-input, select, option{
  487. border:none
  488. }
  489. // 风险保障
  490. .viewDetail{
  491. color:#4074E7;
  492. }
  493. .qa{
  494. .cu-list+.cu-list{
  495. margin-top:0
  496. }
  497. }
  498. .qa-des{
  499. color:#666;
  500. line-height:1.5;
  501. text-indent:64rpx
  502. }
  503. .bottom-line{
  504. background: rgba(221,221,221,.5);
  505. height:2rpx;
  506. margin-left:30rpx;
  507. }
  508. .cu-list.menu-avatar>.cu-item.qa-tit{
  509. height:auto;
  510. .cu-avatar{
  511. width:32rpx;height:32rpx
  512. }
  513. .content{
  514. left:50rpx
  515. }
  516. }
  517. .messagePush{
  518. .uni-checkbox .uni-checkbox-input{
  519. width:40rpx;
  520. height:40rpx;
  521. }
  522. }
  523. .fireBashWrapper{
  524. .cu-avatar{
  525. width:120rpx;
  526. height:100rpx
  527. }
  528. .cu-list.menu-avatar > .cu-item .content{
  529. left:140rpx;
  530. .pro-date{
  531. position:absolute;
  532. right:20rpx;
  533. bottom:0
  534. }
  535. }
  536. }
  537. // 消防知识库详情页
  538. .fireBashDetailWrapper{
  539. font-size:28rpx;
  540. .cu-avatar{
  541. width:50rpx;
  542. height:50rpx
  543. }
  544. .fireD-content{
  545. position:relative
  546. }
  547. .fireD-content:before{
  548. position: absolute;
  549. top: -8px;
  550. left: -15px;
  551. box-sizing: border-box;
  552. width: calc(100% + 30px);
  553. height: 1px;
  554. background:#EDEDED;
  555. content: " ";
  556. }
  557. .fireD-content view{
  558. line-height:1.5;
  559. // text-indent:56rpx;
  560. }
  561. .share{
  562. position:fixed;
  563. bottom:0;
  564. left:0;
  565. width:100%;
  566. background: #f4f5f7;
  567. border: 1px solid #e6e6e6;
  568. .share-item{
  569. padding:20rpx;
  570. }
  571. .share-item:nth-child(2){
  572. border-left:1px solid #e6e6e6;
  573. border-right:1px solid #e6e6e6;
  574. }
  575. }
  576. }
  577. .fireD-tit{
  578. font-size:32rpx;
  579. font-weight:bold
  580. }
  581. .preAndNext{
  582. color:#4074E7;
  583. margin:30rpx 0 80rpx;
  584. }
  585. // 月报详情
  586. .reportD-wrapper{
  587. .title-wrapper{
  588. background:#EFF4FF;
  589. }
  590. .title{
  591. line-height:2
  592. }
  593. .other view{
  594. margin-bottom:10rpx;
  595. }
  596. }
  597. .chart-tit{
  598. color:#4074E7;
  599. font-size:32rpx;
  600. }
  601. // 提交页面
  602. .successWrapper{
  603. text-align:center;
  604. padding-top:100rpx;
  605. img{
  606. width:313rpx;
  607. margin-right:32rpx;
  608. margin-bottom:20rpx
  609. }
  610. view{
  611. font-size:36rpx;
  612. }
  613. }