bill.vue 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151
  1. <template>
  2. <view class="page" :style="{'min-height':(h-th)+'px','padding-top':mt+'px'}">
  3. <c-nav-bar title="交易账单"></c-nav-bar>
  4. <view class="query">
  5. <u-icon @click="" name="calendar" label="自定义查询" labelPos="right" labelColor="#666" color="#666"
  6. space="10px"></u-icon>
  7. </view>
  8. <view class="list" v-for="(item2,index2) in data" :key="index2" >
  9. <view class="time">
  10. <text>今日</text>
  11. <text>{{new Date().Format('yyyy-MM-dd')}}</text>
  12. </view>
  13. <view class="money">
  14. <view>
  15. <text>收入金额</text>
  16. <text class="in">+879.00</text>
  17. <text>2笔</text>
  18. </view>
  19. <view>
  20. <text>退款金额</text>
  21. <text>879.00</text>
  22. <text>2笔</text>
  23. </view>
  24. </view>
  25. <view class="li" v-for="(item,index) in data" :key="index">
  26. <view class="left">
  27. <text>黄沙村渔家乐12客位</text>
  28. <text>2024-02-23 09:12:34</text>
  29. </view>
  30. <view class="right">+12</text>
  31. </view>
  32. </view>
  33. </view>
  34. </view>
  35. </template>
  36. <script>
  37. export default {
  38. data() {
  39. return {
  40. h: uni.getSystemInfoSync().windowHeight - 87,
  41. mt: uni.getSystemInfoSync().statusBarHeight + 44,
  42. data: [4, 5],
  43. name: '黄沙村渔家乐',
  44. emg: 'https://i.ringzle.com/file/20240224/91173dde1cb44b139129e12ad4971f1d.png',
  45. icons: ['https://i.ringzle.com/file/20240224/70ab9f9d1a144c95927dedc6e84bcce7.png',
  46. 'https://i.ringzle.com/file/20240224/3f990c250f444ac9a5d9f334f322c98e.png',
  47. 'https://i.ringzle.com/file/20240224/7ca1bfa6e348438e83edc5af0589f847.png'
  48. ]
  49. }
  50. }
  51. }
  52. </script>
  53. <style lang="less" scoped>
  54. .page {
  55. background: #F3F4F4;
  56. padding-bottom: 40rpx;
  57. box-sizing: border-box;
  58. .query {
  59. height: 100rpx;
  60. display: flex;
  61. align-items: center;
  62. padding-left: 30rpx;
  63. background-color: #fff;
  64. }
  65. .list {
  66. width: calc(100% - 36rpx);
  67. margin: 20rpx auto;
  68. padding: 36rpx 24rpx;
  69. background-color: #fff;
  70. border-radius: 24rpx;
  71. .time {
  72. text {
  73. &:first-child {
  74. font-size: 40rpx;
  75. font-weight: bold;
  76. color: #666;
  77. margin-right: 10rpx;
  78. }
  79. }
  80. margin-bottom: 30rpx;
  81. }
  82. .money {
  83. display: flex;
  84. align-items: center;
  85. &>view {
  86. width: 50%;
  87. text {
  88. display: block;
  89. font-weight: bold;
  90. &:first-child {
  91. color: #111;
  92. font-size: 28rpx;
  93. }
  94. &:nth-child(2) {
  95. font-size: 40rpx;
  96. margin: 14rpx 0 16rpx;
  97. color: ;
  98. }
  99. &:last-child {
  100. color: #999;
  101. font-size: 26rpx;
  102. font-weight: inherit;
  103. }
  104. }
  105. .in {
  106. color: #FEA400;
  107. }
  108. }
  109. }
  110. .li {
  111. display: flex;
  112. justify-content: space-between;
  113. padding: 30rpx 0;
  114. .left {
  115. text {
  116. &:first-child {
  117. font-size: 28rpx;
  118. color: #111;
  119. margin-bottom: 15rpx;
  120. }
  121. display: block;
  122. color: #999;
  123. font-size: 26rpx;
  124. }
  125. }
  126. .right {
  127. color: #FEA400;
  128. font-size: 36rpx;
  129. font-weight: bold;
  130. }
  131. }
  132. }
  133. }
  134. </style>