record.vue 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156
  1. <template>
  2. <view class="page-wrap">
  3. <view class="fixed-header">
  4. <view class="search-input">
  5. <input class="input" placeholder-style="color: #999" type="text" placeholder="关键词" maxlength="20" />
  6. <image class="icon" src="../../../static/icon_search.png"></image>
  7. </view>
  8. <button class="filter" @click="handleOpenFilter">筛选</button>
  9. </view>
  10. <view class="record-panel">
  11. <view class="item">
  12. <view class="time">2023-10-13 16:32:54</view>
  13. <view class="desc">账单类型:应付# 房源·免租期补齐</view>
  14. <view class="desc">账单编号:9886</view>
  15. <view class="money">+ 4400.00</view>
  16. <view class="total">2765.30</view>
  17. </view>
  18. <view class="item">
  19. <view class="time">2023-10-13 16:32:54</view>
  20. <view class="desc">账单类型:应付# 房源·免租期补齐</view>
  21. <view class="desc">账单编号:9886</view>
  22. <view class="money money-1">- 4400.00</view>
  23. <view class="total">2765.30</view>
  24. </view>
  25. </view>
  26. </view>
  27. </template>
  28. <script>
  29. export default {
  30. data() {
  31. return {
  32. };
  33. },
  34. methods: {
  35. handleOpenFilter() {
  36. uni.navigateTo({
  37. url: 'filter'
  38. });
  39. }
  40. }
  41. };
  42. </script>
  43. <style lang="scss" scoped>
  44. .page-wrap {
  45. padding-top: 96.15rpx;
  46. }
  47. .fixed-header {
  48. position: fixed;
  49. left: 0%;
  50. top: 0%;
  51. right: 0%;
  52. height: 96.15rpx;
  53. background: #fff;
  54. display: flex;
  55. align-items: center;
  56. justify-content: space-between;
  57. padding: 0 68.68rpx;
  58. &::before {
  59. content: '';
  60. position: absolute;
  61. top: 0;
  62. left: 0;
  63. right: 0;
  64. height: 1rpx;
  65. background: #e0e0e0;
  66. }
  67. .search-input {
  68. width: 439.56rpx;
  69. height: 61.81rpx;
  70. position: relative;
  71. &::after{
  72. content: '';
  73. position: absolute;
  74. left: -50%;
  75. top: -50%;
  76. right: -50%;
  77. bottom: -50%;
  78. transform: scale(.5);
  79. border: 2rpx solid #d0dde9;
  80. border-radius: 8.24rpx;
  81. }
  82. .input {
  83. width: 100%;
  84. height: 100%;
  85. font-size: 24.73rpx;
  86. padding: 0 82.42rpx 0 13.74rpx;
  87. box-sizing: border-box;
  88. }
  89. .icon {
  90. width: 39.84rpx;
  91. height: 39.84rpx;
  92. position: absolute;
  93. right: 27.47rpx;
  94. top: 50%;
  95. transform: translateY(-50%);
  96. }
  97. }
  98. .filter {
  99. font-size: 27.47rpx;
  100. background: none;
  101. border: none;
  102. padding: 0;
  103. margin: 0;
  104. &::after {
  105. display: none;
  106. }
  107. }
  108. }
  109. .record-panel{
  110. padding: 13.74rpx 0;
  111. .item{
  112. height: 151.1rpx;
  113. background: #fff;
  114. padding: 20.6rpx 206.04rpx 27.47rpx 27.47rpx;
  115. box-sizing: border-box;
  116. position: relative;
  117. border-top: 1rpx solid #e0e0e0;
  118. &:first-child{
  119. border: none;
  120. }
  121. }
  122. .time{
  123. font-size: 32.97rpx;
  124. }
  125. .desc{
  126. font-size: 27.47rpx;
  127. color: #999;
  128. }
  129. .money{
  130. font-size: 32.97rpx;
  131. color: #43C475;
  132. position: absolute;
  133. right: 27.47rpx;
  134. top: 34.34rpx;
  135. &-1{
  136. color: #E74C3C;
  137. }
  138. }
  139. .total{
  140. font-size: 27.47rpx;
  141. color: #999;
  142. position: absolute;
  143. right: 27.47rpx;
  144. top: 75.55rpx;
  145. &:before{
  146. content: '余额';
  147. font-size: 26.1rpx;
  148. margin-right: 6.87rpx;
  149. }
  150. }
  151. }
  152. </style>