1 |
- import{d as u,j as e,N as i,A as n,F as o}from"./ResizeObserver.es.39b48a47.js";import{C as r}from"./index.db115763.js";import{C as a}from"./index.9f5e14d1.js";import{I as t}from"./index.fcbcb027.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",C="_iconTeacher_13f7m_103";var s={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:C},w=u({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:g=>{}}},render(){return e("div",{class:s.userDetail},[e(t,{class:[s.banner],src:this.userInfo.lessonCoverUrl,fit:"cover"},null),e(a,{class:s.userInfo,border:this.border},{default:()=>[e(r,{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(i,{name:f,size:"16",style:{marginRight:"5px"}},null),n("\u5F00\u8BFE\u65F6\u95F4\uFF1A"),this.userInfo.startTime])}),e(r,null,{icon:()=>e(t,{onClick:()=>{this.onUserDetail(this.userInfo)},class:s.avatar,src:this.userInfo.headUrl||l,fit:"cover"},null),title:()=>e("div",{class:s.name,onClick:()=>{this.onUserDetail(this.userInfo)}},[e("div",{class:s.username},[this.userInfo.username||`\u6E38\u5BA2${this.userInfo.id||""}`])]),value:()=>e("div",{class:s.info},[this.userInfo.payType==="VIP"?e("span",{style:{color:"#C76E21"}},[n("\u4F1A\u5458")]):e(o,null,[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("span",{style:{color:"#20BEA0"}},[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.type==="live"?e(o,null,[this.userInfo.buyNum,n("\u4EBA\u5DF2"),this.userInfo.lessonPrice<=0&&this.userInfo.auditVersion===0?"\u9886\u53D6":"\u8D2D\u4E70"]):e(o,null,[this.userInfo.buyNum,n("\u4EBA\u5B66\u4E60")])])])}),this.userInfo.relationType==="GIFT"&&e(r,{class:s.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{w as U};
|