diff --git a/src/api/index.ts b/src/api/index.ts index ecbdbec..3f880c5 100644 --- a/src/api/index.ts +++ b/src/api/index.ts @@ -333,4 +333,42 @@ export async function getlanguages(): Promise{ export async function putmember(data: unknown): Promise{ return (await put(`member/${store.state.userinfo.memberid}`, data) ) +} + + +/** + * 直播详情 + * + */ + +interface LiveInfo { + liveid: number; + title: string; + img: string; + fileid: string; + fileurl: string; + fileduration: string; + vodid: string; + vodurl: string; + vodduration: string; + dateline: string; + livetime: number; + livenumber: number; + status: number; + desc: string; + deleted_at: null; + created_at: string; + updated_at: string; +} + +interface StudentList { + memberid: number; + name: string; + img: string; +} + +export async function getliveinfo(id: number){ + const liveinfo = (await get(`live/${id}`)).data; + const studentlist = (await get("studentLive",{id})).data; + return {...liveinfo,studentlist} } \ No newline at end of file diff --git a/src/views/regime/Livedetail.vue b/src/views/regime/Livedetail.vue index 9723b50..58492ec 100644 --- a/src/views/regime/Livedetail.vue +++ b/src/views/regime/Livedetail.vue @@ -1,42 +1,41 @@ \ No newline at end of file