index.6c72fde6.js 2.8 KB

1
  1. import{d as t,j as e,M as u,z as n,F as o}from"./index.394decd7.js";import{C as r}from"./index.9e0d46e4.js";import{C as l}from"./index.9462d7c5.js";import{I as i}from"./index.ae2dd816.js";import{i as a}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_fl8wn_1",h="_banner_fl8wn_1",I="_userInfo_fl8wn_7",p="_avatar_fl8wn_10",d="_name_fl8wn_17",y="_username_fl8wn_26",T="_userHonor_fl8wn_32",b="_buyNum_fl8wn_38",v="_buyNumInfo_fl8wn_44",w="_iconBuy_fl8wn_49",F="_info_fl8wn_52",N="_infoPrice_fl8wn_59",g="_infoNum_fl8wn_63",D="_userTitle_fl8wn_68",B="_buyTips_fl8wn_90",C="_iconTeacher_fl8wn_103";var s={userDetail:_,banner:h,userInfo:I,avatar:p,name:d,username:y,userHonor:T,buyNum:b,buyNumInfo:v,iconBuy:w,info:F,infoPrice:N,infoNum:g,userTitle:D,buyTips:B,iconTeacher:C},j=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:P=>{}}},render(){return e("div",{class:s.userDetail},[e(i,{class:[s.banner],src:this.userInfo.lessonCoverUrl,fit:"cover"},null),e(l,{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(u,{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||a,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.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"])])}),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{j as U};