import{_ as y,u as $,s as I,a as S,o as x,b as w,d as s,w as l,e,F as C,h as E,l as L,t as h,k as N,m as B,p as D,I as V,x as T,y as j,r as v,g as J,J as R,f as A,D as F,H as K,K as M}from"./index-Daa5jh-U.js";/* empty css *//* empty css *//* empty css */import"./el-tag-BY50phaj.js";import{_ as O}from"./index-LzutKPut.js";/* empty css *//* empty css *//* empty css */import{s as k}from"./index-B3MU8m7V.js";const U="/assets/list-card-bg-DW2g9KAp.jpg",W=(t={meetName:"",status:""})=>k.get("/api/student/meet/page",{params:t}),q=t=>k.get("/api/student/meet/"+t),g=t=>(T("data-v-a3a5b30b"),t=t(),j(),t),H={class:"list-container w-full h-full"},P={class:"list-content w-full overflow-x-hidden"},z=g(()=>e("div",{class:"img-container w-full"},[e("img",{src:U,class:"w-full"})],-1)),G={class:"item-info p-3"},Q={class:"info-title font-bold"},X={class:"info-teacher flex text-sm text-gray-500"},Y=g(()=>e("div",{class:"info-label"},"主讲:",-1)),Z={class:"info-text"},ee={class:"info-time flex text-sm text-gray-500"},te=g(()=>e("div",{class:"info-label"},"开始时间:",-1)),se={class:"info-text"},oe={class:"info-time flex text-sm text-gray-500"},ae=g(()=>e("div",{class:"info-label"},"结束时间:",-1)),ne={class:"info-text"},le={__name:"index",props:{dataList:{type:Array,default:()=>[]}},setup(t){const c=$(),{userInfo:i}=I(c),r=S(),p=t,f=JSON.parse(localStorage.getItem("user")).userInfo.id,d=o=>{q(o.id).then(m=>{var a,n;if(window.webBridge)window.webBridge.openNewWindow(JSON.stringify(o));else{let _=r.resolve({path:"/meet",query:{meetName:o.meetName,id:o.id,userName:((a=i.value)==null?void 0:a.realName)+"_"+f||"",userCode:((n=i.value)==null?void 0:n.phone)+"_"+f||""}});window.open(_.href,"_blank")}}).catch(m=>{})};return(o,m)=>{const a=N,n=B,_=D,b=V;return x(),w("div",H,[s(b,null,{default:l(()=>[e("div",P,[s(_,{gutter:20},{default:l(()=>[(x(!0),w(C,null,E(p.dataList,u=>(x(),L(n,{span:6,class:"mb-5"},{default:l(()=>[s(a,{shadow:"hover",class:"list-card cursor-pointer","body-style":{padding:0},onClick:ge=>d(u)},{default:l(()=>[z,e("div",G,[e("div",Q,h(u.meetName),1),e("div",X,[Y,e("div",Z,h(u.teacherName),1)]),e("div",ee,[te,e("div",se,h(u.startTime),1)]),e("div",oe,[ae,e("div",ne,h(u.endTime),1)])])]),_:2},1032,["onClick"])]),_:2},1024))),256))]),_:1})])]),_:1})])}}},ce=y(le,[["__scopeId","data-v-a3a5b30b"]]),ie={class:"train-container w-screen h-screen bg-slate-50 flex flex-col items-center"},re={class:"list-container container grow relative"},de={class:"list-content absolute top-0 bottom-0 left-0 right-0 py-4"},_e={class:"list-wrapper w-full h-full"},ue={class:"card-wrapper w-full h-full flex flex-col px-8 box-border"},pe={class:"card-header flex justify-between items-center shrink-0"},fe={class:"header-search flex items-center"},me={class:"card-main flex-1 my-5 relative"},he={class:"main-content absolute top-0 bottom-0 left-0 right-0"},ve={class:"card-footer flex justify-center mb-7 shrink-0"},xe={__name:"index",setup(t){v("1");const c=v(""),i=v([]),r=v(!1),p=()=>{r.value=!0,W({meetName:c.value}).then(d=>{i.value=d.data,r.value=!1}).catch(d=>{r.value=!1})};p();const f=()=>{p()};return(d,o)=>{const m=F,a=K,n=M,_=N;return x(),w("div",ie,[s(O,{class:"shrink-0"}),e("div",re,[e("div",de,[e("div",_e,[s(_,{class:"h-full","body-style":{height:"100%"}},{default:l(()=>[e("div",ue,[e("div",pe,[e("div",fe,[s(m,{modelValue:c.value,"onUpdate:modelValue":o[0]||(o[0]=b=>c.value=b),placeholder:"请输入课程名称","prefix-icon":J(R),maxlength:"20"},null,8,["modelValue","prefix-icon"]),s(a,{type:"primary",class:"ml-4",onClick:f},{default:l(()=>[A("搜索")]),_:1})])]),e("div",me,[e("div",he,[s(ce,{dataList:i.value},null,8,["dataList"])])]),e("div",ve,[s(n,{background:"",layout:"prev, pager, next",total:1e3})])])]),_:1})])])])])}}},Le=y(xe,[["__scopeId","data-v-3e38e96f"]]);export{Le as default};
|