common.scss 8.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578
  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. /* 一行显示*/
  13. .inOneLine{
  14. white-space: nowrap;
  15. overflow: hidden;
  16. text-overflow: ellipsis;
  17. }
  18. /* 画面监控引入特殊字体 */
  19. @font-face {
  20. font-family: 'FANDOLFANG-REGULAR'; /* project id 2394829 */
  21. src: url('static/font/FANDOLFANG-REGULAR.OTF');
  22. }
  23. /* 巡检计划图表入特殊字体 */
  24. @font-face {
  25. font-family: 'IMPACT'; /* project id 2394829 */
  26. src: url('static/font/IMPACT.TTF');
  27. }
  28. .cu-bar .search-form uni-input{
  29. padding:0 30rpx
  30. }
  31. .searchSelect{
  32. position: -webkit-fixed;
  33. position: fixed;
  34. // top: 88rpx;
  35. top: var(--window-top);
  36. z-index: 999;
  37. -webkit-box-flex: 1;
  38. -webkit-flex: 1;
  39. flex: 1;
  40. -webkit-box-orient: vertical;
  41. -webkit-box-direction: normal;
  42. -webkit-flex-direction: column;
  43. flex-direction: column;
  44. overflow: hidden;
  45. background-color: #fff;
  46. width:254rpx;
  47. .search{
  48. min-height:80rpx;
  49. }
  50. .search-form{
  51. border:1px solid #E9E9E9;
  52. height:50rpx;
  53. line-height:50rpx;
  54. .cuIcon-search{
  55. color:#4074E7
  56. }
  57. input{
  58. padding-left:20rpx;
  59. padding-right:0rpx
  60. }
  61. }
  62. .select-item{
  63. padding:12rpx 32rpx;
  64. text-align:center;
  65. border-top:1px solid #E9E9E9;
  66. font-size:28rpx
  67. }
  68. }
  69. /* 九宫格样式 */
  70. .cu-list.grid>.cu-item uni-text {
  71. color: #333;
  72. font-size: 30rpx;
  73. margin-top:14rpx
  74. }
  75. .cu-list.menu-avatar>.cu-item>.cu-avatar {
  76. left: 24rpx;
  77. background-color:rgba(0,0,0,0)
  78. }
  79. .cu-list.menu-avatar>.cu-item .action {
  80. width: 132rpx
  81. }
  82. .iconfont.phone {
  83. color:#08BE04!important;
  84. font-size:45rpx;
  85. position:relative;
  86. top:6rpx;
  87. left:10rpx;
  88. }
  89. .iconfont.map{
  90. color:#4074E7!important;
  91. font-size:38rpx;
  92. }
  93. /* 列列表公共样式 */
  94. .processWrapper .cu-avatar {
  95. background-repeat: no-repeat;
  96. background-size: cover;
  97. background-color: #fff
  98. }
  99. .cu-avatar.lg {
  100. width: 90rpx;
  101. height: 90rpx
  102. }
  103. .cu-list.menu-avatar .cu-item {
  104. margin-left: 24rpx;
  105. padding: 30rpx 0;
  106. }
  107. .cu-list.menu-avatar>.cu-item>.cu-avatar {
  108. left: 0
  109. }
  110. .cu-list.menu-avatar>.cu-item .content {
  111. left: 120rpx;
  112. width: 580rpx;
  113. }
  114. .unProcess,.error {
  115. color: #FF4E00
  116. }
  117. .processed ,.online{
  118. color: #08BE04
  119. }
  120. .bg-error {
  121. background: #FF4E00;
  122. color:#fff;
  123. display:inline-block;
  124. padding:0 10px ;
  125. }
  126. .bg-online{
  127. background: #08BE04;
  128. color:#fff;
  129. display:inline-block;
  130. padding:0 10px ;
  131. }
  132. /* 页面样式 */
  133. /* 站点列表页 */
  134. /* 筛选框 */
  135. .filter-section {
  136. /* position: fixed; */
  137. /* top: 88rpx; */
  138. width: 100%;
  139. z-index: 9
  140. }
  141. .cu-bar .search-form {
  142. background: #fff
  143. }
  144. .cu-btn {
  145. padding: 0 46rpx;
  146. }
  147. /* 站点列表 */
  148. .site-items {
  149. margin-top:100rpx;
  150. width: 100%;
  151. height: calc(100% - 100rpx);
  152. overflow: scroll
  153. }
  154. .site-items .site-tit {
  155. font-size: 32rpx;
  156. color: #333;
  157. justify-content: space-between;
  158. }
  159. .site-items .cu-avatar {}
  160. /* 新增按钮 */
  161. .site-wrapper .plus {
  162. position: fixed;
  163. bottom: 20rpx;
  164. right: 20rpx
  165. }
  166. /* 已处理未处理列表 */
  167. .processList .cu-list.menu-avatar .cu-item {
  168. height: 180rpx;
  169. }
  170. .pro-title {
  171. color: #333;
  172. }
  173. .pro-des,
  174. .pro-date {
  175. font-size: 28rpx;
  176. color: #666;
  177. }
  178. .pro-res {}
  179. .processList {
  180. margin-top:100rpx;
  181. /* position: fixed; */
  182. width: 100%;
  183. height: calc(100% - 100rpx);
  184. overflow-y: scroll;
  185. }
  186. /* 已处理未处理详情页样式 */
  187. .timeBox {
  188. height: 88rpx;
  189. background: #EFF4FF;
  190. line-height: 88rpx;
  191. .time {
  192. color: #333
  193. }
  194. }
  195. .info-tit {
  196. color: #4074E7;
  197. line-height: 90rpx;
  198. height: 90rpx;
  199. }
  200. /* // 基本信息 */
  201. .info-content>view {
  202. margin-left: 24rpx;
  203. border-bottom: 1px solid #EDEDED;
  204. line-height: 92rpx;
  205. color: #666;
  206. .checkMore {
  207. color: #4074E7!important
  208. }
  209. }
  210. .info-content view text:first-child {
  211. width: auto!important;
  212. display: inline-block
  213. }
  214. .info-content view text:last-child {
  215. color:#333
  216. }
  217. .analyse-wrapper {
  218. .top-banner {
  219. width: 100%;
  220. height: 273rpx;
  221. background: url(/static/analyse-bg.png) no-repeat;
  222. background-size:cover;
  223. }
  224. .cu-list.menu-avatar .cu-item{
  225. margin:30rpx 0 0;
  226. margin-left:0;
  227. .cu-avatar{
  228. background-color:rgba(0,0,0,0);
  229. left:26rpx;
  230. }
  231. .content{
  232. left:130rpx;
  233. font-size:32rpx;
  234. }
  235. }
  236. }
  237. .submitBottomBtn {
  238. position: fixed;
  239. width: 100%;
  240. left:0;
  241. bottom: 44rpx;
  242. z-index: 999;
  243. // background-color: #ffffff;
  244. }
  245. // 权限新增
  246. .siteItems{
  247. z-index:999;
  248. position:absolute;
  249. border:1px solid #eee;
  250. width:100%;
  251. .site-item{
  252. background:#fff;
  253. padding:10rpx;
  254. font-size:28rpx;
  255. }
  256. }
  257. .selectedBox .cuIcon-close{
  258. position:relative;
  259. top:3rpx;
  260. right:-10rpx;
  261. }
  262. .noResult{
  263. padding:0 20rpx;
  264. font-size:28rpx;
  265. color:#aaa
  266. }
  267. // 离线设备
  268. .ding{
  269. position:fixed;
  270. width:100%;
  271. top: var(--window-top);
  272. // position: sticky;
  273. /* #ifdef H5 */
  274. // top: 44px;
  275. /* #endif */
  276. /* #ifndef H5 */
  277. // top: 0;
  278. /* #endif */
  279. z-index: 999;
  280. flex: 1;
  281. flex-direction: column;
  282. overflow: hidden;
  283. background-color: #ffffff;
  284. }
  285. .cu-bar{
  286. min-height:0rpx;
  287. }
  288. .cu-bar .search-form {
  289. margin:26rpx 24rpx 0;
  290. }
  291. uni-textarea{
  292. width:500rpx;
  293. }
  294. select{
  295. outline:none;
  296. border:none;
  297. width:90%;
  298. padding-left:24rpx;
  299. color:#999
  300. }
  301. // 未处理textarea样式
  302. /* // 处理内容 */
  303. .cu-form-group {
  304. background: #f5f5f5;
  305. }
  306. .processStatus {
  307. textarea {
  308. background: #F5F5F5;
  309. color: #999999;
  310. padding:20rpx;
  311. }
  312. }
  313. // textarea
  314. .JTxtArea {
  315. position: relative;
  316. &.sm {
  317. min-height: 60rpx;
  318. }
  319. &.lg {
  320. min-height: 120rpx;
  321. }
  322. &:after {
  323. content: attr(data-maxnum);
  324. position: absolute;
  325. right: 10rpx;
  326. bottom: 0px;
  327. }
  328. }
  329. // 导出页面
  330. .cu-dialog{
  331. width:70%
  332. }
  333. .cu-modal .cu-dialog>.cu-bar:first-child .action{
  334. min-height:50rpx;
  335. min-width:auto;
  336. }
  337. .cu-dialog{
  338. border-radius:20rpx
  339. }
  340. // 设备类型
  341. .cu-list.menu-avatar .deviceTypeItem.cu-item{
  342. height:110rpx;
  343. .content{
  344. left:100rpx!important
  345. }
  346. .cu-avatar.round{
  347. width:70rpx;
  348. height:70rpx
  349. }
  350. .title{
  351. font-size:32rpx!important;
  352. }
  353. .num{
  354. color:#666;
  355. }
  356. }
  357. // 设备详情
  358. .radiusStatus{
  359. width:20rpx;height:20rpx;border-radius:50%;display:inline-block;
  360. margin-right:6rpx
  361. }
  362. .radiusStatus.offLine{
  363. }
  364. .bg-offLine{
  365. background:#ABABAB;
  366. color:#666666;
  367. .radiusStatus{
  368. background:#666
  369. }
  370. }
  371. .bg-onLine{
  372. background:#08BE04;
  373. color:#fff;
  374. .radiusStatus{
  375. background:#fff
  376. }
  377. }
  378. // 巡检计划
  379. .plan-sec{
  380. border-radius:10rpx;
  381. }
  382. .plan-tit{
  383. font-size:34rpx
  384. }
  385. // 巡检新增
  386. .cu-form-group {
  387. border-top: 0;
  388. background: #fff;
  389. padding:0
  390. }
  391. input,
  392. select,
  393. option {
  394. line-height: 70rpx;
  395. padding: 0 20rpx;
  396. height: 70rpx;
  397. border: 1px solid #EDEDED;
  398. // width:500rpx!important;
  399. background-color: #fff;
  400. box-sizing: border-box;
  401. appearance: none;
  402. -moz-appearance: none;
  403. -webkit-appearance: none;
  404. color: #999;
  405. }
  406. select:focus,
  407. select:active,
  408. select:hover {
  409. outline: none;
  410. }
  411. select {
  412. background: url(/static/arrow.png) no-repeat scroll 98% center;
  413. background-size: 6%;
  414. }
  415. textarea{
  416. border:1px solid #EDEDED;
  417. padding:10px;
  418. color: #999;
  419. }
  420. .form-item label text {
  421. position: relative;
  422. top: 2rpx
  423. }
  424. .form-item {
  425. padding: 0 40rpx;
  426. display: flex;
  427. align-items: top;
  428. margin-bottom: 20rpx;
  429. .title {
  430. width: 170rpx;
  431. position: relative;
  432. .necessary {
  433. color: red;
  434. display: inline-block;
  435. position: absolute;
  436. top: -2rpx;
  437. left: -20rpx;
  438. font-size: 40rpx;
  439. }
  440. }
  441. input,
  442. select {
  443. width: 500rpx;
  444. font-size: 28rpx;
  445. }
  446. }
  447. // 巡检详情,已执行
  448. .planDetailDone{
  449. .form-item{
  450. margin-left:24rpx;
  451. padding:26rpx 10rpx;
  452. border-top:1px solid #f1f1f1;
  453. margin-bottom:0
  454. }
  455. }
  456. .repairSquare{
  457. padding:18rpx 20rpx;
  458. border-radius:10rpx;
  459. }
  460. .repairSquare .num,.repairSquare .title{
  461. color:#fff
  462. }
  463. .repairSquare .num{
  464. font-size:36rpx
  465. }
  466. // 设备管理
  467. uni-input, select, option{
  468. border:none
  469. }