From 15f3dcccf981a613d444bf098babfe6dab3ab9a4 Mon Sep 17 00:00:00 2001 From: lixg Date: Sun, 18 Dec 2022 11:05:31 +0800 Subject: [PATCH] =?UTF-8?q?fix:=E4=BF=AE=E6=94=B9=E9=9D=A2=E6=8E=88?= =?UTF-8?q?=E8=AF=BE=E7=AD=BE=E5=88=B0=E6=97=B6=E9=97=B4=E8=8C=83=E5=9B=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .env | 3 +- src/api/api.js | 4 +- src/views/faceteach/FaceTeach.vue | 87 ++++++------ src/views/project/ProjectDetails.vue | 193 +++++++++++++++------------ src/views/roadmap/PathDetails.vue | 5 +- 5 files changed, 158 insertions(+), 134 deletions(-) diff --git a/.env b/.env index 06c9cab..a0079fe 100644 --- a/.env +++ b/.env @@ -12,4 +12,5 @@ VITE_BOE_EXAM_DETAIL_URL=https://u-pre.boe.com/pc/exam/test?id= VITE_BOE_API_URL=https://u-pre.boe.com -VITE_TASK_WHITE_TYPE=-8-,-12-,-13- \ No newline at end of file +VITE_TASK_WHITE_TYPE=-8-,-12-,-13- +# VITE_TASK_WHITE_TYPE=-8-,-12- \ No newline at end of file diff --git a/src/api/api.js b/src/api/api.js index 167f637..87b05ca 100644 --- a/src/api/api.js +++ b/src/api/api.js @@ -2,13 +2,13 @@ * @Author: lixg lixg@dongwu-inc.com * @Date: 2022-12-11 16:57:58 * @LastEditors: lixg lixg@dongwu-inc.com - * @LastEditTime: 2022-12-17 14:59:41 + * @LastEditTime: 2022-12-17 19:19:17 * @FilePath: /fe-stu/src/api/api.js * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE */ export const LOGIN = '/admin/CheckUser/userLogin post' // export const FILE_UPLOAD = 'http://111.231.196.214:30001/file/upload' -export const FILE_UPLOAD = import.meta.env.VITE_BASE_API + '/file/upload' +export const FILE_UPLOAD = '/file/upload' export const COMMON_TOKEN = 'https://upload-z2.qiniup.com' export const ROUTER_CHAPTER_LIST = '/stu/router/chapterList' export const ROUTER_LIST = '/stu/router/list post' diff --git a/src/views/faceteach/FaceTeach.vue b/src/views/faceteach/FaceTeach.vue index 549b3fa..6cdd2f4 100644 --- a/src/views/faceteach/FaceTeach.vue +++ b/src/views/faceteach/FaceTeach.vue @@ -42,8 +42,7 @@ class="btn" style="margin-right: 20px" :style="{ - background: - data.signFlag || !isAllowSign ? '#999' : 'rgb(57, 146, 249)', + background: data.signFlag ? '#999' : 'rgb(57, 146, 249)', }" @click="signClick" >{{ data.signFlag ? "已签到" : "签到" }} @@ -226,10 +225,10 @@ diff --git a/src/views/project/ProjectDetails.vue b/src/views/project/ProjectDetails.vue index b65e4b7..b52bf1e 100644 --- a/src/views/project/ProjectDetails.vue +++ b/src/views/project/ProjectDetails.vue @@ -15,23 +15,25 @@
{{ i.stageName }}
- +
进行中
- +
未开始
{{ value.name }}
@@ -53,17 +55,17 @@
当前进度
-
+
{{ value.status === 1 - ? "已完成" - : types.path[value.type] - ? types.toName[value.type] - : "未开放" + ? "已完成" + : types.path[value.type] + ? types.toName[value.type] + : "未开放" }}
@@ -132,32 +134,32 @@
- {{ data.remark || '暂无公告' }} + {{ data.remark || "暂无公告" }}
- - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + +
@@ -167,26 +169,26 @@
个人信息
- +
{{ userInfo?.realName }}
- - - + + +
{{ userInfo?.bandDesc }}
@@ -195,8 +197,8 @@
学习进度
@@ -207,17 +209,16 @@
继续学习
--> -
总进度
diff --git a/src/views/roadmap/PathDetails.vue b/src/views/roadmap/PathDetails.vue index 32ad475..7fb08dc 100644 --- a/src/views/roadmap/PathDetails.vue +++ b/src/views/roadmap/PathDetails.vue @@ -343,9 +343,9 @@ const returnclick = () => { router.back(); }; const { data } = useRequest(ROUTER_PROCESS, { routerId }); - +console.log("data", data); const userInfo = computed(() => store.state.userInfo); -console.log("userInfo", userInfo); + const activeName = ref("first"); const handleClick = (tab, event) => { @@ -416,6 +416,7 @@ function toFinish(d, sName) { } if (typeof types.value.path[d.type] === "string") { + // console.log("dddddd", d); types.value.path[d.type] && types.value.path[d.type].startsWith("http") && window.open(types.value.path[d.type] + d.targetId);