index-legacy.006eccd8.js 5.1 KB

1
  1. !function(){var e=document.createElement("style");e.innerHTML="._userDetail_13f7m_1 ._banner_13f7m_1{width:100%;height:5.65333rem;overflow:hidden;vertical-align:middle}._userDetail_13f7m_1 ._userInfo_13f7m_7{overflow:hidden}._userDetail_13f7m_1 ._userInfo_13f7m_7 ._avatar_13f7m_10{width:1.06667rem;height:1.06667rem;border-radius:50%;overflow:hidden;flex-shrink:0}._userDetail_13f7m_1 ._userInfo_13f7m_7 ._name_13f7m_17{padding-left:.21333rem;font-size:.42667rem;font-weight:500;color:#333;line-height:.58667rem;display:flex;align-items:center}._userDetail_13f7m_1 ._userInfo_13f7m_7 ._username_13f7m_26{max-width:2.66667rem;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}._userDetail_13f7m_1 ._userInfo_13f7m_7 ._username_13f7m_26 ._userHonor_13f7m_32{width:1.04rem;height:.42667rem;margin-top:.10667rem;margin-right:.16rem}._userDetail_13f7m_1 ._userInfo_13f7m_7 ._buyNum_13f7m_38{color:#ff802c;font-size:.37333rem;text-align:right;margin-top:.21333rem}._userDetail_13f7m_1 ._userInfo_13f7m_7 ._buyNumInfo_13f7m_44{font-size:.37333rem;line-height:.53333rem;color:#ff802c}._userDetail_13f7m_1 ._userInfo_13f7m_7 ._buyNumInfo_13f7m_44 ._iconBuy_13f7m_49{margin-right:.13333rem}._userDetail_13f7m_1 ._userInfo_13f7m_7 ._info_13f7m_52{font-size:.42667rem;font-weight:600;color:var(--van-primary);line-height:.53333rem;color:red}._userDetail_13f7m_1 ._userInfo_13f7m_7 ._info_13f7m_52 ._infoPrice_13f7m_59{font-size:.42667rem;font-weight:700}._userDetail_13f7m_1 ._userInfo_13f7m_7 ._info_13f7m_52 ._infoNum_13f7m_63{font-size:.37333rem;color:#999;font-weight:400}._userDetail_13f7m_1 ._userInfo_13f7m_7 ._userTitle_13f7m_68{font-size:.48rem;color:#1a1a1a;font-weight:500;display:block!important}._userDetail_13f7m_1 ._userInfo_13f7m_7 .van-cell{padding:.32rem .37333rem;align-items:center}._userDetail_13f7m_1 ._userInfo_13f7m_7 .van-cell__title{display:flex;align-items:center}._userDetail_13f7m_1 ._userInfo_13f7m_7 .van-cell__value{display:flex;flex-direction:column;justify-content:space-between}._userDetail_13f7m_1 ._userInfo_13f7m_7 .van-cell__label{margin-top:0}._userDetail_13f7m_1 ._buyTips_13f7m_90{font-size:.32rem;color:#ff8900;padding:.08rem .26667rem!important;background:#ffefe0;border-radius:.16rem;margin:0 .37333rem .32rem;width:auto}._userDetail_13f7m_1 ._buyTips_13f7m_90 span{line-height:.56rem;color:#ff8900}._iconTeacher_13f7m_103{margin-top:.08rem;margin-right:.16rem;width:1.04rem;height:.42667rem}\n",document.head.appendChild(e),System.register(["./ResizeObserver.es-legacy.9ef5ac8c.js","./index-legacy.e9381954.js","./index-legacy.6268a8fe.js","./index-legacy.8802e914.js","./icon_teacher-legacy.42ba77b1.js","./icon_timer2-legacy.b6c78faa.js","./icon-jiaozi-legacy.dd5ed0e2.js"],(function(e){"use strict";var n,r,_,i,s,f,o,t,l,a,u,m;return{setters:[function(e){n=e.d,r=e.j,_=e.N,i=e.A,s=e.F},function(e){f=e.C},function(e){o=e.C},function(e){t=e.I},function(e){l=e.i},function(e){a=e.i},function(e){u=e.I,m=e.a}],execute:function(){var c="_userDetail_13f7m_1",d="_banner_13f7m_1",g="_userInfo_13f7m_7",h="_avatar_13f7m_10",I="_name_13f7m_17",p="_username_13f7m_26",y="_buyNum_13f7m_38",v="_info_13f7m_52",b="_userTitle_13f7m_68",D="_buyTips_13f7m_90",w="_iconTeacher_13f7m_103";e("U",n({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:function(e){}}},render:function(){var e=this;return r("div",{class:c},[r(t,{class:[d],src:this.userInfo.lessonCoverUrl,fit:"cover"},null),r(o,{class:g,border:this.border},{default:function(){return[r(f,{title:e.userInfo.lessonName,titleClass:b},{label:function(){return e.userInfo.startTime&&r("span",{style:{display:"flex",alignItems:"center",fontSize:"13px",paddingTop:"var(--van-cell-label-margin-top)"}},[r(_,{name:a,size:"16",style:{marginRight:"5px"}},null),i("开课时间:"),e.userInfo.startTime])}}),r(f,null,{icon:function(){return r(t,{onClick:function(){e.onUserDetail(e.userInfo)},class:h,src:e.userInfo.headUrl||l,fit:"cover"},null)},title:function(){return r("div",{class:I,onClick:function(){e.onUserDetail(e.userInfo)}},[r("div",{class:p},[e.userInfo.username||"游客".concat(e.userInfo.id||""),r("div",null,[e.userInfo.isDegree&&r("img",{class:w,src:u},null),e.userInfo.isTeacher&&r("img",{class:w,src:m},null)])])])},value:function(){return r("div",{class:v},["VIP"===e.userInfo.payType?r("span",{style:{color:"#C76E21"}},[i("会员")]):r(s,null,[e.userInfo.lessonPrice>0&&r(s,null,[i("¥"),e.userInfo.lessonPrice]),e.userInfo.lessonPrice<=0&&0!==e.userInfo.auditVersion&&r(s,null,[i("¥"),0]),e.userInfo.lessonPrice<=0&&0===e.userInfo.auditVersion&&r("span",{style:{color:"#20BEA0"}},[i("免费")])]),r("span",{style:{color:"#999",fontSize:"14px",fontWeight:400}},[i("/"),e.userInfo.lessonNum,i("课时")]),e.showBuy&&r("div",{class:y},["live"===e.userInfo.type?r(s,null,[e.userInfo.buyNum,i("人已"),e.userInfo.lessonPrice<=0&&0===e.userInfo.auditVersion?"领取":"购买"]):r(s,null,[e.userInfo.buyNum,i("人学习")])])])}}),"GIFT"===e.userInfo.relationType&&r(f,{class:D,value:"注:购买本课程即可赠送相关曲目或专辑终生使用权限~"},null)]}})])}}))}}}))}();