mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/student-h5.git
synced 2025-12-06 09:26:46 +08:00
feat:修改
This commit is contained in:
2
.env
2
.env
@@ -16,7 +16,7 @@ VITE_BOE_API_URL=https://u-pre.boe.com
|
||||
|
||||
VITE_TASK_WHITE_TYPE=-8-,-12-,-13-
|
||||
# boe域名
|
||||
VUE_APP_BOE_API_URL=//u-pre.boe.com
|
||||
VITE_BOE_BASE_URL=//u-pre.boe.com
|
||||
#评论上传图片
|
||||
VITE_IMG=/manageApi
|
||||
VITE_BASE_FILE_PATH=/fe-student-h5/upload
|
||||
2
.env.boe
2
.env.boe
@@ -8,6 +8,6 @@ VITE_BOE_TEST_OUT_DETAIL_URL=//u-pre.boe.com/api/b1/tale/do-quiz?quizKid=
|
||||
VITE_BOE_EXAM_DETAIL_URL=//u-pre.boe.com/mobile/pages/exam/exam?id=
|
||||
|
||||
VITE_BOE_API_URL=https://u-pre.boe.com
|
||||
VUE_APP_BOE_API_URL=//u-pre.boe.com
|
||||
VITE_BOE_BASE_URL=//u-pre.boe.com
|
||||
|
||||
VITE_IMG=/manageApi
|
||||
@@ -13,6 +13,6 @@ VITE_BOE_PATH_DETAIL_URL=//u.boe.com/pc/forward?to=/student-h5
|
||||
VITE_BOE_API_URL=https://u.boe.com
|
||||
|
||||
VITE_TASK_WHITE_TYPE=-8-,-12-,-13-
|
||||
VUE_APP_BOE_API_URL=//u.boe.com
|
||||
VITE_BOE_BASE_URL=//u.boe.com
|
||||
|
||||
VITE_IMG=/manageApi
|
||||
@@ -10,6 +10,6 @@ VITE_BOE_EXAM_DETAIL_URL=//u.boe.com/pc-release/mobile/pages/exam/exam?id=
|
||||
VITE_BOE_PATH_DETAIL_URL=//u.boe.com/pc-release/forward?to=/student-h5-release
|
||||
|
||||
VITE_BOE_API_URL=https://u.boe.com
|
||||
VUE_APP_BOE_API_URL=//u.boe.com
|
||||
VITE_BOE_BASE_URL=//u.boe.com
|
||||
|
||||
VITE_IMG=/manageApi-release
|
||||
@@ -3,4 +3,4 @@ VITE_BASE_API=/manageApi
|
||||
|
||||
VITE_OUTPUT_DIR=./docker/dist
|
||||
VITE_BOE_API_URL=//u-pre.boe.com
|
||||
VUE_APP_BOE_API_URL=//u-pre.boe.com
|
||||
VITE_BOE_BASE_URL=//u-pre.boe.com
|
||||
@@ -27,7 +27,7 @@ import { GET_USER_INFO } from "@/api/ThirdApi";
|
||||
import { getCookie } from "@/api/utils";
|
||||
|
||||
import { USER_INFO } from "@/api/api";
|
||||
console.log("版本1.2.3------------");
|
||||
console.log("版本1.2.5------------");
|
||||
const store = useStore();
|
||||
const router = useRouter();
|
||||
|
||||
|
||||
@@ -29,7 +29,7 @@
|
||||
<script setup>
|
||||
import { computed, defineProps, ref, watch } from "vue";
|
||||
import { useRouter } from "vue-router/dist/vue-router";
|
||||
import { ElLoading } from "element-plus";
|
||||
import { ElLoading, ElMessage } from "element-plus";
|
||||
import { ROUTERTASK_LIST } from "@/api/api";
|
||||
import { usePage, useRequest } from "@/api/request";
|
||||
const listheight = document.body.clientHeight - 300 + "px";
|
||||
@@ -103,10 +103,26 @@ const { data } = useRequest(ROUTERTASK_LIST, { routerId: props.routerId });
|
||||
console.log("data", data);
|
||||
let current = ref(null);
|
||||
watch(data, () => {
|
||||
// console.log(
|
||||
// "import.meta.env.VITE_BOE_BASE_URL",
|
||||
// import.meta.env.VITE_BOE_BASE_URL
|
||||
// );
|
||||
if (data.value && data.value.list) {
|
||||
data.value.list.reverse();
|
||||
current.value = data.value.list.findIndex(
|
||||
(e) => e.id === data.value.currentChapterId
|
||||
);
|
||||
} else {
|
||||
ElMessage.warning("您不是此学习路径的学员");
|
||||
// router.push({
|
||||
// path: import.meta.env.VITE_BOE_BASE_URL + "/mobile/pages/index/index",
|
||||
// });
|
||||
window.open(
|
||||
import.meta.env.VITE_BOE_BASE_URL + "/mobile/pages/index/index",
|
||||
"_self"
|
||||
);
|
||||
}
|
||||
|
||||
closeLoading();
|
||||
});
|
||||
// const current = computed(() => {
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
* @Author: lixg lixg@dongwu-inc.com
|
||||
* @Date: 2023-01-19 11:28:11
|
||||
* @LastEditors: lixg lixg@dongwu-inc.com
|
||||
* @LastEditTime: 2023-02-27 15:34:11
|
||||
* @LastEditTime: 2023-02-28 09:56:55
|
||||
* @FilePath: /stu_h5/src/views/projectdetails/ProjectPath.vue
|
||||
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
|
||||
-->
|
||||
|
||||
@@ -172,13 +172,25 @@ const { data } = useRequest(PROJECT_PROCESS, {
|
||||
watch(
|
||||
() => data.value.stageProcessList,
|
||||
() => {
|
||||
if (data.value.stageProcessList) {
|
||||
data.value.stageProcessList.forEach((t) => {
|
||||
t.stageStatusName = getTaskStatus(t);
|
||||
});
|
||||
console.log("改变data", data);
|
||||
}
|
||||
},
|
||||
{ deep: true }
|
||||
);
|
||||
watch(data, () => {
|
||||
console.log("data.value.projectId", data.value.projectId);
|
||||
if (!data.value.projectId) {
|
||||
ElMessage.warning("您不是此项目的学员");
|
||||
window.open(
|
||||
import.meta.env.VITE_BOE_BASE_URL + "/mobile/pages/index/index",
|
||||
"_self"
|
||||
);
|
||||
}
|
||||
});
|
||||
|
||||
function getTaskStatus(d) {
|
||||
if (data.value.status !== 3) {
|
||||
|
||||
Reference in New Issue
Block a user