zhangdanlist.wxss 6.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411
  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: 120rpx;
  31. left: 30rpx;
  32. z-index: 999;
  33. width: 16px;
  34. height: 16px;
  35. }
  36. .header-title {
  37. text-align: center;
  38. font-size: 36rpx;
  39. margin-bottom: 20rpx;
  40. }
  41. .user-info-container {
  42. position: fixed;
  43. top: 200rpx;
  44. left: 0;
  45. width: 100%;
  46. padding: 0 30rpx;
  47. box-sizing: border-box;
  48. z-index: 10;
  49. }
  50. .user-info {
  51. background-color: transparent;
  52. color: white;
  53. padding: 20rpx 20rpx;
  54. width: 100%;
  55. }
  56. .user-name {
  57. font-size: 40rpx;
  58. font-weight: 500;
  59. margin-bottom: 20rpx;
  60. }
  61. .user-id, .user-address {
  62. display: flex;
  63. align-items: center;
  64. font-size: 30rpx;
  65. font-weight: 400;
  66. margin-bottom: 20rpx;
  67. color: rgba(255, 255, 255, 1);
  68. }
  69. .id-icon, .address-icon {
  70. width: 40rpx;
  71. height: 40rpx;
  72. margin-right: 10rpx;
  73. }
  74. .bill-list-container {
  75. flex: 1;
  76. padding: 20rpx;
  77. margin-top: 30rpx;
  78. }
  79. .bill-date-section {
  80. font-size: 32rpx;
  81. font-weight: bold;
  82. padding: 20rpx 10rpx;
  83. color: #333;
  84. }
  85. .address-info {
  86. display: flex;
  87. align-items: center;
  88. margin-bottom: 30rpx;
  89. padding: 20rpx 0;
  90. }
  91. .address-icon image {
  92. width: 40rpx;
  93. height: 40rpx;
  94. margin-right: 10rpx;
  95. }
  96. .address-text {
  97. font-size: 28rpx;
  98. color: #333;
  99. }
  100. /* 修改搜索容器样式 */
  101. .search-container {
  102. position: fixed;
  103. top: 405rpx; /* 调整位置到用户信息下方 */
  104. left: 0;
  105. width: 37%;
  106. padding: 0 30rpx;
  107. box-sizing: border-box;
  108. z-index: 20; /* 确保在背景之上 */
  109. }
  110. /* 修改搜索按钮样式 */
  111. .search-button {
  112. padding: 15rpx 30rpx;
  113. display: flex;
  114. justify-content: center;
  115. align-items: center;
  116. box-shadow: 0 2rpx 10rpx rgba(0, 0, 0, 0.1);
  117. border-radius: 16rpx;
  118. background: rgba(255, 255, 255, 0.3);
  119. }
  120. .search-button text {
  121. font-size: 28rpx;
  122. color: rgba(255, 255, 255, 1);
  123. margin-left: 12rpx;
  124. }
  125. .search-icon {
  126. width: 30rpx;
  127. height: 30rpx;
  128. }
  129. /* 调整账单列表容器位置 */
  130. .bill-list-wrapper {
  131. position: fixed;
  132. top: 490rpx; /* 调整位置,为搜索按钮留出空间 */
  133. left: 0;
  134. width: 100%;
  135. height: calc(100vh - 450rpx);
  136. z-index: 15;
  137. overflow: hidden;
  138. }
  139. /* 调整账单列表样式 */
  140. .bill-list {
  141. width: 100%;
  142. height: 100%;
  143. padding: 0 30rpx;
  144. box-sizing: border-box;
  145. margin-top: 0;
  146. padding-bottom: 50rpx;
  147. }
  148. .bill-card {
  149. width: 100%;
  150. border-radius: 12rpx;
  151. overflow: hidden;
  152. margin-bottom: 30rpx;
  153. box-shadow: 0 2rpx 10rpx rgba(0, 0, 0, 0.1);
  154. }
  155. .bill-date {
  156. background: rgba(247, 248, 249, 1);
  157. padding: 20rpx 30rpx;
  158. font-size: 34rpx;
  159. font-weight: 500;
  160. color: rgba(22, 23, 27, 1);
  161. display: flex;
  162. justify-content: space-between;
  163. align-items: center;
  164. border-bottom: 1rpx solid #f0f0f0;
  165. }
  166. .paid-date {
  167. background-color: #f5f5f5;
  168. }
  169. .invoice-btn {
  170. color: #1989fa;
  171. font-size: 26rpx;
  172. }
  173. /* 调整账单信息布局 */
  174. .bill-info {
  175. background-color: #fff;
  176. padding: 20rpx 30rpx;
  177. display: flex;
  178. justify-content: space-between;
  179. }
  180. /* 水滴图标区域 */
  181. .bill-icon {
  182. display: flex;
  183. align-items: center;
  184. justify-content: center;
  185. margin-right: 15rpx;
  186. margin-top: -50rpx;
  187. }
  188. .water-icon {
  189. width: 52rpx;
  190. height: 56rpx;
  191. }
  192. /* 账单信息左侧区域 */
  193. .bill-info-left {
  194. flex: 1;
  195. }
  196. /* 账单信息右侧区域 */
  197. .bill-info-right {
  198. text-align: right;
  199. margin-top: -70rpx;
  200. display: flex;
  201. flex-direction: column;
  202. justify-content: center;
  203. }
  204. /* 移除之前的水滴图标样式 */
  205. .bill-number {
  206. font-size: 36rpx;
  207. font-weight: 600;
  208. color: rgba(46, 48, 56, 1);
  209. margin-bottom: 10rpx;
  210. }
  211. .bill-amount {
  212. font-size: 40rpx;
  213. font-weight: 500;
  214. color: rgba(46, 48, 56, 1);
  215. }
  216. .bill-usage {
  217. font-size: 30rpx;
  218. font-weight: 400;
  219. color: rgba(100, 108, 128, 1);
  220. margin-bottom: 15rpx;
  221. }
  222. .bill-payment-time {
  223. font-size: 28rpx;
  224. font-weight: 400;
  225. color: rgba(100, 108, 128, 1);
  226. }
  227. .bill-status {
  228. font-size: 26rpx;
  229. font-weight: 400;
  230. text-align: right;
  231. }
  232. .paid {
  233. color: rgba(44, 232, 94, 1);
  234. }
  235. .unpaid {
  236. color: rgba(239, 93, 93, 1);
  237. }
  238. .no-more {
  239. text-align: center;
  240. color: #999;
  241. font-size: 26rpx;
  242. padding: 30rpx 0;
  243. }
  244. .no-data {
  245. text-align: center;
  246. color: #999;
  247. font-size: 26rpx;
  248. padding: 250rpx 0;
  249. }
  250. .bill-action {
  251. margin-top: 20rpx;
  252. display: flex;
  253. justify-content: flex-end;
  254. }
  255. .pay-btn {
  256. background-color: #ff4d4f;
  257. color: white;
  258. font-size: 28rpx;
  259. padding: 10rpx 40rpx;
  260. border-radius: 30rpx;
  261. line-height: 1.5;
  262. }
  263. .detail-btn {
  264. background-color: #f0f0f0;
  265. color: #333;
  266. font-size: 28rpx;
  267. padding: 10rpx 40rpx;
  268. border-radius: 30rpx;
  269. line-height: 1.5;
  270. }
  271. .list-end {
  272. text-align: center;
  273. color: #999;
  274. font-size: 26rpx;
  275. padding: 30rpx 0;
  276. }
  277. .empty-list {
  278. text-align: center;
  279. color: #999;
  280. font-size: 28rpx;
  281. padding: 100rpx 0;
  282. }
  283. /* 未缴费金额标红 */
  284. .unpaid-amount {
  285. color: #ff4d4f;
  286. }
  287. /* 删除原有的年份选择器样式,替换为以下样式 */
  288. .picker-mask {
  289. position: fixed;
  290. top: 0;
  291. left: 0;
  292. right: 0;
  293. bottom: 0;
  294. background: rgba(0, 0, 0, 0.5);
  295. z-index: 999;
  296. }
  297. .picker-container-modal {
  298. position: fixed;
  299. bottom: -100%;
  300. left: 0;
  301. width: 100%;
  302. background: #fff;
  303. transition: all 0.3s ease-in-out;
  304. z-index: 1000;
  305. }
  306. .picker-container-modal.show {
  307. bottom: 0;
  308. }
  309. .picker-header {
  310. display: flex;
  311. justify-content: space-between;
  312. align-items: center;
  313. padding: 20rpx 30rpx;
  314. border-bottom: 1rpx solid #eee;
  315. }
  316. .picker-cancel, .picker-confirm {
  317. font-size: 32rpx;
  318. padding: 10rpx;
  319. }
  320. .picker-cancel {
  321. color: #999;
  322. }
  323. .picker-confirm {
  324. color: #2E82FF;
  325. }
  326. .picker-title {
  327. font-size: 32rpx;
  328. color: #333;
  329. }
  330. /* 修改年份选择器样式 */
  331. .year-picker {
  332. width: 100%;
  333. height: 400rpx;
  334. }
  335. .picker-item {
  336. line-height: 100rpx;
  337. text-align: center;
  338. font-size: 36rpx;
  339. color: #999;
  340. display: flex;
  341. align-items: center;
  342. justify-content: center;
  343. height: 100rpx;
  344. }
  345. /* 修改选中项样式 */
  346. .picker-view-indicator {
  347. height: 100rpx;
  348. }
  349. /* 添加选中项的样式 */
  350. .picker-view-column view.picker-item {
  351. display: flex;
  352. align-items: center;
  353. justify-content: center;
  354. }