import{d as t,j as e,N as i,A as s,F as o}from"./ResizeObserver.es.b7226882.js";import{C as u}from"./index.40f703b6.js";import{C as a}from"./index.9269bf1e.js";import{I as r}from"./index.20c0f4c5.js";import{i as l}from"./icon_teacher.40b6f077.js";import{i as f}from"./icon_timer2.5fb1750d.js";const m="_userDetail_13f7m_1",c="_banner_13f7m_1",_="_userInfo_13f7m_7",h="_avatar_13f7m_10",I="_name_13f7m_17",p="_username_13f7m_26",y="_userHonor_13f7m_32",d="_buyNum_13f7m_38",b="_buyNumInfo_13f7m_44",T="_iconBuy_13f7m_49",v="_info_13f7m_52",F="_infoPrice_13f7m_59",N="_infoNum_13f7m_63",B="_userTitle_13f7m_68",D="_buyTips_13f7m_90",g="_iconTeacher_13f7m_103";var n={userDetail:m,banner:c,userInfo:_,avatar:h,name:I,username:p,userHonor:y,buyNum:d,buyNumInfo:b,iconBuy:T,info:v,infoPrice:F,infoNum:N,userTitle:B,buyTips:D,iconTeacher:g},S=t({name:"user-detail",props:{userInfo:{type:Object,required:!0},showType:{type:String,default:"BUY"},showBuy:{type:Boolean,default:!0},border:{type:Boolean,default:!1},onUserDetail:{type:Function,default:C=>{}}},render(){return e("div",{class:n.userDetail},[e(r,{class:[n.banner],src:this.userInfo.lessonCoverUrl,fit:"cover"},null),e(a,{class:n.userInfo,border:this.border},{default:()=>[e(u,{title:this.userInfo.lessonName,titleClass:n.userTitle},{label:()=>this.userInfo.startTime&&e("span",{style:{display:"flex",alignItems:"center",fontSize:"13px",paddingTop:"var(--van-cell-label-margin-top)"}},[e(i,{name:f,size:"16",style:{marginRight:"5px"}},null),s("\u5F00\u8BFE\u65F6\u95F4\uFF1A"),this.userInfo.startTime])}),e(u,null,{icon:()=>e(r,{onClick:()=>{this.onUserDetail(this.userInfo)},class:n.avatar,src:this.userInfo.headUrl||l,fit:"cover"},null),title:()=>e("div",{class:n.name,onClick:()=>{this.onUserDetail(this.userInfo)}},[e("div",{class:n.username},[this.userInfo.username||`\u6E38\u5BA2${this.userInfo.id||""}`])]),value:()=>e("div",{class:n.info},[this.userInfo.payType==="VIP"?e("span",{style:{color:"#C76E21"}},[s("\u4F1A\u5458")]):e(o,null,[this.userInfo.lessonPrice>0&&e(o,null,[s("\uFFE5"),this.userInfo.lessonPrice]),this.userInfo.lessonPrice<=0&&this.userInfo.auditVersion!==0&&e(o,null,[s("\uFFE5"),0]),this.userInfo.lessonPrice<=0&&this.userInfo.auditVersion===0&&e("span",{style:{color:"#20BEA0"}},[s("\u514D\u8D39")])]),e("span",{style:{color:"#999",fontSize:"14px",fontWeight:400}},[s("/"),this.userInfo.lessonNum,s("\u8BFE\u65F6")]),this.showBuy&&e("div",{class:n.buyNum},[this.userInfo.type==="live"?e(o,null,[this.userInfo.buyNum,s("\u4EBA\u5DF2"),this.userInfo.lessonPrice<=0&&this.userInfo.auditVersion===0?"\u9886\u53D6":"\u8D2D\u4E70"]):this.userInfo.type==="group"?this.userInfo.mixStudentNum||0>0?e(o,null,[s("\u5269\u4F59"),this.userInfo.mixStudentNum,s("\u4E2A\u540D\u989D")]):"":e(o,null,[this.userInfo.buyNum,s("\u4EBA\u5B66\u4E60")])])])}),this.userInfo.relationType==="GIFT"&&e(u,{class:n.buyTips,value:"\u6CE8\uFF1A\u8D2D\u4E70\u672C\u8BFE\u7A0B\u5373\u53EF\u8D60\u9001\u76F8\u5173\u66F2\u76EE\u6216\u4E13\u8F91\u7EC8\u751F\u4F7F\u7528\u6743\u9650\uFF5E"},null)]})])}});export{S as U};