tousujianyiList.wxss 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227
  1. .jfcontainer {
  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: 88rpx;
  20. }
  21. .back-icon {
  22. position: fixed;
  23. top: 115rpx;
  24. left: 30rpx;
  25. z-index: 999;
  26. width: 40rpx;
  27. height: 40rpx;
  28. }
  29. .nav-title {
  30. flex: 1;
  31. text-align: center;
  32. font-size: 34rpx;
  33. color: #fff;
  34. }
  35. .notice-list {
  36. width: 100%;
  37. /* height: calc(100vh - 120rpx); */
  38. padding: 20rpx;
  39. padding-top: 190rpx;
  40. box-sizing: border-box;
  41. }
  42. .notice-item {
  43. position: relative;
  44. background: #fff;
  45. border-radius: 12rpx;
  46. padding: 30rpx;
  47. margin-bottom: 20rpx;
  48. display: flex;
  49. flex-direction: column;
  50. box-shadow: 0 2rpx 10rpx rgba(0, 0, 0, 0.05);
  51. }
  52. .notice-content {
  53. flex: 1;
  54. margin-right: 20rpx;
  55. margin-bottom: 16rpx;
  56. width: 90%;
  57. }
  58. .notice-title {
  59. font-size: 34rpx;
  60. font-weight: 90%;
  61. margin-bottom: 16rpx;
  62. color: #333;
  63. height: 96rpx;
  64. line-height: 48rpx;
  65. overflow: hidden;
  66. text-overflow: ellipsis;
  67. display: -webkit-box;
  68. -webkit-line-clamp: 2;
  69. -webkit-box-orient: vertical;
  70. }
  71. .notice-info {
  72. display: flex;
  73. justify-content: space-between;
  74. font-size: 30rpx;
  75. color: rgba(100, 108, 128, 1);
  76. background-color: rgba(250, 250, 250, 1);
  77. padding: 12rpx 16rpx;
  78. border-radius: 8rpx;
  79. margin-top: 10rpx;
  80. width: 100%;
  81. }
  82. .preview {
  83. display: flex;
  84. flex-direction: column;
  85. align-items: center;
  86. position: absolute;
  87. right: 20rpx;
  88. top: 30rpx;
  89. width: 12%;
  90. }
  91. .preview-icon {
  92. width: 50rpx;
  93. height: 50rpx;
  94. }
  95. .preview-text {
  96. font-size: 24rpx;
  97. color: #666;
  98. margin-top: 8rpx;
  99. }
  100. .replied-stamp {
  101. position: absolute;
  102. width: 220rpx;
  103. height: 220rpx;
  104. right: 70rpx;
  105. top: 50%;
  106. transform: translateY(-50%);
  107. opacity: 0.8;
  108. }
  109. .add-button {
  110. position: fixed;
  111. right: 40rpx;
  112. bottom: 40rpx;
  113. width: 200rpx;
  114. height: 200rpx;
  115. border-radius: 50%;
  116. display: flex;
  117. align-items: center;
  118. justify-content: center;
  119. }
  120. .add-button image {
  121. width: 120rpx;
  122. height: 120rpx;
  123. }
  124. .image-container {
  125. display: flex;
  126. flex-wrap: wrap;
  127. padding: 10rpx;
  128. }
  129. .preview-image {
  130. width: 220rpx;
  131. height: 220rpx;
  132. margin: 10rpx;
  133. border-radius: 8rpx;
  134. }
  135. .custom-preview-container {
  136. position: fixed;
  137. top: 0;
  138. left: 0;
  139. width: 100%;
  140. height: 100%;
  141. background-color: rgba(0, 0, 0, 0.5); /* 半透明背景 */
  142. z-index: 999;
  143. display: flex;
  144. justify-content: center;
  145. align-items: center;
  146. }
  147. .custom-preview-content {
  148. width: 90%;
  149. height: 70%;
  150. position: relative;
  151. }
  152. .preview-image {
  153. width: 100%;
  154. height: 100%;
  155. background-color: transparent;
  156. }
  157. .preview-controls {
  158. position: absolute;
  159. top: 50%;
  160. width: 100%;
  161. display: flex;
  162. justify-content: space-between;
  163. transform: translateY(-50%);
  164. }
  165. .preview-arrow {
  166. width: 80rpx;
  167. height: 80rpx;
  168. background-color: rgba(0, 0, 0, 0.3);
  169. border-radius: 50%;
  170. display: flex;
  171. justify-content: center;
  172. align-items: center;
  173. }
  174. .arrow-text {
  175. color: white;
  176. font-size: 36rpx;
  177. }
  178. .preview-counter {
  179. position: absolute;
  180. bottom: -60rpx;
  181. left: 50%;
  182. transform: translateX(-50%);
  183. color: white;
  184. font-size: 28rpx;
  185. background-color: rgba(0, 0, 0, 0.5);
  186. padding: 10rpx 20rpx;
  187. border-radius: 30rpx;
  188. }
  189. .close-button {
  190. position: absolute;
  191. top: -50rpx;
  192. right: 0;
  193. width: 60rpx;
  194. height: 60rpx;
  195. background-color: rgba(0, 0, 0, 0.5);
  196. color: white;
  197. border-radius: 50%;
  198. display: flex;
  199. justify-content: center;
  200. align-items: center;
  201. font-size: 40rpx;
  202. }