import{d as t,a as e,I as r,y as u,C as i,K as a,j as n,F as o}from"./vendor.cd162bf7.js";/* empty css              *//* empty css               *//* empty css               */import{I as l}from"./icon_teacher.cb128c00.js";import{i as c}from"./icon_timer2.5fb1750d.js";import{I as f,a as m}from"./icon-jiaozi.20e415ca.js";const _="_userDetail_p4g0z_1",p="_banner_p4g0z_1",I="_userInfo_p4g0z_7",d="_avatar_p4g0z_10",h="_name_p4g0z_17",g="_username_p4g0z_26",y="_userHonor_p4g0z_32",b="_buyNum_p4g0z_38",v="_buyNumInfo_p4g0z_44",z="_iconBuy_p4g0z_49",T="_info_p4g0z_52",F="_infoPrice_p4g0z_59",N="_infoNum_p4g0z_63",B="_userTitle_p4g0z_68",j="_iconTeacher_p4g0z_90";var s={userDetail:_,banner:p,userInfo:I,avatar:d,name:h,username:g,userHonor:y,buyNum:b,buyNumInfo:v,iconBuy:z,info:T,infoPrice:F,infoNum:N,userTitle:B,iconTeacher:j},w=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}},render(){return e("div",{class:s.userDetail},[e(r,{class:[s.banner],src:this.userInfo.lessonCoverUrl,fit:"cover"},null),e(u,{class:s.userInfo,border:this.border},{default:()=>[e(i,{title:this.userInfo.lessonName,titleClass:s.userTitle},{label:()=>this.userInfo.startTime&&e("span",{style:{display:"flex",alignItems:"center",fontSize:"13px",paddingTop:"var(--van-cell-label-margin-top)"}},[e(a,{name:c,size:"16",style:{marginRight:"5px"}},null),n("\u5F00\u8BFE\u65F6\u95F4\uFF1A"),this.userInfo.startTime])}),e(i,null,{icon:()=>e(r,{class:s.avatar,src:this.userInfo.headUrl||l,fit:"cover"},null),title:()=>e("div",{class:s.name},[e("div",{class:s.username},[e("div",null,[this.userInfo.username||`\u6E38\u5BA2${this.userInfo.id||""}`]),e("div",null,[this.userInfo.isDegree&&e("img",{class:s.iconTeacher,src:f},null),this.userInfo.isTeacher&&e("img",{class:s.iconTeacher,src:m},null)])])]),value:()=>e("div",{class:s.info},[this.userInfo.lessonPrice>0&&e(o,null,[n("\uFFE5"),this.userInfo.lessonPrice]),this.userInfo.lessonPrice<=0&&this.userInfo.auditVersion!==0&&e(o,null,[n("\uFFE5"),0]),this.userInfo.lessonPrice<=0&&this.userInfo.auditVersion===0&&e(o,null,[n("\u514D\u8D39")]),e("span",{style:{color:"#999",fontSize:"14px",fontWeight:400}},[n("/"),this.userInfo.lessonNum,n("\u8BFE\u65F6")]),this.showBuy&&e("div",{class:s.buyNum},[this.userInfo.buyNum,n("\u4EBA\u5DF2"),this.userInfo.lessonPrice<=0&&this.userInfo.auditVersion===0?"\u9886\u53D6":"\u8D2D\u4E70"])])})]})])}});export{w as U};
