1 |
- !function(){var e=["list"];function r(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);r&&(i=i.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),t.push.apply(t,i)}return t}function t(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?r(Object(n),!0).forEach((function(r){i(e,r,n[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):r(Object(n)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))}))}return e}function i(e,r,t){return r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function n(e,r){if(null==e)return{};var t,i,n=function(e,r){if(null==e)return{};var t,i,n={},o=Object.keys(e);for(i=0;i<o.length;i++)t=o[i],r.indexOf(t)>=0||(n[t]=e[t]);return n}(e,r);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)t=o[i],r.indexOf(t)>=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(n[t]=e[t])}return n}function o(e,r,t,i,n,o,s){try{var a=e[o](s),c=a.value}catch(m){return void t(m)}a.done?r(c):Promise.resolve(c).then(i,n)}function s(e){return function(){var r=this,t=arguments;return new Promise((function(i,n){var s=e.apply(r,t);function a(e){o(s,i,n,a,c,"next",e)}function c(e){o(s,i,n,a,c,"throw",e)}a(void 0)}))}}var a=document.createElement("style");a.innerHTML='._member-center_110os_1{background-color:#ffe5cc;min-height:100vh;position:relative}._member-center_110os_1 .van-nav-bar{background-color:transparent}._member-center_110os_1 ._member_container_110os_9{padding:.26667rem .37333rem 0}._member-center_110os_1 ._member_container_110os_9 ._title_110os_12{display:flex;align-items:center;font-size:.42667rem;line-height:.74667rem;font-weight:500;color:#333}._member-center_110os_1 ._member_container_110os_9 ._title_110os_12:before{content:" ";width:.10667rem;height:.45333rem;background:#01c1b5;display:inline-block;margin-right:.18667rem;border-radius:.21333rem}._member-center_110os_1 ._level_110os_29{width:.48rem;height:.42667rem}._member-center_110os_1 ._userMember_110os_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_110os_1 ._userMember_110os_33 ._userImgSection_110os_40{background-color:transparent;margin-right:.32rem}._member-center_110os_1 ._userMember_110os_33 ._userImg_110os_40{padding:.05333rem;border:.02667rem solid #feecd2;border-radius:50%;vertical-align:middle;overflow:hidden}._member-center_110os_1 ._userMember_110os_33 ._userImg_110os_40 img{width:1.22667rem;height:1.22667rem;border-radius:50%}._member-center_110os_1 ._userMember_110os_33 ._userInfo_110os_56{display:flex;align-items:center;color:#fff;padding-bottom:.13333rem}._member-center_110os_1 ._userMember_110os_33 ._userInfo_110os_56 ._name_110os_62{font-size:.48rem;padding-right:.13333rem;max-width:2.66667rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}._member-center_110os_1 ._userMember_110os_33 ._userInfo_110os_56 ._phone_110os_70{font-size:.37333rem}._member-center_110os_1 ._userMember_110os_33 ._timeRemaining_110os_73{margin-top:0;font-size:.37333rem;color:silver}._member-center_110os_1 ._userMember_110os_33 ._timeRemaining_110os_73 ._remaining_110os_78{color:#f7b500;padding:0 .13333rem}._member-center_110os_1 ._userMember_110os_33 ._member_time_110os_82{display:flex;align-items:center;justify-content:space-between}._member-center_110os_1 ._intro_110os_87{background:url(./assets/tip_bg.fadacd20.png) no-repeat center;background-size:contain;height:3.78667rem;font-size:.37333rem;color:#bb6e3a}._member-center_110os_1 ._intro_110os_87 p{padding:1.2rem .66667rem 0;text-align:justify;line-height:.58667rem}._member-center_110os_1 ._memberContainer_110os_99{background-color:#fff;border-radius:.48rem .48rem 0 0;position:relative;margin-top:-.4rem;padding:0 .37333rem 2rem;z-index:99}._member-center_110os_1 ._memberItem_110os_107{padding-top:.53333rem}._member-center_110os_1 ._memberItem_110os_107 ._title_110os_12{font-size:.42667rem;color:#333;font-weight:500}._member-center_110os_1 ._memberItem_110os_107 ._title_110os_12 span{color:#f7b500}._member-center_110os_1 ._member_function_110os_118{display:flex;justify-content:space-between;flex-wrap:wrap}._member-center_110os_1 ._member_function_110os_118 ._function_item__content_110os_123{height:100%}._member-center_110os_1 ._member_function_110os_118 ._function_item_110os_123{width:2.13333rem;padding:.32rem 0;margin-top:.21333rem;border-radius:.21333rem;overflow:hidden;background-color:#faefe3;text-align:center}._member-center_110os_1 ._member_function_110os_118 ._function_text_110os_135{font-size:.32rem;color:#814014;line-height:.42667rem}._member-center_110os_1 ._system-list_110os_140::-webkit-scrollbar{display:none}._member-center_110os_1 ._system-list_110os_140{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_110os_1 ._system-item_110os_156{position:relative;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_110os_1 ._system-item_110os_156 ._bat_110os_171{position:absolute;top:-.02667rem;left:-.02667rem;padding:.05333rem .13333rem .02667rem;background:linear-gradient(90deg,#FF7878 0%,#FF4343 100%);border-radius:.29333rem .26667rem .26667rem 0;font-size:.32rem;font-weight:600;color:#fff;line-height:.45333rem}._member-center_110os_1 ._system-item_110os_156:first-child{margin-left:0}._member-center_110os_1 ._system-item_110os_156 ._title_110os_12{font-size:.37333rem;font-weight:500;color:#333;line-height:.53333rem}._member-center_110os_1 ._system-item_110os_156 ._price_110os_192{color:#dc9362;font-size:.66667rem;line-height:1.5}._member-center_110os_1 ._system-item_110os_156 ._price_110os_192 span{font-size:.42667rem}._member-center_110os_1 ._system-item_110os_156 ._originalPrice_110os_200{color:#937059;font-size:.34667rem}._member-center_110os_1 ._system-item_110os_156._active_110os_204{background:linear-gradient(215deg,#ffe7c4 0%,rgba(250,211,156,.21) 100%);border:.02667rem solid #b1652e;position:relative}._member-center_110os_1 ._system-item_110os_156._active_110os_204 ._title_110os_12{color:#814014}._member-center_110os_1 ._system-item_110os_156._active_110os_204 ._price_110os_192{color:#b1652e}._member-center_110os_1 ._system-item_110os_156._active_110os_204 ._originalPrice_110os_200{color:#937059}._member-center_110os_1 ._system-item_110os_156._active_110os_204: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_110os_1 ._system-item_110os_156._active_110os_204 ._bat_110os_171{background:linear-gradient(270deg,rgba(255,255,255,.33) 0%,rgba(254,234,205,.33) 100%);border-radius:.29333rem .26667rem .26667rem 0;border:.02667rem solid rgba(177,101,46,.33);border-left:0;border-top:0;color:#b1652e}._member-center_110os_1 ._btnGroup_110os_241{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_110os_1 ._btnGroup_110os_241 ._btn_110os_241{padding:0 .58667rem;color:#7a3104!important}._member-center_110os_1 ._btnGroup_110os_241 ._priceSection_110os_258{display:flex;align-items:center;font-size:.42667rem;color:#1a1a1a}._member-center_110os_1 ._btnGroup_110os_241 ._priceSection_110os_258 ._price_110os_192{font-size:.48rem;font-weight:700;color:#ff3535}._member-center_110os_1 ._btnGroup_110os_241 ._priceSection_110os_258 ._price_110os_192 ._priceUnit_110os_269{font-size:.37333rem}._memberDiscount_110os_272{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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Bt02vG0nUDuCjnhbvt62Enpz7hNHZW/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_110os_272 ._discountAvatar_110os_284{margin-left:.4rem;width:.96rem;height:.96rem;border-radius:50%;overflow:hidden;border:.02667rem solid #ffaf59}._memberDiscount_110os_272 ._discountName_110os_292{padding-left:.8rem;max-width:5.33333rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}._memberDiscount_110os_272 ._discountGift_110os_299{position:absolute;right:.69333rem;top:.18667rem;width:.77333rem;height:.77333rem}._discountItem_110os_306{height:.37333rem;padding-bottom:.05333rem}._discountItem_110os_306 img{height:100%}._discountBuy_110os_313{height:.48rem;padding-bottom:0;margin-left:.21333rem}._shareBtn_110os_318{display:flex;align-items:flex-start;color:#666;font-size:.37333rem;line-height:.53333rem!important}._shareBtn_110os_318 .van-image{width:.48rem;height:.48rem;margin-right:.16rem}._shareVip_110os_330{position:relative;margin-top:1.33333rem;display:flex;flex:1;align-items:center;padding:.29333rem .16rem;background:#ffffff;border-radius:.26667rem}._shareVip_110os_330 ._icon_110os_340{width:.96rem;height:.96rem;border-radius:.26667rem}._shareVip_110os_330 ._info_110os_345{margin-left:.16rem;flex:1;word-break:break-all}._shareVip_110os_330 ._info_110os_345>h4{color:var(--music-list-item-title-color);font-size:.37333rem;font-weight:600}._shareVip_110os_330 ._info_110os_345>p{color:var(--music-list-item-mate-color);line-height:.45333rem}._tagDiscount_110os_359{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(a),System.register(["./tip_bg-legacy.f826a784.js","./index-legacy.b903c881.js","./index-legacy.885c229f.js","./index-legacy.b7f666cc.js","./index-legacy.5b93d63d.js","./icon_student-legacy.49eef9e9.js","./icon_teacher-legacy.42ba77b1.js","./icon_share2-legacy.df666685.js","./orderStatus-legacy.d4b782c6.js","./index-legacy.4b2a6a63.js","./index-legacy.fd2fff34.js","./index-legacy.ae2ce69e.js","./code-down-load-legacy.162151e4.js","./logo-legacy.cf4b3bd2.js","./browser-legacy.869507ab.js","./html2canvas.esm-legacy.19f9c2b7.js"],(function(r){"use strict";var i,o,a,c,m,_,l,u,d,b,f,g,p,h,v,y,I,w,x,j,S,A,P,M,T,z,L,O,k,E,D,V,W,Y,B,R,C,Z,G,X;return{setters:[function(e){i=e.i,o=e.a,a=e.b,c=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,x=e.r},function(e){j=e.d,S=e.g,A=e.w,P=e.i,M=e.u,T=e.j,z=e.z,L=e.bz,O=e.M,k=e.B,E=e.F,D=e.aR},function(e){V=e.C},function(e){W=e.C},function(e){Y=e.I},function(e){B=e.s},function(e){R=e.i},function(e){C=e.i},function(e){Z=e.o},function(e){G=e.m},function(e){X=e.C},function(){},function(){},function(){},function(){},function(){}],execute:function(){var N={"member-center":"_member-center_110os_1",member_container:"_member_container_110os_9",title:"_title_110os_12",level:"_level_110os_29",userMember:"_userMember_110os_33",userImgSection:"_userImgSection_110os_40",userImg:"_userImg_110os_40",userInfo:"_userInfo_110os_56",name:"_name_110os_62",phone:"_phone_110os_70",timeRemaining:"_timeRemaining_110os_73",remaining:"_remaining_110os_78",member_time:"_member_time_110os_82",intro:"_intro_110os_87",memberContainer:"_memberContainer_110os_99",memberItem:"_memberItem_110os_107",member_function:"_member_function_110os_118",function_item__content:"_function_item__content_110os_123",function_item:"_function_item_110os_123",function_text:"_function_text_110os_135","system-list":"_system-list_110os_140","system-item":"_system-item_110os_156",bat:"_bat_110os_171",price:"_price_110os_192",originalPrice:"_originalPrice_110os_200",active:"_active_110os_204",btnGroup:"_btnGroup_110os_241",btn:"_btn_110os_241",priceSection:"_priceSection_110os_258",priceUnit:"_priceUnit_110os_269",memberDiscount:"_memberDiscount_110os_272",discountAvatar:"_discountAvatar_110os_284",discountName:"_discountName_110os_292",discountGift:"_discountGift_110os_299",discountItem:"_discountItem_110os_306",discountBuy:"_discountBuy_110os_313",shareBtn:"_shareBtn_110os_318",shareVip:"_shareVip_110os_330",icon:"_icon_110os_340",info:"_info_110os_345",tagDiscount:"_tagDiscount_110os_359"},H=r("getAssetsHomeFile",(function(e){var r="./images/".concat(e);return{"./images/1.png":c,"./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":x}[r].default}));r("default",j({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 r=this;return s(regeneratorRuntime.mark((function i(){var o,s,a,c,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 o=i.sent,P(o.data),i.next=7,A.post("".concat(r.apiSuffix,"/memberPriceSettings/vipPermissions"));case 7:return s=i.sent,a=s.data||[],r.functionList=a.map((function(e){return{title:e.paramName,icon:H("".concat(e.paramValue,".png"))}})),i.next=12,A.post("".concat(r.apiSuffix,"/memberPriceSettings/list"),{data:{activityId:Number(r.activityId),userId:r.recomUserId}});case 12:c=i.sent,m=c.data,_=m.list,l=n(m,e),r.discountTeacher=t({},l),u=[],(_||[]).forEach((function(e){var r={title:"",salePrice:e.salePrice,originalPrice:e.originalPrice,period:e.period,id:e.id,discount:e.discount,discountPrice:e.discountPrice,status:!1};r.title=G[e.period],"DAY"!==e.period&&u.push(r)})),(u=u?u.reverse():[]).length>0&&(u[0].status=!0,r.selectMember=u[0]),console.log(u),r.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 s(regeneratorRuntime.mark((function r(){var t;return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.prev=0,r.next=3,A.post("/api-teacher/open/vipProfit",{data:{userId:e.userInfo.id}});case 3:return t=r.sent,e.shareUrl="".concat(location.origin,"/teacher#/shareVip?recomUserId=").concat(e.userInfo.id,"&userType=").concat(S.platformType),t.data&&t.data.activityId&&(e.shareUrl=e.shareUrl+"&activityId="+t.data.activityId),e.shareStatus=!0,e.shareDiscount=t.data.discount||0,r.abrupt("return");case 11:r.prev=11,r.t0=r.catch(0);case 13:case"end":return r.stop()}}),r,null,[[0,11]])})))()},calcSalePrice:function(e){if(1===e.discount){var r=Number((e.salePrice-e.discountPrice).toFixed(2));return r>=0?r:0}return e.salePrice},onSubmit:function(){var e=this.selectMember,r=this.userInfo.isVip?M(this.userInfo.membershipEndTime).toDate():new Date,t=new Date;"MONTH"===e.period?t=M(r).add(1,"month").toDate():"QUARTERLY"===e.period?t=M(r).add(3,"month").toDate():"YEAR_HALF"===e.period?t=M(r).add(6,"month").toDate():"YEAR"===e.period&&(t=M(r).add(1,"year").toDate()),Z.orderObject.orderType="VIP",Z.orderObject.orderName="小酷Ai"+e.title,Z.orderObject.orderDesc="小酷Ai"+e.title,Z.orderObject.actualPrice=this.calcSalePrice(e),Z.orderObject.recomUserId=this.recomUserId,Z.orderObject.activityId=this.activityId,Z.orderObject.orderNo="",Z.orderObject.orderList=[{orderType:"VIP",goodsName:"小酷Ai"+e.title,id:e.id,title:e.title,price:this.calcSalePrice(e),startTime:M(r).format("YYYY-MM-DD"),endTime:M(t).format("YYYY-MM-DD"),recomUserId:this.recomUserId}],this.$router.push({path:"/orderDetail",query:{orderType:"VIP"}})}},render:function(){var e,r=this;return T("div",{class:N["member-center"]},[T(V,{background:"#ffe5cc"},{right:function(){return T("div",{class:N.shareBtn,onClick:r.onShare},[T(Y,{src:C},null),z("分享")])}}),T("div",{class:N.member_container},[T(W,{class:N.userMember,labelClass:N.timeRemaining},{icon:function(){return T("div",{class:N.userImgSection},[T(Y,{class:N.userImg,src:r.userInfo.avatar||B,fit:"cover"},null)])},title:function(){return T("div",{class:N.userInfo},[T("span",{class:N.name},[r.userInfo.username]),!!r.userInfo.isVip&&T(Y,{class:N.level,src:"https://oss.dayaedu.com/daya/202107/ScSTL1D.png"},null),T("span",{class:N.phone,innerHTML:"(".concat(r.userInfo.phone,")")},null)])},label:function(){return T("div",{class:N.member_time},[r.userInfo.isVip?T("div",null,[z("会员权益有效期剩余"),T("span",{class:N.remaining},[r.userInfo.membershipDays]),z("天")]):!r.userInfo.isVip&&r.userInfo.membershipEndTime?T("div",null,[z("您的会员已过期,续费后会员权益可继续使用")]):T("div",null,[z("亲,您还不是会员哦~")])])}})]),T("div",{class:N.memberContainer},[T("div",{class:N.memberItem},[T("div",{class:N.title},[z("会员"),T("span",null,[z("VIP")])]),1==this.discountTeacher.discount&&T("div",{class:N.memberDiscount},[T(Y,{src:this.discountTeacher.avatar||R,class:N.discountAvatar},null),T("span",{class:N.discountName},[this.discountTeacher.username,z("老师的专属优惠~")]),T(Y,{src:i,class:N.discountGift},null)]),T("div",{class:N["system-list"]},[this.memberList.map((function(e){return T("div",{class:[N["system-item"],e.status&&N.active],onClick:function(){r.memberList.forEach((function(e){e.status=!1})),e.status=!0,r.selectMember=e}},["YEAR"===e.period&&T("span",{class:[N.bat]},[z("优惠")]),T("div",{class:N.discountItem},[1==e.discount&&T("img",{src:o},null)]),T("p",{class:N.title},[e.title]),T("p",{class:N.price},[T("span",null,[z("¥")]),L(r.calcSalePrice(e),"0,0[.]00")]),T("del",{class:N.originalPrice},[z("¥"),L(e.originalPrice,"0,0[.]00")])])}))])]),T("div",{class:[N.intro]},[T("p",null,[z("酷乐秀会员可使用包括平台提供的所有训练乐谱,并专享“"),T("b",null,[z("小酷Ai")]),z("”八大核心功能,孩子在家就能轻松完成乐器自主规范练习。")])]),this.functionList.length>0&&T("div",{class:N.memberItem},[T("div",{class:N.title},[z("会员功能")]),T("div",{class:N.member_function},[this.functionList.map((function(e){return T("div",{class:N.function_item},[T(O,{name:e.icon,size:34},null),T("div",{class:N.function_text,innerHTML:e.title},null)])}))])])]),T("div",{class:N.btnGroup},[T("div",{class:N.priceSection},[z("支付金额:"),T("div",{class:N.price},[T("span",{class:N.priceUnit},[z("¥")]),T("span",{class:N.priceNum},[this.$filters.moneyFormat(this.calcSalePrice(this.selectMember)||0)])]),1==(null===(e=this.selectMember)||void 0===e?void 0:e.discount)&&T("div",{class:[N.discountItem,N.discountBuy]},[T("img",{src:o},null)])]),T(k,{color:"linear-gradient(220deg, #DFA164 0%, #FAC87E 100%)",round:!0,class:N.btn,onClick:this.onSubmit},{default:function(){return[r.userInfo.isVip||!r.userInfo.isVip&&r.userInfo.membershipEndTime?T(E,null,[z("立即续费")]):T(E,null,[z("立即支付")])]}})]),T(D,{show:this.shareStatus,"onUpdate:show":function(e){return r.shareStatus=e},style:{background:"transparent"}},{default:function(){return[T(X,{teacherId:r.userInfo.id,shareUrl:r.shareUrl,shareType:"vip",shareLength:2},{default:function(){return[T("div",{class:N.shareVip},[1===r.shareDiscount&&T("div",{class:N.tagDiscount},[z("专属优惠")]),T("img",{class:N.icon,src:a},null),T("div",{class:N.info},[T("h4",{class:"van-multi-ellipsis--l2"},[z("小酷Ai会员")]),T("p",null,[z("海量曲谱、智能评测,专为器乐学习者量身打造")])])])]}})]}})])}}))}}}))}();
|