fcxq.vue 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139
  1. <template>
  2. <view class="content">
  3. <view class="order-item" v-for="(item, index) in list" :key="index">
  4. <image src="" mode="" class="logo"></image>
  5. <view class="title-box">
  6. <view class="title clamp2">
  7. <!-- <text>{{ item.mark }}</text> -->
  8. 全勤奖励全勤奖励全勤奖励全勤奖励全勤奖励全勤
  9. 全勤奖励全勤奖励全勤奖励全勤奖励全勤奖励全勤
  10. </view>
  11. <view class="time">
  12. <!-- <text>{{ item.create_time }}</text> -->
  13. 458.0
  14. </view>
  15. </view>
  16. <view class="money" @click="goPage('/pagesS/yg/fcxq')">
  17. 分成:<view>{{ 1 }}</view>
  18. </view>
  19. </view>
  20. <u-loadmore :status="loadingType" />
  21. </view>
  22. </template>
  23. <script>
  24. export default {
  25. data() {
  26. return {
  27. loadingType: 'loadmore',
  28. list: 9,
  29. page: 1,
  30. limit: 10
  31. }
  32. },
  33. onLoad(opt) {
  34. },
  35. onShow() {
  36. // this.getData()
  37. },
  38. onReachBottom() {
  39. // this.getData()
  40. },
  41. onReady() {
  42. },
  43. methods: {
  44. getData() {
  45. let that = this
  46. if (that.loadingType == 'nomore' || that.loadingType == 'loading') {
  47. return
  48. }
  49. that.loadingType = 'loading'
  50. getFc({
  51. }).then(res => {
  52. that.page++
  53. if (that.limit == res.data.list.length) {
  54. that.loadingType = 'loadmore'
  55. } else {
  56. that.loadingType = 'nomore'
  57. }
  58. })
  59. }
  60. }
  61. }
  62. </script>
  63. <style lang="scss">
  64. .order-item {
  65. height: 207rpx;
  66. width: 100%;
  67. background-color: #fff;
  68. padding: 30rpx 30rpx;
  69. line-height: 1.5;
  70. display: flex;
  71. align-items: center;
  72. border-bottom: 1rpx solid #F0F0F0;
  73. .logo {
  74. flex-shrink: 0;
  75. margin-right: 20rpx;
  76. width: 147rpx;
  77. height: 147rpx;
  78. border-radius: 20rpx;
  79. background-color: #eee;
  80. }
  81. .title-box {
  82. height: 100%;
  83. flex-grow: 1;
  84. padding-right: 50rpx;
  85. display: flex;
  86. flex-direction: column;
  87. justify-content: space-between;
  88. align-items: flex-start;
  89. .title {
  90. font-size: 30rpx;
  91. color: #333333;
  92. }
  93. .time {
  94. font-size: 36rpx;
  95. font-weight: bold;
  96. color: #E02020;
  97. &::before {
  98. content: '¥';
  99. font-size: 24rpx;
  100. }
  101. }
  102. }
  103. .money {
  104. flex-shrink: 0;
  105. padding: 8rpx 12rpx;
  106. background: #FEE1D7;
  107. border-radius: 5px;
  108. color: #fd5b23;
  109. font-size: 26rpx;
  110. text-align: right;
  111. display: flex;
  112. align-items: center;
  113. justify-content: flex-end;
  114. image {
  115. width: 10rpx;
  116. height: 20rpx;
  117. margin-left: 15rpx;
  118. }
  119. .status {
  120. color: #AEAEAE;
  121. }
  122. }
  123. }
  124. </style>