integralShow.vue 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. <!-- -->
  2. <template>
  3. <div class="statisticsBox">
  4. <div class="mt-2">
  5. <span style="font-size: 20px; color: #333; line-height: 28px; font-weight: bold;" class="ml-10">{{ props.title }}</span>
  6. <span style="font-size: 14px; color: #777; line-height: 24px; cursor: pointer;" class="ml-2">{{ $t('points.integralRule') }}</span>
  7. </div>
  8. <div class="d-flex justify-space-between align-end my-1">
  9. <span style="font-size: 42px; color: #10897bba; line-height: 50px;" class="ml-10 cursor-pointer" @click="router.push({ path: '/pointsManagement', query: { tab: 2 } })">{{ integral }}</span>
  10. <span style="font-size: 16px; color: #787d82; line-height: 24px;" class="mr-8">
  11. <!-- 积分商城 -->
  12. <template v-if="props.showMall">
  13. <span>积分土豪的都喜欢来这里,</span>
  14. <span style="color: #10897be8; cursor: pointer;" @click="router.push({ path: '/pointsManagement'})">{{ $t('points.handpickMall') }}</span>
  15. </template>
  16. <!-- 任务中心 -->
  17. <template v-if="props.taskCenter">
  18. <span style=" color: var(--v-primary-base); cursor: pointer;" @click="router.push({ path: '/personalTaskCenter' })">赚取积分</span>
  19. <!-- <span style="color: #10897be8; cursor: pointer;" @click="router.push({ path: '/personalTaskCenter' })">《<span style=" color: var(--v-primary-base);">任务中心</span>》</span> -->
  20. </template>
  21. </span>
  22. </div>
  23. </div>
  24. </template>
  25. <script setup>
  26. import { useRouter } from 'vue-router'; const router = useRouter()
  27. defineOptions({name: 'myRegistration-integralShow'})
  28. const props = defineProps({
  29. title: {
  30. type: String,
  31. default: '您当前赚取积分'
  32. },
  33. showMall: {
  34. type: Boolean,
  35. default: true
  36. },
  37. taskCenter: {
  38. type: Boolean,
  39. default: false
  40. },
  41. })
  42. const integral = '135'
  43. </script>
  44. <style lang="scss" scoped>
  45. .statisticsBox {
  46. padding: 10px 0;
  47. border-radius: 10px;
  48. background-color: var(--default-bgc);
  49. // background-color: #f3f3f3;
  50. // font-family: 宋体, SimSun;
  51. }
  52. </style>