homepage.wxss 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306
  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-color: #0080ff;
  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: #f0f8ff;
  70. color: #0080ff;
  71. font-size: 24rpx;
  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: 13rpx;
  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. }
  155. .function-item {
  156. width: 20%;
  157. display: flex;
  158. flex-direction: column;
  159. align-items: center;
  160. margin-bottom: 20rpx;
  161. }
  162. .function-item image {
  163. width: 80rpx;
  164. height: 80rpx;
  165. margin-bottom: 10rpx;
  166. }
  167. .function-item text {
  168. font-size: 24rpx;
  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: 10;
  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. height: 220rpx;
  223. box-sizing: border-box;
  224. overflow: hidden;
  225. margin: 0;
  226. top: 0;
  227. border-bottom: none;
  228. }
  229. /* 票据式分割线 */
  230. .card-divider {
  231. position: relative;
  232. border-top: 0rpx dashed #CCCCCC;
  233. margin: 0 15rpx;
  234. background-color: transparent;
  235. }
  236. /* 左侧半圆挖孔 */
  237. .card-divider::before {
  238. content: "";
  239. position: absolute;
  240. left: -30rpx;
  241. top: -15rpx;
  242. width: 30rpx;
  243. height: 30rpx;
  244. background-color: #0080ff;
  245. border-radius: 50%;
  246. z-index: 1;
  247. }
  248. /* 右侧半圆挖孔 */
  249. .card-divider::after {
  250. content: "";
  251. position: absolute;
  252. right: -30rpx;
  253. top: -15rpx;
  254. width: 30rpx;
  255. height: 30rpx;
  256. background-color: #0080ff;
  257. border-radius: 50%;
  258. z-index: 1;
  259. }
  260. /* 水费金额卡片样式 */
  261. .amount-card {
  262. background-color: #FAFCFF;
  263. border-radius: 0 0 20rpx 20rpx;
  264. padding: 30rpx;
  265. position: relative;
  266. width: 100%;
  267. box-sizing: border-box;
  268. border-top: none;
  269. }