hua-record-list.vue 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  1. <template>
  2. <view>
  3. <view class="content">
  4. <view class="items d-flex justify-content-between align-items-center" v-for="(item,index) in data"
  5. :key="index">
  6. <view class="cont">
  7. <view class="title">
  8. {{item.source_type}}
  9. </view>
  10. <view class="date">
  11. {{item.create_time}}
  12. </view>
  13. </view>
  14. <view class="right">
  15. <view class="num" v-if='type == 1'>
  16. <view class="red" v-if="item.change_type == 1">
  17. -{{item.change_amount}}
  18. </view>
  19. <view class="blue" v-else>
  20. +{{item.change_amount}}
  21. </view>
  22. </view>
  23. <view class="num" v-else>
  24. <view class="blue" v-if="item.change_type == 1">
  25. +{{item.change_amount}}
  26. </view>
  27. <view class="red" v-else>
  28. -{{item.change_amount}}
  29. </view>
  30. </view>
  31. <view class="tips" v-if="item.remark != ''">{{item.remark}}</view>
  32. </view>
  33. </view>
  34. </view>
  35. </view>
  36. </template>
  37. <script>
  38. export default {
  39. name:"hua-record-list",
  40. props:{
  41. data:{},
  42. type:{}
  43. },
  44. data() {
  45. return {
  46. };
  47. }
  48. }
  49. </script>
  50. <style lang="scss">
  51. .content {
  52. margin: 20rpx 24rpx;
  53. padding: 0rpx 24rpx;
  54. border-radius: 20rpx;
  55. box-sizing: border-box;
  56. background-color: #fff;
  57. .items {
  58. border-bottom: 1px solid #F3F4F6;
  59. padding: 40rpx 0;
  60. .title {
  61. font-size: 28rpx;
  62. color: #040404;
  63. line-height: 40rpx;
  64. }
  65. .date {
  66. font-size: 24rpx;
  67. color: #AAAAAA;
  68. line-height: 34rpx;
  69. }
  70. .num {
  71. color: #0EB5F1;
  72. font-size: 40rpx;
  73. .red {
  74. color: #f73e33 !important;
  75. ;
  76. }
  77. }
  78. .tips{
  79. font-size: 24rpx;
  80. text-align: right;
  81. }
  82. }
  83. }
  84. </style>