points.vue 768 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. <template>
  2. <yf-more-list url="/api/user/points/my-paging" :params="queryParams" ref="moreList">
  3. <template v-slot:item="{ data }">
  4. <uni-list-item
  5. :show-arrow="true"
  6. :title="data.refRemark"
  7. :note="'时间:'+data.createTime"
  8. :rightText="`+${data.points}`"
  9. >
  10. </uni-list-item>
  11. </template>
  12. </yf-more-list>
  13. </template>
  14. <script>
  15. export default {
  16. data() {
  17. return {
  18. queryParams: {
  19. }
  20. }
  21. },
  22. onReachBottom() {
  23. // 加载数据
  24. this.$refs.moreList.loadData()
  25. },
  26. onShow() {
  27. if(this.$refs.moreList){
  28. this.$refs.moreList.initData()
  29. }
  30. },
  31. methods: {
  32. }
  33. }
  34. </script>
  35. <style scoped>
  36. /deep/
  37. .uni-list-item__extra-text {
  38. font-size: 30rpx;
  39. color: #FF0000;
  40. font-weight: bold;
  41. }
  42. </style>