homepage.wxss 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307
  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-card {
  36. position: relative;
  37. background-color: #ffffff;
  38. border-radius: 20rpx;
  39. overflow: hidden;
  40. padding-bottom: 30rpx;
  41. top: 70rpx;
  42. margin: 30rpx 30rpx 30rpx;
  43. }
  44. .user-info-section {
  45. padding: 10rpx;
  46. }
  47. .info-row {
  48. display: flex;
  49. align-items: center;
  50. margin-bottom: 15rpx;
  51. position: relative;
  52. }
  53. .info-row .label {
  54. color: rgba(163, 163, 163, 1);
  55. font-size: 28rpx;
  56. width: 140rpx;
  57. margin-right: 50rpx;
  58. font-family: 'PingFang', '苹方', sans-serif;
  59. }
  60. .info-row .value {
  61. font-family: 'PingFang', '苹方', sans-serif; /* 添加苹方字体 */
  62. color: rgba(46, 48, 56, 1);
  63. font-size: 28rpx;
  64. flex: 1;
  65. }
  66. .switch-btn {
  67. position: absolute;
  68. right: 0;
  69. background-color: rgba(45, 128, 254, 0.12);
  70. color: #0080ff;
  71. font-size: 26rpx;
  72. padding: 8rpx 20rpx;
  73. border-radius: 30rpx;
  74. }
  75. .amount-section {
  76. position: relative;
  77. padding: 20rpx 30rpx;
  78. display: flex;
  79. align-items: center;
  80. }
  81. .water-drop {
  82. width: 200rpx;
  83. position: absolute;
  84. left: -30rpx;
  85. bottom: 0rpx;
  86. }
  87. .amount-display {
  88. flex: 1;
  89. text-align: center;
  90. position: relative;
  91. z-index: 1;
  92. }
  93. .total-amount {
  94. font-size: 60rpx;
  95. color: #ff3b30;
  96. font-weight: bold;
  97. margin-bottom: 10rpx;
  98. }
  99. .amount-label {
  100. font-size: 24rpx;
  101. color: #666;
  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: 32rpx;
  116. color: #333;
  117. margin-bottom: 10rpx;
  118. }
  119. .detail-item .number.blue {
  120. color: #0080ff;
  121. }
  122. .detail-item .label {
  123. font-size: 24rpx;
  124. color: #666;
  125. }
  126. .detail-divider {
  127. width: 2rpx;
  128. height: 60rpx;
  129. background-color: #DDDDDD;
  130. margin: 0 10rpx;
  131. align-self: center;
  132. }
  133. .pay-btn {
  134. width: 80%;
  135. height: 80rpx;
  136. line-height: 80rpx;
  137. background-color: #0080ff;
  138. color: white;
  139. font-size: 32rpx;
  140. border-radius: 40rpx;
  141. margin: 30rpx auto 0;
  142. }
  143. .function-area {
  144. margin: 15rpx 30rpx 15rpx;
  145. background-color: #ffffff;
  146. border-radius: 20rpx;
  147. padding: 30rpx;
  148. box-shadow: 0 4rpx 20rpx rgba(0, 0, 0, 0.05);
  149. }
  150. .function-grid {
  151. display: flex;
  152. flex-wrap: wrap;
  153. justify-content: space-between;
  154. width: 100%;
  155. }
  156. .function-item {
  157. width: 25%;
  158. display: flex;
  159. flex-direction: column;
  160. align-items: center;
  161. margin-bottom: 20rpx;
  162. }
  163. .function-item image {
  164. width: 80rpx;
  165. height: 80rpx;
  166. margin-bottom: 10rpx;
  167. }
  168. .function-item text {
  169. font-size: 24rpx;
  170. color: #333;
  171. }
  172. .activity-area {
  173. margin: 0rpx 30rpx 0rpx;
  174. background-color: #ffffff;
  175. border-radius: 20rpx;
  176. padding: 30rpx;
  177. box-shadow: 0 4rpx 20rpx rgba(0, 0, 0, 0.05);
  178. }
  179. .area-header {
  180. display: flex;
  181. justify-content: space-between;
  182. align-items: center;
  183. margin-bottom: 20rpx;
  184. }
  185. .area-header .title {
  186. font-size: 32rpx;
  187. color: #333;
  188. font-weight: bold;
  189. }
  190. .area-header .more {
  191. font-size: 24rpx;
  192. color: #999;
  193. }
  194. .activity-item {
  195. display: flex;
  196. flex-direction: column;
  197. align-items: center;
  198. }
  199. .activity-image {
  200. width: 100%;
  201. height: 200rpx;
  202. border-radius: 10rpx;
  203. margin-bottom: 20rpx;
  204. }
  205. /* 卡片容器样式 */
  206. .cards-container {
  207. width: 90%;
  208. margin: 0 auto;
  209. position: relative;
  210. z-index: 100;
  211. margin-top: 40rpx;
  212. background-color: transparent;
  213. border-radius: 20rpx;
  214. overflow: visible;
  215. }
  216. /* 用户信息卡片样式 */
  217. .user-card {
  218. background-color: #FAFCFF;
  219. border-radius: 20rpx 20rpx 0 0;
  220. padding: 30rpx;
  221. position: relative;
  222. width: 100%;
  223. height: 220rpx;
  224. box-sizing: border-box;
  225. overflow: hidden;
  226. margin: 0;
  227. top: 0;
  228. border-bottom: none;
  229. }
  230. /* 票据式分割线 */
  231. .card-divider {
  232. position: relative;
  233. border-top: 0rpx dashed #CCCCCC;
  234. margin: 0 15rpx;
  235. background-color: transparent;
  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. }