progressiveIntegral.vue 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120
  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">688</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">286<text>个加分行为</text></view>
  25. <view class="item">33<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">
  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>
  55. </view>
  56. </template>
  57. <script>
  58. export default {
  59. data() {
  60. return {
  61. background: {
  62. backgroundColor: '#FE7C0F'
  63. },
  64. // 积分列表
  65. integralList: [
  66. {
  67. title: '签到成功',
  68. date: '2021-03-25',
  69. grade: 100,
  70. type: 0
  71. },
  72. {
  73. title: '积分商城兑换',
  74. date: '2021-03-24',
  75. grade: 5000,
  76. type: 1
  77. },
  78. {
  79. title: '签到成功',
  80. date: '2021-03-24',
  81. grade: 100,
  82. type: 0
  83. },
  84. {
  85. title: '签到成功',
  86. date: '2021-03-23',
  87. grade: 100,
  88. type: 0
  89. },
  90. {
  91. title: '签到成功',
  92. date: '2021-03-22',
  93. grade: 100,
  94. type: 0
  95. },
  96. {
  97. title: '签到成功',
  98. date: '2021-03-21',
  99. grade: 100,
  100. type: 0
  101. }
  102. ]
  103. }
  104. },
  105. methods: {
  106. }
  107. }
  108. </script>
  109. <style lang="scss" scoped>
  110. @import './progressiveIntegral.scss';
  111. </style>