index-legacy.ed746ba7.js 23 KB

1
  1. !function(){var e=["list"];function t(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,i)}return r}function r(e){for(var r=1;r<arguments.length;r++){var n=null!=arguments[r]?arguments[r]:{};r%2?t(Object(n),!0).forEach((function(t){i(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):t(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function i(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function n(e,t){if(null==e)return{};var r,i,n=function(e,t){if(null==e)return{};var r,i,n={},c=Object.keys(e);for(i=0;i<c.length;i++)r=c[i],t.indexOf(r)>=0||(n[r]=e[r]);return n}(e,t);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(e);for(i=0;i<c.length;i++)r=c[i],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function c(e,t,r,i,n,c,o){try{var s=e[c](o),a=s.value}catch(m){return void r(m)}s.done?t(a):Promise.resolve(a).then(i,n)}function o(e){return function(){var t=this,r=arguments;return new Promise((function(i,n){var o=e.apply(t,r);function s(e){c(o,i,n,s,a,"next",e)}function a(e){c(o,i,n,s,a,"throw",e)}s(void 0)}))}}var s=document.createElement("style");s.innerHTML='._member-center_1811c_1{background-color:#ffe5cc;min-height:100vh;position:relative}._member-center_1811c_1 .van-nav-bar{background-color:transparent}._member-center_1811c_1 ._member_container_1811c_9{padding:.26667rem .37333rem 0}._member-center_1811c_1 ._member_container_1811c_9 ._title_1811c_12{display:flex;align-items:center;font-size:.42667rem;line-height:.74667rem;font-weight:500;color:#333}._member-center_1811c_1 ._member_container_1811c_9 ._title_1811c_12:before{content:" ";width:.10667rem;height:.45333rem;background:#01c1b5;display:inline-block;margin-right:.18667rem;border-radius:.21333rem}._member-center_1811c_1 ._level_1811c_29{width:.48rem;height:.42667rem}._member-center_1811c_1 ._userMember_1811c_33{background:url(./assets/member_bg.29c09085.png) no-repeat center #534754;background-size:cover;width:auto;border-radius:.26667rem;padding:.53333rem .32rem .8rem}._member-center_1811c_1 ._userMember_1811c_33 ._userImgSection_1811c_40{padding:.05333rem;border:.02667rem solid #feecd2;background-color:transparent;margin-right:.32rem;border-radius:50%}._member-center_1811c_1 ._userMember_1811c_33 ._userImg_1811c_40{width:1.22667rem;height:1.22667rem;border-radius:50%;vertical-align:middle;overflow:hidden}._member-center_1811c_1 ._userMember_1811c_33 ._userInfo_1811c_54{display:flex;align-items:center;color:#fff;padding-bottom:.13333rem}._member-center_1811c_1 ._userMember_1811c_33 ._userInfo_1811c_54 ._name_1811c_60{font-size:.48rem;padding-right:.13333rem;max-width:2.66667rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}._member-center_1811c_1 ._userMember_1811c_33 ._userInfo_1811c_54 ._phone_1811c_68{font-size:.37333rem}._member-center_1811c_1 ._userMember_1811c_33 ._timeRemaining_1811c_71{margin-top:0;font-size:.37333rem;color:silver}._member-center_1811c_1 ._userMember_1811c_33 ._timeRemaining_1811c_71 ._remaining_1811c_76{color:#f7b500;padding:0 .13333rem}._member-center_1811c_1 ._userMember_1811c_33 ._member_time_1811c_80{display:flex;align-items:center;justify-content:space-between}._member-center_1811c_1 ._intro_1811c_85{background:url(./assets/tip_bg.fadacd20.png) no-repeat center;background-size:contain;height:3.78667rem;font-size:.37333rem;color:#bb6e3a}._member-center_1811c_1 ._intro_1811c_85 p{padding:1.2rem .66667rem 0;text-align:justify;line-height:.58667rem}._member-center_1811c_1 ._memberContainer_1811c_97{background-color:#fff;border-radius:.48rem .48rem 0 0;position:relative;margin-top:-.4rem;padding:0 .37333rem 2rem;z-index:99}._member-center_1811c_1 ._memberItem_1811c_105{padding-top:.53333rem}._member-center_1811c_1 ._memberItem_1811c_105 ._title_1811c_12{font-size:.42667rem;color:#333;font-weight:500}._member-center_1811c_1 ._memberItem_1811c_105 ._title_1811c_12 span{color:#f7b500}._member-center_1811c_1 ._member_function_1811c_116{display:flex;justify-content:space-between;flex-wrap:wrap}._member-center_1811c_1 ._member_function_1811c_116 ._function_item__content_1811c_121{height:100%}._member-center_1811c_1 ._member_function_1811c_116 ._function_item_1811c_121{width:2.13333rem;padding:.32rem 0;margin-top:.21333rem;border-radius:.21333rem;overflow:hidden;background-color:#faefe3;text-align:center}._member-center_1811c_1 ._member_function_1811c_116 ._function_text_1811c_133{font-size:.32rem;color:#814014;line-height:.42667rem}._member-center_1811c_1 ._system-list_1811c_138::-webkit-scrollbar{display:none}._member-center_1811c_1 ._system-list_1811c_138{width:100%;overflow-x:auto;overflow-y:hidden;display:flex;position:relative;-webkit-user-select:none;-moz-user-select:none;user-select:none;box-sizing:content-box;padding-top:.42667rem;padding-bottom:.26667rem;margin-bottom:.26667rem}._member-center_1811c_1 ._system-item_1811c_154{display:flex;flex-direction:column;align-items:center;justify-content:center;flex:1 0 auto;width:2.56rem;min-height:3.2rem;box-sizing:border-box;background:#ffffff;border-radius:.32rem;border:.02667rem solid #e5e5e5;margin-left:.26667rem}._member-center_1811c_1 ._system-item_1811c_154:first-child{margin-left:0}._member-center_1811c_1 ._system-item_1811c_154 ._title_1811c_12{font-size:.37333rem;font-weight:500;color:#333;line-height:.53333rem}._member-center_1811c_1 ._system-item_1811c_154 ._price_1811c_177{color:#dc9362;font-size:.66667rem;line-height:1.5}._member-center_1811c_1 ._system-item_1811c_154 ._price_1811c_177 span{font-size:.42667rem}._member-center_1811c_1 ._system-item_1811c_154 ._originalPrice_1811c_185{color:#937059;font-size:.34667rem}._member-center_1811c_1 ._system-item_1811c_154._active_1811c_189{background:linear-gradient(215deg,#ffe7c4 0%,rgba(250,211,156,.21) 100%);border:.02667rem solid #b1652e;position:relative}._member-center_1811c_1 ._system-item_1811c_154._active_1811c_189 ._title_1811c_12{color:#814014}._member-center_1811c_1 ._system-item_1811c_154._active_1811c_189 ._price_1811c_177{color:#b1652e}._member-center_1811c_1 ._system-item_1811c_154._active_1811c_189 ._originalPrice_1811c_185{color:#937059}._member-center_1811c_1 ._system-item_1811c_154._active_1811c_189:before{content:"\\e728";font:.37333rem/1 vant-icon;color:#fff;background-color:#b1652e;width:.72rem;height:.48rem;display:flex;align-items:center;justify-content:center;position:absolute;top:-.02667rem;right:-.02667rem;border-radius:0 .32rem}._member-center_1811c_1 ._btnGroup_1811c_218{position:fixed;bottom:0;left:0;right:0;z-index:100;background-color:#fff;display:flex;align-items:center;padding:.32rem .42667rem;justify-content:space-between;border-top:.02667rem solid #f0f0f0}._member-center_1811c_1 ._btnGroup_1811c_218 ._btn_1811c_218{padding:0 .58667rem;color:#7a3104!important}._member-center_1811c_1 ._btnGroup_1811c_218 ._priceSection_1811c_235{display:flex;align-items:center;font-size:.42667rem;color:#1a1a1a}._member-center_1811c_1 ._btnGroup_1811c_218 ._priceSection_1811c_235 ._price_1811c_177{font-size:.48rem;font-weight:700;color:#ff3535}._member-center_1811c_1 ._btnGroup_1811c_218 ._priceSection_1811c_235 ._price_1811c_177 ._priceUnit_1811c_246{font-size:.37333rem}._memberDiscount_1811c_249{margin-top:.42667rem;position:relative;background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAArYAAABYCAMAAAA3DEQFAAAAn1BMVEUAAAD/6s3/5cv/58j/5cz/6cb/5c3/6sP/5Mr/58j/6Mr/6Mn/6M3/6cf/58j/5M3/6sL/6cL/5Mz/6sP/5cn/5sf/58b/5Mv/5Mr/6MT/6cP/6ML/5sj/47v/5sD/58H/5b//473/4bX/4rn/36f/4LD/36n/4LL/4K7/4rf/4bP/36v/4bj/4Kz/5b3/3qT/3qX/yIL/36T/1qb/yYIqFZqhAAAAFHRSTlMAC+rXqZzMzHxoWEQvIRX4+OvExIOs8PQAAAlXSURBVHja7JnbcrIwFIWDh1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RKUAFmyTZumYyotM28rcxK4elsqbpE2QqTbv9vKnIRH8baUs7QBcuoiN28rcxLYetv1LaEBCt36JUHmJDyOtyXiNM1SIjufGZKOow32mUaRZudtZU4CX29LabPa5FTa9u+2MifhYbwt7XFWm5iqKN5WvO29vC2Is7rgjiDeVrzt/bwtDuuyzGXlgbVPdzHdNnFHaP0rmcxJeCRvSxSuJhPd+iVB5iQ8mLelEc2Zm88d7blfAny2OtIMva28b8vZ2xJT6h5wZ9NdS7z8xdDbyvu2nL1tFE3SeS3SiebobWVOAmtvW7i5oQd8S1M5XcHR28qcBM7edjI3xmCD06yEizU/bytzEjh7W2sawHp6219h+95W5iRw9rZz0wRe3va36oQ7ZE6CeNsbvO3cJAbL+GdCiT/og/bhj3oON8icBPG2N3lbmzSA9VJgL6oXloi3FW972zVhYpLamNhLJTyptxCItxVve7O3LUzt1hZ+3vZNvYclMidBvO0t3hYZu6QWLvYoLXhX6iMskTkJ4m1v8rYgN8tlktBe+qfJI+3Hp1KqH4JWve3Xl3hbvt62zNwtiRVtv3Q51Jff+7Z9RXTF24q3rfO+7YbCmoUnxhbryhIe3rarwCBcI95WvO0t3vaQOM+S1WK1WtC+lkmWx1HZVmwPBmrNU1gicxLE23p729Pqjq1LFhdJnM3jg5sBEkQV7VdJ8BwCmZMg3tb/mvAf4iK3aeZIjS0Xa1akuZxLbT6OI/T1+EaLrMRLoDaMui16287rMAiGrx3xtly9LbIS+jT3Da7Y2+5I7Rg9t+Zte8HmX35PvC1Xb+tZWr3LTV91dY3wMlIHBE8tedue2tETb8vW23qjsXfV1VV5CtR3Bt02vG0nUDuCjnhbvt62Enpz7hNHZW/bHahT+h/397av6oBX8bacva3/BRerurf97KvzvL/1nju/7ulth+qAoXhb5t7234hNuaiQYDErIMjOysmLnFQAYIM5l/hRAc4AAAAASUVORK5CYII=) no-repeat center;background-size:contain;display:flex;align-items:center;height:1.17333rem;font-size:.42667rem;color:#ff7100;line-height:.48rem}._memberDiscount_1811c_249 ._discountAvatar_1811c_261{margin-left:.4rem;width:.96rem;height:.96rem;border-radius:50%;overflow:hidden;border:.02667rem solid #ffaf59}._memberDiscount_1811c_249 ._discountName_1811c_269{padding-left:.8rem;max-width:5.33333rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}._memberDiscount_1811c_249 ._discountGift_1811c_276{position:absolute;right:.69333rem;top:.18667rem;width:.77333rem;height:.77333rem}._discountItem_1811c_283{height:.37333rem;padding-bottom:.05333rem}._discountItem_1811c_283 img{height:100%}._discountBuy_1811c_290{height:.48rem;padding-bottom:0;margin-left:.21333rem}._shareBtn_1811c_295{display:flex;align-items:flex-start;color:#666;font-size:.37333rem;line-height:.53333rem!important}._shareBtn_1811c_295 .van-image{width:.48rem;height:.48rem;margin-right:.16rem}._shareVip_1811c_307{position:relative;margin-top:1.33333rem;display:flex;flex:1;align-items:center;padding:.29333rem .16rem;background:#ffffff;border-radius:.26667rem}._shareVip_1811c_307 ._icon_1811c_317{width:.96rem;height:.96rem;border-radius:.26667rem}._shareVip_1811c_307 ._info_1811c_322{margin-left:.16rem;flex:1;word-break:break-all}._shareVip_1811c_307 ._info_1811c_322>h4{color:var(--music-list-item-title-color);font-size:.37333rem;font-weight:600}._shareVip_1811c_307 ._info_1811c_322>p{color:var(--music-list-item-mate-color);line-height:.45333rem}._tagDiscount_1811c_336{position:absolute;top:-.61333rem;left:.4rem;padding:0 .26667rem;height:.61333rem;background:linear-gradient(180deg,#ffb635 0%,#ff4e18 100%);border-radius:.21333rem .21333rem 0 0;font-size:.37333rem;font-weight:600;color:#fff;line-height:.64rem}\n',document.head.appendChild(s),System.register(["./tip_bg-legacy.f826a784.js","./index-legacy.fba2875c.js","./index-legacy.e7460ea1.js","./index-legacy.7dcec7b3.js","./index-legacy.d92f7da7.js","./icon_student-legacy.45be2fa9.js","./icon_teacher-legacy.42ba77b1.js","./icon_share2-legacy.df666685.js","./orderStatus-legacy.9b3fdd6c.js","./index-legacy.4b2a6a63.js","./index-legacy.31c636a4.js","./index-legacy.40eca993.js","./use-height-legacy.233a2ec8.js","./index-legacy.af00a324.js","./code-down-load-legacy.cfefc939.js","./logo-legacy.cf4b3bd2.js","./browser-legacy.869507ab.js","./html2canvas.esm-legacy.19f9c2b7.js"],(function(t){"use strict";var i,c,s,a,m,_,l,u,d,b,f,g,p,h,v,y,I,w,j,x,S,A,P,M,L,T,z,O,k,D,E,V,W,Y,B,C,R,Z,G;return{setters:[function(e){i=e.i,c=e.a,s=e.b,a=e._,m=e.c,_=e.d,l=e.e,u=e.f,d=e.g,b=e.h,f=e.j,g=e.k,p=e.l,h=e.m,v=e.n,y=e.o,I=e.p,w=e.q,j=e.r},function(e){x=e.d,S=e.g,A=e.w,P=e.i,M=e.u,L=e.j,T=e.z,z=e.by,O=e.M,k=e.B,D=e.aR},function(e){E=e.C},function(e){V=e.C},function(e){W=e.I},function(e){Y=e.i},function(e){B=e.i},function(e){C=e.i},function(e){R=e.o},function(e){Z=e.m},function(e){G=e.C},function(){},function(){},function(){},function(){},function(){},function(){},function(){}],execute:function(){var X={"member-center":"_member-center_1811c_1",member_container:"_member_container_1811c_9",title:"_title_1811c_12",level:"_level_1811c_29",userMember:"_userMember_1811c_33",userImgSection:"_userImgSection_1811c_40",userImg:"_userImg_1811c_40",userInfo:"_userInfo_1811c_54",name:"_name_1811c_60",phone:"_phone_1811c_68",timeRemaining:"_timeRemaining_1811c_71",remaining:"_remaining_1811c_76",member_time:"_member_time_1811c_80",intro:"_intro_1811c_85",memberContainer:"_memberContainer_1811c_97",memberItem:"_memberItem_1811c_105",member_function:"_member_function_1811c_116",function_item__content:"_function_item__content_1811c_121",function_item:"_function_item_1811c_121",function_text:"_function_text_1811c_133","system-list":"_system-list_1811c_138","system-item":"_system-item_1811c_154",price:"_price_1811c_177",originalPrice:"_originalPrice_1811c_185",active:"_active_1811c_189",btnGroup:"_btnGroup_1811c_218",btn:"_btn_1811c_218",priceSection:"_priceSection_1811c_235",priceUnit:"_priceUnit_1811c_246",memberDiscount:"_memberDiscount_1811c_249",discountAvatar:"_discountAvatar_1811c_261",discountName:"_discountName_1811c_269",discountGift:"_discountGift_1811c_276",discountItem:"_discountItem_1811c_283",discountBuy:"_discountBuy_1811c_290",shareBtn:"_shareBtn_1811c_295",shareVip:"_shareVip_1811c_307",icon:"_icon_1811c_317",info:"_info_1811c_322",tagDiscount:"_tagDiscount_1811c_336"},N=t("getAssetsHomeFile",(function(e){var t="./images/".concat(e);return{"./images/1.png":a,"./images/2.png":m,"./images/3.png":_,"./images/4.png":l,"./images/5.png":u,"./images/6.png":d,"./images/7.png":b,"./images/8.png":f,"./images/discount_bg.png":g,"./images/icon_discount.png":p,"./images/icon_gift.png":h,"./images/icon_video.png":v,"./images/member_bg.png":y,"./images/member_logo.png":I,"./images/record_bg.png":w,"./images/tip_bg.png":j}[t].default}));t("default",x({name:"MemberCenter",data:function(){var e=this.$route.query;return{activityId:e.activityId,recomUserId:e.recomUserId,apiSuffix:"STUDENT"===S.platformType?"/api-student":"/api-teacher",agreeStatus:!1,functionList:[],memberList:[],selectMember:{},params:{page:1,rows:20},discountTeacher:{avatar:"",discount:0,username:""},shareStatus:!1,shareUrl:"",shareDiscount:0}},computed:{userInfo:function(){var e=S.user.data;return{username:null==e?void 0:e.username,phone:null==e?void 0:e.phone,avatar:null==e?void 0:e.heardUrl,id:null==e?void 0:e.userId,memberRankSettingId:null==e?void 0:e.memberRankSettingId,isVip:null==e?void 0:e.isVip,membershipDays:null==e?void 0:e.membershipDays,membershipEndTime:null==e?void 0:e.membershipEndTime}}},mounted:function(){var t=this;return o(regeneratorRuntime.mark((function i(){var c,o,s,a,m,_,l,u;return regeneratorRuntime.wrap((function(i){for(;;)switch(i.prev=i.next){case 0:return i.prev=0,i.next=3,A.get("TEACHER"===S.platformType?"/api-teacher/teacher/queryUserInfo":"/api-student/student/queryUserInfo");case 3:return c=i.sent,P(c.data),i.next=7,A.post("".concat(t.apiSuffix,"/memberPriceSettings/vipPermissions"));case 7:return o=i.sent,s=o.data||[],t.functionList=s.map((function(e){return{title:e.paramName,icon:N("".concat(e.paramValue,".png"))}})),i.next=12,A.post("".concat(t.apiSuffix,"/memberPriceSettings/list"),{data:{activityId:Number(t.activityId),userId:t.recomUserId}});case 12:a=i.sent,m=a.data,_=m.list,l=n(m,e),t.discountTeacher=r({},l),u=[],(_||[]).forEach((function(e){var t={title:"",salePrice:e.salePrice,originalPrice:e.originalPrice,period:e.period,id:e.id,discount:e.discount,discountPrice:e.discountPrice,status:!1};t.title=Z[e.period],"DAY"!==e.period&&u.push(t)})),(u=u?u.reverse():[]).length>0&&(u[0].status=!0,t.selectMember=u[0]),console.log(u),t.memberList=u,i.next=26;break;case 24:i.prev=24,i.t0=i.catch(0);case 26:case"end":return i.stop()}}),i,null,[[0,24]])})))()},methods:{onShare:function(){var e=this;return o(regeneratorRuntime.mark((function t(){var r;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,A.post("/api-teacher/open/vipProfit",{data:{userId:e.userInfo.id}});case 3:return r=t.sent,e.shareUrl="".concat(location.origin,"/teacher#/shareVip?recomUserId=").concat(e.userInfo.id,"&userType=").concat(S.platformType),r.data&&r.data.activityId&&(e.shareUrl=e.shareUrl+"&activityId="+r.data.activityId),e.shareStatus=!0,e.shareDiscount=r.data.discount||0,t.abrupt("return");case 11:t.prev=11,t.t0=t.catch(0);case 13:case"end":return t.stop()}}),t,null,[[0,11]])})))()},calcSalePrice:function(e){if(1===e.discount){var t=Number((e.salePrice-e.discountPrice).toFixed(2));return t>=0?t:0}return e.salePrice},onSubmit:function(){var e=this.selectMember,t=this.userInfo.isVip?M(this.userInfo.membershipEndTime).toDate():new Date,r=new Date;"MONTH"===e.period?r=M(t).add(1,"month").toDate():"QUARTERLY"===e.period?r=M(t).add(3,"month").toDate():"YEAR_HALF"===e.period?r=M(t).add(6,"month").toDate():"YEAR"===e.period&&(r=M(t).add(1,"year").toDate()),R.orderObject.orderType="VIP",R.orderObject.orderName="小酷Ai"+e.title,R.orderObject.orderDesc="小酷Ai"+e.title,R.orderObject.actualPrice=this.calcSalePrice(e),R.orderObject.recomUserId=this.recomUserId,R.orderObject.activityId=this.activityId,R.orderObject.orderNo="",R.orderObject.orderList=[{orderType:"VIP",goodsName:"小酷Ai"+e.title,id:e.id,title:e.title,price:this.calcSalePrice(e),startTime:M(t).format("YYYY-MM-DD"),endTime:M(r).format("YYYY-MM-DD"),recomUserId:this.recomUserId}],this.$router.push({path:"/orderDetail",query:{orderType:"VIP"}})}},render:function(){var e,t=this;return L("div",{class:X["member-center"]},[L(E,{background:"#ffe5cc"},{right:function(){return L("div",{class:X.shareBtn,onClick:t.onShare},[L(W,{src:C},null),T("分享")])}}),L("div",{class:X.member_container},[L(V,{class:X.userMember,labelClass:X.timeRemaining},{icon:function(){return L("div",{class:X.userImgSection},[L(W,{class:X.userImg,src:t.userInfo.avatar||Y,fit:"cover"},null)])},title:function(){return L("div",{class:X.userInfo},[L("span",{class:X.name},[t.userInfo.username]),!!t.userInfo.isVip&&L(W,{class:X.level,src:"https://daya.ks3-cn-beijing.ksyun.com/202107/ScSTL1D.png"},null),L("span",{class:X.phone,innerHTML:"(".concat(t.userInfo.phone,")")},null)])},label:function(){return L("div",{class:X.member_time},[t.userInfo.isVip?L("div",null,[T("会员权益有效期剩余"),L("span",{class:X.remaining},[t.userInfo.membershipDays]),T("天")]):L("div",null,[T("亲,您还不是会员哟")])])}})]),L("div",{class:X.memberContainer},[L("div",{class:X.memberItem},[L("div",{class:X.title},[T("会员"),L("span",null,[T("VIP")])]),1==this.discountTeacher.discount&&L("div",{class:X.memberDiscount},[L(W,{src:this.discountTeacher.avatar||B,class:X.discountAvatar},null),L("span",{class:X.discountName},[this.discountTeacher.username,T("老师的专属优惠~")]),L(W,{src:i,class:X.discountGift},null)]),L("div",{class:X["system-list"]},[this.memberList.map((function(e){return L("div",{class:[X["system-item"],e.status&&X.active],onClick:function(){t.memberList.forEach((function(e){e.status=!1})),e.status=!0,t.selectMember=e}},[L("div",{class:X.discountItem},[1==e.discount&&L("img",{src:c},null)]),L("p",{class:X.title},[e.title]),L("p",{class:X.price},[L("span",null,[T("¥")]),z(t.calcSalePrice(e),"0,0[.]00")]),L("del",{class:X.originalPrice},[T("¥"),z(e.originalPrice,"0,0[.]00")])])}))])]),L("div",{class:[X.intro]},[L("p",null,[T("酷乐秀会员可使用包括平台提供的所有训练乐谱,并专享“"),L("b",null,[T("小酷Ai")]),T("”八大核心功能,孩子在家就能轻松完成乐器自主规范练习。")])]),this.functionList.length>0&&L("div",{class:X.memberItem},[L("div",{class:X.title},[T("会员功能")]),L("div",{class:X.member_function},[this.functionList.map((function(e){return L("div",{class:X.function_item},[L(O,{name:e.icon,size:34},null),L("div",{class:X.function_text,innerHTML:e.title},null)])}))])])]),L("div",{class:X.btnGroup},[L("div",{class:X.priceSection},[T("支付金额:"),L("div",{class:X.price},[L("span",{class:X.priceUnit},[T("¥")]),L("span",{class:X.priceNum},[this.$filters.moneyFormat(this.calcSalePrice(this.selectMember)||0)])]),1==(null===(e=this.selectMember)||void 0===e?void 0:e.discount)&&L("div",{class:[X.discountItem,X.discountBuy]},[L("img",{src:c},null)])]),L(k,{color:"linear-gradient(220deg, #DFA164 0%, #FAC87E 100%)",round:!0,class:X.btn,onClick:this.onSubmit},{default:function(){return[T("立即支付")]}})]),L(D,{show:this.shareStatus,"onUpdate:show":function(e){return t.shareStatus=e},style:{background:"transparent"}},{default:function(){return[L(G,{teacherId:t.userInfo.id,shareUrl:t.shareUrl,shareType:"vip",shareLength:2},{default:function(){return[L("div",{class:X.shareVip},[1===t.shareDiscount&&L("div",{class:X.tagDiscount},[T("专属优惠")]),L("img",{class:X.icon,src:s},null),L("div",{class:X.info},[L("h4",{class:"van-multi-ellipsis--l2"},[T("小酷Ai会员")]),L("p",null,[T("海量曲谱、智能评测,专为器乐学习者量身打造")])])])]}})]}})])}}))}}}))}();