mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/student-h5.git
synced 2025-12-06 09:26:46 +08:00
--demand 面授课
This commit is contained in:
@@ -33,8 +33,10 @@ export function useUserInfo(id) {
|
||||
const userInfo = ref({});
|
||||
watch(id, () => {
|
||||
id.value && boeRequest(GET_USER_LIST, { id: id.value }).then(res => {
|
||||
userInfo.value = res.result.userInfoList[0];
|
||||
userInfo.value.avatar = userInfo.value.avatar ? userInfo.value.avatar.includes(import.meta.env.VITE_FILE_PATH) ? userInfo.value.avatar : (import.meta.env.VITE_FILE_PATH + userInfo.value.avatar) : "/800e23f7-b58c-4192-820d-0c6a2b7544cc.png";
|
||||
if(res.result.userInfoList[0]){
|
||||
userInfo.value = res.result.userInfoList[0];
|
||||
userInfo.value.avatar = userInfo.value.avatar ? userInfo.value.avatar.includes(import.meta.env.VITE_FILE_PATH) ? userInfo.value.avatar : (import.meta.env.VITE_FILE_PATH + userInfo.value.avatar) : "/800e23f7-b58c-4192-820d-0c6a2b7544cc.png";
|
||||
}
|
||||
});
|
||||
});
|
||||
return userInfo;
|
||||
|
||||
@@ -346,7 +346,7 @@
|
||||
<script setup>
|
||||
import TitleHead from "@/components/TitleHead.vue";
|
||||
import ReturnHead from "@/components/ReturnHead.vue";
|
||||
import {computed, onBeforeMount} from "vue";
|
||||
import {computed, onBeforeMount, ref} from "vue";
|
||||
import FileTypeImg from "@/components/FileTypeImg.vue";
|
||||
import {request, useRequest} from "@/api/request";
|
||||
import {STU_OFFCOURSE_DETAIL, TASK_OFFCOURSE_NOTASK_SIGN,} from "@/api/api";
|
||||
@@ -402,7 +402,7 @@ const signClick = () => {
|
||||
|
||||
data.value.signFlag = 1;
|
||||
ElMessage.warning("签到成功");
|
||||
request(TASK_OFFCOURSE_NOTASK_SIGN, { courseId: courseId,taskId:courseId,type:3 });
|
||||
request(TASK_OFFCOURSE_NOTASK_SIGN, { courseId: courseId, taskId: courseId, type: 3 });
|
||||
};
|
||||
|
||||
function toSurvery() {
|
||||
|
||||
Reference in New Issue
Block a user