zhangdanlist.wxss 6.4 KB

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