common.scss 10 KB

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