progressiveIntegral.vue 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123
  1. <!-- 进步积分 -->
  2. <template>
  3. <view class="integral">
  4. <!-- 导航栏 -->
  5. <u-navbar class="evaluate-intention-bar" back-text="" title="进步积分" :background="background" title-color="#fff" back-icon-color="#fff">
  6. </u-navbar>
  7. <!-- 背景 -->
  8. <view class="integral-bg"></view>
  9. <!-- 内容 -->
  10. <view class="integral-content">
  11. <view class="integral-content-header">
  12. <view class="integral-content-header-grade">0</view>
  13. <view class="integral-content-header-point">
  14. <view class="point">
  15. <view></view>
  16. </view>
  17. <view>累计获得积分</view>
  18. <view class="point">
  19. <view></view>
  20. </view>
  21. </view>
  22. <view class="integral-content-header-rules">积分规则<u-icon name="arrow-right"/></view>
  23. <view class="integral-content-header-behavior">
  24. <view class="item">0<text>个加分行为</text></view>
  25. <view class="item">0<text>个减分行为</text></view>
  26. </view>
  27. </view>
  28. <view class="integral-content-first">
  29. <view class="integral-content-first-item">
  30. <image src="../../static/img/priority-recommendation-icon.png" mode=""></image>
  31. <view>优先推荐</view>
  32. </view>
  33. <view class="integral-content-first-item">
  34. <image src="../../static/img/priority-shift-icon.png" mode=""></image>
  35. <view>优先分班</view>
  36. </view>
  37. <view class="integral-content-first-item">
  38. <image src="../../static/img/priority-feedback-icon.png" mode=""></image>
  39. <view>优先反馈</view>
  40. </view>
  41. </view>
  42. <view class="integral-content-list" v-if="integralList.length">
  43. <view class="integral-content-list-item" v-for="(item, index) in integralList" :key="index">
  44. <view class="left">
  45. <view>{{ item.title }}</view>
  46. <view>{{ item.date }}</view>
  47. </view>
  48. <view class="right">
  49. <view v-if="item.type === 0">+{{ item.grade }}</view>
  50. <view v-else class="reduce">-{{ item.grade }}</view>
  51. </view>
  52. </view>
  53. </view>
  54. <view class="integral-content-list" v-else>
  55. <u-empty mode="list"></u-empty>
  56. </view>
  57. </view>
  58. </view>
  59. </template>
  60. <script>
  61. export default {
  62. data() {
  63. return {
  64. background: {
  65. backgroundColor: '#FE7C0F'
  66. },
  67. // 积分列表
  68. integralList: [
  69. // {
  70. // title: '签到成功',
  71. // date: '2021-03-25',
  72. // grade: 100,
  73. // type: 0
  74. // },
  75. // {
  76. // title: '积分商城兑换',
  77. // date: '2021-03-24',
  78. // grade: 5000,
  79. // type: 1
  80. // },
  81. // {
  82. // title: '签到成功',
  83. // date: '2021-03-24',
  84. // grade: 100,
  85. // type: 0
  86. // },
  87. // {
  88. // title: '签到成功',
  89. // date: '2021-03-23',
  90. // grade: 100,
  91. // type: 0
  92. // },
  93. // {
  94. // title: '签到成功',
  95. // date: '2021-03-22',
  96. // grade: 100,
  97. // type: 0
  98. // },
  99. // {
  100. // title: '签到成功',
  101. // date: '2021-03-21',
  102. // grade: 100,
  103. // type: 0
  104. // }
  105. ]
  106. }
  107. },
  108. methods: {
  109. }
  110. }
  111. </script>
  112. <style lang="scss" scoped>
  113. @import './progressiveIntegral.scss';
  114. </style>