mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-student.git
synced 2025-12-11 03:46:48 +08:00
课程组织修改
This commit is contained in:
@@ -1,5 +1,7 @@
|
|||||||
export const BASE = window.location.protocol + '//u-pre.boe.com'
|
export const BASE = window.location.protocol + '//u-pre.boe.com'
|
||||||
export const GET_USER_LIST = `/admin/CheckUser/userInfo`
|
export const GET_USER_LIST = `/admin/CheckUser/userInfo`
|
||||||
export const GET_USER_INFO = `/admin/thirdApi/user/searchList`
|
export const GET_USER_INFO = `/admin/thirdApi/user/searchList`
|
||||||
|
export const GET_USER_INFO_OLDURL = `/userbasic/user/getUserBaseInfoById`
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
import {watch, ref} from "vue";
|
import {watch, ref} from "vue";
|
||||||
import {boeRequest,request} from "@/api/request";
|
import {boeRequest,request} from "@/api/request";
|
||||||
import {BASE, GET_USER_LIST} from "@/api/ThirdApi";
|
import {BASE, GET_USER_LIST,GET_USER_INFO_OLDURL} from "@/api/ThirdApi";
|
||||||
|
|
||||||
export function useImage(src) {
|
export function useImage(src) {
|
||||||
return new URL(`../assets/image/${src}`, import.meta.url).href
|
return new URL(`../assets/image/${src}`, import.meta.url).href
|
||||||
@@ -23,8 +23,8 @@ export function delCookie(name){
|
|||||||
export function useUserInfo(id) {
|
export function useUserInfo(id) {
|
||||||
const userInfo = ref({})
|
const userInfo = ref({})
|
||||||
watch(id, () => {
|
watch(id, () => {
|
||||||
id.value && request(GET_USER_LIST, {id: id.value}).then(res => {
|
id.value && boeRequest(GET_USER_INFO_OLDURL, {userId: id.value}).then(res => {
|
||||||
userInfo.value = res.data
|
userInfo.value = res.result
|
||||||
userInfo.value.avatar = userInfo.value.avatar?userInfo.value.avatar.includes('upload')?userInfo.value.avatar:'/upload'+userInfo.value.avatar:'/800e23f7-b58c-4192-820d-0c6a2b7544cc.png'
|
userInfo.value.avatar = userInfo.value.avatar?userInfo.value.avatar.includes('upload')?userInfo.value.avatar:'/upload'+userInfo.value.avatar:'/800e23f7-b58c-4192-820d-0c6a2b7544cc.png'
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
|||||||
@@ -449,7 +449,7 @@ function toExamItem(obj) {
|
|||||||
|
|
||||||
.bascinfo {
|
.bascinfo {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: 180px;
|
height: 80px;
|
||||||
border-radius: 8px;
|
border-radius: 8px;
|
||||||
background-color: rgba(255, 255, 255, 1);
|
background-color: rgba(255, 255, 255, 1);
|
||||||
margin-top: 37px;
|
margin-top: 37px;
|
||||||
|
|||||||
@@ -212,7 +212,7 @@ const signClick = () => {
|
|||||||
|
|
||||||
.bascinfo {
|
.bascinfo {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: 180px;
|
height: 80px;
|
||||||
border-radius: 8px;
|
border-radius: 8px;
|
||||||
background-color: rgba(255, 255, 255, 1);
|
background-color: rgba(255, 255, 255, 1);
|
||||||
margin-top: 37px;
|
margin-top: 37px;
|
||||||
|
|||||||
Reference in New Issue
Block a user