baoxiuList.wxss 3.7 KB

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