zhangdanlist.wxss 6.3 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: 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. .search-container {
  105. position: fixed;
  106. top: 395rpx; /* 调整位置到用户信息下方 */
  107. left: 0;
  108. width: 37%;
  109. padding: 0 30rpx;
  110. box-sizing: border-box;
  111. z-index: 20; /* 确保在背景之上 */
  112. }
  113. /* 修改搜索按钮样式 */
  114. .search-button {
  115. padding: 15rpx 30rpx;
  116. display: flex;
  117. justify-content: center;
  118. align-items: center;
  119. box-shadow: 0 2rpx 10rpx rgba(0, 0, 0, 0.1);
  120. border-radius: 16rpx;
  121. background: rgba(255, 255, 255, 0.3);
  122. }
  123. .search-button text {
  124. font-size: 28rpx;
  125. color: rgba(255, 255, 255, 1);
  126. margin-left: 12rpx;
  127. }
  128. .search-icon {
  129. width: 30rpx;
  130. height: 30rpx;
  131. }
  132. /* 调整账单列表容器位置 */
  133. .bill-list-wrapper {
  134. position: fixed;
  135. top: 480rpx; /* 调整位置,为搜索按钮留出空间 */
  136. left: 0;
  137. width: 100%;
  138. height: calc(100vh - 450rpx);
  139. z-index: 15;
  140. overflow: hidden;
  141. }
  142. /* 调整账单列表样式 */
  143. .bill-list {
  144. width: 100%;
  145. height: 100%;
  146. padding: 0 30rpx;
  147. box-sizing: border-box;
  148. margin-top: 0;
  149. padding-bottom: 50rpx;
  150. }
  151. .bill-card {
  152. width: 100%;
  153. border-radius: 12rpx;
  154. overflow: hidden;
  155. margin-bottom: 30rpx;
  156. box-shadow: 0 2rpx 10rpx rgba(0, 0, 0, 0.1);
  157. }
  158. .bill-date {
  159. background-color: #f5f5f5;
  160. padding: 20rpx 30rpx;
  161. font-size: 28rpx;
  162. color: #333;
  163. display: flex;
  164. justify-content: space-between;
  165. align-items: center;
  166. border-bottom: 1rpx solid #f0f0f0;
  167. }
  168. .paid-date {
  169. background-color: #f5f5f5;
  170. }
  171. .invoice-btn {
  172. color: #1989fa;
  173. font-size: 26rpx;
  174. }
  175. /* 调整账单信息布局 */
  176. .bill-info {
  177. background-color: #fff;
  178. padding: 20rpx 30rpx;
  179. display: flex;
  180. justify-content: space-between;
  181. }
  182. /* 水滴图标区域 */
  183. .bill-icon {
  184. display: flex;
  185. align-items: center;
  186. justify-content: center;
  187. margin-right: 15rpx;
  188. margin-top: -50rpx;
  189. }
  190. .water-icon {
  191. width: 45rpx;
  192. height: 45rpx;
  193. }
  194. /* 账单信息左侧区域 */
  195. .bill-info-left {
  196. flex: 1;
  197. }
  198. /* 账单信息右侧区域 */
  199. .bill-info-right {
  200. text-align: right;
  201. display: flex;
  202. flex-direction: column;
  203. justify-content: center;
  204. }
  205. /* 移除之前的水滴图标样式 */
  206. .bill-number {
  207. font-size: 36rpx;
  208. color: rgba(46, 48, 56, 1);
  209. margin-bottom: 10rpx;
  210. }
  211. .bill-amount {
  212. font-size: 40rpx;
  213. font-weight: bold;
  214. color: #333;
  215. margin-bottom: 10rpx;
  216. }
  217. .bill-usage {
  218. font-size: 30rpx;
  219. color: rgba(100, 108, 128, 1);
  220. margin-bottom: 10rpx;
  221. }
  222. .bill-payment-time {
  223. font-size: 26rpx;
  224. color: rgba(100, 108, 128, 1);
  225. margin-bottom: 10rpx;
  226. }
  227. .bill-status {
  228. font-size: 26rpx;
  229. text-align: right;
  230. }
  231. .paid {
  232. color: #07c160;
  233. }
  234. .unpaid {
  235. color: #ff4d4f;
  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. }