|
@@ -1,10 +1,22 @@
|
|
|
<template>
|
|
|
- <head-component></head-component>
|
|
|
- <div style="display: flex">
|
|
|
- <div style="width:20vw;height: 10vh;background: #85eff5;border: solid 1px #a2fffc;border-radius: 10px;cursor: pointer"
|
|
|
- @click="goto">
|
|
|
+ <head-component :headinfo=headinfo></head-component>
|
|
|
+ <div style="display: flex;flex-direction: row">
|
|
|
+ <div class="temp">
|
|
|
+ 认识生涯
|
|
|
+ </div>
|
|
|
+ <div class="temp" @click="jumpTo('/integratedmachine/wakeup/rainbow/paint')">
|
|
|
生涯彩虹图
|
|
|
</div>
|
|
|
+ <div class="temp">
|
|
|
+ 生涯成熟度测评
|
|
|
+ </div>
|
|
|
+ <div class="temp">
|
|
|
+ 生涯榜样
|
|
|
+ </div>
|
|
|
+ <div class="temp">
|
|
|
+ 生涯影院
|
|
|
+ </div>
|
|
|
+
|
|
|
</div>
|
|
|
</template>
|
|
|
|
|
@@ -14,13 +26,41 @@
|
|
|
|
|
|
const router = useRouter()
|
|
|
|
|
|
- function goto() {
|
|
|
- router.push('/integratedmachine/wakeup/rainbow/paint')
|
|
|
+ let headinfo =ref({})
|
|
|
+ function setHeadinfo(){
|
|
|
+ headinfo.value = {
|
|
|
+ title: '生涯唤醒学习系统',
|
|
|
+ user: {
|
|
|
+ avatar: '头像路径',
|
|
|
+ nickName: '张三'
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
+ function jumpTo(path) {
|
|
|
+ console.log("path:",path)
|
|
|
+ router.push({
|
|
|
+ path: path,
|
|
|
+ query: {name: 123}
|
|
|
+ })
|
|
|
}
|
|
|
|
|
|
+ onMounted(() => {
|
|
|
+ setHeadinfo()
|
|
|
+ })
|
|
|
+
|
|
|
+
|
|
|
</script>
|
|
|
|
|
|
|
|
|
<style scoped>
|
|
|
-
|
|
|
+ .temp{
|
|
|
+ width:20vw;
|
|
|
+ height: 10vh;
|
|
|
+ background: #85eff5;
|
|
|
+ border: solid 1px #a2fffc;
|
|
|
+ border-radius: 10px;
|
|
|
+ cursor: pointer;
|
|
|
+ }
|
|
|
</style>
|