usernotice.wxss 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195
  1. .tzxqcontainer {
  2. position: relative;
  3. width: 100%;
  4. min-height: 100vh;
  5. display: flex;
  6. flex-direction: column;
  7. box-sizing: border-box;
  8. }
  9. /* 背景图片样式 */
  10. .header {
  11. position: absolute;
  12. top: 0;
  13. left: 0;
  14. width: 100%;
  15. z-index: -1; /* 负值z-index确保在最底层 */
  16. }
  17. .background {
  18. width: 100%;
  19. height: auto;
  20. }
  21. .custom-nav {
  22. display: flex;
  23. align-items: center;
  24. height: 90rpx;
  25. margin-bottom: 20rpx;
  26. position: fixed;
  27. top: 0;
  28. left: 0;
  29. right: 0;
  30. z-index: 1000;
  31. padding: 0 20rpx;
  32. padding-top: 44px; /* 适配iPhone状态栏 */
  33. }
  34. .back-icon {
  35. position: fixed;
  36. top: 110rpx;
  37. left: 30rpx;
  38. z-index: 999;
  39. width: 40rpx;
  40. height: 40rpx;
  41. }
  42. .nav-title {
  43. flex: 1;
  44. text-align: center;
  45. font-size: 34rpx;
  46. color: #fff;
  47. }
  48. /* 滚动区域样式 */
  49. .notice-scroll-view {
  50. height: calc(100vh - 180rpx - 44px); /* 减去导航栏高度和状态栏高度 */
  51. width: 100%;
  52. position: relative;
  53. z-index: 1;
  54. margin-top: calc(90rpx + 44px);
  55. }
  56. /* 通知详情卡片容器样式 */
  57. .notice-detail-wrapper {
  58. padding: 30rpx;
  59. box-sizing: border-box;
  60. width: 100%;
  61. }
  62. /* 通知详情卡片样式 */
  63. .notice-detail {
  64. background-color: #fff;
  65. border-radius: 20rpx;
  66. padding: 40rpx 30rpx;
  67. box-shadow: 0 4rpx 20rpx rgba(0, 0, 0, 0.1);
  68. width: 100%;
  69. box-sizing: border-box;
  70. }
  71. /* 通知标题样式 */
  72. .notice-title {
  73. font-size: 36rpx;
  74. font-weight: bold;
  75. text-align: center;
  76. margin-bottom: 30rpx;
  77. }
  78. /* 标题下方分隔线 */
  79. .title-divider {
  80. height: 2rpx;
  81. background-color: #eee;
  82. margin: 20rpx 0 30rpx;
  83. }
  84. /* 通知内容样式 */
  85. .notice-content {
  86. font-size: 28rpx;
  87. line-height: 1.8;
  88. color: #333;
  89. margin-bottom: 40rpx;
  90. overflow-x: hidden;
  91. }
  92. /* rich-text内容样式控制 */
  93. .notice-content rich-text {
  94. width: 100%;
  95. overflow-x: hidden;
  96. word-break: break-word;
  97. }
  98. .notice-content rich-text .rich-content {
  99. width: 100%;
  100. box-sizing: border-box;
  101. }
  102. /* 控制rich-text中的图片大小 */
  103. .notice-content rich-text image {
  104. max-width: 100% !important;
  105. height: auto !important;
  106. }
  107. /* 控制rich-text中的文本样式 */
  108. .notice-content rich-text p,
  109. .notice-content rich-text div,
  110. .notice-content rich-text span {
  111. max-width: 100% !important;
  112. box-sizing: border-box;
  113. word-wrap: break-word;
  114. margin: inherit;
  115. padding: inherit;
  116. }
  117. /* 电话号码样式 - 针对 rich-text 内容 */
  118. .phone-number,
  119. .notice-content rich-text span[data-type="phone"] {
  120. color: #007AFF !important;
  121. text-decoration: none !important;
  122. display: inline !important;
  123. }
  124. /* 通知底部落款样式 */
  125. .notice-footer {
  126. text-align: right;
  127. font-size: 26rpx;
  128. color: #666;
  129. margin-top: 30rpx;
  130. }
  131. .notice-signature {
  132. margin-bottom: 10rpx;
  133. }
  134. .notice-footer-date {
  135. color: #999;
  136. }
  137. /* 电话号码样式 */
  138. .phone-number:active {
  139. opacity: 0.7;
  140. }
  141. /* 适配小屏设备 */
  142. @media screen and (max-width: 320px) {
  143. .notice-title {
  144. font-size: 36rpx;
  145. }
  146. .notice-content {
  147. font-size: 30rpx;
  148. }
  149. .notice-detail {
  150. padding: 30rpx 20rpx;
  151. }
  152. }
  153. /* 适配大屏设备 */
  154. @media screen and (min-width: 768px) {
  155. .notice-detail-wrapper {
  156. width: 90%;
  157. margin-left: auto;
  158. margin-right: auto;
  159. }
  160. }
  161. /* 电话提示样式 */
  162. .phone-hint {
  163. text-align: center;
  164. font-size: 24rpx;
  165. color: #666;
  166. margin-top: 20rpx;
  167. padding: 10rpx;
  168. background-color: #f8f8f8;
  169. border-radius: 8rpx;
  170. }