tongzhiList.wxss 3.7 KB

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