homepage.wxss 4.7 KB

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