tousujianyiList.wxss 3.6 KB

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