tousujianyiList.wxss 3.5 KB

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