1 |
- import{d as u,j as e,N as t,A as n,F as o}from"./ResizeObserver.es.f28023e0.js";import{C as r}from"./index.3b2e70c8.js";import{C as a}from"./index.2a22730e.js";import{I as i}from"./index.7a1af785.js";import{i as l}from"./icon_teacher.40b6f077.js";import{i as f}from"./icon_timer2.5fb1750d.js";import{I as c,a as m}from"./icon-jiaozi.20e415ca.js";const _="_userDetail_13f7m_1",h="_banner_13f7m_1",I="_userInfo_13f7m_7",p="_avatar_13f7m_10",y="_name_13f7m_17",d="_username_13f7m_26",T="_userHonor_13f7m_32",b="_buyNum_13f7m_38",v="_buyNumInfo_13f7m_44",F="_iconBuy_13f7m_49",N="_info_13f7m_52",B="_infoPrice_13f7m_59",g="_infoNum_13f7m_63",D="_userTitle_13f7m_68",C="_buyTips_13f7m_90",E="_iconTeacher_13f7m_103";var s={userDetail:_,banner:h,userInfo:I,avatar:p,name:y,username:d,userHonor:T,buyNum:b,buyNumInfo:v,iconBuy:F,info:N,infoPrice:B,infoNum:g,userTitle:D,buyTips:C,iconTeacher:E},S=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:P=>{}}},render(){return e("div",{class:s.userDetail},[e(i,{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(t,{name:f,size:"16",style:{marginRight:"5px"}},null),n("\u5F00\u8BFE\u65F6\u95F4\uFF1A"),this.userInfo.startTime])}),e(r,null,{icon:()=>e(i,{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||""}`,e("div",null,[this.userInfo.isDegree&&e("img",{class:s.iconTeacher,src:c},null),this.userInfo.isTeacher&&e("img",{class:s.iconTeacher,src:m},null)])])]),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{S as U};
|