income-detail.vue 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. <template>
  2. <view class="income-detail">
  3. <page-scroll ref="pageScroll" url="/api/mock/income-detail" :immediate="true" :slot-empty="true">
  4. <view class="income-list">
  5. <view class="income-item" v-for="(item, index) in mockData" :key="index">
  6. <view class="item-left">
  7. <view class="income-title">推广收入</view>
  8. <view class="income-time">{{ item.time }}</view>
  9. </view>
  10. <view class="income-amount">+{{ item.amount }}</view>
  11. </view>
  12. </view>
  13. </page-scroll>
  14. </view>
  15. </template>
  16. <script>
  17. export default {
  18. data() {
  19. return {
  20. mockData: Array(6)
  21. .fill()
  22. .map(() => ({
  23. time: "2021.2.25 10:48:32",
  24. amount: "100.00",
  25. })),
  26. };
  27. },
  28. };
  29. </script>
  30. <style lang="scss" scoped>
  31. .income-detail {
  32. min-height: 100vh;
  33. background-color: #f5f5f5;
  34. }
  35. .income-item {
  36. display: flex;
  37. justify-content: space-between;
  38. align-items: center;
  39. background-color: #fff;
  40. padding: 30rpx 40rpx;
  41. margin-bottom: 2rpx;
  42. .item-left {
  43. .income-title {
  44. font-size: 32rpx;
  45. color: #333;
  46. margin-bottom: 10rpx;
  47. }
  48. .income-time {
  49. font-size: 28rpx;
  50. color: #999;
  51. }
  52. }
  53. .income-amount {
  54. font-size: 32rpx;
  55. color: #ff5555;
  56. font-weight: 500;
  57. }
  58. }
  59. </style>