This commit is contained in:
Pengxiansen
2025-02-17 11:24:49 +08:00
parent f83820965d
commit 7ce4e1c492
4 changed files with 29 additions and 9 deletions

5
.env
View File

@@ -32,4 +32,7 @@ VITE_FILE_PATH=/upload/
#h5的基本url
VITE_BOE_HOME=//u-pre.boe.com/mobile/pages/index/index
# 学习任务页
VITE_BOE_STUDY=//u-pre.boe.com/mobile/pages/study/index
VITE_BOE_STUDY=//u-pre.boe.com/mobile/pages/study/index
# 专业力任务页
VITE_BOE_GROWTH=//u-pre.boe.com/mobile/pages/my/growth

View File

@@ -20,4 +20,7 @@ VITE_IMG=/manageApi
#h5的基本url
VITE_BOE_HOME=//u.boe.com/mobile/pages/index/index
VITE_BOE_STUDY=//u.boe.com/mobile/pages/study/index
# 专业力任务页
VITE_BOE_GROWTH=//u.boe.com/mobile/pages/my/growth
VITE_FILE_PATH=/upload/boe/file/

View File

@@ -1,7 +1,7 @@
<template>
<div class="growth-details">
<div class="navbar">
<div class="nav-left">
<div class="nav-left" @click="returnclick">
<el-icon color="#fff" size="20"><ArrowLeft /></el-icon>
</div>
<div class="nav-title">专业力必修</div>
@@ -471,9 +471,9 @@ async function toFinish(d) {
path: TASK_TYPES.path[d.courseType],
query: {
id: d.id,
type: GROWTH,
type: d.courseType === "11" ? "5" : GROWTH,
projectId: d.courseId,
infoId: data.value.id,
infoId: d.courseType === "11" ? d.taskId : data.value.id,
courseId: d.courseId ? d.courseId : d.info.id,
pName: data.value.growthName,
sName: d.taskName,
@@ -513,8 +513,9 @@ async function toFinish(d) {
}
}
const getAssetsFile = (url) => {
return new URL(`../../assets/image/growth/type${url}.png`, import.meta.url).href
}
return new URL(`../../assets/image/growth/type${url}.png`, import.meta.url)
.href;
};
function toOffcoursePlanPage(id) {
window.open(
`${location.protocol}//${location.host}${
@@ -523,6 +524,13 @@ function toOffcoursePlanPage(id) {
"_top"
);
}
const returnclick = () => {
window.open(
window.location.protocol + import.meta.env.VITE_BOE_GROWTH,
"_top"
);
};
const toPath = () => {
router.push({
path: "/growthPath",

View File

@@ -1,7 +1,7 @@
<template>
<div class="growth-details">
<div class="navbar">
<div class="nav-left">
<div class="nav-left" @click="returnclick">
<el-icon color="#fff" size="20"><ArrowLeft /></el-icon>
</div>
<div class="nav-title">专业力必修</div>
@@ -665,9 +665,9 @@ async function toFinish(d) {
path: TASK_TYPES.path[d.courseType],
query: {
id: d.id,
type: GROWTH,
type: d.courseType === "11" ? "5" : GROWTH,
projectId: d.courseId,
infoId: data.value.id,
infoId: d.courseType === "11" ? d.taskId : data.value.id,
courseId: d.courseId ? d.courseId : d.info.id,
pName: data.value.growthName,
sName: d.taskName,
@@ -714,6 +714,12 @@ function toOffcoursePlanPage(id) {
"_top"
);
}
const returnclick = () => {
window.open(
window.location.protocol + import.meta.env.VITE_BOE_GROWTH,
"_top"
);
};
const toPath = () => {
router.push({
path: "/growthDetails",