mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-student.git
synced 2025-12-11 20:06:49 +08:00
init
This commit is contained in:
@@ -1,4 +1,5 @@
|
|||||||
export const BASE = 'https://u-pre.boe.com'
|
export const BASE = 'https://u-pre.boe.com'
|
||||||
export const GET_USER_LIST = `/userbasic/user/list post`
|
export const GET_USER_LIST = `/userbasic/user/list post`
|
||||||
|
export const GET_USER_INFO = `/userbasic/user/info post`
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -4,19 +4,19 @@
|
|||||||
<div class="title">
|
<div class="title">
|
||||||
<div class="titleL">
|
<div class="titleL">
|
||||||
<div @click="returnfun" class="text">学习路径图</div>
|
<div @click="returnfun" class="text">学习路径图</div>
|
||||||
<div class="info" style="margin-right: 14px">
|
<div class="info" style="margin-right: 14px" v-if="useInfo.jobName">
|
||||||
<img
|
<img
|
||||||
style="width: 20px; height: 18px; margin-right: 10px"
|
style="width: 20px; height: 18px; margin-right: 10px"
|
||||||
src="../../assets/image/pm.png"
|
src="../../assets/image/pm.png"
|
||||||
/>
|
/>
|
||||||
<div style="margin-top: 1px">产品经理</div>
|
<div style="margin-top: 1px">{{ useInfo.jobName }}</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="info">
|
<div class="info" v-if="useInfo.bandDesc">
|
||||||
<img
|
<img
|
||||||
style="width: 18px; height: 17px; margin-right: 11px"
|
style="width: 18px; height: 17px; margin-right: 11px"
|
||||||
src="../../assets/image/band.png"
|
src="../../assets/image/band.png"
|
||||||
/>
|
/>
|
||||||
<div style="margin-top: 2px">Band8</div>
|
<div style="margin-top: 2px">{{ useInfo.bandDesc }}</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div :style="{ display: !showmapdetail ? 'flex' : 'none' }">
|
<div :style="{ display: !showmapdetail ? 'flex' : 'none' }">
|
||||||
@@ -53,7 +53,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<template #reference>
|
<template #reference>
|
||||||
<!-- todo #学习路径 只会有一个未完成任务么?是否是直接跳到任务详情-->
|
<!-- todo #学习路径 只会有一个未完成任务么?是否是直接跳到任务详情-->
|
||||||
<div class="titleR">进入未完成任务</div>
|
<!-- <div class="titleR">进入未完成任务</div>-->
|
||||||
</template>
|
</template>
|
||||||
</el-popover>
|
</el-popover>
|
||||||
</div>
|
</div>
|
||||||
@@ -141,11 +141,11 @@
|
|||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
<script setup>
|
<script setup>
|
||||||
import {reactive, toRefs, ref} from "vue";
|
import {reactive, toRefs, ref, onMounted} from "vue";
|
||||||
import nostarted from "../../assets/image/nostarted.png";
|
import nostarted from "../../assets/image/nostarted.png";
|
||||||
import completed from "../../assets/image/completed.png";
|
import completed from "../../assets/image/completed.png";
|
||||||
import ongoing from "../../assets/image/ongoing.png";
|
import ongoing from "../../assets/image/ongoing.png";
|
||||||
import {request, usePage, useRequest} from "@/api/request";
|
import {boeRequest, request, usePage, useRequest} from "@/api/request";
|
||||||
import {
|
import {
|
||||||
BASE_URL,
|
BASE_URL,
|
||||||
ROUTER_CHAPTER_LIST,
|
ROUTER_CHAPTER_LIST,
|
||||||
@@ -154,13 +154,22 @@ import {
|
|||||||
} from "@/api/api";
|
} from "@/api/api";
|
||||||
import {useImage} from "@/api/utils";
|
import {useImage} from "@/api/utils";
|
||||||
import {useRouter} from "vue-router";
|
import {useRouter} from "vue-router";
|
||||||
|
import {GET_USER_INFO} from "@/api/ThirdApi";
|
||||||
|
|
||||||
const detail = ref();
|
const detail = ref();
|
||||||
|
const useInfo = ref({});
|
||||||
const {data} = usePage(ROUTER_LIST, {});
|
const {data} = usePage(ROUTER_LIST, {});
|
||||||
|
|
||||||
const router = useRouter();
|
const router = useRouter();
|
||||||
|
|
||||||
const {unCompleteTaskList} = useRequest(ROUTER_UNCOMPLETE_LIST, {});
|
const {unCompleteTaskList} = useRequest(ROUTER_UNCOMPLETE_LIST, {});
|
||||||
|
|
||||||
|
onMounted(()=>{
|
||||||
|
boeRequest(GET_USER_INFO).then(res=>{
|
||||||
|
useInfo.value=res.result
|
||||||
|
})
|
||||||
|
})
|
||||||
|
|
||||||
const state = reactive({
|
const state = reactive({
|
||||||
showmapdetail: false,
|
showmapdetail: false,
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user