爱简收旧衣按件回收前端代码仓库
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

121 lines
2.6 KiB

6 days ago
  1. <template>
  2. <view class="withdraw-record-container">
  3. <!-- 顶部导航栏 -->
  4. <view class="nav-bar">
  5. <view class="back" @tap="goBack">
  6. <uni-icons type="left" size="20"></uni-icons>
  7. </view>
  8. <text class="title">提现记录</text>
  9. </view>
  10. <view class="main-content">
  11. <view class="record-list-card">
  12. <view class="record-item" v-for="(item, idx) in records" :key="idx">
  13. <view class="record-info">
  14. <text class="record-title">提现记录</text>
  15. <text class="record-date">{{ item.date }}</text>
  16. </view>
  17. <text class="record-amount">¥{{ item.amount }}</text>
  18. </view>
  19. </view>
  20. </view>
  21. </view>
  22. </template>
  23. <script>
  24. export default {
  25. data() {
  26. return {
  27. records: [
  28. { date: '04-27', amount: 10 },
  29. { date: '04-23', amount: 60 },
  30. { date: '04-17', amount: 10 },
  31. { date: '04-12', amount: 110 },
  32. { date: '04-12', amount: 180 },
  33. { date: '04-09', amount: 30 },
  34. { date: '04-09', amount: 130 },
  35. { date: '04-07', amount: 160 },
  36. { date: '03-29', amount: 170 }
  37. ]
  38. }
  39. },
  40. methods: {
  41. goBack() {
  42. uni.navigateBack();
  43. }
  44. }
  45. }
  46. </script>
  47. <style lang="scss" scoped>
  48. .withdraw-record-container {
  49. min-height: 100vh;
  50. background: #f7f7f7;
  51. }
  52. .nav-bar {
  53. display: flex;
  54. align-items: center;
  55. height: calc(150rpx + var(--status-bar-height));
  56. padding: 0 32rpx;
  57. padding-top: var(--status-bar-height);
  58. background: #fff;
  59. position: fixed;
  60. top: 0;
  61. left: 0;
  62. right: 0;
  63. z-index: 999;
  64. box-sizing: border-box;
  65. box-shadow: 0 2rpx 8rpx rgba(0,0,0,0.03);
  66. .back {
  67. padding: 20rpx;
  68. margin-left: -20rpx;
  69. }
  70. .title {
  71. flex: 1;
  72. text-align: center;
  73. font-size: 34rpx;
  74. font-weight: 500;
  75. color: #222;
  76. }
  77. }
  78. .main-content {
  79. margin-top: calc(150rpx + var(--status-bar-height));
  80. margin-bottom: 40rpx;
  81. }
  82. .record-list-card {
  83. background: #fff;
  84. border-radius: 40rpx;
  85. margin: 0 32rpx 32rpx 32rpx;
  86. padding: 0 0 0 0;
  87. box-shadow: 0 2rpx 8rpx rgba(0,0,0,0.03);
  88. }
  89. .record-item {
  90. display: flex;
  91. align-items: center;
  92. justify-content: space-between;
  93. padding: 38rpx 36rpx 38rpx 36rpx;
  94. border-bottom: 2rpx solid #f3f3f3;
  95. &:last-child {
  96. border-bottom: none;
  97. }
  98. }
  99. .record-info {
  100. display: flex;
  101. flex-direction: column;
  102. }
  103. .record-title {
  104. font-size: 30rpx;
  105. color: #222;
  106. font-weight: 500;
  107. margin-bottom: 8rpx;
  108. }
  109. .record-date {
  110. font-size: 26rpx;
  111. color: #b3b3b3;
  112. font-weight: 400;
  113. }
  114. .record-amount {
  115. font-size: 32rpx;
  116. color: #222;
  117. font-weight: 500;
  118. }
  119. </style>