index.f60973bd.js 27 KB

1
  1. import{d as j,j as e,U as ee,S as z,V as se,a3 as ce,P as ue,Q as ve,b4 as te,g as B,W as N,af as pe,y as T,i as de,A as r,F as C,w as E,bC as L,B as x,aS as H,X as me,T as _e}from"./ResizeObserver.es.39b48a47.js";import{C as be}from"./index.970ad07b.js";import{I as Q}from"./index.fcbcb027.js";import{C as ge}from"./index.6f45cb15.js";import{i as Ae}from"./member_logo.c7564aa1.js";import{s as fe}from"./icon_student.c3c58354.js";import{i as Ie}from"./icon_teacher.40b6f077.js";import{C as ye}from"./index.b1c0c586.js";import{a as Ee,s as he,m as ie}from"./index.07111672.js";import{o as h}from"./orderStatus.fbc0ddaf.js";import{t as Ce}from"./tradeOrder.c5307744.js";import"./index.0e35d2fb.js";import"./code-down-load.a26a0d5d.js";import"./logo.bcac726b.js";import"./browser.1f070884.js";import"./html2canvas.esm.3d083717.js";import"./index.db115763.js";import"./index.dc19bc54.js";const Te="_memberCenter_43v5v_1",Ve="_shareBtn_43v5v_10",Se="_userSection_43v5v_14",De="_userImgSection_43v5v_21",Pe="_userImg_43v5v_21",Me="_showMemeber_43v5v_35",we="_userVip_43v5v_42",Be="_isVip_43v5v_46",Ne="_userSVip_43v5v_53",Ye="_userInfo_43v5v_64",ke="_userName_43v5v_68",Fe="_name_43v5v_73",Re="_phone_43v5v_82",xe="_member_time_43v5v_86",Qe="_memberContainer_43v5v_95",Ue="_showBrid_43v5v_99",Oe="_shareVip_43v5v_109",Le="_icon_43v5v_119",He="_info_43v5v_124",Xe="_tagDiscount_43v5v_138",Ge="_memberSection_43v5v_151",ze="_activitTip2_43v5v_158",je="_activitTipText_43v5v_164",Je="_member_tabs_43v5v_176",We="_member_tab_43v5v_176",Ke="_activitTip_43v5v_158",qe="_member_tab_active_43v5v_207",Ze="_icon_member_43v5v_210",$e="_icon_text_43v5v_216",et="_bottom_line_43v5v_220",tt="_top_tab_43v5v_230",it="_vip_member_tip_43v5v_236",st="_top_tab_vip_43v5v_243",at="_svip_member_tip_43v5v_257",nt="_top_tab_svip_43v5v_264",ot="_member_tab_single_43v5v_278",rt="_memberDiscount_43v5v_284",lt="_discountAvatar_43v5v_296",ct="_discountName_43v5v_304",ut="_discountGift_43v5v_320",vt="_btnGroup_43v5v_327",pt="_btn_43v5v_327",dt="_btnDisabled_43v5v_338",mt="_list_two_43v5v_357",_t="_active_43v5v_360",bt="_discountTag_43v5v_381",gt="_iconPermanent_43v5v_394",At="_activitTip1_43v5v_403",ft="_s_title_43v5v_416",It="_price_43v5v_426",yt="_originalPrice_43v5v_437",Et="_originalPriceHide_43v5v_442",ht="_extraTip_43v5v_445",Ct="_list_one_43v5v_483",Tt="_itemBg_43v5v_517",Vt="_priceS_43v5v_526",St="_oneMaxNum_43v5v_545",Dt="_oneMaxNumPrice_43v5v_555",Pt="_oneBtn_43v5v_558",Mt="_onBtnRenew_43v5v_567",wt="_onBtnDisbled_43v5v_571",Bt="_system_list_vip_43v5v_574",Nt="_dialogContainer_43v5v_613",Yt="_dialogTitle_43v5v_621",kt="_dialogContent_43v5v_627",Ft="_dialogBtnGroup_43v5v_633",Rt="_orderGroup_43v5v_636",xt="_dialogBtn_43v5v_633",Qt="_discountTips_43v5v_650";var i={memberCenter:Te,shareBtn:Ve,userSection:Se,userImgSection:De,userImg:Pe,showMemeber:Me,userVip:we,isVip:Be,userSVip:Ne,userInfo:Ye,userName:ke,name:Fe,phone:Re,member_time:xe,memberContainer:Qe,showBrid:Ue,shareVip:Oe,icon:Le,info:He,tagDiscount:Xe,memberSection:Ge,activitTip2:ze,activitTipText:je,member_tabs:Je,member_tab:We,activitTip:Ke,member_tab_active:qe,icon_member:Ze,icon_text:$e,bottom_line:et,top_tab:tt,vip_member_tip:it,top_tab_vip:st,svip_member_tip:at,top_tab_svip:nt,member_tab_single:ot,memberDiscount:rt,discountAvatar:lt,discountName:ct,discountGift:ut,btnGroup:vt,btn:pt,btnDisabled:dt,"system-list":"_system-list_43v5v_341",list_two:mt,"system-item":"_system-item_43v5v_357",active:_t,discountTag:bt,iconPermanent:gt,activitTip1:At,s_title:ft,price:It,originalPrice:yt,originalPriceHide:Et,extraTip:ht,list_one:Ct,itemBg:Tt,priceS:Vt,oneMaxNum:St,oneMaxNumPrice:Dt,oneBtn:Pt,onBtnRenew:Mt,onBtnDisbled:wt,system_list_vip:Bt,dialogContainer:Nt,dialogTitle:Yt,dialogContent:kt,dialogBtnGroup:Ft,orderGroup:Rt,dialogBtn:xt,discountTips:Qt},Ut="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAMAAABg3Am1AAAAb1BMVEUAAAA1NTUzMzM0NDQzMzMzMzMzMzMzMzM7OzszMzM0NDQyMjI0NDQ0NDRAQEA0NDQ1NTU0NDQzMzM0NDQ1NTUzMzMzMzM0NDQzMzMzMzM6OjozMzMzMzMzMzM0NDQzMzM1NTUzMzM0NDQ5OTkzMzPk05qZAAAAJHRSTlMAVfsWpbcx9QTYfyHKbwjDVs93Yjrv5eK9YxGTiGhOQS7FsRuMyy5hAAABbElEQVRIx+2W63KDIBCFV6yAXJREc21ubX3/ZyyRzehWnM0D9Psnc77NmeCAkNB2uxkouztEyiNdVSlvTT0saCHixUAZ89KJYcnu+cuXISP09ZDjGyIntRRkNi++JETOn+qvYN0r0ppTKF70pYYnjbwVxfUwCdqk/qqSsEb5ISbBpkJ733B5FLZpvtfr+SrlUUj7VfHzxSEJ6UHy+Y/rTGi5PjFfFjPBsPOrEuZCx/YpAW4zIbB94tNDTULB9ok08S1RDgWmDy6cLv4HBa4PogFQ4PpMoMD04QXahxfOuT76USnX5wWfm1+2cfWQF1yuz12sb9wx9/8Uw7oQdmQ+LzTh6PwZeIHyL1AhvCMEegjwdPSY4TH0IONp6VHJIgV3GFOaagxu2OMe0V6NwS13oSCN34+x2jJXFiKrNF8YTS/FLhQLQmdagRFngVy7HDWW6N806h4Q6QQfFw7n48cJO95YQOjnT57N1uJG/QKHR3ot6efInAAAAABJRU5ErkJggg==",Ot="./assets/icon-discount-gift.36ebca4e.png";const Lt="_member_insteres_2qlxw_1",Ht="_title_2qlxw_4",Xt="_intro_2qlxw_16",Gt="_introVip_2qlxw_22";var V={member_insteres:Lt,title:Ht,intro:Xt,introVip:Gt},zt="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAgQAAAA4CAMAAAC1+xBbAAACalBMVEUAAAA0pIo7oYg7loA6noM6n4U6ooc6n4U7nIQ7kHo7pIg7kHo6oIY8oIc6oIU8mYE5oYY7j3o4pok5pIg6nIM6oIU6lH07knw5m4E7noU7oIU7ln47ln46mYE7jnk7kns7moE6k3w6o4Y6ooc6kns7moE7moE7m4I6oYY7k3s7kHo7kXo6lH07l386lX47mH86nII6mIA6oIU6m4I7kHo7kHo7lH07moE7moE8jno5oYY5p4s7mYE7m4I7kXo7oYg5oIU7kns7k3w6noQ7l386kXo7kXk7kns6nYM7lH06mYE5pYk7lHw6nYQ6ooc6nIM5pIg7jXg5pIk7ln46j3g7m4I8kHs7lHw9hXI6nII5qow6noM7k3w8j3k8jnk5o4c5noQ6mYE7kXs6l387jXg5oYY6moE5ooc5p4o5qYs6nII5pYk5n4Q5pIg7kHo8iXU4qYs5oIY6l344r5A5nII6n4U5pYk5pYk6ln07jnk6nYM5pIg6m4I5pok6mYA5p4o5oYU5qIs6lX05n4Q8hnM5oYY6poo7j3k6ln46knw5pok4rI47k3w7k3w6nYM6mX88i3Y7knw8jXg6oYY6m4I6l387k3w8hnM5oYY6ln89hXE5qIw7k305q444rpE7jng8hnI5qo05pIg8hXE5mYA4r5A9iXU4sZE4sZI4rI45n4U7jng5nII5noQ7kHo6lX05oYY6ln45pIg5nYM6mIA7kns5o4c6mYA7k3w5ooc4pYk4pok6m4I7jXg4poo8inU6moE4qow6l387kXo8h3Q5qIs6lH08jHc7kXs7knw5noM8hHE4rI44ro9RjY2jAAAAqnRSTlMABQkMTV8OQB7TG8QoFjsZ1s+eVVVFMyQTIRGTLyy9rEo3NCSnbGdiNym8sZCMhXta+L6luKWYcV5Dp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fHsl7glSw2zbGXyNm4ayMIA5sPEewAkOL/OEeRdBQ393bZOsTEXyvXl4d1ZcigsGBFnM3RdDade/iZgzLk94mkBUYj58xCq2yme08CdYCp2ufOBNsQTE1IFECywohLNSuDIuBoTfERTwJLMLgWVyTEfiBycuiaxjayR6KoFZG0CgiOAtlNN6/0v3hoI0jaKYIev7wG6aAnOMXujr4noBMPCkjKAPRu2+IGo7gCA7JCIqvzAnxgabGSuTLBI4NkTg3xDX2QUBCUTAoKlgNFlDHqjCkrx/1dLW3UQTW3qYHIoIVUEY3jyNoMnfXUwQd9FXirmHfMiXa4+DoN2u5gcMQyuT7BCccG2Letm158n2CEwEmfhyYDHDSva99iRgO54ZInBui3uAE7OBJ8BpYkTwYRmMoKfQiQZeRIui09g6ICNSB4NnExRzso7eMuusbmlvbKYLHORjKGW6AbC0544NNRlYtz4vyXFjt2BC9gEJ5T3DKX0awDqw0GCTXyuQbJdqGSHhDdBMeFnquSmyIooLx77ECjuA7PYYQ+dtjGYGp09oyYGnMv/ofvSX+L9K5Ge4tU3LheI7c8SYamTxAlFMEbhuiN1AhzwRzeEM01a9bJdRs8Qep6JYReMBtQ2xybIieBbFvXl68mk8Fl6E/P/jUPUH+aB/kVVrUXx3vdm2fGBQJzVajsFXHM6LVviF6Nzs2xOIGRhui23YgDhzh02QD7+vg3BCZfUMMtUkWMgvRfCTgChx2QHkJNpXBycvISkDGtbHmbXp41bJAANu4gW36SrcIeEOcog2CGjjs0SZBNNhZmyDfJ3gDVUNEsAHKy1bebhSCAAStlQ1s9wdOy0lwAp67a7kBLxS7RVAMskyLIBQOxziClo/0YFkD1MD51Ysv75i6ZgHi3nB4y+5tKC/b5iBmEBMiiHmJP5eNY/5I4f/e8ASCx7nyApkslcLp3GR2DlLqglQfdaRTFEVRFEVRFEVRFEVRFEVRFGVM+AsYB++YgQb+EQAAAABJRU5ErkJggg==",jt="./assets/icon-title-2.60efcaff.png",Jt="./assets/icon-title-3.58de03e7.png",Wt="./assets/icon-equity-bg.1cb29613.png",Kt="./assets/svip-fun-1.0446f801.png",qt="./assets/svip-fun-2.427890b1.png",Zt="./assets/svip-fun-3.1b096094.png",$t="./assets/svip-fun-4.536b738f.png",ei="./assets/svip-question-bg.24c53e76.png",ti="./assets/vip-fun-1.d55d5047.png",ii="./assets/vip-fun-2.846091df.png",si="./assets/vip-fun-3.286cc614.png",ai="./assets/vip-question-bg.b9583647.png",ni=j({name:"member-insteres",props:{type:{type:String,default:"VIP"}},setup(p){return()=>e("div",{class:V.member_insteres},[e("div",{class:V.title},[e("img",{src:Jt},null)]),e("img",{src:Wt},null),e("div",{class:V.title},[e("img",{src:zt},null)]),p.type==="SVIP"?e("div",{class:V.intro},[e("img",{src:Kt},null),e("img",{src:qt},null),e("img",{src:Zt},null),e("img",{src:$t},null)]):e("div",{class:[V.intro,V.introVip]},[e("img",{src:ti},null),e("img",{src:ii,style:{"margin-top":"-1px"}},null),e("img",{src:si},null)]),e("div",{class:V.title},[e("img",{src:jt},null)]),p.type==="SVIP"?e("img",{src:ei},null):e("img",{src:ai},null)])}});const M=p=>{if(p===null)return null;const f=Object.assign({},p);return Object.keys(f).forEach(v=>f[v]=typeof p[v]=="object"?M(p[v]):p[v]),Array.isArray(p)?(f.length=p.length,Array.from(f)):f},oi="_wrap_3lsnj_1",ri="_isAnitaion_3lsnj_7",li="_notice_3lsnj_7";var X={wrap:oi,isAnitaion:ri,notice:li};const G=p=>{requestAnimationFrame(()=>{requestAnimationFrame(()=>{p()})})};var ci=j({name:"TheNoticeBar",props:{text:{type:String,default:""},isAnimation:{type:Boolean,default:!1}},setup(p,{slots:f}){const v=ee(),d=ee(),t=z({isActive:!1,wrapWidth:0,contentWidth:0,contentStyle:{transitionDuration:"0s",transform:"translateX(0px)"},time:null}),n=()=>{t.isActive||!d.value||!v.value||(t.isActive=!0,t.contentWidth=d.value.getBoundingClientRect().width,t.wrapWidth=v.value.getBoundingClientRect().width,console.log("\u8FDB\u6765\u52A0\u8F7D\u52A8\u753B",t.contentWidth-t.wrapWidth),t.contentWidth-t.wrapWidth>0&&o())};se(()=>{n()});const o=()=>{if(t.contentWidth<=t.wrapWidth||!t.isActive){t.contentStyle.transitionDuration="0s",t.contentStyle.transform="translateX(0px)";return}t.contentStyle.transitionDuration="5s",t.contentStyle.transform="translateX(-100%)",t.time=setTimeout(()=>{t.contentStyle.transitionDuration="0s",t.contentStyle.transform=`translateX(${t.wrapWidth}px)`,G(o)},5*1e3)},S=()=>{clearTimeout(t.time),t.isActive=!1,t.contentStyle.transitionDuration="0s",t.contentStyle.transform="translateX(0px)",t.time=null};return ce(()=>p.isAnimation,U=>{G(U?n:S)}),()=>e("div",{ref:v,class:[X.wrap,p.isAnimation?X.isAnitaion:""]},[e("div",{ref:d,style:t.contentStyle,class:X.notice},[p.text,f.default&&f.default()])])}}),Di=j({name:"member-center",setup(){const p=ue(),f=ve(),v=te([]),d=te([]),t=z({activityId:p.query.activityId,recomUserId:p.query.recomUserId,titleOpacity:0,shareStatus:!1,dialogVisiable:!1,orderVisiable:!1,orderDetail:{},shareUrl:"",shareDiscount:0,discountTeacher:{avatar:"",discount:0,username:""},apiSuffix:B.platformType==="STUDENT"?"/api-student":"/api-teacher",tabActive:"SVIP",selectMember:{},memberShowList:[]}),n=z({activityId:void 0,activityStart:"",activityEnd:"",registrationPrice:0,buyCount:0,buyNum:0,vipCardId:0,activityList:[],extConfig:{},vipType:"VIP"}),o=N(()=>{const s=B.user.data;return{username:s==null?void 0:s.username,phone:s==null?void 0:s.phone,avatar:s==null?void 0:s.heardUrl,id:s==null?void 0:s.userId,userVip:s==null?void 0:s.userVip,discountCardFlag:s==null?void 0:s.discountCardFlag,discountEndTime:s==null?void 0:s.discountEndTime,discountStartTime:s==null?void 0:s.discountStartTime}}),S=N(()=>{var s;return((s=o.value.userVip)==null?void 0:s.vipType)==="PERMANENT_SVIP"}),U=N(()=>{var s,u;return S.value?"\u60A8\u5DF2\u662F\u6C38\u4E45SVIP\u4F1A\u5458":I.value==="EXPIREVIP"?"\u7ACB\u5373\u7EED\u8D39":I.value==="NOT_VIP"?(s=t.selectMember)!=null&&s.id?`\xA5${P(t.selectMember)}/${Ee[(u=t.selectMember)==null?void 0:u.period]}${t.tabActive} \u7ACB\u5373\u5F00\u901A`:"\u7ACB\u5373\u5F00\u901A":"\u7ACB\u5373\u7EED\u8D39"}),I=N(()=>{var s,u,y,g,A,m,l,c,a,_;if(t.tabActive==="SVIP"){if(((s=o.value.userVip)==null?void 0:s.vipType)==="PERMANENT_SVIP")return"PERMANENT";if(((u=o.value.userVip)==null?void 0:u.vipType)==="SVIP"||((y=o.value.userVip)==null?void 0:y.svipEndDays)>0)return"VIP";if(["SVIP","ALL_VIP"].includes((g=o.value.userVip)==null?void 0:g.expireVipType))return"EXPIREVIP";if(((A=o.value.userVip)==null?void 0:A.vipType)==="NOT_VIP")return"NOT_VIP"}else if(t.tabActive==="VIP"){if(((m=o.value.userVip)==null?void 0:m.vipType)==="PERMANENT_SVIP")return"PERMANENT";if(((l=o.value.userVip)==null?void 0:l.vipType)==="VIP"||((c=o.value.userVip)==null?void 0:c.vipEndDays)>0)return"VIP";if(["VIP","ALL_VIP"].includes((a=o.value.userVip)==null?void 0:a.expireVipType))return"EXPIREVIP";if(((_=o.value.userVip)==null?void 0:_.vipType)==="NOT_VIP")return"NOT_VIP"}return"NOT_VIP"}),D=N(()=>({memberLength:t.memberShowList.length,vipLength:v.value.legnth,svipLength:d.value.legnth,onlyVip:v.value.length>0&&d.value.length<=0,onlySVip:d.value.length>0&&v.value.length<=0,hasAll:v.value.length>0&&d.value.length>0})),ae=async()=>{try{const s=await T.post("/api-teacher/open/vipProfit",{data:{userId:o.value.id}});t.shareUrl=`${location.origin}/teacher#/shareVip?recomUserId=${o.value.id}&userType=${B.platformType}`,s.data&&s.data.activityId&&(t.shareUrl=t.shareUrl+"&activityId="+s.data.activityId),t.shareStatus=!0,t.shareDiscount=s.data.discount||0;return}catch{}};pe("scroll",()=>{const s=window.scrollY||window.pageYOffset||document.documentElement.scrollTop;t.titleOpacity=s>30?1:0});const J=s=>{s==="SVIP"?(t.memberShowList=M(d.value),t.selectMember=t.memberShowList[0]):s==="VIP"&&(t.memberShowList=M(v.value),t.selectMember=t.memberShowList[0]),t.tabActive=s,me(()=>{var u;(u=document.querySelector(".system-list"))==null||u.scroll(0,0)})},P=s=>{if(s.id===n.vipCardId)return n.registrationPrice;if(s.discount===1){const u=Number((s.salePrice-s.discountPrice).toFixed(2));return u>=0?u:0}return s.salePrice},W=async()=>{var s,u,y;try{if(S.value)return;const{data:g}=await T.post(`${t.apiSuffix}/memberPriceSettings/list`,{data:{status:1}}),m=(g.list||[]).find(Y=>{var k;return Y.id===((k=t.selectMember)==null?void 0:k.id)});if(!m||m&&m.salePrice!==t.selectMember.salePrice){t.dialogVisiable=!0;return}const l=await T.post(`${t.apiSuffix}/userOrder/getPendingOrder`,{data:{goodType:t.tabActive}});if(console.log(l,"resPadding"),(s=l==null?void 0:l.data)!=null&&s.id){t.orderVisiable=!0,t.orderDetail=l.data||{};return}const c=t.selectMember;let a=new Date;if(t.tabActive==="SVIP")a=E(o.value.userVip.svipEndDate||new Date).toDate();else if(t.tabActive==="VIP")a=E(o.value.userVip.vipEndDate||o.value.userVip.svipEndDate||new Date).toDate();else if(S.value){_e("\u60A8\u5DF2\u662F\u6C38\u4E45SVIP\u4F1A\u5458");return}let _=new Date;c.period==="MONTH"?_=E(a).add(1,"month").toDate():c.period==="QUARTERLY"?_=E(a).add(3,"month").toDate():c.period==="YEAR_HALF"?_=E(a).add(6,"month").toDate():c.period==="YEAR"&&(_=E(a).add(1,"year").toDate()),h.orderObject.orderType=t.tabActive,h.orderObject.orderName=`\u5C0F\u9177Ai ${t.tabActive} ${c.title}`,h.orderObject.orderDesc=`\u5C0F\u9177Ai ${t.tabActive} ${c.title}`,h.orderObject.actualPrice=P(c),h.orderObject.recomUserId=t.recomUserId,h.orderObject.activityId=t.activityId,h.orderObject.orderNo="";const b={orderType:t.tabActive,goodsName:`\u5C0F\u9177Ai ${t.tabActive} ${c.title}`,id:c.id,title:c.title,num:1,salePrice:c.salePrice,period:c.period,vipEndDays:((u=o.value.userVip)==null?void 0:u.vipEndDays)||0,svipEndDays:((y=o.value.userVip)==null?void 0:y.svipEndDays)||0,discount:c.discount,discountPrice:c.discountPrice,price:P(c),startTime:E(a).format("YYYY-MM-DD"),endTime:E(_).format("YYYY-MM-DD"),recomUserId:t.recomUserId,activityBuyCount:0,activityList:[],discountCardFlag:o.value.discountCardFlag,discountEndTime:o.value.discountEndTime,discountStartTime:o.value.discountStartTime},w=n.buyCount-n.buyNum;c.id===n.vipCardId&&w>0&&(b.activityBuyCount=w,b.activityList=n.activityList,h.orderObject.activityId=n.activityId),h.orderObject.orderList=[b],f.push({path:"/orderDetail",query:{orderType:t.tabActive}})}catch{}},ne=async()=>{try{await T.post(`${t.apiSuffix}/userOrder/orderCancel`,{data:{orderNo:t.orderDetail.orderNo}})}catch{}t.orderVisiable=!1},oe=async()=>{const s=t.orderDetail||{};Ce(s,()=>{f.push({path:"/orderDetail",query:{orderType:s.orderType}})})},re=()=>{const s=v.value.length>0&&d.value.length<=0,u=d.value.length>0&&v.value.length<=0;if(v.value.length>0&&d.value.length>0||u?(t.tabActive="SVIP",t.memberShowList=M(d.value)):s&&(t.tabActive="VIP",t.memberShowList=M(v.value)),t.memberShowList.length>0){const g=t.memberShowList.find(A=>{var m;return A.id===((m=t.selectMember)==null?void 0:m.id)});g?t.selectMember=g:t.selectMember=t.memberShowList[0]}},K=async()=>{try{const{data:s}=await T.post(`${t.apiSuffix}/memberPriceSettings/list`,{data:{activityId:Number(t.activityId),userId:t.recomUserId,status:1}}),{list:u,...y}=s;if(B.platformType==="STUDENT"&&!t.activityId){const l=await T.post("/api-student/memberPriceSettings/getMemberBuyGift");if(l.code===200&&l.data){const{activityStart:c,activityEnd:a,registrationPrice:_,buyCount:b,buyNum:w,vipCardId:Y,activityRewardList:k,extConfig:q,id:le}=l.data||{},Z=u.find(O=>O.id===Y);Z&&(b<1||b>w)&&(n.activityId=le,n.vipType=Z.vipType,n.activityStart=c,n.activityEnd=a,n.registrationPrice=_,n.buyCount=b<1?99999:b,n.buyNum=w,n.vipCardId=Y,q&&(n.extConfig=JSON.parse(q)),n.activityList=(k||[]).map(O=>{const{rewardType:F,vipCardId:$,unit:R}=O.activityReward;return F==="DISCOUNT"?{goodType:F,goodName:`\u7545\u5B66\u5361 ${he[R]}`,goodNum:1,bizContent:$,giftFlag:!0,vipEndDays:null,goodsNum:1,unit:R}:{goodType:F,goodName:`\u5C0F\u9177Ai ${F} ${ie[R]}`,goodNum:1,bizContent:$,giftFlag:!0,vipEndDays:null,goodsNum:1,unit:R}}))}}t.discountTeacher={...y};const g=u||[],A=[],m=[];g.forEach(l=>{l.title=ie[l.period],l.vipType==="VIP"&&l.period!=="DAY"?A.push(l):l.vipType==="SVIP"&&l.period!=="DAY"&&m.push(l)}),v.value=A?A.reverse():[],d.value=m?m.reverse():[],re()}catch{}};return se(async()=>{try{const s=await T.get(B.platformType==="TEACHER"?"/api-teacher/teacher/queryUserInfo":"/api-student/student/queryUserInfo");de(s.data),K()}catch{}}),()=>{var s,u,y,g,A,m,l,c;return e("div",{class:i.memberCenter},[e(be,{background:`rgba(255,255,255, ${t.titleOpacity})`,color:`rgba(0,0,0, ${t.titleOpacity})`,backIconColor:"black",hideHeader:!1,border:!1},{right:()=>e(Q,{src:Ut,class:i.shareBtn,onClick:ae},null)}),e("div",{class:i.memberContainer},[e("i",{class:i.showBrid},null),e("div",{class:i.userSection},[e("div",{class:[i.userImgSection,t.tabActive==="VIP"?i.userVip:i.userSVip,I.value==="PERMANENT"||I.value==="VIP"?i.isVip:""]},[e(Q,{class:i.userImg,src:o.value.avatar||fe,fit:"cover"},null),e("i",{class:i.showMemeber},null)]),e("div",{class:i.userInfo},[e("div",{class:i.userName},[e("span",{class:i.name},[o.value.username]),o.value.phone&&e("span",{class:i.phone},[r("("),o.value.phone,r(")")])]),e("div",{class:i.member_time},[I.value==="PERMANENT"&&e(C,null,[r("\u60A8\u5DF2\u662F"),e("span",null,[r("\u6C38\u4E45SVIP")])]),I.value==="VIP"&&e(C,null,[t.tabActive,r("\u6709\u6548\u671F\u81F3")," ",e("span",null,[t.tabActive==="VIP"?E(o.value.userVip.vipEndDate).format("YYYY-MM-DD"):E(o.value.userVip.svipEndDate).format("YYYY-MM-DD")])]),I.value==="EXPIREVIP"&&e(C,null,[r("\u60A8\u7684"),t.tabActive,r("\u5DF2\u8FC7\u671F\uFF0C\u7EED\u8D39\u540E"),t.tabActive,r("\u6743\u76CA\u53EF\u7EE7\u7EED\u4F7F\u7528")]),I.value==="NOT_VIP"&&e(C,null,[r("\u60A8\u8FD8\u672A\u5F00\u901A"),t.tabActive,r("\u4F1A\u5458\u54E6\uFF5E")])])])]),e("div",{class:i.memberSection},[D.value.hasAll?e(C,null,[e("div",{class:i.member_tabs},[e("div",{class:[i.member_tab,t.tabActive==="VIP"?i.member_tab_active:""],onClick:()=>J("VIP")},[e("div",{class:[i.top_tab,i.top_tab_vip]},[e("i",{class:[i.icon_member]},null),e("span",{class:i.icon_text},[e("i",{class:i.bottom_line},null)])]),e("div",{class:i.vip_member_tip},null),!!n.vipCardId&&n.vipType==="VIP"&&((s=n.extConfig)==null?void 0:s.title1)&&e("div",{class:i.activitTip},[(u=n.extConfig)==null?void 0:u.title1])]),e("div",{class:[i.member_tab,t.tabActive==="SVIP"?i.member_tab_active:""],onClick:()=>J("SVIP")},[e("div",{class:[i.top_tab,i.top_tab_svip]},[e("i",{class:[i.icon_member]},null),e("span",{class:i.icon_text},[e("i",{class:i.bottom_line},null)])]),e("div",{class:i.svip_member_tip},null),!!n.vipCardId&&n.vipType==="SVIP"&&((y=n.extConfig)==null?void 0:y.title1)&&e("div",{class:i.activitTip},[(g=n.extConfig)==null?void 0:g.title1])])])]):D.value.onlyVip?e("div",{class:i.member_tabs},[e("div",{class:[i.member_tab,i.member_tab_active,i.member_tab_single]},[e("div",{class:[i.top_tab,i.top_tab_vip]},[e("i",{class:[i.icon_member]},null),e("span",{class:i.icon_text},[e("i",{class:i.bottom_line},null)])]),e("div",{class:i.vip_member_tip},null)])]):D.value.onlySVip?e("div",{class:i.member_tabs},[e("div",{class:[i.member_tab,i.member_tab_active,i.member_tab_single]},[e("div",{class:[i.top_tab,i.top_tab_svip]},[e("i",{class:[i.icon_member]},null),e("span",{class:i.icon_text},[e("i",{class:i.bottom_line},null)])]),e("div",{class:i.svip_member_tip},null)])]):null,(v.value.length>0||d.value.length>0)&&e(C,null,[t.discountTeacher.discount==1&&e("div",{class:i.memberDiscount},[e(Q,{src:t.discountTeacher.avatar||Ie,class:i.discountAvatar},null),e(ci,{class:i.discountName,isAnimation:!0},{default:()=>[t.discountTeacher.username,r("\u8001\u5E08\u7684"),e("span",null,[r("\u4E13\u5C5E\u4F18\u60E0\uFF5E")])]}),e(Q,{src:Ot,class:i.discountGift},null)]),e("div",{class:i.system_list_section},[e("div",{class:["system-list",i["system-list"],t.tabActive==="VIP"?i.system_list_vip:"",D.value.memberLength===2?i.list_two:"",D.value.memberLength===1?i.list_one:""]},[D.value.memberLength>=2?e(C,null,[t.memberShowList.map(a=>{var _,b;return e("div",{key:a.id,class:[i["system-item"],a.id===t.selectMember.id?i.active:""],onClick:()=>{t.selectMember=a}},[n.vipCardId===a.id&&((_=n.extConfig)==null?void 0:_.title2)?e("div",{class:i.activitTip1},[(b=n.extConfig)==null?void 0:b.title2]):a.period==="PERPETUAL"&&e("span",{class:[i.iconPermanent]},null),e("p",{class:i.s_title},[a.title,a.discount===1&&e("span",{class:i.discountTag},null)]),e("p",{class:i.price},[e("span",null,[r("\uFFE5")]),L(P(a),"0,0[.]00")]),e("del",{class:[i.originalPrice,P(a)>=a.originalPrice||a.desc?i.originalPriceHide:""]},[r("\uFFE5"),L(a.originalPrice,"0,0[.]00")]),a.desc&&e("p",{class:i.extraTip},[a.desc])])})]):e(C,null,[t.memberShowList.map(a=>{var _,b;return e("div",{class:[i["system-item"]]},[n.vipCardId===a.id&&((_=n.extConfig)==null?void 0:_.title2)?e("div",{class:i.activitTip1},[(b=n.extConfig)==null?void 0:b.title2]):a.period==="PERPETUAL"&&e("span",{class:[i.iconPermanent]},null),a.discount===1&&e("span",{class:i.discountTag},null),e("div",{class:i.oneInfo},[e("div",{class:i.priceS},[e("p",{class:i.price},[e("span",null,[r("\uFFE5")]),L(P(a),"0,0[.]00")]),e("p",{class:i.s_title},[a.title])]),e("div",{class:[i.oneMaxNum,i.oneMaxNumPrice]},[r("\xA5"),a.originalPrice])]),e("span",{class:[i.oneBtn,["EXPIREVIP","VIP","PERMANENT"].includes(I.value)?i.onBtnRenew:"",I.value==="PERMANENT"?i.onBtnDisbled:""],onClick:()=>{I.value!=="PERMANENT"&&W()}},null),e("i",{class:i.itemBg},null)])})])])])]),t.tabActive==="VIP"&&((A=o.value.userVip)==null?void 0:A.vipEndDays)>0&&e("div",{class:i.discountTips},[r("\u8D2D\u4E70VIP\u7684\u4F1A\u5458\u7EED\u8D39SVIP\u5E74\u5EA6\u4F1A\u5458\uFF0C"),e("span",null,[r("\u539FVIP\u4F1A\u5458\u5929\u6570\u5347\u7EA7\u4E3ASVIP")])]),((m=t.selectMember)==null?void 0:m.id)===n.vipCardId&&((l=n.extConfig)==null?void 0:l.describe)&&e("div",{class:i.activitTip2},[e("div",{class:i.activitTipText},[(c=n.extConfig)==null?void 0:c.describe])]),e(ni,{type:t.tabActive},null)])]),(v.value.length>0||d.value.length>0)&&e(ye,{position:"bottom"},{default:()=>[e("div",{class:i.btnGroup},[e(x,{block:!0,color:"linear-gradient( 241deg, #FFD984 0%, #FFEAB9 100%)",class:[i.btn,S.value?i.btnDisabled:""],onClick:W},{default:()=>[U.value]})])]}),e(H,{show:t.shareStatus,"onUpdate:show":a=>t.shareStatus=a,style:{background:"transparent"}},{default:()=>[e(ge,{teacherId:o.value.id,shareUrl:t.shareUrl,shareType:"vip",shareLength:2},{default:()=>[e("div",{class:i.shareVip},[t.shareDiscount===1&&e("div",{class:i.tagDiscount},[r("\u4E13\u5C5E\u4F18\u60E0")]),e("img",{class:i.icon,src:Ae},null),e("div",{class:i.info},[e("h4",{class:"van-multi-ellipsis--l2"},[r("\u5C0F\u9177Ai\u4F1A\u5458")]),e("p",null,[r("\u6D77\u91CF\u66F2\u8C31\u3001\u667A\u80FD\u8BC4\u6D4B\uFF0C\u4E13\u4E3A\u5668\u4E50\u5B66\u4E60\u8005\u91CF\u8EAB\u6253\u9020")])])])]})]}),e(H,{show:t.dialogVisiable,"onUpdate:show":a=>t.dialogVisiable=a,style:{background:"transparent"},closeOnClickOverlay:!1},{default:()=>[e("div",{class:i.dialogContainer},[e("div",{class:i.dialogTitle},[r("\u63D0\u793A")]),e("div",{class:i.dialogContent},[r("\u4EA7\u54C1\u4FE1\u606F\u5DF2\u66F4\u65B0\uFF0C\u8BF7\u91CD\u65B0\u9009\u62E9")]),e("div",{class:i.dialogBtnGroup},[e(x,{round:!0,type:"primary",block:!0,onClick:()=>{K(),t.dialogVisiable=!1}},{default:()=>[r("\u91CD\u65B0\u9009\u62E9")]})])])]}),e(H,{show:t.orderVisiable,"onUpdate:show":a=>t.orderVisiable=a,style:{background:"transparent"},closeOnClickOverlay:!1},{default:()=>[e("div",{class:i.dialogContainer},[e("div",{class:i.dialogTitle},[r("\u63D0\u793A")]),e("div",{class:i.dialogContent},[r("\u60A8\u6709\u5F85\u652F\u4ED8\u7684\u8BA2\u5355,\u662F\u5426\u7EE7\u7EED\u652F\u4ED8")]),e("div",{class:[i.dialogBtnGroup,i.orderGroup]},[e(x,{round:!0,type:"default",plain:!0,block:!0,onClick:ne},{default:()=>[r("\u53D6\u6D88\u8BA2\u5355")]}),e(x,{round:!0,type:"primary",block:!0,class:i.dialogBtn,onClick:oe},{default:()=>[r("\u7EE7\u7EED\u652F\u4ED8")]})])])]})])}}});export{Di as default};