common.scss 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644
  1. @import '@/uni_modules/uni-scss/theme.scss';
  2. @import '@/uni.scss';
  3. .inherit-icons{
  4. display: inherit;
  5. }
  6. .hui-ellipsis {
  7. overflow: hidden;
  8. white-space: nowrap;
  9. text-overflow: ellipsis;
  10. }
  11. //修改uni-ui样式
  12. .form-box {
  13. &.file-form-box{
  14. .uni-forms{
  15. padding-bottom: 10rpx;
  16. }
  17. }
  18. .uni-forms {
  19. background: #fff;
  20. border-radius: 16rpx;
  21. padding: 30rpx;
  22. box-shadow: 0px 1px 12px rgba(3,3,3,0.08);
  23. .uni-forms-item__label {
  24. color: $uni-main-color;
  25. padding-bottom: 0 !important;
  26. }
  27. .uni-easyinput__content {
  28. border-radius: 84rpx;
  29. &.is-textarea{
  30. border-radius: 16rpx;
  31. }
  32. }
  33. .uni-easyinput__content-input {
  34. height: 80rpx;
  35. }
  36. .uni-easyinput__placeholder-class {
  37. color: $uni-secondary-color !important;
  38. font-size: 28rpx !important;
  39. font-weight: 300 !important;
  40. }
  41. .uni-forms-item{
  42. margin-bottom: 20rpx;
  43. }
  44. }
  45. //选择框样式
  46. .select-box {
  47. height: 84rpx;
  48. border-radius: 84rpx;
  49. border: 1px solid $uni-border-1;
  50. position: relative;
  51. line-height: 82rpx;
  52. box-sizing: border-box;
  53. padding-left: 10px;
  54. .select-label {
  55. color: $uni-secondary-color;
  56. font-weight: 300;
  57. }
  58. .form-icon {
  59. position: absolute;
  60. right: 30rpx;
  61. top: 0rpx;
  62. }
  63. }
  64. }
  65. //底部按钮
  66. .hui-button-box {
  67. height: 100rpx;
  68. background-color: #ffffff;
  69. box-shadow: 0px 2px 10px rgba(3, 3, 3, 0.1);
  70. position: fixed;
  71. bottom: 0;
  72. left: 0;
  73. right: 0;
  74. display: flex;
  75. align-items: center;
  76. .hui-button {
  77. height: 68rpx;
  78. border-radius: 68rpx;
  79. color: #ffffff;
  80. background: $uni-primary;
  81. border: 1px solid $uni-primary;
  82. flex: 1;
  83. display: flex;
  84. align-items: center;
  85. justify-content: center;
  86. margin: 0 30rpx;
  87. &.hui-button-light{
  88. color: $uni-primary;
  89. background: #fff;
  90. }
  91. }
  92. .hui-button-icon{
  93. margin-right: 10rpx;
  94. }
  95. }
  96. button[type=primary]{
  97. background: $uni-primary;
  98. }
  99. //用户列表
  100. .fans-list {
  101. padding: 0 30rpx;
  102. box-sizing: border-box;
  103. .fans-item {
  104. height: 140rpx;
  105. background-color: #ffffff;
  106. border-radius: 16rpx;
  107. box-shadow: 0px 1px 12px rgba(3, 3, 3, 0.08);
  108. display: flex;
  109. align-items: center;
  110. padding: 0 30rpx;
  111. margin-bottom: 20rpx;
  112. }
  113. .fans-avatar {
  114. width: 100rpx;
  115. height: 100rpx;
  116. border-radius: 100rpx;
  117. }
  118. .fans-content {
  119. flex: 1;
  120. width: 0;
  121. margin-left: 20rpx;
  122. }
  123. .fans-name {
  124. font-size: 32rpx;
  125. }
  126. .fans-organization {
  127. color: $uni-secondary-color;
  128. font-weight: 300;
  129. margin-top: 4rpx;
  130. font-size: 24rpx;
  131. }
  132. .fans-icon {
  133. width: 80rpx;
  134. height: 80rpx;
  135. border-radius: 50%;
  136. background: $uni-primary;
  137. text-align: center;
  138. line-height: 80rpx;
  139. }
  140. }
  141. //通用列表
  142. .status-tag {
  143. height: 52rpx;
  144. border-radius: 52rpx;
  145. line-height: 52rpx;
  146. padding: 0 30rpx;
  147. font-size: 24rpx;
  148. color: #fff;
  149. &.success {
  150. background-color: $uni-success;
  151. }
  152. &.primary {
  153. background-color: $uni-primary;
  154. }
  155. &.info {
  156. background-color: $uni-info;
  157. }
  158. &.warning {
  159. background-color: $uni-warning;
  160. }
  161. &.error {
  162. background-color: $uni-error;
  163. }
  164. }
  165. .common-list {
  166. padding: 0 30rpx;
  167. box-sizing: border-box;
  168. .common-item {
  169. background-color: #ffffff;
  170. border-radius: 16rpx;
  171. box-shadow: 0px 1px 12px rgba(3, 3, 3, 0.08);
  172. padding: 30rpx;
  173. position: relative;
  174. margin-bottom: 20rpx;
  175. .icon {
  176. position: absolute;
  177. top: 30rpx;
  178. right: 30rpx;
  179. }
  180. .title {
  181. font-size: 32rpx;
  182. font-weight: 600;
  183. }
  184. .date {
  185. font-size: 24rpx;
  186. color: $uni-secondary-color;
  187. margin: 10rpx 0;
  188. }
  189. .space {
  190. font-size: 24rpx;
  191. }
  192. .other {
  193. margin-top: 20rpx;
  194. .item {
  195. margin-top: 16rpx;
  196. }
  197. .label {
  198. color: $uni-secondary-color;
  199. font-size: 24rpx;
  200. }
  201. .value {
  202. margin-top: 6rpx;
  203. font-weight: 400;
  204. }
  205. }
  206. .state {
  207. margin-top: 20rpx;
  208. display: flex;
  209. justify-content: space-between;
  210. .create {
  211. height: 48rpx;
  212. border-radius: 48rpx;
  213. border: 1px solid $uni-primary;
  214. display: flex;
  215. align-items: center;
  216. color: $uni-primary;
  217. padding: 0 10rpx;
  218. .name {
  219. font-size: 24rpx;
  220. flex: 1;
  221. max-width: 150rpx;
  222. min-width: 70rpx;
  223. overflow: hidden;
  224. margin-left: 10rpx;
  225. line-height: 36rpx;
  226. padding-right: 10rpx;
  227. }
  228. }
  229. }
  230. }
  231. }
  232. //通用列表
  233. .hui-tag {
  234. height: 44rpx;
  235. border-radius: 44rpx;
  236. line-height: 44rpx;
  237. padding: 0 20rpx;
  238. font-size: 20rpx;
  239. color: #fff;
  240. &.success {
  241. background-color: $uni-success;
  242. }
  243. &.primary {
  244. background-color: $uni-primary;
  245. }
  246. &.info {
  247. background-color: $uni-info;
  248. }
  249. &.warning {
  250. background-color: $uni-warning;
  251. }
  252. &.error {
  253. background-color: $uni-error;
  254. }
  255. }
  256. //详情
  257. .detail {
  258. padding: 30rpx;
  259. .detail-box {
  260. background-color: #ffffff;
  261. border-radius: 16rpx;
  262. box-shadow: 0px 1px 12px rgba(3, 3, 3, 0.08);
  263. padding: 30rpx;
  264. position: relative;
  265. margin-bottom: 30rpx;
  266. &.file-box{
  267. padding-bottom: 20rpx;
  268. }
  269. }
  270. .sub-title {
  271. display: flex;
  272. align-items: center;
  273. margin-left: -8rpx;
  274. .sub-label {
  275. font-size: 32rpx;
  276. font-weight: 600;
  277. margin-left: 14rpx;
  278. }
  279. }
  280. .title-box {
  281. padding-left: 90rpx;
  282. position: relative;
  283. .title-icon {
  284. width: 70rpx;
  285. height: 70rpx;
  286. text-align: center;
  287. line-height: 70rpx;
  288. background: $uni-primary;
  289. border-radius: 70rpx;
  290. position: absolute;
  291. left: 0;
  292. top: 50%;
  293. margin-top: -35rpx;
  294. }
  295. .title {
  296. font-size: 32rpx;
  297. font-weight: 600;
  298. margin-bottom: 8rpx;
  299. }
  300. .date {
  301. font-size: 24rpx;
  302. color: $uni-secondary-color;
  303. }
  304. }
  305. .other {
  306. margin-top: 20rpx;
  307. .item {
  308. margin-top: 16rpx;
  309. }
  310. .label {
  311. color: $uni-secondary-color;
  312. font-size: 24rpx;
  313. }
  314. .value {
  315. margin-top: 10rpx;
  316. font-weight: 400;
  317. }
  318. .file-item{
  319. background-color: #ededed;
  320. height: 80rpx;
  321. display: flex;
  322. align-items: center;
  323. border-radius: 12rpx;
  324. padding: 0 14rpx;
  325. }
  326. .file-name{
  327. flex: 1;
  328. width: 0;
  329. margin-left: 10rpx;
  330. }
  331. .contarct-item{
  332. background-color: #ededed;
  333. border-radius: 12rpx;
  334. padding: 20rpx;
  335. margin-bottom: 20rpx;
  336. }
  337. .contarct-content{
  338. display: flex;
  339. justify-content: space-between;
  340. align-items: center;
  341. margin-bottom: 16rpx;
  342. &.last{
  343. margin-bottom: 0rpx;
  344. .content-item{
  345. flex: 1;
  346. width: 0;
  347. }
  348. }
  349. .content-title{
  350. font-size: 32rpx;
  351. font-weight: 500;
  352. }
  353. .content-label{
  354. color: $uni-secondary-color;
  355. font-size: 24rpx;
  356. }
  357. .content-value {
  358. font-weight: 400;
  359. margin-left: 6rpx;
  360. flex: 1;
  361. width: 0;
  362. }
  363. .content-item{
  364. overflow: hidden;
  365. display: flex;
  366. align-items: center;
  367. &.content-title{
  368. flex: 1;
  369. width: 0;
  370. }
  371. }
  372. }
  373. }
  374. .state {
  375. margin-top: 20rpx;
  376. display: flex;
  377. justify-content: space-between;
  378. .create {
  379. height: 48rpx;
  380. border-radius: 48rpx;
  381. border: 1px solid $uni-primary;
  382. display: flex;
  383. align-items: center;
  384. color: $uni-primary;
  385. padding: 0 10rpx;
  386. .name {
  387. font-size: 24rpx;
  388. flex: 1;
  389. max-width: 150rpx;
  390. min-width: 70rpx;
  391. overflow: hidden;
  392. margin-left: 10rpx;
  393. line-height: 36rpx;
  394. padding-right: 10rpx;
  395. }
  396. }
  397. }
  398. }
  399. .process-list {
  400. padding-top: 20rpx;
  401. .process-item {
  402. position: relative;
  403. display: flex;
  404. .user-avatar-box {
  405. position: relative;
  406. .user-avatar {
  407. width: 64rpx;
  408. height: 64rpx;
  409. background: $uni-primary;
  410. border-radius: 50%;
  411. margin-right: 20rpx;
  412. margin-top: 16rpx;
  413. display: flex;
  414. align-items: center;
  415. justify-content: center;
  416. overprocess: hidden;
  417. color: #fff;
  418. }
  419. .user-avatar-status {
  420. width: 28rpx;
  421. height: 28rpx;
  422. border-radius: 50%;
  423. border: 2rpx solid #fff;
  424. position: absolute;
  425. top: 60rpx;
  426. right: 20rpx;
  427. display: flex;
  428. align-items: center;
  429. justify-content: center;
  430. }
  431. .user-avatar-status.success {
  432. background: $uni-success;
  433. }
  434. .user-avatar-status.failed {
  435. background: $uni-error;
  436. }
  437. .user-avatar-status.waiting {
  438. background: $uni-warning;
  439. }
  440. .user-avatar-status.info {
  441. background: $uni-info;
  442. }
  443. }
  444. .process-content {
  445. flex: 1;
  446. width: 0;
  447. .user-name {
  448. height: 96rpx;
  449. display: flex;
  450. flex-direction: column;
  451. justify-content: center;
  452. .name {
  453. font-size: 32rpx;
  454. font-weight: 600;
  455. }
  456. .date {
  457. font-size: 24rpx;
  458. color: $uni-secondary-color;
  459. display: flex;
  460. align-items: center;
  461. justify-content: space-between;
  462. }
  463. }
  464. .user-content {
  465. background-color: #f5f5f5;
  466. border-radius: 16rpx;
  467. padding: 20rpx 20rpx 10rpx 20rpx;
  468. .remark {
  469. line-height: 17px;
  470. font-weight: 400;
  471. padding-bottom: 10rpx;
  472. }
  473. }
  474. }
  475. .user-line {
  476. width: 1px;
  477. border-left: 1px solid $uni-border-4;
  478. position: absolute;
  479. top: 80rpx;
  480. bottom: -16rpx;
  481. left: 30rpx;
  482. }
  483. }
  484. }
  485. .device-list-index {
  486. padding-top: 82rpx;
  487. .device-list {
  488. display: flex;
  489. flex-wrap: wrap;
  490. padding: 16rpx;
  491. .device-item-box {
  492. width: 50%;
  493. padding: 14rpx;
  494. box-sizing: border-box;
  495. }
  496. .item-box {
  497. // height: 100px;
  498. background: #fff;
  499. border-radius: 16rpx;
  500. box-shadow: 0px 1px 12px rgba(3, 3, 3, 0.08);
  501. position: relative;
  502. padding: 20rpx;
  503. box-sizing: border-box;
  504. }
  505. .operation-icon {
  506. position: absolute;
  507. top: 20rpx;
  508. right: 20rpx;
  509. }
  510. .item-icon {
  511. width: 100rpx;
  512. height: 100rpx;
  513. text-align: center;
  514. line-height: 100rpx;
  515. }
  516. .item-label {
  517. font-weight: 500;
  518. margin-top: 20rpx;
  519. margin-bottom: 10rpx;
  520. }
  521. .item-sub-label {
  522. font-weight: 200;
  523. font-size: 24rpx;
  524. color: $uni-secondary-color;
  525. display: flex;
  526. align-items: center;
  527. .line {
  528. height: 20rpx;
  529. width: 2rpx;
  530. background: $uni-border-1;
  531. }
  532. .label {
  533. padding: 0 10rpx;
  534. &:first-child {
  535. padding-left: 0;
  536. }
  537. }
  538. }
  539. }
  540. }
  541. .common-charts {
  542. margin-top: 30rpx;
  543. background: #fff;
  544. padding: 30rpx;
  545. border-radius: 16rpx;
  546. box-shadow: 0px 1px 12px rgba(3, 3, 3, 0.08);
  547. .common-chart-title {
  548. padding-bottom: 30rpx;
  549. font-size: 32rpx;
  550. font-weight: 500;
  551. }
  552. .common-chart-box {
  553. width: 100%;
  554. height: 300rpx;
  555. }
  556. }