integralShow.vue 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  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" @click="integralRulesClick">{{ $t('points.integralRules') }}</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="handleClickMall">{{ $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. // 积分规则
  44. const integralRulesClick = () => {
  45. window.open('/personalIntegralRules')
  46. }
  47. // 跳转臻选商城
  48. const handleClickMall = () => {
  49. window.open('/pointsManagement')
  50. }
  51. </script>
  52. <style lang="scss" scoped>
  53. .statisticsBox {
  54. padding: 10px 0;
  55. border-radius: 10px;
  56. background-color: var(--default-bgc);
  57. // background-color: #f3f3f3;
  58. // font-family: 宋体, SimSun;
  59. }
  60. </style>