index.wxss 4.1 KB

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