homepage.wxss 7.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431
  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: 100rpx;
  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. position: relative;
  162. }
  163. .function-item image {
  164. width: 64rpx;
  165. height: 64rpx;
  166. margin-bottom: 10rpx;
  167. }
  168. .function-item text {
  169. font-size: 28rpx;
  170. color: #333;
  171. }
  172. .activity-area {
  173. margin: 0rpx 30rpx 0rpx;
  174. background-color: #ffffff;
  175. border-radius: 20rpx;
  176. margin-top: -30rpx;
  177. padding: 30rpx;
  178. box-shadow: 0 4rpx 20rpx rgba(0, 0, 0, 0.05);
  179. }
  180. .area-header {
  181. display: flex;
  182. justify-content: space-between;
  183. align-items: center;
  184. margin-bottom: 20rpx;
  185. }
  186. .area-header .title {
  187. font-size: 32rpx;
  188. color: #333;
  189. font-weight: bold;
  190. }
  191. .area-header .more {
  192. font-size: 24rpx;
  193. color: #999;
  194. }
  195. .activity-item {
  196. display: flex;
  197. flex-direction: column;
  198. align-items: center;
  199. }
  200. .activity-image {
  201. width: 100%;
  202. height: 200rpx;
  203. border-radius: 10rpx;
  204. margin-bottom: 20rpx;
  205. }
  206. /* 卡片容器样式 */
  207. .cards-container {
  208. width: 90%;
  209. margin: 0 auto;
  210. position: relative;
  211. z-index: 100;
  212. margin-top: 40rpx;
  213. background-color: transparent;
  214. border-radius: 20rpx;
  215. overflow: visible;
  216. }
  217. /* 用户信息卡片样式 */
  218. .user-card {
  219. background-color: #FAFCFF;
  220. border-radius: 20rpx 20rpx 0 0;
  221. padding: 30rpx;
  222. position: relative;
  223. width: 100%;
  224. min-height: 220rpx;
  225. height: auto;
  226. box-sizing: border-box;
  227. overflow: visible;
  228. margin: 0;
  229. top: 0;
  230. border-bottom: none;
  231. }
  232. /* 票据式分割线 */
  233. .card-divider {
  234. position: relative;
  235. margin: 0 15rpx;
  236. border: 2rpx dashed rgba(229, 229, 229, 1);
  237. background-color: white;
  238. z-index: 1;
  239. }
  240. /* 左侧半圆挖孔 */
  241. .card-divider::before {
  242. content: "";
  243. position: absolute;
  244. left: -30rpx;
  245. top: -15rpx;
  246. width: 30rpx;
  247. height: 30rpx;
  248. background-color: #0080ff;
  249. border-radius: 50%;
  250. z-index: 1;
  251. }
  252. /* 右侧半圆挖孔 */
  253. .card-divider::after {
  254. content: "";
  255. position: absolute;
  256. right: -30rpx;
  257. top: -15rpx;
  258. width: 30rpx;
  259. height: 30rpx;
  260. background-color: #0080ff;
  261. border-radius: 50%;
  262. z-index: 1;
  263. }
  264. /* 水费金额卡片样式 */
  265. .amount-card {
  266. border-radius: 0 0 20rpx 20rpx;
  267. padding: 30rpx;
  268. position: relative;
  269. width: 100%;
  270. box-sizing: border-box;
  271. border-top: none;
  272. background: linear-gradient(135deg, rgba(245, 249, 255, 1) 0%, rgba(252, 253, 255, 1) 50.4%, rgba(242, 247, 255, 1) 100%);
  273. box-shadow: 0px 2px 4px rgba(177, 191, 215, 0.6);
  274. }
  275. /* 通知轮播样式 */
  276. .notice-bar {
  277. display: flex;
  278. align-items: center;
  279. padding: 0 20rpx;
  280. border-radius: 30rpx;
  281. margin: 20rpx 0 10rpx;
  282. height: 50rpx;
  283. overflow: hidden;
  284. }
  285. .notice-icon {
  286. display: flex;
  287. align-items: center;
  288. flex-shrink: 0;
  289. margin-right: 10rpx;
  290. width: 30rpx;
  291. height: 40rpx;
  292. }
  293. .notice-icon image {
  294. width: 32rpx;
  295. height: 32rpx;
  296. }
  297. .notice-icon text {
  298. font-size: 26rpx;
  299. color: #333;
  300. white-space: nowrap;
  301. }
  302. .notice-swiper-container {
  303. flex: 1;
  304. height: 50rpx;
  305. overflow: hidden;
  306. position: relative;
  307. }
  308. .notice-content {
  309. display: flex;
  310. align-items: center;
  311. font-size: 28rpx;
  312. color: rgba(104, 108, 128, 1);
  313. line-height: 50rpx;
  314. white-space: nowrap;
  315. transform: translateX(100%);
  316. }
  317. .notice-content.scrolling {
  318. animation: marquee linear forwards;
  319. }
  320. @keyframes marquee {
  321. from {
  322. transform: translateX(120%);
  323. }
  324. to {
  325. transform: translateX(-100%);
  326. }
  327. }
  328. .notice-title {
  329. color: rgba(104, 108, 128, 1);
  330. margin-right: 10rpx;
  331. }
  332. .address-row {
  333. align-items: flex-start !important;
  334. min-height: 20rpx;
  335. margin-bottom: 10rpx;
  336. }
  337. .address-value {
  338. flex: 1;
  339. word-break: break-all;
  340. white-space: normal;
  341. line-height: 1.4;
  342. padding-right: 10rpx;
  343. font-size: 28rpx;
  344. }
  345. /* 下拉刷新提示样式 */
  346. .refresh-tip {
  347. text-align: center;
  348. padding: 10px 0;
  349. color: #666;
  350. font-size: 14px;
  351. }
  352. .pay-btn-hover {
  353. transform: scale(0.95);
  354. opacity: 0.9;
  355. background-color: #0080b0; /* 可以使用稍深一点的颜色 */
  356. box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  357. }
  358. /* 消息通知图标的红点样式 */
  359. .notice-badge {
  360. position: absolute;
  361. min-width: 32rpx;
  362. height: 32rpx;
  363. line-height: 32rpx;
  364. border-radius: 16rpx;
  365. background-color: #ff4d4f;
  366. color: white;
  367. font-size: 20rpx;
  368. text-align: center;
  369. box-sizing: border-box;
  370. z-index: 99;
  371. right: 30rpx;
  372. top: -5rpx;
  373. padding: 0 6rpx;
  374. }
  375. /* 针对超过99的情况显示99+ */
  376. .notice-badge-large {
  377. min-width: 48rpx;
  378. }