homepage.wxss 7.4 KB

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