index.vue 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. <template>
  2. <head-component :headinfo=headinfo></head-component>
  3. <div style="display: flex;flex-direction: row">
  4. <div class="temp" @click="jumpTo('/xjc-integratedmachine/wakeup/career_recognize/index')">
  5. 认识生涯
  6. </div>
  7. <div class="temp" @click="jumpTo('/xjc-integratedmachine/wakeup/rainbow/paint')">
  8. 生涯彩虹图
  9. </div>
  10. <div class="temp" @click="jumpTo('/xjc-integratedmachine/wakeup/career_maturity/index')">
  11. 生涯成熟度测评
  12. </div>
  13. <div class="temp" @click="jumpTo('/xjc-integratedmachine/wakeup/career_example/index')">
  14. 生涯榜样
  15. </div>
  16. <div class="temp" @click="jumpTo('/xjc-integratedmachine/wakeup/career_cinema/index')">
  17. 生涯影院
  18. </div>
  19. </div>
  20. </template>
  21. <script setup>
  22. import headComponent from '@/views/xjc-integratedmachine/components/head_component.vue'
  23. const router = useRouter()
  24. let headinfo =ref({})
  25. function setHeadinfo(){
  26. headinfo.value = {
  27. title: '生涯唤醒学习系统',
  28. user: {
  29. avatar: '头像路径',
  30. nickName: '张三'
  31. }
  32. }
  33. }
  34. function jumpTo(path) {
  35. console.log("path:",path)
  36. router.push({
  37. path: path,
  38. query: {name: 123}
  39. })
  40. }
  41. onMounted(() => {
  42. setHeadinfo()
  43. })
  44. </script>
  45. <style scoped>
  46. .temp{
  47. width:20vw;
  48. height: 10vh;
  49. background: #85eff5;
  50. border: solid 1px #a2fffc;
  51. border-radius: 10px;
  52. cursor: pointer;
  53. }
  54. </style>