homepage.wxss 6.1 KB

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