homepage.wxss 6.3 KB

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