homepage.wxss 6.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382
  1. .container1 {
  2. display: flex;
  3. flex-direction: column;
  4. background-color: #f5f5f5;
  5. min-height: 100vh;
  6. padding-bottom: 30rpx;
  7. }
  8. .logo {
  9. position: absolute;
  10. bottom: 80rpx;
  11. width: 280rpx;
  12. height: 100rpx;
  13. top: 60rpx;
  14. z-index: 2;
  15. }
  16. .header {
  17. position: relative;
  18. width: 100%;
  19. height: 180rpx;
  20. }
  21. .header .background {
  22. position: absolute;
  23. top: 0;
  24. left: 0;
  25. width: 100%;
  26. height: 100%;
  27. background: linear-gradient(180deg, rgba(46, 130, 255, 1) 0%, rgba(46, 130, 255, 1) 84.9%, rgba(46, 130, 255, 0) 100%);
  28. }
  29. .header .logo {
  30. position: relative;
  31. height: 80rpx;
  32. margin: 50rpx 0 0 30rpx;
  33. z-index: 1;
  34. }
  35. .user-info-section {
  36. padding: 10rpx;
  37. display: flex;
  38. flex-direction: column;
  39. }
  40. .info-row {
  41. display: flex;
  42. align-items: center;
  43. margin-bottom: 15rpx;
  44. position: relative;
  45. }
  46. .info-row .label {
  47. color: rgba(163, 163, 163, 1);
  48. font-size: 28rpx;
  49. width: 140rpx;
  50. margin-right: 50rpx;
  51. font-family: 'PingFang', '苹方', sans-serif;
  52. }
  53. .info-row .value {
  54. font-family: 'PingFang', '苹方', sans-serif; /* 添加苹方字体 */
  55. color: rgba(46, 48, 56, 1);
  56. font-size: 28rpx;
  57. flex: 1;
  58. }
  59. .switch-btn {
  60. position: absolute;
  61. right: 0;
  62. background-color: rgba(45, 128, 254, 0.12);
  63. color: #0080ff;
  64. font-size: 26rpx;
  65. padding: 8rpx 20rpx;
  66. border-radius: 30rpx;
  67. }
  68. .amount-section {
  69. position: relative;
  70. padding: 20rpx 30rpx;
  71. display: flex;
  72. align-items: center;
  73. }
  74. .water-drop {
  75. width: 200rpx;
  76. position: absolute;
  77. left: -30rpx;
  78. bottom: 0rpx;
  79. }
  80. .amount-display {
  81. flex: 1;
  82. text-align: center;
  83. position: relative;
  84. z-index: 1;
  85. }
  86. .total-amount {
  87. font-size: 60rpx;
  88. color: #ff3b30;
  89. font-weight: bold;
  90. margin-bottom: 10rpx;
  91. }
  92. .amount-label {
  93. font-size: 24rpx;
  94. color: #666;
  95. margin-bottom: 30rpx;
  96. }
  97. .amount-details {
  98. display: flex;
  99. justify-content: space-around;
  100. align-items: center;
  101. margin-top: 20rpx;
  102. }
  103. .detail-item {
  104. text-align: center;
  105. }
  106. .detail-item .number {
  107. display: block;
  108. font-size: 32rpx;
  109. color: #333;
  110. margin-bottom: 10rpx;
  111. }
  112. .detail-item .number.blue {
  113. color: #0080ff;
  114. }
  115. .detail-item .label {
  116. font-size: 24rpx;
  117. color: #666;
  118. }
  119. .detail-divider {
  120. width: 2rpx;
  121. height: 60rpx;
  122. background-color: #DDDDDD;
  123. margin: 0 10rpx;
  124. align-self: center;
  125. }
  126. .pay-btn {
  127. width: 80%;
  128. height: 80rpx;
  129. line-height: 80rpx;
  130. background-color: #0080ff;
  131. color: white;
  132. font-size: 32rpx;
  133. border-radius: 40rpx;
  134. margin: 30rpx auto 0;
  135. }
  136. .function-area {
  137. margin: 15rpx 30rpx 15rpx;
  138. background-color: #ffffff;
  139. border-radius: 20rpx;
  140. padding: 30rpx;
  141. box-shadow: 0 4rpx 20rpx rgba(0, 0, 0, 0.05);
  142. }
  143. .function-grid {
  144. display: flex;
  145. flex-wrap: wrap;
  146. width: 100%;
  147. }
  148. .function-item {
  149. width: 25%;
  150. display: flex;
  151. flex-direction: column;
  152. align-items: center;
  153. margin-bottom: 20rpx;
  154. }
  155. .function-item image {
  156. width: 80rpx;
  157. height: 80rpx;
  158. margin-bottom: 10rpx;
  159. }
  160. .function-item text {
  161. font-size: 24rpx;
  162. color: #333;
  163. }
  164. .activity-area {
  165. margin: 0rpx 30rpx 0rpx;
  166. background-color: #ffffff;
  167. border-radius: 20rpx;
  168. padding: 30rpx;
  169. box-shadow: 0 4rpx 20rpx rgba(0, 0, 0, 0.05);
  170. }
  171. .area-header {
  172. display: flex;
  173. justify-content: space-between;
  174. align-items: center;
  175. margin-bottom: 20rpx;
  176. }
  177. .area-header .title {
  178. font-size: 32rpx;
  179. color: #333;
  180. font-weight: bold;
  181. }
  182. .area-header .more {
  183. font-size: 24rpx;
  184. color: #999;
  185. }
  186. .activity-item {
  187. display: flex;
  188. flex-direction: column;
  189. align-items: center;
  190. }
  191. .activity-image {
  192. width: 100%;
  193. height: 200rpx;
  194. border-radius: 10rpx;
  195. margin-bottom: 20rpx;
  196. }
  197. /* 卡片容器样式 */
  198. .cards-container {
  199. width: 90%;
  200. margin: 0 auto;
  201. position: relative;
  202. z-index: 100;
  203. margin-top: 40rpx;
  204. background-color: transparent;
  205. border-radius: 20rpx;
  206. overflow: visible;
  207. }
  208. /* 用户信息卡片样式 */
  209. .user-card {
  210. background-color: #FAFCFF;
  211. border-radius: 20rpx 20rpx 0 0;
  212. padding: 30rpx;
  213. position: relative;
  214. width: 100%;
  215. min-height: 220rpx;
  216. height: auto;
  217. box-sizing: border-box;
  218. overflow: visible;
  219. margin: 0;
  220. top: 0;
  221. border-bottom: none;
  222. }
  223. /* 票据式分割线 */
  224. .card-divider {
  225. position: relative;
  226. border-top: 0rpx dashed #CCCCCC;
  227. margin: 0 15rpx;
  228. background-color: transparent;
  229. }
  230. /* 左侧半圆挖孔 */
  231. .card-divider::before {
  232. content: "";
  233. position: absolute;
  234. left: -30rpx;
  235. top: -15rpx;
  236. width: 30rpx;
  237. height: 30rpx;
  238. background-color: #0080ff;
  239. border-radius: 50%;
  240. z-index: 1;
  241. }
  242. /* 右侧半圆挖孔 */
  243. .card-divider::after {
  244. content: "";
  245. position: absolute;
  246. right: -30rpx;
  247. top: -15rpx;
  248. width: 30rpx;
  249. height: 30rpx;
  250. background-color: #0080ff;
  251. border-radius: 50%;
  252. z-index: 1;
  253. }
  254. /* 水费金额卡片样式 */
  255. .amount-card {
  256. background-color: #FAFCFF;
  257. border-radius: 0 0 20rpx 20rpx;
  258. padding: 30rpx;
  259. position: relative;
  260. width: 100%;
  261. box-sizing: border-box;
  262. border-top: none;
  263. }
  264. /* 通知轮播样式 */
  265. .notice-bar {
  266. display: flex;
  267. align-items: center;
  268. padding: 0 20rpx;
  269. border-radius: 30rpx;
  270. margin: 20rpx 0 10rpx;
  271. height: 50rpx;
  272. overflow: hidden;
  273. }
  274. .notice-icon {
  275. display: flex;
  276. align-items: center;
  277. flex-shrink: 0;
  278. margin-right: 10rpx;
  279. width: 30rpx;
  280. height: 40rpx;
  281. }
  282. .notice-icon image {
  283. width: 32rpx;
  284. height: 32rpx;
  285. }
  286. .notice-icon text {
  287. font-size: 26rpx;
  288. color: #333;
  289. white-space: nowrap;
  290. }
  291. .notice-swiper-container {
  292. flex: 1;
  293. height: 50rpx;
  294. overflow: hidden;
  295. position: relative;
  296. }
  297. .notice-content {
  298. display: flex;
  299. align-items: center;
  300. font-size: 28rpx;
  301. color: rgba(104, 108, 128, 1);
  302. line-height: 50rpx;
  303. white-space: nowrap;
  304. position: absolute;
  305. left: 0;
  306. transform: translateX(100%);
  307. }
  308. .notice-content.scrolling {
  309. animation: marquee linear forwards;
  310. }
  311. @keyframes marquee {
  312. from {
  313. transform: translateX(100%);
  314. }
  315. to {
  316. transform: translateX(-100%);
  317. }
  318. }
  319. .notice-title {
  320. color: rgba(104, 108, 128, 1);
  321. margin-right: 10rpx;
  322. }
  323. .address-row {
  324. align-items: flex-start !important;
  325. min-height: 20rpx;
  326. margin-bottom: 10rpx;
  327. }
  328. .address-value {
  329. flex: 1;
  330. word-break: break-all;
  331. white-space: normal;
  332. line-height: 1.4;
  333. padding-right: 10rpx;
  334. font-size: 28rpx;
  335. }