index.wxss 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272
  1. /* pages/exhibition/activeDetails/index.wxss */
  2. @import "../../../utils/wxParse/wxParse.wxss";
  3. .detail-container {
  4. position: relative;
  5. min-height: 100vh;
  6. padding: 20rpx 20rpx 130rpx 20rpx;
  7. background: url('https://klmybwg.4dage.com/mini/wxImg/bg.png') no-repeat;
  8. background-size: cover;
  9. }
  10. .back-button {
  11. position: absolute;
  12. top: 20rpx;
  13. left: 20rpx;
  14. width: 80rpx;
  15. height: 80rpx;
  16. border-radius: 50%;
  17. z-index: 10;
  18. }
  19. .back-button image {
  20. width: 80rpx;
  21. height: 80rpx;
  22. }
  23. .loading-container {
  24. display: flex;
  25. justify-content: center;
  26. align-items: center;
  27. height: 400rpx;
  28. }
  29. .loading-text {
  30. font-size: 32rpx;
  31. color: #666;
  32. }
  33. .detail-content {
  34. margin-top: 80rpx;
  35. padding: 16rpx;
  36. border-radius: 20rpx;
  37. }
  38. .detail-content.notMargin {
  39. margin-top: 20rpx;
  40. }
  41. .detail-title {
  42. font-size: 48rpx;
  43. font-weight: bold;
  44. color: #584735;
  45. margin-bottom: 20rpx;
  46. line-height: 1.4;
  47. }
  48. .detail-time {
  49. font-size: 28rpx;
  50. color: #584735;
  51. margin-bottom: 20rpx;
  52. }
  53. .line {
  54. height: 4rpx;
  55. background: linear-gradient(90deg, rgba(91, 71, 46, 0.5) 0%, rgba(91, 71, 46, 0) 100%);
  56. margin-bottom: 20rpx;
  57. }
  58. .detail-text {
  59. font-size: 32rpx;
  60. line-height: 1.6;
  61. color: #584735;
  62. margin-top: 40rpx;
  63. }
  64. .error-state {
  65. display: flex;
  66. flex-direction: column;
  67. justify-content: center;
  68. align-items: center;
  69. height: 400rpx;
  70. }
  71. .error-text {
  72. font-size: 32rpx;
  73. color: #584735;
  74. margin-bottom: 40rpx;
  75. }
  76. .retry-button {
  77. padding: 20rpx 40rpx;
  78. background: #007bff;
  79. color: white;
  80. border: none;
  81. border-radius: 10rpx;
  82. font-size: 28rpx;
  83. }
  84. /* 展览特有按钮样式 */
  85. .exhibition-actions {
  86. margin-top: 60rpx;
  87. text-align: center;
  88. }
  89. .online-exhibition-btn {
  90. width: 560rpx;
  91. display: inline-flex;
  92. align-items: center;
  93. justify-content: center;
  94. padding: 24rpx 80rpx;
  95. background: linear-gradient(135deg, #B8956A 0%, #A0845A 100%);
  96. color: white;
  97. border-radius: 50rpx;
  98. font-size: 32rpx;
  99. font-weight: 500;
  100. box-shadow: 0 8rpx 24rpx rgba(184, 149, 106, 0.3);
  101. }
  102. .btn-icon {
  103. width: 40rpx;
  104. height: 40rpx;
  105. margin-right: 16rpx;
  106. }
  107. .active-preview-btn {
  108. height: 120rpx;
  109. position: fixed;
  110. bottom: 28rpx;
  111. left: 0;
  112. width: 100%;
  113. display: flex;
  114. justify-content: center;
  115. align-items: center;
  116. margin-top: 60rpx;
  117. }
  118. .preview-btn {
  119. width: 560rpx;
  120. height: 120rpx;
  121. background: #B1967B;
  122. display: flex;
  123. align-items: center;
  124. justify-content: center;
  125. color: #fff;
  126. border-radius: 100rpx;
  127. font-size: 32rpx;
  128. }
  129. /* 处理后的HTML内容样式 */
  130. .processed-html-content {
  131. margin-top: 20rpx;
  132. }
  133. .text-item {
  134. margin-bottom: 20rpx;
  135. line-height: 1.6;
  136. color: #584735;
  137. }
  138. .text-item.indent {
  139. text-indent: 4em;
  140. }
  141. .text-content {
  142. display: block;
  143. margin-bottom: 20rpx;
  144. line-height: 1.6;
  145. color: #584735;
  146. }
  147. .text-content.indent {
  148. text-indent: 1em;
  149. }
  150. .text-with-links {
  151. margin-bottom: 20rpx;
  152. line-height: 1.6;
  153. color: #584735;
  154. }
  155. .text-with-links.indent {
  156. text-indent: 1em;
  157. }
  158. .link-text {
  159. color: #007bff;
  160. text-decoration: underline;
  161. margin: 0 8rpx;
  162. }
  163. .link-text:active {
  164. color: #0056b3;
  165. }
  166. .rich-text-content {
  167. line-height: 1.6;
  168. color: #584735;
  169. }
  170. /* rich-text内部链接样式 */
  171. .rich-text-content > span[data-url] {
  172. color: #007bff !important;
  173. text-decoration: underline !important;
  174. cursor: pointer;
  175. }
  176. .rich-text-content > span[data-url]:active {
  177. color: #0056b3 !important;
  178. }
  179. .image-item {
  180. margin: 40rpx 0;
  181. text-align: center;
  182. }
  183. .content-image {
  184. max-width: 100%;
  185. border-radius: 16rpx;
  186. }
  187. .video-item {
  188. width: 100%;
  189. margin: 40rpx 0;
  190. text-align: center;
  191. }
  192. .content-video {
  193. width: 100%;
  194. height: 400rpx;
  195. }
  196. .audio-item {
  197. margin: 30rpx 0;
  198. padding: 30rpx;
  199. text-align: center;
  200. background: rgba(255, 255, 255, 0.1);
  201. border-radius: 16rpx;
  202. }
  203. .audio-title {
  204. font-size: 28rpx;
  205. color: #584735;
  206. margin-bottom: 20rpx;
  207. }
  208. .audio-placeholder {
  209. font-size: 24rpx;
  210. color: #888;
  211. padding: 20rpx;
  212. background: rgba(0, 0, 0, 0.05);
  213. border-radius: 8rpx;
  214. }
  215. /* 响应式处理 */
  216. @media (max-width: 768rpx) {
  217. .detail-title {
  218. font-size: 44rpx;
  219. }
  220. .detail-text {
  221. font-size: 30rpx;
  222. }
  223. .online-exhibition-btn {
  224. width: 480rpx;
  225. font-size: 30rpx;
  226. }
  227. .preview-btn {
  228. width: 480rpx;
  229. font-size: 30rpx;
  230. }
  231. }