index-legacy.8509d9c9.js 8.3 KB

1
  1. !function(){function e(e,o,t,n,r,i,m){try{var _=e[i](m),c=_.value}catch(s){return void t(s)}_.done?o(c):Promise.resolve(c).then(n,r)}var o=document.createElement("style");o.innerHTML='._member-center_8doog_1{min-height:100vh;position:relative;background-color:#fff}._member-center_8doog_1 ._intro_8doog_6{background:url(./assets/share-vip-tips.2227c0e9.png) no-repeat center;background-size:contain;height:3.78667rem;font-size:.37333rem;color:#bb6e3a}._member-center_8doog_1 ._intro_8doog_6 p{padding:1.2rem .66667rem 0;text-align:justify;line-height:.58667rem}._member-center_8doog_1 ._shareBanner_8doog_18{width:100%}._member-center_8doog_1 ._memberContainer_8doog_21{position:relative;margin-top:.4rem;padding:0 .37333rem .66667rem;z-index:99}._member-center_8doog_1 ._memberItem_8doog_27{padding-top:.53333rem}._member-center_8doog_1 ._memberItem_8doog_27 ._title_8doog_30{font-size:.42667rem;color:#333;font-weight:500}._member-center_8doog_1 ._memberItem_8doog_27 ._title_8doog_30 span{color:#f7b500}._member-center_8doog_1 ._member_function_8doog_38{display:flex;justify-content:space-between;flex-wrap:wrap}._member-center_8doog_1 ._member_function_8doog_38 ._function_item__content_8doog_43{height:100%}._member-center_8doog_1 ._member_function_8doog_38 ._function_item_8doog_43{width:2.13333rem;padding:.32rem 0;margin-top:.21333rem;border-radius:.21333rem;overflow:hidden;background-color:#faefe3;text-align:center}._member-center_8doog_1 ._member_function_8doog_38 ._function_text_8doog_55{font-size:.32rem;color:#814014;line-height:.42667rem}._member-center_8doog_1 ._system-list_8doog_60::-webkit-scrollbar{display:none}._member-center_8doog_1 ._system-list_8doog_60{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_8doog_1 ._system-item_8doog_76{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-right:.26667rem}._member-center_8doog_1 ._system-item_8doog_76 ._title_8doog_30{font-size:.37333rem;font-weight:500;color:#333;line-height:.53333rem}._member-center_8doog_1 ._system-item_8doog_76 ._price_8doog_96{color:#dc9362;font-size:.66667rem;line-height:1.5}._member-center_8doog_1 ._system-item_8doog_76 ._price_8doog_96 span{font-size:.42667rem}._member-center_8doog_1 ._system-item_8doog_76 ._originalPrice_8doog_104{color:#937059;font-size:.34667rem}._member-center_8doog_1 ._system-item_8doog_76._active_8doog_108{background:linear-gradient(215deg,#ffe7c4 0%,rgba(250,211,156,.21) 100%);border:.02667rem solid #b1652e;position:relative}._member-center_8doog_1 ._system-item_8doog_76._active_8doog_108 ._title_8doog_30{color:#814014}._member-center_8doog_1 ._system-item_8doog_76._active_8doog_108 ._price_8doog_96{color:#b1652e}._member-center_8doog_1 ._system-item_8doog_76._active_8doog_108 ._originalPrice_8doog_104{color:#937059}._member-center_8doog_1 ._system-item_8doog_76._active_8doog_108: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:0;right:0;border-radius:0 .32rem}._member-center_8doog_1 ._tagDiscount_8doog_137{position:absolute;top:-.37333rem;right:1.46667rem;padding:.05333rem .32rem;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}._member-center_8doog_1 ._wxpopup_8doog_150{width:100%;height:100vh;position:fixed;top:0;left:0;background:rgba(0,0,0,.5);z-index:9999}._member-center_8doog_1 ._wxpopup_8doog_150 img{width:88%;margin:0 6%}\n',document.head.appendChild(o),System.register(["./tip_bg-legacy.f826a784.js","./index-legacy.b2528a15.js","./index-legacy.ca42ae97.js","./share-banner-legacy.3a0e6967.js","./wx_bg-legacy.a09a21f9.js","./share-legacy.6cf7d519.js","./index-legacy.c610561c.js"],(function(o){"use strict";var t,n,r,i,m,_,c,s,d,a,g,l,u,b,f,p,h,v,w,y,x,k,I,j,z,S,T,U,C,A;return{setters:[function(e){t=e._,n=e.c,r=e.d,i=e.e,m=e.f,_=e.g,c=e.h,s=e.j,d=e.k,a=e.l,g=e.m,l=e.n,u=e.o,b=e.p,f=e.q,p=e.r},function(e){h=e.d,v=e.s,w=e.e,y=e.b,x=e.i,k=e.A,I=e.N,j=e.B},function(e){z=e.I},function(e){S=e.s},function(e){T=e.w},function(e){U=e.i,C=e.s},function(e){A=e.q}],execute:function(){var D="_member-center_8doog_1",L="_intro_8doog_6",P="_shareBanner_8doog_18",E="_memberContainer_8doog_21",R="_memberItem_8doog_27",q="_title_8doog_30",B="_member_function_8doog_38",F="_function_item_8doog_43",H="_function_text_8doog_55",M="_tagDiscount_8doog_137",N="_wxpopup_8doog_150",G=o("getAssetsHomeFile",(function(e){var o="../../../views/member-center/images/".concat(e);return{"../../../views/member-center/images/1.png":t,"../../../views/member-center/images/2.png":n,"../../../views/member-center/images/3.png":r,"../../../views/member-center/images/4.png":i,"../../../views/member-center/images/5.png":m,"../../../views/member-center/images/6.png":_,"../../../views/member-center/images/7.png":c,"../../../views/member-center/images/8.png":s,"../../../views/member-center/images/discount_bg.png":d,"../../../views/member-center/images/icon_discount.png":a,"../../../views/member-center/images/icon_gift.png":g,"../../../views/member-center/images/icon_video.png":l,"../../../views/member-center/images/member_bg.png":u,"../../../views/member-center/images/member_logo.png":b,"../../../views/member-center/images/record_bg.png":f,"../../../views/member-center/images/tip_bg.png":p}[o].default}));o("default",h({name:"MemberCenter",data:function(){var e=this.$route.query;e.recomUserId=e.userType&&"STUDENT"==e.userType?"":e.recomUserId;var o="".concat(location.origin,"/student/#/memberCenter?").concat(A.stringify(e));return{activityId:e.activityId,recomUserId:e.recomUserId,discount:0,functionList:[],wxStatus:!1,jumpUrl:o}},computed:{userInfo:function(){var e=v.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,membershipDays:null==e?void 0:e.membershipDays,membershipEndTime:null==e?void 0:e.membershipEndTime}}},created:function(){U(this.jumpUrl)},mounted:function(){var o,t=this;return(o=regeneratorRuntime.mark((function e(){var o,n,r;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,w.post("/api-teacher/open/memberPriceSettings/vipPermissions");case 3:if(o=e.sent,n=o.data||[],t.functionList=n.map((function(e){return{title:e.paramName,icon:G("".concat(e.paramValue,".png"))}})),!t.activityId){e.next=11;break}return e.next=9,w.post("/api-teacher/open/activity/state/".concat(t.activityId));case 9:r=e.sent,t.discount=r.data.check||0;case 11:e.next=15;break;case 13:e.prev=13,e.t0=e.catch(0);case 15:case"end":return e.stop()}}),e,null,[[0,13]])})),function(){var t=this,n=arguments;return new Promise((function(r,i){var m=o.apply(t,n);function _(o){e(m,r,i,_,c,"next",o)}function c(o){e(m,r,i,_,c,"throw",o)}_(void 0)}))})()},methods:{onShare:function(){y().weixin?this.wxStatus=!0:(C(this.jumpUrl),setTimeout((function(){window.location.href=location.origin+"/student/#/download"}),3e3))}},render:function(){var e=this;return x("div",{class:D},[x(z,{src:S,class:P},null),x("div",{class:E},[x("div",{class:[L]},[x("p",null,[k("酷乐秀会员可使用包括平台提供的所有训练乐谱,并专享“"),x("b",null,[k("小酷Ai")]),k("”八大核心功能,孩子在家就能轻松完成乐器自主规范练习。")])]),this.functionList.length>0&&x("div",{class:R},[x("div",{class:q},[k("会员功能")]),x("div",{class:B},[this.functionList.map((function(e){return x("div",{class:F},[x(I,{name:e.icon,size:34},null),x("div",{class:H,innerHTML:e.title},null)])}))])])]),x("div",{class:["btnGroup"],style:{paddingTop:"12px",position:"relative"}},[1===this.discount&&x("div",{class:M},[k("专属优惠")]),x(j,{block:!0,round:!0,type:"primary",onClick:this.onShare,color:"linear-gradient(220deg, #DFA164 0%, #FAC87E 100%)"},{default:function(){return[k("下载小酷Ai开始练习吧!")]}})]),this.wxStatus&&x("div",{class:N,onClick:function(){e.wxStatus=!1}},[x("img",{src:T,alt:""},null)])])}}))}}}))}();