index.a672df40.js 22 KB

1
  1. import{d as F,j as e,P as O,Q as H,b4 as w,S as L,g as y,W as V,af as z,V as X,y as S,i as G,A as o,F as v,w as d,bA as Y,B as k,aS as N,T as J}from"./ResizeObserver.es.f28023e0.js";import{C as K}from"./index.bd375ca9.js";import{I as C}from"./index.7a1af785.js";import{C as q}from"./index.b76c8ebe.js";import{i as Z}from"./member_logo.c7564aa1.js";import{s as W}from"./icon_student.c3c58354.js";import{i as $}from"./icon_teacher.40b6f077.js";import{C as ee}from"./index.8c937010.js";import{d as M}from"./deep-clone.c5af4e6b.js";import{a as se,m as te}from"./index.eb1d9d01.js";import{o as b}from"./orderStatus.00354bd8.js";import"./index.966d1893.js";import"./code-down-load.7b8e3080.js";import"./logo.bcac726b.js";import"./browser.8379baf6.js";import"./html2canvas.esm.3d083717.js";import"./index.3b2e70c8.js";import"./index.9a41251d.js";const ie="_memberCenter_jrsmm_1",ne="_shareBtn_jrsmm_10",ae="_userSection_jrsmm_14",oe="_userImgSection_jrsmm_21",re="_userImg_jrsmm_21",le="_showMemeber_jrsmm_35",ce="_userVip_jrsmm_42",me="_isVip_jrsmm_46",ue="_userSVip_jrsmm_53",pe="_userInfo_jrsmm_64",_e="_userName_jrsmm_68",de="_name_jrsmm_73",ve="_phone_jrsmm_82",be="_member_time_jrsmm_86",ge="_memberContainer_jrsmm_94",Ae="_showBrid_jrsmm_98",Ie="_shareVip_jrsmm_108",Ee="_icon_jrsmm_118",he="_info_jrsmm_123",fe="_tagDiscount_jrsmm_137",Ve="_memberSection_jrsmm_150",Me="_member_tabs_jrsmm_157",Pe="_member_tab_jrsmm_157",ye="_member_tab_active_jrsmm_169",Se="_icon_member_jrsmm_172",Ce="_icon_text_jrsmm_178",De="_bottom_line_jrsmm_182",Ye="_top_tab_jrsmm_192",Be="_vip_member_tip_jrsmm_198",je="_top_tab_vip_jrsmm_205",Te="_svip_member_tip_jrsmm_219",we="_top_tab_svip_jrsmm_226",ke="_member_tab_single_jrsmm_240",Ne="_memberDiscount_jrsmm_246",Fe="_discountAvatar_jrsmm_258",Re="_discountName_jrsmm_266",Qe="_discountGift_jrsmm_276",Ue="_btnGroup_jrsmm_283",xe="_btn_jrsmm_283",Oe="_btnDisabled_jrsmm_294",He="_list_two_jrsmm_311",Le="_active_jrsmm_314",ze="_discountTag_jrsmm_338",Xe="_discountItem_jrsmm_346",Ge="_price_jrsmm_346",Je="_iconPermanent_jrsmm_349",Ke="_s_title_jrsmm_358",qe="_originalPrice_jrsmm_378",Ze="_originalPriceHide_jrsmm_383",We="_extraTip_jrsmm_386",$e="_list_one_jrsmm_418",es="_itemBg_jrsmm_446",ss="_priceS_jrsmm_455",ts="_oneMaxNum_jrsmm_474",is="_oneMaxNumPrice_jrsmm_483",ns="_oneBtn_jrsmm_486",as="_onBtnRenew_jrsmm_495",os="_onBtnDisbled_jrsmm_499",rs="_system_list_vip_jrsmm_502",ls="_dialogContainer_jrsmm_541",cs="_dialogTitle_jrsmm_549",ms="_dialogContent_jrsmm_555",us="_dialogBtnGroup_jrsmm_561",ps="_dialogBtn_jrsmm_561",_s="_discountTips_jrsmm_570";var s={memberCenter:ie,shareBtn:ne,userSection:ae,userImgSection:oe,userImg:re,showMemeber:le,userVip:ce,isVip:me,userSVip:ue,userInfo:pe,userName:_e,name:de,phone:ve,member_time:be,memberContainer:ge,showBrid:Ae,shareVip:Ie,icon:Ee,info:he,tagDiscount:fe,memberSection:Ve,member_tabs:Me,member_tab:Pe,member_tab_active:ye,icon_member:Se,icon_text:Ce,bottom_line:De,top_tab:Ye,vip_member_tip:Be,top_tab_vip:je,svip_member_tip:Te,top_tab_svip:we,member_tab_single:ke,memberDiscount:Ne,discountAvatar:Fe,discountName:Re,discountGift:Qe,btnGroup:Ue,btn:xe,btnDisabled:Oe,"system-list":"_system-list_jrsmm_297",list_two:He,"system-item":"_system-item_jrsmm_311",active:Le,discountTag:ze,discountItem:Xe,price:Ge,iconPermanent:Je,s_title:Ke,originalPrice:qe,originalPriceHide:Ze,extraTip:We,list_one:$e,itemBg:es,priceS:ss,oneMaxNum:ts,oneMaxNumPrice:is,oneBtn:ns,onBtnRenew:as,onBtnDisbled:os,system_list_vip:rs,dialogContainer:ls,dialogTitle:cs,dialogContent:ms,dialogBtnGroup:us,dialogBtn:ps,discountTips:_s},ds="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAMAAABg3Am1AAAAb1BMVEUAAAA1NTUzMzM0NDQzMzMzMzMzMzMzMzM7OzszMzM0NDQyMjI0NDQ0NDRAQEA0NDQ1NTU0NDQzMzM0NDQ1NTUzMzMzMzM0NDQzMzMzMzM6OjozMzMzMzMzMzM0NDQzMzM1NTUzMzM0NDQ5OTkzMzPk05qZAAAAJHRSTlMAVfsWpbcx9QTYfyHKbwjDVs93Yjrv5eK9YxGTiGhOQS7FsRuMyy5hAAABbElEQVRIx+2W63KDIBCFV6yAXJREc21ubX3/ZyyRzehWnM0D9Psnc77NmeCAkNB2uxkouztEyiNdVSlvTT0saCHixUAZ89KJYcnu+cuXISP09ZDjGyIntRRkNi++JETOn+qvYN0r0ppTKF70pYYnjbwVxfUwCdqk/qqSsEb5ISbBpkJ733B5FLZpvtfr+SrlUUj7VfHzxSEJ6UHy+Y/rTGi5PjFfFjPBsPOrEuZCx/YpAW4zIbB94tNDTULB9ok08S1RDgWmDy6cLv4HBa4PogFQ4PpMoMD04QXahxfOuT76USnX5wWfm1+2cfWQF1yuz12sb9wx9/8Uw7oQdmQ+LzTh6PwZeIHyL1AhvCMEegjwdPSY4TH0IONp6VHJIgV3GFOaagxu2OMe0V6NwS13oSCN34+x2jJXFiKrNF8YTS/FLhQLQmdagRFngVy7HDWW6N806h4Q6QQfFw7n48cJO95YQOjnT57N1uJG/QKHR3ot6efInAAAAABJRU5ErkJggg==",vs="./assets/icon-discount-gift.36ebca4e.png";const bs="_member_insteres_2qlxw_1",gs="_title_2qlxw_4",As="_intro_2qlxw_16",Is="_introVip_2qlxw_22";var g={member_insteres:bs,title:gs,intro:As,introVip:Is},Es="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAgQAAAA4CAMAAAC1+xBbAAACalBMVEUAAAA0pIo7oYg7loA6noM6n4U6ooc6n4U7nIQ7kHo7pIg7kHo6oIY8oIc6oIU8mYE5oYY7j3o4pok5pIg6nIM6oIU6lH07knw5m4E7noU7oIU7ln47ln46mYE7jnk7kns7moE6k3w6o4Y6ooc6kns7moE7moE7m4I6oYY7k3s7kHo7kXo6lH07l386lX47mH86nII6mIA6oIU6m4I7kHo7kHo7lH07moE7moE8jno5oYY5p4s7mYE7m4I7kXo7oYg5oIU7kns7k3w6noQ7l386kXo7kXk7kns6nYM7lH06mYE5pYk7lHw6nYQ6ooc6nIM5pIg7jXg5pIk7ln46j3g7m4I8kHs7lHw9hXI6nII5qow6noM7k3w8j3k8jnk5o4c5noQ6mYE7kXs6l387jXg5oYY6moE5ooc5p4o5qYs6nII5pYk5n4Q5pIg7kHo8iXU4qYs5oIY6l344r5A5nII6n4U5pYk5pYk6ln07jnk6nYM5pIg6m4I5pok6mYA5p4o5oYU5qIs6lX05n4Q8hnM5oYY6poo7j3k6ln46knw5pok4rI47k3w7k3w6nYM6mX88i3Y7knw8jXg6oYY6m4I6l387k3w8hnM5oYY6ln89hXE5qIw7k305q444rpE7jng8hnI5qo05pIg8hXE5mYA4r5A9iXU4sZE4sZI4rI45n4U7jng5nII5noQ7kHo6lX05oYY6ln45pIg5nYM6mIA7kns5o4c6mYA7k3w5ooc4pYk4pok6m4I7jXg4poo8inU6moE4qow6l387kXo8h3Q5qIs6lH08jHc7kXs7knw5noM8hHE4rI44ro9RjY2jAAAAqnRSTlMABQkMTV8OQB7TG8QoFjsZ1s+eVVVFMyQTIRGTLyy9rEo3NCSnbGdiNym8sZCMhXta+L6luKWYcV5Dpn52UDox9uach4B/Pd/OvbynoEguxZSSjYh/fkDxvaympqNnT/nn57SmnZOQalFB++3s5sC9vLGxp5OQhnn+9vXd3dXUxLaxlZOQZ2NXRP38+/nNnJOKd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E1IFECywohLNSuDIuBoTfERTwJLMLgWVyTEfiBycuiaxjayR6KoFZG0CgiOAtlNN6/0v3hoI0jaKYIev7wG6aAnOMXujr4noBMPCkjKAPRu2+IGo7gCA7JCIqvzAnxgabGSuTLBI4NkTg3xDX2QUBCUTAoKlgNFlDHqjCkrx/1dLW3UQTW3qYHIoIVUEY3jyNoMnfXUwQd9FXirmHfMiXa4+DoN2u5gcMQyuT7BCccG2Letm158n2CEwEmfhyYDHDSva99iRgO54ZInBui3uAE7OBJ8BpYkTwYRmMoKfQiQZeRIui09g6ICNSB4NnExRzso7eMuusbmlvbKYLHORjKGW6AbC0544NNRlYtz4vyXFjt2BC9gEJ5T3DKX0awDqw0GCTXyuQbJdqGSHhDdBMeFnquSmyIooLx77ECjuA7PYYQ+dtjGYGp09oyYGnMv/ofvSX+L9K5Ge4tU3LheI7c8SYamTxAlFMEbhuiN1AhzwRzeEM01a9bJdRs8Qep6JYReMBtQ2xybIieBbFvXl68mk8Fl6E/P/jUPUH+aB/kVVrUXx3vdm2fGBQJzVajsFXHM6LVviF6Nzs2xOIGRhui23YgDhzh02QD7+vg3BCZfUMMtUkWMgvRfCTgChx2QHkJNpXBycvISkDGtbHmbXp41bJAANu4gW36SrcIeEOcog2CGjjs0SZBNNhZmyDfJ3gDVUNEsAHKy1bebhSCAAStlQ1s9wdOy0lwAp67a7kBLxS7RVAMskyLIBQOxziClo/0YFkD1MD51Ysv75i6ZgHi3nB4y+5tKC/b5iBmEBMiiHmJP5eNY/5I4f/e8ASCx7nyApkslcLp3GR2DlLqglQfdaRTFEVRFEVRFEVRFEVRFEVRFGVM+AsYB++YgQb+EQAAAABJRU5ErkJggg==",hs="./assets/icon-title-2.60efcaff.png",fs="./assets/icon-title-3.58de03e7.png",Vs="./assets/icon-equity-bg.01f52b48.png",Ms="./assets/svip-fun-1.0446f801.png",Ps="./assets/svip-fun-2.427890b1.png",ys="./assets/svip-fun-3.1b096094.png",Ss="./assets/svip-fun-4.536b738f.png",Cs="./assets/svip-question-bg.24c53e76.png",Ds="./assets/vip-fun-1.d55d5047.png",Ys="./assets/vip-fun-2.846091df.png",Bs="./assets/vip-fun-3.286cc614.png",js="./assets/vip-question-bg.b9583647.png",Ts=F({name:"member-insteres",props:{type:{type:String,default:"VIP"}},setup(h){return()=>e("div",{class:g.member_insteres},[e("div",{class:g.title},[e("img",{src:fs},null)]),e("img",{src:Vs},null),e("div",{class:g.title},[e("img",{src:Es},null)]),h.type==="SVIP"?e("div",{class:g.intro},[e("img",{src:Ms},null),e("img",{src:Ps},null),e("img",{src:ys},null),e("img",{src:Ss},null)]):e("div",{class:[g.intro,g.introVip]},[e("img",{src:Ds},null),e("img",{src:Ys},null),e("img",{src:Bs},null)]),e("div",{class:g.title},[e("img",{src:hs},null)]),h.type==="SVIP"?e("img",{src:Cs},null):e("img",{src:js},null)])}}),Ws=F({name:"member-center",setup(){const h=O(),R=H(),u=w([]),m=w([]),t=L({activityId:h.query.activityId,recomUserId:h.query.recomUserId,titleOpacity:0,shareStatus:!1,dialogVisiable:!1,shareUrl:"",shareDiscount:0,discountTeacher:{avatar:"",discount:0,username:""},apiSuffix:y.platformType==="STUDENT"?"/api-student":"/api-teacher",tabActive:"SVIP",selectMember:{},memberShowList:[]}),a=V(()=>{const i=y.user.data;return{username:i==null?void 0:i.username,phone:i==null?void 0:i.phone,avatar:i==null?void 0:i.heardUrl,id:i==null?void 0:i.userId,userVip:i==null?void 0:i.userVip}}),D=V(()=>{var i;return((i=a.value.userVip)==null?void 0:i.vipType)==="PERMANENT_SVIP"}),Q=V(()=>{var i,n;return D.value?"\u60A8\u5DF2\u662F\u6C38\u4E45SVIP\u4F1A\u5458":p.value==="EXPIREVIP"?"\u7ACB\u5373\u7EED\u8D39":p.value==="NOT_VIP"?(i=t.selectMember)!=null&&i.id?`\xA5${I(t.selectMember)}/${se[(n=t.selectMember)==null?void 0:n.period]}${t.tabActive} \u7ACB\u5373\u5F00\u901A`:"\u7ACB\u5373\u5F00\u901A":"\u7ACB\u5373\u7EED\u8D39"}),p=V(()=>{var i,n,E,_,r,l,c,P,f;if(t.tabActive==="SVIP"){if(((i=a.value.userVip)==null?void 0:i.vipType)==="PERMANENT_SVIP")return"PERMANENT";if(((n=a.value.userVip)==null?void 0:n.vipType)==="SVIP"||((E=a.value.userVip)==null?void 0:E.svipEndDays)>0)return"VIP";if(["SVIP","ALL_VIP"].includes((_=a.value.userVip)==null?void 0:_.expireVipType))return"EXPIREVIP";if(((r=a.value.userVip)==null?void 0:r.vipType)==="NOT_VIP")return"NOT_VIP"}else if(t.tabActive==="VIP"){if(((l=a.value.userVip)==null?void 0:l.vipType)==="VIP"||((c=a.value.userVip)==null?void 0:c.vipEndDays)>0)return"VIP";if(["VIP","ALL_VIP"].includes((P=a.value.userVip)==null?void 0:P.expireVipType))return"EXPIREVIP";if(((f=a.value.userVip)==null?void 0:f.vipType)==="NOT_VIP")return"NOT_VIP"}return"NOT_VIP"}),A=V(()=>({memberLength:t.memberShowList.length,vipLength:u.value.legnth,svipLength:m.value.legnth,onlyVip:u.value.length>0&&m.value.length<=0,onlySVip:m.value.length>0&&u.value.length<=0,hasAll:u.value.length>0&&m.value.length>0})),U=async()=>{try{const i=await S.post("/api-teacher/open/vipProfit",{data:{userId:a.value.id}});t.shareUrl=`${location.origin}/teacher#/shareVip?recomUserId=${a.value.id}&userType=${y.platformType}`,i.data&&i.data.activityId&&(t.shareUrl=t.shareUrl+"&activityId="+i.data.activityId),t.shareStatus=!0,t.shareDiscount=i.data.discount||0;return}catch{}};z("scroll",()=>{const i=window.scrollY||window.pageYOffset||document.documentElement.scrollTop;t.titleOpacity=i>100?1:i/100});const B=i=>{i==="SVIP"?(t.memberShowList=M(m.value),t.selectMember=t.memberShowList[0]):i==="VIP"&&(t.memberShowList=M(u.value),t.selectMember=t.memberShowList[0]),t.tabActive=i},I=i=>{if(i.discount===1){const n=Number((i.salePrice-i.discountPrice).toFixed(2));return n>=0?n:0}return i.salePrice},j=async()=>{var i;try{if(D.value)return;const{data:n}=await S.post(`${t.apiSuffix}/memberPriceSettings/list`,{data:{status:1}}),_=(n.list||[]).find(P=>{var f;return P.id===((f=t.selectMember)==null?void 0:f.id)});if(!_||_&&_.salePrice!==t.selectMember.salePrice){t.dialogVisiable=!0;return}const r=t.selectMember;let l=new Date;if(a.value.userVip.vipType==="SVIP")l=d(a.value.userVip.svipEndDate||new Date).toDate();else if(a.value.userVip.vipType==="VIP")l=d(a.value.userVip.vipEndDate||new Date).toDate();else if(a.value.userVip.vipType==="PERMANENT_SVIP"){J("\u60A8\u5DF2\u662F\u6C38\u4E45SVIP\u4F1A\u5458");return}let c=new Date;r.period==="MONTH"?c=d(l).add(1,"month").toDate():r.period==="QUARTERLY"?c=d(l).add(3,"month").toDate():r.period==="YEAR_HALF"?c=d(l).add(6,"month").toDate():r.period==="YEAR"&&(c=d(l).add(1,"year").toDate()),b.orderObject.orderType=t.tabActive,b.orderObject.orderName=`\u5C0F\u9177Ai ${t.tabActive} ${r.title}`,b.orderObject.orderDesc=`\u5C0F\u9177Ai ${t.tabActive} ${r.title}`,b.orderObject.actualPrice=I(r),b.orderObject.recomUserId=t.recomUserId,b.orderObject.activityId=t.activityId,b.orderObject.orderNo="",b.orderObject.orderList=[{orderType:t.tabActive,goodsName:`\u5C0F\u9177Ai ${t.tabActive} ${r.title}`,id:r.id,title:r.title,num:1,salePrice:r.salePrice,period:r.period,vipEndDays:((i=a.value.userVip)==null?void 0:i.vipEndDays)||0,discount:r.discount,discountPrice:r.discountPrice,price:I(r),startTime:d(l).format("YYYY-MM-DD"),endTime:d(c).format("YYYY-MM-DD"),recomUserId:t.recomUserId}],R.push({path:"/orderDetail",query:{orderType:t.tabActive}})}catch{}},x=()=>{const i=u.value.length>0&&m.value.length<=0,n=m.value.length>0&&u.value.length<=0;if(u.value.length>0&&m.value.length>0?(t.tabActive="SVIP",t.memberShowList=M(m.value)):n?(t.tabActive="SVIP",t.memberShowList=M(m.value)):i&&(t.tabActive="VIP",t.memberShowList=M(u.value)),t.memberShowList.length>0){const _=t.memberShowList.find(r=>{var l;return r.id===((l=t.selectMember)==null?void 0:l.id)});_?t.selectMember=_:t.selectMember=t.memberShowList[0]}},T=async()=>{try{const{data:i}=await S.post(`${t.apiSuffix}/memberPriceSettings/list`,{data:{activityId:Number(t.activityId),userId:t.recomUserId,status:1}}),{list:n,...E}=i;t.discountTeacher={...E};const _=n||[],r=[],l=[];_.forEach(c=>{c.title=te[c.period],c.vipType==="VIP"&&c.period!=="DAY"?r.push(c):c.vipType==="SVIP"&&c.period!=="DAY"&&l.push(c)}),u.value=r?r.reverse():[],m.value=l?l.reverse():[],x()}catch{}};return X(async()=>{try{const i=await S.get(y.platformType==="TEACHER"?"/api-teacher/teacher/queryUserInfo":"/api-student/student/queryUserInfo");G(i.data),T()}catch{}}),()=>{var i;return e("div",{class:s.memberCenter},[e(K,{background:`rgba(255,255,255, ${t.titleOpacity})`,color:`rgba(0,0,0, ${t.titleOpacity})`,backIconColor:"black",hideHeader:!1},{right:()=>e(C,{src:ds,class:s.shareBtn,onClick:U},null)}),e("div",{class:s.memberContainer},[e("i",{class:s.showBrid},null),e("div",{class:s.userSection},[e("div",{class:[s.userImgSection,t.tabActive==="VIP"?s.userVip:s.userSVip,p.value==="PERMANENT"||p.value==="VIP"?s.isVip:""]},[e(C,{class:s.userImg,src:a.value.avatar||W,fit:"cover"},null),e("i",{class:s.showMemeber},null)]),e("div",{class:s.userInfo},[e("div",{class:s.userName},[e("span",{class:s.name},[a.value.username]),a.value.phone&&e("span",{class:s.phone},[o("("),a.value.phone,o(")")])]),e("div",{class:s.member_time},[p.value==="PERMANENT"&&e(v,null,[o("\u60A8\u5DF2\u662F"),e("span",null,[o("\u6C38\u4E45SVIP")])]),p.value==="VIP"&&e(v,null,[o("\u6709\u6548\u671F\u81F3")," ",e("span",null,[t.tabActive==="VIP"?d(a.value.userVip.vipEndDate).format("YYYY-MM-DD"):d(a.value.userVip.svipEndDate).format("YYYY-MM-DD")])]),p.value==="EXPIREVIP"&&e(v,null,[o("\u60A8\u7684"),t.tabActive,o("\u5DF2\u8FC7\u671F\uFF0C\u7EED\u8D39\u540E"),t.tabActive,o("\u6743\u76CA\u53EF\u7EE7\u7EED\u4F7F\u7528")]),p.value==="NOT_VIP"&&e(v,null,[o("\u60A8\u8FD8\u672A\u5F00\u901A"),t.tabActive,o("\u4F1A\u5458\u54E6\uFF5E")])])])]),e("div",{class:s.memberSection},[A.value.hasAll?e(v,null,[e("div",{class:s.member_tabs},[e("div",{class:[s.member_tab,t.tabActive==="VIP"?s.member_tab_active:""],onClick:()=>B("VIP")},[e("div",{class:[s.top_tab,s.top_tab_vip]},[e("i",{class:[s.icon_member]},null),e("span",{class:s.icon_text},[e("i",{class:s.bottom_line},null)])]),e("div",{class:s.vip_member_tip},null)]),e("div",{class:[s.member_tab,t.tabActive==="SVIP"?s.member_tab_active:""],onClick:()=>B("SVIP")},[e("div",{class:[s.top_tab,s.top_tab_svip]},[e("i",{class:[s.icon_member]},null),e("span",{class:s.icon_text},[e("i",{class:s.bottom_line},null)])]),e("div",{class:s.svip_member_tip},null)])])]):A.value.onlyVip?e("div",{class:s.member_tabs},[e("div",{class:[s.member_tab,s.member_tab_active,s.member_tab_single]},[e("div",{class:[s.top_tab,s.top_tab_vip]},[e("i",{class:[s.icon_member]},null),e("span",{class:s.icon_text},[e("i",{class:s.bottom_line},null)])]),e("div",{class:s.vip_member_tip},null)])]):A.value.onlySVip?e("div",{class:s.member_tabs},[e("div",{class:[s.member_tab,s.member_tab_active,s.member_tab_single]},[e("div",{class:[s.top_tab,s.top_tab_svip]},[e("i",{class:[s.icon_member]},null),e("span",{class:s.icon_text},[e("i",{class:s.bottom_line},null)])]),e("div",{class:s.svip_member_tip},null)])]):null,(u.value.length>0||m.value.length>0)&&e(v,null,[t.discountTeacher.discount==1&&e("div",{class:s.memberDiscount},[e(C,{src:t.discountTeacher.avatar||$,class:s.discountAvatar},null),e("span",{class:s.discountName},[t.discountTeacher.username,o("\u8001\u5E08\u7684"),e("span",null,[o("\u4E13\u5C5E\u4F18\u60E0\uFF5E")])]),e(C,{src:vs,class:s.discountGift},null)]),e("div",{class:s.system_list_section},[e("div",{class:[s["system-list"],t.tabActive==="VIP"?s.system_list_vip:"",A.value.memberLength===2?s.list_two:"",A.value.memberLength===1?s.list_one:""]},[A.value.memberLength>=2?e(v,null,[t.memberShowList.map(n=>e("div",{class:[s["system-item"],n.id===t.selectMember.id?s.active:"",n.discount===1?s.discountItem:""],onClick:()=>{t.selectMember=n}},[n.period==="PERPETUAL"&&e("span",{class:[s.iconPermanent]},null),e("p",{class:s.s_title},[n.title]),n.discount===1&&e("span",{class:s.discountTag},null),e("p",{class:s.price},[e("span",null,[o("\uFFE5")]),Y(I(n),"0,0[.]00")]),e("del",{class:[s.originalPrice,I(n)>=n.originalPrice||n.desc?s.originalPriceHide:""]},[o("\uFFE5"),Y(n.originalPrice,"0,0[.]00")]),n.desc&&e("p",{class:s.extraTip},[n.desc])]))]):e(v,null,[t.memberShowList.map(n=>e("div",{class:[s["system-item"]]},[n.period==="PERPETUAL"&&e("span",{class:[s.iconPermanent]},null),n.discount===1&&e("span",{class:s.discountTag},null),e("div",{class:s.oneInfo},[e("div",{class:s.priceS},[e("p",{class:s.price},[e("span",null,[o("\uFFE5")]),Y(I(n),"0,0[.]00")]),e("p",{class:s.s_title},[n.title])]),n.period==="PERPETUAL"?e("div",{class:s.oneMaxNum},[o("\u9650\u91CF1000\u4EFD")]):e("div",{class:[s.oneMaxNum,s.oneMaxNumPrice]},[o("\xA5"),n.originalPrice])]),e("span",{class:[s.oneBtn,["EXPIREVIP","VIP","PERMANENT"].includes(p.value)?s.onBtnRenew:"",p.value==="PERMANENT"?s.onBtnDisbled:""],onClick:()=>{p.value!=="PERMANENT"&&j()}},null),e("i",{class:s.itemBg},null)]))])])])]),t.tabActive==="VIP"&&((i=a.value.userVip)==null?void 0:i.vipEndDays)>0&&e("div",{class:s.discountTips},[o("\u8D2D\u4E70VIP\u7684\u4F1A\u5458\u7EED\u8D39SVIP\u5E74\u5EA6\u4F1A\u5458\uFF0C"),e("span",null,[o("\u539FVIP\u4F1A\u5458\u5929\u6570\u5347\u7EA7\u4E3ASVIP")])]),e(Ts,{type:t.tabActive},null)])]),(u.value.length>0||m.value.length>0)&&e(ee,{position:"bottom"},{default:()=>[e("div",{class:s.btnGroup},[e(k,{block:!0,color:"linear-gradient( 241deg, #FFD984 0%, #FFEAB9 100%)",class:[s.btn,D.value?s.btnDisabled:""],onClick:j},{default:()=>[Q.value]})])]}),e(N,{show:t.shareStatus,"onUpdate:show":n=>t.shareStatus=n,style:{background:"transparent"}},{default:()=>[e(q,{teacherId:a.value.id,shareUrl:t.shareUrl,shareType:"vip",shareLength:2},{default:()=>[e("div",{class:s.shareVip},[t.shareDiscount===1&&e("div",{class:s.tagDiscount},[o("\u4E13\u5C5E\u4F18\u60E0")]),e("img",{class:s.icon,src:Z},null),e("div",{class:s.info},[e("h4",{class:"van-multi-ellipsis--l2"},[o("\u5C0F\u9177Ai\u4F1A\u5458")]),e("p",null,[o("\u6D77\u91CF\u66F2\u8C31\u3001\u667A\u80FD\u8BC4\u6D4B\uFF0C\u4E13\u4E3A\u5668\u4E50\u5B66\u4E60\u8005\u91CF\u8EAB\u6253\u9020")])])])]})]}),e(N,{show:t.dialogVisiable,"onUpdate:show":n=>t.dialogVisiable=n,style:{background:"transparent"},closeOnClickOverlay:!1},{default:()=>[e("div",{class:s.dialogContainer},[e("div",{class:s.dialogTitle},[o("\u63D0\u793A")]),e("div",{class:s.dialogContent},[o("\u4EA7\u54C1\u4FE1\u606F\u5DF2\u66F4\u65B0\uFF0C\u8BF7\u91CD\u65B0\u9009\u62E9")]),e("div",{class:s.dialogBtnGroup},[e(k,{round:!0,type:"primary",block:!0,class:s.dialogBtn,onClick:()=>{T(),t.dialogVisiable=!1}},{default:()=>[o("\u91CD\u65B0\u9009\u62E9")]})])])]})])}}});export{Ws as default};