czinfo.vue 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  1. <template>
  2. <view :class="[AppTheme]">
  3. <view class="jl" v-if="cZInfo.length">
  4. <view v-for="(item, index) in cZInfo" :key="index" class="borde-b">
  5. <view class="jl-c">
  6. <view class="sr" v-if="item.paytype == '支付宝'">支付宝</view>
  7. <view class="sr" v-if="item.paytype == '微信'">微信</view>
  8. <view class="sr" v-if="item.paytype == '线下'">线下充值</view>
  9. <view class="sr-p text-neutral">+ ¥{{ item.money }}</view>
  10. </view>
  11. <view class="time">{{ item.ctime }}</view>
  12. </view>
  13. </view>
  14. <view v-else>
  15. <u-empty text="暂无记录" marginTop="0" mode="history" ></u-empty>
  16. </view>
  17. </view>
  18. </template>
  19. <script>
  20. import wallApi from '@/api/wall/index.js';
  21. export default {
  22. data() {
  23. return {
  24. cZInfo: [], //充值记录
  25. p: 1,
  26. pagesize: 10,
  27. }
  28. },
  29. onLoad() {
  30. this.getCzList()
  31. },
  32. methods: {
  33. getCzList() {
  34. wallApi.czRecord({
  35. p: this.p,
  36. pagesize: this.pagesize
  37. }).then(res => {
  38. if (res.status == 200) {
  39. console.log(res, "res")
  40. this.cZInfo = this.cZInfo.concat(res.data);
  41. if (res.data.length == 0 || res.data.length < 10) {
  42. this.more = 'noMore';
  43. }
  44. } else {
  45. this.more = 'noMore';
  46. }
  47. });
  48. },
  49. }
  50. }
  51. </script>
  52. <style lang="scss" scoped>
  53. .jl {
  54. width: 100%;
  55. background-color: #ffffff;
  56. margin: 0 auto;
  57. .borde-b {
  58. border-bottom: 2rpx solid #eeeeee;
  59. }
  60. .jl-c {
  61. display: flex;
  62. justify-content: space-between;
  63. padding: 30rpx;
  64. }
  65. .sr {
  66. padding-left: 32rpx;
  67. font-size: 30rpx;
  68. font-family: PingFang SC;
  69. font-weight: 500;
  70. color: rgba(51, 51, 51, 1);
  71. }
  72. .sr-p {
  73. padding-right: 32rpx;
  74. font-size: 30rpx;
  75. font-family: PingFang SC;
  76. font-weight: bold;
  77. }
  78. .time {
  79. padding-left: 32rpx;
  80. font-size: 24rpx;
  81. font-family: PingFang SC;
  82. font-weight: 500;
  83. color: rgba(153, 153, 153, 1);
  84. padding-bottom: 18rpx;
  85. }
  86. }
  87. </style>