zhangdanlist.wxss 6.2 KB

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