tongzhiList.wxss 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233
  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: 140rpx;
  11. margin-bottom: 20rpx;
  12. background-color: #2E82FF;
  13. position: fixed;
  14. top: 0;
  15. left: 0;
  16. right: 0;
  17. z-index: 99;
  18. padding: 0 20rpx;
  19. padding-top: 44px;
  20. }
  21. .back-icon {
  22. position: fixed;
  23. top: 130rpx;
  24. left: 30rpx;
  25. z-index: 999;
  26. width: 40rpx;
  27. height: 40rpx;
  28. }
  29. /*
  30. .nav-title {
  31. flex: 1;
  32. text-align: center;
  33. font-size: 34rpx;
  34. color: #fff;
  35. } */
  36. .notice-list {
  37. flex: 1;
  38. padding: 12rpx;
  39. margin-top: 6rpx;
  40. }
  41. .notice-item {
  42. display: flex;
  43. align-items: center;
  44. background-color: white;
  45. border-radius: 16rpx;
  46. padding: 30rpx 20rpx;
  47. margin-bottom: 20rpx;
  48. position: relative;
  49. box-shadow: 0 2rpx 10rpx rgba(0, 0, 0, 0.05);
  50. width: 90%;
  51. margin-left: auto;
  52. margin-right: auto;
  53. max-height: 200rpx;
  54. overflow: hidden;
  55. }
  56. .notice-left {
  57. flex-shrink: 0; /* 防止图标被压缩 */
  58. margin-right: 20rpx;
  59. }
  60. .notice-icon {
  61. width: 20px;
  62. height: 20px;
  63. }
  64. .notice-content {
  65. flex: 1; /* 占据剩余空间 */
  66. min-width: 0; /* 防止文字溢出 */
  67. overflow: hidden;
  68. padding-right: 80rpx;
  69. display: flex;
  70. flex-direction: column;
  71. max-height: 200rpx;
  72. padding-left: 20px;
  73. }
  74. .notice-title {
  75. font-size: 32rpx !important;
  76. font-weight: 500;
  77. margin-bottom: 10rpx;
  78. color: rgba(46, 48, 56, 1);
  79. white-space: nowrap;
  80. overflow: hidden;
  81. text-overflow: ellipsis;
  82. }
  83. .notice-desc {
  84. font-size: 30rpx !important;
  85. color: rgba(104, 108, 128, 1);
  86. overflow: hidden;
  87. text-overflow: ellipsis;
  88. display: -webkit-box;
  89. -webkit-line-clamp: 2;
  90. -webkit-box-orient: vertical;
  91. line-height: 1.4;
  92. max-height: 84rpx;
  93. }
  94. .notice-date {
  95. font-size: 24rpx;
  96. color: #999;
  97. position: absolute;
  98. top: 30rpx;
  99. right: 20rpx;
  100. }
  101. .notice-footer {
  102. text-align: center;
  103. font-size: 24rpx;
  104. color: #999;
  105. padding: 20rpx 0;
  106. margin-bottom: 20rpx;
  107. }
  108. /* 添加Tab样式 */
  109. .tab-container {
  110. display: flex;
  111. width: 100%;
  112. margin-top: 175rpx;
  113. justify-content: space-around;
  114. align-items: center;
  115. border-bottom: 1rpx solid #eee;
  116. background-color: rgba(46, 130, 255, 1);
  117. z-index: 999;
  118. }
  119. .tab-item {
  120. position: relative;
  121. flex: 1;
  122. height: 80rpx;
  123. display: flex;
  124. justify-content: center;
  125. align-items: center;
  126. padding: 0 20rpx;
  127. }
  128. .tab-text {
  129. text-align: center;
  130. font-size: 32rpx;
  131. font-weight: 400;
  132. color: white;
  133. z-index: 9;
  134. }
  135. .tab-right {
  136. position: absolute;
  137. right: 20rpx;
  138. display: flex;
  139. align-items: center;
  140. }
  141. .unread-badge {
  142. position: absolute;
  143. right: 80rpx;
  144. top: -7rpx;
  145. min-width: 32rpx;
  146. height: 32rpx;
  147. background: #ff4d4f;
  148. color: white;
  149. border-radius: 16rpx;
  150. font-size: 20rpx;
  151. text-align: center;
  152. line-height: 32rpx;
  153. padding: 0 6rpx;
  154. }
  155. .clean-icon {
  156. width: 36rpx;
  157. height: 36rpx;
  158. margin-left: 15rpx;
  159. background-color: rgba(46, 130, 255, 0.15);
  160. border-radius: 50%;
  161. padding: 10rpx;
  162. box-sizing: content-box;
  163. box-shadow: 0 0 8rpx rgba(0, 0, 0, 0.1);
  164. transition: all 0.3s ease;
  165. }
  166. .clean-icon:active {
  167. transform: scale(1.1);
  168. background-color: rgba(46, 130, 255, 0.25);
  169. }
  170. .tab-item.active {
  171. color: #1890ff;
  172. border-bottom: 4rpx solid #220af7;
  173. }
  174. /* 未读消息红点 */
  175. .unread-dot {
  176. position: absolute;
  177. top: 25rpx;
  178. right: 0rpx;
  179. width: 16rpx;
  180. height: 16rpx;
  181. background-color: #ff4d4f;
  182. border-radius: 50%;
  183. }
  184. .notice-time {
  185. font-size: 24rpx;
  186. color: #999;
  187. margin-bottom: 10rpx;
  188. }
  189. .notice-desc {
  190. font-size: 28rpx;
  191. color: #666;
  192. display: -webkit-box;
  193. -webkit-box-orient: vertical;
  194. -webkit-line-clamp: 2;
  195. overflow: hidden;
  196. }
  197. .empty-tip {
  198. text-align: center;
  199. padding: 100rpx 0;
  200. color: #999;
  201. font-size: 28rpx;
  202. }
  203. .tab-divider {
  204. width: 2rpx;
  205. height: 40rpx;
  206. background-color: rgba(247, 248, 249, 1);
  207. margin: 0 10rpx;
  208. }