balance_records.vue 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. <template>
  2. <view class="container">
  3. <view v-if="emptyType==0">
  4. <view v-for="item in dataList" class="item">
  5. <view class="date">{{item.createdDate}}</view>
  6. <view class="sum">+{{item.commission}}</view>
  7. </view>
  8. </view>
  9. <DtNoMore v-if="isNoMore" />
  10. <DtEmpty :type="emptyType" />
  11. </view>
  12. </template>
  13. <script>
  14. import DtNoMore from "../comps/dt_no_more.vue";
  15. import DtEmpty from '../comps/dt_empty.vue'
  16. export default {
  17. components: {
  18. DtEmpty
  19. },
  20. data() {
  21. return {
  22. dataList:[]
  23. };
  24. },
  25. methods:{
  26. onLoadPage() {
  27. this.getData()
  28. },
  29. async getData(){
  30. let resp = await this.$api.getDistributionCashRecords({
  31. _isShowLoading: true,
  32. pageNo:this.pageIndex,
  33. pageSize:this.pageSize,
  34. })
  35. let list = this.getDataList(resp)
  36. this.dataList = this.dataList.concat(list)
  37. },
  38. },
  39. onReachBottom() {
  40. this.onReachBottomPage()
  41. }
  42. }
  43. </script>
  44. <style lang="scss" scoped>
  45. .container{
  46. height: 100vh;
  47. border-top: 2upx solid rgba(238,238,238,1);
  48. .item{
  49. display: flex;
  50. align-items: center;
  51. justify-content: space-between;
  52. margin-left: 16upx;
  53. padding-left: 24upx;
  54. padding-right: 40upx;
  55. height: 108upx;
  56. background-color: #fff;
  57. border-bottom: 2upx solid rgba(238,238,238,1);
  58. .date{
  59. font-size:30upx;
  60. font-family:PingFang SC;
  61. font-weight:400;
  62. color:rgba(51,51,51,1);
  63. }
  64. .sum{
  65. font-size:36upx;
  66. font-family:PingFang SC;
  67. font-weight:500;
  68. color:rgba(51,51,51,1);
  69. }
  70. }
  71. }
  72. </style>