myyhk.vue 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150
  1. <template>
  2. <view :class="['qn-page-' + theme]" style="height: 100vh">
  3. <view class="dyquan-wrap" v-for="(item,index) in list" :key="index">
  4. <view class="showtime">
  5. <text class="float_left order-no-text">{{ $_utils.formatDate(item.createTime) }}</text>
  6. </view>
  7. <view class="item-info">
  8. <image :src="item.image" mode=""></image>
  9. <view class="info-info">
  10. <view class="clamp2">
  11. {{item.card_name}}
  12. </view>
  13. <view class="info-cs">
  14. 实付:{{item.pay_price}}
  15. </view>
  16. </view>
  17. </view>
  18. <view class="btm">
  19. <!-- <view class="primary-btn btn" @click="goPage('/pagesT/unit/item?id=' + item.project_id)">
  20. 立即使用
  21. </view> -->
  22. </view>
  23. </view>
  24. <u-loadmore :status="loadingType" />
  25. </view>
  26. </template>
  27. <script>
  28. export default {
  29. data() {
  30. return {
  31. page: 1,
  32. pageSize: 10,
  33. loaded: false,
  34. loadingType: 'loadmore',
  35. list: []
  36. }
  37. },
  38. onLoad(opt) {
  39. },
  40. onShow() {
  41. this.getList()
  42. },
  43. onReachBottom() {
  44. },
  45. onReady() {
  46. },
  47. methods: {
  48. getList(type) {
  49. let that = this
  50. if (type == 'tab' && that.loaded) {
  51. return
  52. }
  53. if (that.loadingType == 'loading' || that.loadingType == 'nomore') {
  54. return
  55. }
  56. that.loadingType = 'loading'
  57. that.$u.api.getMyyhkList({
  58. page: that.page,
  59. pageSize: that.pageSize,
  60. }).then(({
  61. data
  62. }) => {
  63. that.list = that.list.concat(data)
  64. that.page++
  65. if (data.length == that.pageSize) {
  66. that.loadingType = 'loadmore'
  67. } else {
  68. that.loadingType = 'nomore'
  69. }
  70. })
  71. }
  72. }
  73. }
  74. </script>
  75. <style lang="scss">
  76. .content {
  77. background-color:#f8f6f6 ;
  78. height: auto;
  79. min-height: 100%;
  80. }
  81. .dyquan-wrap {
  82. padding: 20rpx;
  83. background-color: #fff;
  84. margin-bottom: 15rpx;
  85. .showtime {
  86. height: 50rpx;
  87. }
  88. .item-info {
  89. width: 750rpx;
  90. height: 205rpx;
  91. background: #F7F7F7;
  92. display: flex;
  93. justify-content: flex-start;
  94. align-items: center;
  95. image {
  96. width: 160rpx;
  97. height: 160rpx;
  98. margin-right: 30rpx;
  99. }
  100. .info-info {
  101. height: 160rpx;
  102. padding: 15rpx 0;
  103. padding-right: 50rpx;
  104. font-size: 30rpx;
  105. font-weight: 500;
  106. color: #666666;
  107. display: flex;
  108. flex-direction: column;
  109. justify-content: space-between;
  110. align-items: flex-start;
  111. .info-cs {
  112. font-size: 26rpx;
  113. font-weight: 500;
  114. color: #999999;
  115. }
  116. }
  117. }
  118. .btm {
  119. width: 100%;
  120. height: 40rpx;
  121. background-color: #fff;
  122. display: flex;
  123. justify-content: flex-end;
  124. align-items: center;
  125. .btn {
  126. width: 144rpx;
  127. height: 55rpx;
  128. border-radius: 28rpx;
  129. font-size: 26rpx;
  130. font-weight: 500;
  131. color: #FFFFFF;
  132. line-height: 55rpx;
  133. text-align: center;
  134. }
  135. }
  136. }
  137. </style>