tongzhiList.wxss 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232
  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: 120rpx;
  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. 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. }
  116. .tab-item {
  117. position: relative;
  118. flex: 1;
  119. height: 80rpx;
  120. display: flex;
  121. justify-content: center;
  122. align-items: center;
  123. padding: 0 20rpx;
  124. }
  125. .tab-text {
  126. text-align: center;
  127. font-size: 32rpx;
  128. font-weight: 400;
  129. color: white;
  130. }
  131. .tab-right {
  132. position: absolute;
  133. right: 20rpx;
  134. display: flex;
  135. align-items: center;
  136. }
  137. .unread-badge {
  138. position: absolute;
  139. right: 80rpx;
  140. top: -7rpx;
  141. min-width: 32rpx;
  142. height: 32rpx;
  143. background: #ff4d4f;
  144. color: white;
  145. border-radius: 16rpx;
  146. font-size: 20rpx;
  147. text-align: center;
  148. line-height: 32rpx;
  149. padding: 0 6rpx;
  150. }
  151. .clean-icon {
  152. width: 36rpx;
  153. height: 36rpx;
  154. margin-left: 15rpx;
  155. background-color: rgba(46, 130, 255, 0.15);
  156. border-radius: 50%;
  157. padding: 10rpx;
  158. box-sizing: content-box;
  159. box-shadow: 0 0 8rpx rgba(0, 0, 0, 0.1);
  160. transition: all 0.3s ease;
  161. }
  162. .clean-icon:active {
  163. transform: scale(1.1);
  164. background-color: rgba(46, 130, 255, 0.25);
  165. }
  166. .tab-item.active {
  167. color: #1890ff;
  168. border-bottom: 4rpx solid #220af7;
  169. }
  170. /* 未读消息红点 */
  171. .unread-dot {
  172. position: absolute;
  173. top: 25rpx;
  174. right: 0rpx;
  175. width: 16rpx;
  176. height: 16rpx;
  177. background-color: #ff4d4f;
  178. border-radius: 50%;
  179. }
  180. .notice-content {
  181. flex: 1;
  182. }
  183. .notice-time {
  184. font-size: 24rpx;
  185. color: #999;
  186. margin-bottom: 10rpx;
  187. }
  188. .notice-desc {
  189. font-size: 28rpx;
  190. color: #666;
  191. display: -webkit-box;
  192. -webkit-box-orient: vertical;
  193. -webkit-line-clamp: 2;
  194. overflow: hidden;
  195. }
  196. .empty-tip {
  197. text-align: center;
  198. padding: 100rpx 0;
  199. color: #999;
  200. font-size: 28rpx;
  201. }
  202. .tab-divider {
  203. width: 2rpx;
  204. height: 40rpx;
  205. background-color: rgba(247, 248, 249, 1);
  206. margin: 0 10rpx;
  207. }