records.vue 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105
  1. <template>
  2. <view class="records">
  3. <view class="r-wrap">
  4. <view class="r-inner" v-for="(item,index) in fxlogList" :key="index">
  5. <view class="r-inner-t">
  6. <view class="r-gx">
  7. 贡献用户:{{item.fromname}}
  8. </view>
  9. <view class="r-sum">
  10. + {{item.fxyj}}元
  11. </view>
  12. </view>
  13. <view class="r-inner-t" style="font-size: 28rpx;">
  14. <view class="r-gx" style="color: #747474;">
  15. 订单号:{{item.ordernum}}
  16. </view>
  17. <view class="r-gx1" style="color: #747474;">
  18. 消费:{{item.fxprice}}元
  19. </view>
  20. </view>
  21. <view class="r-inner-b">
  22. {{$u.timeFormat(item.ctime,'yyyy.mm.dd:hh:MM')}}
  23. </view>
  24. </view>
  25. </view>
  26. <u-empty margin-top="60" style="height: 0% !important;width: 100vw;" v-if="fxlogList.length==0" text="暂无更多数据" mode="list"></u-empty>
  27. </view>
  28. </template>
  29. <script>
  30. import mineApi from '@/api/mine/index.js'
  31. export default {
  32. data() {
  33. return {
  34. primary:this.$theme.primary,
  35. settingFile:getApp().globalData.siteinfo,
  36. fxlogList:[]
  37. };
  38. },
  39. methods:{
  40. getPolicy() {
  41. let that=this
  42. mineApi.fxlog().then(ret=>{
  43. if(ret.status==200){
  44. this.fxlogList=ret.data
  45. }else{
  46. this.$u.toast(ret.msg)
  47. }
  48. })
  49. },
  50. },
  51. onLoad(){
  52. this.getPolicy()
  53. },
  54. onPullDownRefresh() {
  55. this.getPolicy()
  56. setTimeout(()=>{
  57. uni.stopPullDownRefresh()
  58. },500)
  59. }
  60. }
  61. </script>
  62. <style lang="scss">
  63. page{
  64. background-color: #F1f1f1;
  65. }
  66. .records{
  67. width: 100%;
  68. height: 100%;
  69. .r-wrap{
  70. width: 100%;
  71. padding: 15rpx 15rpx 40rpx 15rpx;
  72. box-sizing: border-box;
  73. .r-inner{
  74. width: 100%;
  75. margin-bottom: 15rpx;
  76. background-color: white;
  77. border-radius: 15rpx;
  78. padding: 20rpx 30rpx 25rpx 20rpx;
  79. box-sizing: border-box;
  80. .r-inner-t{
  81. display: flex;
  82. justify-content: space-between;
  83. margin-bottom: 15rpx;
  84. }
  85. .r-inner-b{
  86. display: flex;
  87. justify-content: right;
  88. font-size: 28rpx;
  89. color:#474747;
  90. }
  91. .r-sum{
  92. font-weight: bold;
  93. color: $tab-color-1;
  94. }
  95. .r-gx{
  96. width: 500rpx;
  97. line-height: 40rpx;
  98. }
  99. }
  100. }
  101. }
  102. </style>