index.wxss 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278
  1. /* 小程序首页样式 */
  2. .home-container {
  3. position: relative;
  4. height: 100vh;
  5. background: url('https://klmybwg.4dage.com/mini/wxImg/bg.png') no-repeat center top;
  6. overflow: hidden;
  7. }
  8. .all-content{
  9. position: absolute;
  10. top: 340rpx;
  11. width: 100vw;
  12. height: calc(100vh - 560rpx);
  13. padding-top: 40rpx;
  14. background: url('https://klmybwg.4dage.com/mini/wxImg/bg.png') no-repeat center top;
  15. background-size: 100% auto;
  16. overflow-y: auto;
  17. border-top-left-radius: 30rpx;
  18. border-top-right-radius: 30rpx;
  19. }
  20. .home-not-overflow {
  21. overflow: hidden;
  22. }
  23. /* 轮播图区域 */
  24. .carousel-section {
  25. width: 100%;
  26. }
  27. .nobanner-data{
  28. display: flex;
  29. justify-content: center;
  30. align-items: center;
  31. height: 100rpx;
  32. color: #999;
  33. }
  34. .carousel-swiper {
  35. height: 366rpx;
  36. }
  37. .carousel-img {
  38. width: 100%;
  39. height: 100%;
  40. }
  41. .carousel-swiper .wx-swiper-dots {
  42. position: absolute;
  43. bottom: 40rpx;
  44. }
  45. /* 功能区域 */
  46. .function-section {
  47. display: flex;
  48. justify-content: space-around;
  49. border-radius: 16rpx;
  50. margin: 0 30rpx 40rpx;
  51. }
  52. .function-item {
  53. display: flex;
  54. flex-direction: column;
  55. align-items: center;
  56. width: 18%;
  57. }
  58. .function-item-disabled {
  59. opacity: 0.5;
  60. }
  61. .function-icon {
  62. width: 100rpx;
  63. height: 100rpx;
  64. margin-bottom: 10rpx;
  65. }
  66. .function-icon-disabled {
  67. filter: grayscale(100%);
  68. }
  69. .function-text {
  70. font-size: 28rpx;
  71. color: #B1967B;
  72. }
  73. .function-text-disabled {
  74. color: #999;
  75. }
  76. /* 通用区块样式 */
  77. .section {
  78. margin: 0 30rpx 0;
  79. border-radius: 16rpx;
  80. padding: 8rpx 20rpx;
  81. }
  82. .section-header {
  83. display: flex;
  84. justify-content: space-between;
  85. align-items: center;
  86. margin-bottom: 30rpx;
  87. }
  88. .section-title {
  89. font-size: 40rpx;
  90. font-weight: bold;
  91. color: #584735;
  92. position: relative;
  93. padding-left: 20rpx;
  94. }
  95. .view-more {
  96. font-size: 28rpx;
  97. color: #79ACF9;
  98. }
  99. /* 空数据状态 */
  100. .empty-data {
  101. display: flex;
  102. justify-content: center;
  103. align-items: center;
  104. height: 200rpx;
  105. }
  106. .empty-text {
  107. font-size: 32rpx;
  108. color: #999;
  109. }
  110. /* 展览资讯 */
  111. .news-item {
  112. position: relative;
  113. margin-bottom: 20rpx;
  114. border-radius: 10rpx;
  115. height: 212rpx;
  116. overflow: hidden;
  117. }
  118. .news-img {
  119. width: 100%;
  120. height: 212rpx;
  121. }
  122. .news-content {
  123. width: 100%;
  124. height: 60rpx;
  125. display: flex;
  126. justify-content: center;
  127. align-items: center;
  128. opacity: 0.8;
  129. position: absolute;
  130. bottom: 0;
  131. background: linear-gradient(180deg, rgba(256, 256, 256, 0) 0%, rgba(0, 0, 0, 0.7) 100%);
  132. }
  133. .news-title {
  134. font-family: "heavy";
  135. font-size: 32rpx;
  136. color: #fff;
  137. font-weight: bold;
  138. white-space: nowrap;
  139. overflow: hidden;
  140. text-overflow: ellipsis;
  141. padding: 0 16rpx;
  142. }
  143. .news-desc {
  144. position: absolute;
  145. bottom: 16rpx;
  146. right: 32rpx;
  147. font-size: 50rpx;
  148. color: #fff;
  149. /* transform: rotate(-90deg) scale(1, -1); */
  150. }
  151. /* 滚动容器 */
  152. .scroll-container2 {
  153. white-space: nowrap;
  154. }
  155. .scroll-wrapper2 {
  156. display: inline-flex;
  157. padding-bottom: 10rpx;
  158. }
  159. .scroll-wrapper {
  160. padding-bottom: 10rpx;
  161. }
  162. /* 展览项 */
  163. .exhibition-item {
  164. position: relative;
  165. flex: 0 0 auto;
  166. width: 650rpx;
  167. height: 176rpx;
  168. border-radius: 16rpx;
  169. overflow: hidden;
  170. margin-bottom: 20rpx;
  171. }
  172. .exhibition-item:last-child {
  173. margin-right: 0;
  174. }
  175. .exhibition-img {
  176. width: 100%;
  177. height: 412rpx;
  178. transform: translateY(-25%)
  179. }
  180. .exhibition-info {
  181. width: 100%;
  182. height: 60rpx;
  183. display: flex;
  184. justify-content: center;
  185. align-items: center;
  186. opacity: 0.8;
  187. position: absolute;
  188. bottom: 0;
  189. background: #B1967B;
  190. }
  191. .exhibition-title {
  192. font-family: "heavy";
  193. font-size: 32rpx;
  194. color: #fff;
  195. font-weight: bold;
  196. white-space: nowrap;
  197. overflow: hidden;
  198. text-overflow: ellipsis;
  199. padding: 0 16rpx;
  200. }
  201. /* 活动项 */
  202. .activity-item {
  203. flex: 0 0 auto;
  204. width: 216rpx;
  205. margin-right: 20rpx;
  206. border-radius: 16rpx;
  207. //overflow: hidden;
  208. }
  209. .activity-item:last-child {
  210. margin-right: 0;
  211. }
  212. .active-top {
  213. position: relative;
  214. width: 216rpx;
  215. height: 248rpx;
  216. border-radius: 16rpx;
  217. overflow: hidden;
  218. }
  219. .active-go {
  220. width: 32rpx;
  221. height: 32rpx;
  222. position: absolute;
  223. bottom: 8rpx;
  224. right: 16rpx;
  225. }
  226. .activity-img {
  227. width: 216rpx;
  228. height: 248rpx;
  229. }
  230. .activity-info {
  231. padding: 16rpx 0;
  232. width: 216rpx;
  233. font-size: 24rpx;
  234. white-space: nowrap;
  235. overflow: hidden;
  236. text-overflow: ellipsis;
  237. color: #584735;
  238. }
  239. .activity-title {
  240. width: 216rpx;
  241. font-size: 24rpx;
  242. white-space: nowrap;
  243. overflow: hidden;
  244. text-overflow: ellipsis;
  245. color: #584735;
  246. }