Chargedetails.vue 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134
  1. <template>
  2. <view class="u-listdata">
  3. <view style="padding:16rpx 0 16rpx 32rpx">
  4. 共有 <span style="color: red">{{totalnumber}}</span>条记录
  5. </view>
  6. <u-list @scrolltolower="scrolltolower" :pagingEnabled='true'
  7. style="height: 400px;flex: 1;">
  8. <u-list-item v-for="(item, index) in indexList" :key="index">
  9. <view class="companylist" @click="seedetail(item)">
  10. <view class="Currentamount" style="color: #333;">
  11. 短信内容: {{item.content}}
  12. </view>
  13. <view class="Currentamount">
  14. 发送时间: {{item.createDate}}
  15. </view>
  16. <!-- <view class="Currentamount">
  17. 空间信息:¥{{item.spacePos}}
  18. </view> -->
  19. <!-- <view class="Currentamount">
  20. 联系电话: {{item.mobile}}
  21. </view> -->
  22. <!-- <view class="Currentamount">
  23. 短信类型: 催费
  24. </view> -->
  25. </view>
  26. </u-list-item>
  27. </u-list>
  28. </view>
  29. </template>
  30. <script>
  31. export default {
  32. data() {
  33. return {
  34. indexList:[],
  35. postdata:{
  36. name:'',
  37. page:1,
  38. limit:10,
  39. },
  40. pd: true,
  41. totalnumber:0,
  42. }
  43. },
  44. onLoad(options) {
  45. this.postdata.name = options.companyOrgId;
  46. // console.log(options.companyOrgId);
  47. this.getdata()
  48. },
  49. methods: {
  50. getdata(){
  51. this.$api.get('/expeditrecord/recordpage',this.postdata)
  52. .then(res=>{
  53. console.log('111111111111111111',res.data.data.total)
  54. this.totalnumber=res.data.data.total;
  55. if (res.data.data.list.length != 0) {
  56. this.indexList.push(...res.data.data.list);
  57. this.postdata.page = this.postdata.page + 1;
  58. this.pd = true;
  59. } else {
  60. uni.showToast({
  61. title: '暂无更多数据了',
  62. icon: 'none',
  63. duration: 1500
  64. })
  65. this.pd = false;
  66. }
  67. })
  68. },
  69. scrolltolower() {
  70. if (this.pd) {
  71. this.getdata();
  72. } else {
  73. return
  74. }
  75. },
  76. }
  77. }
  78. </script>
  79. <style lang="scss">
  80. .u-listdata{
  81. height:100%;
  82. display: flex;
  83. flex-direction: column;
  84. }
  85. .companylist {
  86. margin: 0 32rpx 24rpx;
  87. background: #fff;
  88. padding: 24rpx 32rpx 10rpx;
  89. border-radius: 8rpx;
  90. position: relative;
  91. h3 {
  92. margin-bottom: 24rpx;
  93. }
  94. .Currentamount {
  95. margin-bottom: 4rpx;
  96. color: #999;
  97. margin-bottom: 20rpx;
  98. font-size: 28rpx;
  99. span {
  100. color: #FA5555;
  101. padding-left: 9rpx;
  102. }
  103. }
  104. .outstanding{
  105. position: absolute;
  106. width:96rpx;
  107. height: 48rpx;
  108. border-radius: 0 8rpx 0 20rpx;
  109. right:0;
  110. line-height: 48rpx;
  111. text-align: center;
  112. top:0;
  113. z-index: 1;
  114. font-size: 22rpx;
  115. background-color:#30D3A2 ;
  116. color: #fff;
  117. &.PropertyFee{
  118. background-color:#30D3A2 ;
  119. }
  120. }
  121. }
  122. </style>