tongzhiList.wxss 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103
  1. .container {
  2. display: flex;
  3. flex-direction: column;
  4. height: 100vh;
  5. background-color: #f5f5f5;
  6. }
  7. .custom-nav {
  8. display: flex;
  9. align-items: center;
  10. height: 90rpx;
  11. margin-bottom: 20rpx;
  12. background-color: #2E82FF;
  13. position: fixed;
  14. top: 0;
  15. left: 0;
  16. right: 0;
  17. z-index: 1000;
  18. padding: 0 20rpx;
  19. padding-top: 44px;
  20. }
  21. .back-icon {
  22. width: 16px;
  23. height: 16px;
  24. vertical-align: middle;
  25. }
  26. .nav-title {
  27. flex: 1;
  28. text-align: center;
  29. font-size: 34rpx;
  30. color: #fff;
  31. }
  32. .notice-list {
  33. flex: 1;
  34. padding: 20rpx 40rpx;
  35. border-radius: 32px;
  36. padding-top: 190rpx;
  37. }
  38. .notice-item {
  39. display: flex;
  40. background-color: white;
  41. border-radius: 16rpx;
  42. padding: 30rpx 20rpx;
  43. margin-bottom: 20rpx;
  44. position: relative;
  45. box-shadow: 0 2rpx 10rpx rgba(0, 0, 0, 0.05);
  46. width: 90%;
  47. margin-left: auto;
  48. margin-right: auto;
  49. }
  50. .notice-left {
  51. margin-right: 20rpx;
  52. }
  53. .notice-icon {
  54. width: 80rpx;
  55. height: 80rpx;
  56. }
  57. .notice-content {
  58. flex: 1;
  59. overflow: hidden;
  60. padding-right: 80rpx;
  61. }
  62. .notice-title {
  63. font-size: 32rpx;
  64. font-weight: 500;
  65. margin-bottom: 10rpx;
  66. color: #333;
  67. }
  68. .notice-desc {
  69. font-size: 28rpx;
  70. color: #666;
  71. overflow: hidden;
  72. text-overflow: ellipsis;
  73. display: -webkit-box;
  74. -webkit-line-clamp: 2;
  75. -webkit-box-orient: vertical;
  76. line-height: 1.4;
  77. }
  78. .notice-date {
  79. font-size: 24rpx;
  80. color: #999;
  81. position: absolute;
  82. top: 30rpx;
  83. right: 20rpx;
  84. }
  85. .notice-footer {
  86. text-align: center;
  87. font-size: 24rpx;
  88. color: #999;
  89. padding: 20rpx 0;
  90. margin-bottom: 20rpx;
  91. }