mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/student-h5.git
synced 2025-12-09 19:06:47 +08:00
feat:修改跳转
This commit is contained in:
@@ -27,7 +27,7 @@ import { GET_USER_INFO } from "@/api/ThirdApi";
|
|||||||
import { getCookie } from "@/api/utils";
|
import { getCookie } from "@/api/utils";
|
||||||
|
|
||||||
import { USER_INFO } from "@/api/api";
|
import { USER_INFO } from "@/api/api";
|
||||||
console.log("版本2.1.8------------");
|
console.log("版本2.1.9------------");
|
||||||
const store = useStore();
|
const store = useStore();
|
||||||
const router = useRouter();
|
const router = useRouter();
|
||||||
|
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
* @Author: lixg lixg@dongwu-inc.com
|
* @Author: lixg lixg@dongwu-inc.com
|
||||||
* @Date: 2023-01-16 17:26:39
|
* @Date: 2023-01-16 17:26:39
|
||||||
* @LastEditors: lixg lixg@dongwu-inc.com
|
* @LastEditors: lixg lixg@dongwu-inc.com
|
||||||
* @LastEditTime: 2023-03-08 17:27:40
|
* @LastEditTime: 2023-03-08 18:01:49
|
||||||
* @FilePath: /stu_h5/src/components/ReturnHead.vue
|
* @FilePath: /stu_h5/src/components/ReturnHead.vue
|
||||||
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
|
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
|
||||||
-->
|
-->
|
||||||
@@ -84,16 +84,16 @@ export default {
|
|||||||
type: Number,
|
type: Number,
|
||||||
default: null,
|
default: null,
|
||||||
},
|
},
|
||||||
|
gohome: {
|
||||||
|
type: Boolean,
|
||||||
|
default: false,
|
||||||
|
},
|
||||||
},
|
},
|
||||||
setup(props, ctx) {
|
setup(props, ctx) {
|
||||||
const router = useRouter();
|
const router = useRouter();
|
||||||
const returnclick = () => {
|
const returnclick = () => {
|
||||||
console.log(
|
console.log("props.gohome", props.gohome, import.meta.env.VITE_BOE_STUDY);
|
||||||
"window.history",
|
if (props.gohome) {
|
||||||
window.history,
|
|
||||||
import.meta.env.VITE_BOE_STUDY
|
|
||||||
);
|
|
||||||
if (window.history.length <= 1) {
|
|
||||||
window.open(import.meta.env.VITE_BOE_STUDY, "_top");
|
window.open(import.meta.env.VITE_BOE_STUDY, "_top");
|
||||||
} else {
|
} else {
|
||||||
router.back(-1);
|
router.back(-1);
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="faceteach">
|
<div class="faceteach">
|
||||||
<ReturnHead text="课程详情"></ReturnHead>
|
<ReturnHead text="课程详情" :gohome="true"></ReturnHead>
|
||||||
<TitleHead :text="'【面授课】' + data.planDto?.name"></TitleHead>
|
<TitleHead :text="'【面授课】' + data.planDto?.name"></TitleHead>
|
||||||
<div class="main">
|
<div class="main">
|
||||||
<div class="title">
|
<div class="title">
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="faceteachnocommon">
|
<div class="faceteachnocommon">
|
||||||
<ReturnHead text="课程详情"></ReturnHead>
|
<ReturnHead text="课程详情" :gohome="true"></ReturnHead>
|
||||||
|
|
||||||
<div class="main">
|
<div class="main">
|
||||||
<div class="title">
|
<div class="title">
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="faceteachnocourse">
|
<div class="faceteachnocourse">
|
||||||
<ReturnHead text="课程详情"></ReturnHead>
|
<ReturnHead text="课程详情" :gohome="true"></ReturnHead>
|
||||||
|
|
||||||
<div class="main">
|
<div class="main">
|
||||||
<div class="title">
|
<div class="title">
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="faceteachsignup">
|
<div class="faceteachsignup">
|
||||||
<ReturnHead text="课程详情"></ReturnHead>
|
<ReturnHead text="课程详情" :gohome="true"></ReturnHead>
|
||||||
<div class="main">
|
<div class="main">
|
||||||
<div class="title">
|
<div class="title">
|
||||||
<div class="faceteachimgname">
|
<div class="faceteachimgname">
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
* @Author: lixg lixg@dongwu-inc.com
|
* @Author: lixg lixg@dongwu-inc.com
|
||||||
* @Date: 2023-01-19 14:59:34
|
* @Date: 2023-01-19 14:59:34
|
||||||
* @LastEditors: lixg lixg@dongwu-inc.com
|
* @LastEditors: lixg lixg@dongwu-inc.com
|
||||||
* @LastEditTime: 2023-03-04 20:57:49
|
* @LastEditTime: 2023-03-08 17:52:46
|
||||||
* @FilePath: /stu_h5/src/views/pathmap/LevelList.vue
|
* @FilePath: /stu_h5/src/views/pathmap/LevelList.vue
|
||||||
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
|
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
|
||||||
-->
|
-->
|
||||||
@@ -12,6 +12,7 @@
|
|||||||
text="路径详情"
|
text="路径详情"
|
||||||
:showfile="true"
|
:showfile="true"
|
||||||
:courseId="routerId"
|
:courseId="routerId"
|
||||||
|
:gohome="true"
|
||||||
></ReturnHead>
|
></ReturnHead>
|
||||||
<!-- 学习路径介绍 -->
|
<!-- 学习路径介绍 -->
|
||||||
<div class="pathdetail">
|
<div class="pathdetail">
|
||||||
|
|||||||
@@ -5,6 +5,7 @@
|
|||||||
:showfile="true"
|
:showfile="true"
|
||||||
:courseId="projectId || courseId"
|
:courseId="projectId || courseId"
|
||||||
:type="1"
|
:type="1"
|
||||||
|
:gohome="type == 1 ? true : false"
|
||||||
></ReturnHead>
|
></ReturnHead>
|
||||||
<div class="main">
|
<div class="main">
|
||||||
<div class="up">
|
<div class="up">
|
||||||
|
|||||||
Reference in New Issue
Block a user