zhangdanlist.wxss 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296
  1. .container {
  2. display: flex;
  3. flex-direction: column;
  4. background-color: #f5f5f5;
  5. min-height: 100vh;
  6. padding-bottom: 30rpx;
  7. padding: 0;
  8. box-sizing: border-box;
  9. width: 100%;
  10. }
  11. .header {
  12. position: fixed;
  13. top: 0;
  14. left: 0;
  15. width: 100%;
  16. height: 300rpx;
  17. z-index: 5;
  18. }
  19. .header .background {
  20. position: absolute;
  21. top: 0;
  22. left: 0;
  23. width: 100%;
  24. height: 100%;
  25. background: linear-gradient(180deg, rgba(46, 130, 255, 1) 0%, rgba(46, 130, 255, 1) 84.9%, rgba(46, 130, 255, 0) 100%);
  26. }
  27. /* 固定返回按钮样式 */
  28. .fixed-back {
  29. position: fixed;
  30. top: 50rpx;
  31. left: 30rpx;
  32. z-index: 999;
  33. border-radius: 50%;
  34. width: 50rpx;
  35. height: 200rpx;
  36. display: flex;
  37. align-items: center;
  38. color: rgba(255, 255, 255, 1);
  39. }
  40. .header-title {
  41. text-align: center;
  42. font-size: 36rpx;
  43. margin-bottom: 20rpx;
  44. }
  45. .user-info-container {
  46. position: fixed;
  47. top: 200rpx;
  48. left: 0;
  49. width: 100%;
  50. padding: 0 30rpx;
  51. box-sizing: border-box;
  52. z-index: 10;
  53. }
  54. .user-info {
  55. background-color: transparent;
  56. color: white;
  57. padding: 20rpx 20rpx;
  58. width: 100%;
  59. }
  60. .user-name {
  61. font-size: 40rpx;
  62. font-weight: bold;
  63. margin-bottom: 20rpx;
  64. }
  65. .user-id, .user-address {
  66. display: flex;
  67. align-items: center;
  68. font-size: 28rpx;
  69. margin-bottom: 10rpx;
  70. color: rgba(255, 255, 255, 0.9);
  71. }
  72. .id-icon, .address-icon {
  73. width: 30rpx;
  74. height: 30rpx;
  75. margin-right: 10rpx;
  76. }
  77. .bill-list-container {
  78. flex: 1;
  79. padding: 20rpx;
  80. margin-top: 30rpx;
  81. }
  82. .bill-date-section {
  83. font-size: 32rpx;
  84. font-weight: bold;
  85. padding: 20rpx 10rpx;
  86. color: #333;
  87. }
  88. .address-info {
  89. display: flex;
  90. align-items: center;
  91. margin-bottom: 30rpx;
  92. padding: 20rpx 0;
  93. }
  94. .address-icon image {
  95. width: 40rpx;
  96. height: 40rpx;
  97. margin-right: 10rpx;
  98. }
  99. .address-text {
  100. font-size: 28rpx;
  101. color: #333;
  102. }
  103. /* 添加固定高度的外层容器 */
  104. .bill-list-wrapper {
  105. position: fixed;
  106. top: 400rpx;
  107. left: 0;
  108. width: 100%;
  109. height: calc(100vh - 400rpx); /* 计算剩余高度 */
  110. z-index: 30;
  111. overflow: hidden;
  112. }
  113. /* 调整账单列表样式 */
  114. .bill-list {
  115. width: 100%;
  116. height: 100%;
  117. padding: 0 30rpx;
  118. box-sizing: border-box;
  119. margin-top: 0; /* 移除顶部边距,因为外层容器已经定位好了 */
  120. padding-bottom: 50rpx;
  121. }
  122. .bill-card {
  123. width: 100%;
  124. border-radius: 12rpx;
  125. overflow: hidden;
  126. margin-bottom: 30rpx;
  127. box-shadow: 0 2rpx 10rpx rgba(0, 0, 0, 0.1);
  128. }
  129. .bill-date {
  130. background-color: #f5f5f5;
  131. padding: 20rpx 30rpx;
  132. font-size: 28rpx;
  133. color: #333;
  134. display: flex;
  135. justify-content: space-between;
  136. align-items: center;
  137. border-bottom: 1rpx solid #f0f0f0;
  138. }
  139. .paid-date {
  140. background-color: #f5f5f5;
  141. }
  142. .invoice-btn {
  143. color: #1989fa;
  144. font-size: 26rpx;
  145. }
  146. /* 调整账单信息布局 */
  147. .bill-info {
  148. background-color: #fff;
  149. padding: 20rpx 30rpx;
  150. display: flex;
  151. justify-content: space-between;
  152. }
  153. /* 水滴图标区域 */
  154. .bill-icon {
  155. display: flex;
  156. align-items: center;
  157. justify-content: center;
  158. margin-right: 15rpx;
  159. }
  160. .water-icon {
  161. width: 40rpx;
  162. height: 40rpx;
  163. }
  164. /* 账单信息左侧区域 */
  165. .bill-info-left {
  166. flex: 1;
  167. }
  168. /* 账单信息右侧区域 */
  169. .bill-info-right {
  170. text-align: right;
  171. display: flex;
  172. flex-direction: column;
  173. justify-content: center;
  174. }
  175. /* 移除之前的水滴图标样式 */
  176. .bill-number {
  177. font-size: 26rpx;
  178. color: #666;
  179. margin-bottom: 10rpx;
  180. }
  181. .bill-amount {
  182. font-size: 36rpx;
  183. font-weight: bold;
  184. color: #333;
  185. margin-bottom: 10rpx;
  186. }
  187. .bill-usage {
  188. font-size: 24rpx;
  189. color: #999;
  190. margin-bottom: 10rpx;
  191. }
  192. .bill-payment-time {
  193. font-size: 24rpx;
  194. color: #999;
  195. margin-bottom: 10rpx;
  196. }
  197. .bill-status {
  198. font-size: 26rpx;
  199. text-align: right;
  200. }
  201. .paid {
  202. color: #07c160;
  203. }
  204. .unpaid {
  205. color: #ff4d4f;
  206. }
  207. .no-more {
  208. text-align: center;
  209. color: #999;
  210. font-size: 26rpx;
  211. padding: 30rpx 0;
  212. }
  213. .no-data {
  214. text-align: center;
  215. color: #999;
  216. font-size: 26rpx;
  217. padding: 250rpx 0;
  218. }
  219. .bill-action {
  220. margin-top: 20rpx;
  221. display: flex;
  222. justify-content: flex-end;
  223. }
  224. .pay-btn {
  225. background-color: #ff4d4f;
  226. color: white;
  227. font-size: 28rpx;
  228. padding: 10rpx 40rpx;
  229. border-radius: 30rpx;
  230. line-height: 1.5;
  231. }
  232. .detail-btn {
  233. background-color: #f0f0f0;
  234. color: #333;
  235. font-size: 28rpx;
  236. padding: 10rpx 40rpx;
  237. border-radius: 30rpx;
  238. line-height: 1.5;
  239. }
  240. .list-end {
  241. text-align: center;
  242. color: #999;
  243. font-size: 26rpx;
  244. padding: 30rpx 0;
  245. }
  246. .empty-list {
  247. text-align: center;
  248. color: #999;
  249. font-size: 28rpx;
  250. padding: 100rpx 0;
  251. }
  252. /* 未缴费金额标红 */
  253. .unpaid-amount {
  254. color: #ff4d4f;
  255. }