index.vue 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. <!-- -->
  2. <template>
  3. <v-card class="card-box pa-5">
  4. <integralShow></integralShow>
  5. <!-- 任务中心 -->
  6. <!-- <div style="font-size: 14px; color: #777; text-align: right;" class="mr-5 mt-3 cursor-pointer" @click="router.push({ path: '/personalTaskCenter' })">《<span style=" color: var(--v-primary-base);">任务中心</span>》</div> -->
  7. <!-- 积分明细 -->
  8. <div class="mt-3">
  9. <v-tabs v-model="tab" style="border-radius: 5px;" align-tabs="start" color="primary" bg-color="#f7f8fa" @update:model-value="handleChangeTab">
  10. <v-tab :value="1"> {{ $t('publicRecruitment.whole') }}</v-tab>
  11. <v-tab :value="2"> {{ $t('publicRecruitment.In') }}</v-tab>
  12. <v-tab :value="3"> {{ $t('publicRecruitment.freezing') }}</v-tab>
  13. <v-tab :value="4"> {{ $t('publicRecruitment.Pay') }}</v-tab>
  14. </v-tabs>
  15. <TablePage :items="dataList"></TablePage>
  16. </div>
  17. </v-card>
  18. </template>
  19. <script setup>
  20. import TablePage from '@/views/personal/myPublicRecruitment/components/integralTable.vue'
  21. import integralShow from '@/views/personal/components/integralShow.vue'
  22. // import { useRouter } from 'vue-router'; const router = useRouter()
  23. import { ref } from 'vue'
  24. defineOptions({name: 'enterprise-memberCenter-myPoints'})
  25. const tab = ref(0)
  26. const dataList = ref([])
  27. // 数据
  28. const getData = () => {
  29. dataList.value = [
  30. { 积分类型: '积分签到', 时间: '2024-06-20 20:00', 积分: '5' },
  31. { 积分类型: '积分到期', 时间: '2024-06-20 00:00', 积分: '-100' },
  32. { 积分类型: '浏览积分', 时间: '2024-06-21 09:05', 积分: '15' },
  33. { 积分类型: '浏览职业分析报告', 时间: '2024-06-22 10:27', 积分: '-20' },
  34. ]
  35. }
  36. getData()
  37. // 切换
  38. const handleChangeTab = () => {
  39. // tab
  40. // getData()
  41. }
  42. </script>
  43. <style lang="scss" scoped>
  44. </style>