index-legacy.d39e9dba.js 12 KB

1
  1. !function(){function t(e){return t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},t(e)}function e(){"use strict";/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */e=function(){return r};var r={},n=Object.prototype,o=n.hasOwnProperty,i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",s=i.asyncIterator||"@@asyncIterator",u=i.toStringTag||"@@toStringTag";function c(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{c({},"")}catch(O){c=function(t,e,r){return t[e]=r}}function l(t,e,r,n){var o=e&&e.prototype instanceof h?e:h,i=Object.create(o.prototype),a=new E(n||[]);return i._invoke=function(t,e,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return A()}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var s=w(a,r);if(s){if(s===f)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var u=p(t,e,r);if("normal"===u.type){if(n=r.done?"completed":"suspendedYield",u.arg===f)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(n="completed",r.method="throw",r.arg=u.arg)}}}(t,r,a),i}function p(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(O){return{type:"throw",arg:O}}}r.wrap=l;var f={};function h(){}function d(){}function m(){}var g={};c(g,a,(function(){return this}));var v=Object.getPrototypeOf,y=v&&v(v(k([])));y&&y!==n&&o.call(y,a)&&(g=y);var x=m.prototype=h.prototype=Object.create(g);function b(t){["next","throw","return"].forEach((function(e){c(t,e,(function(t){return this._invoke(e,t)}))}))}function _(e,r){function n(i,a,s,u){var c=p(e[i],e,a);if("throw"!==c.type){var l=c.arg,f=l.value;return f&&"object"==t(f)&&o.call(f,"__await")?r.resolve(f.__await).then((function(t){n("next",t,s,u)}),(function(t){n("throw",t,s,u)})):r.resolve(f).then((function(t){l.value=t,s(l)}),(function(t){return n("throw",t,s,u)}))}u(c.arg)}var i;this._invoke=function(t,e){function o(){return new r((function(r,o){n(t,e,r,o)}))}return i=i?i.then(o,o):o()}}function w(t,e){var r=t.iterator[e.method];if(void 0===r){if(e.delegate=null,"throw"===e.method){if(t.iterator.return&&(e.method="return",e.arg=void 0,w(t,e),"throw"===e.method))return f;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return f}var n=p(r,t.iterator,e.arg);if("throw"===n.type)return e.method="throw",e.arg=n.arg,e.delegate=null,f;var o=n.arg;return o?o.done?(e[t.resultName]=o.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,f):o:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,f)}function L(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function S(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function E(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(L,this),this.reset(!0)}function k(t){if(t){var e=t[a];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var r=-1,n=function e(){for(;++r<t.length;)if(o.call(t,r))return e.value=t[r],e.done=!1,e;return e.value=void 0,e.done=!0,e};return n.next=n}}return{next:A}}function A(){return{value:void 0,done:!0}}return d.prototype=m,c(x,"constructor",m),c(m,"constructor",d),d.displayName=c(m,u,"GeneratorFunction"),r.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===d||"GeneratorFunction"===(e.displayName||e.name))},r.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,m):(t.__proto__=m,c(t,u,"GeneratorFunction")),t.prototype=Object.create(x),t},r.awrap=function(t){return{__await:t}},b(_.prototype),c(_.prototype,s,(function(){return this})),r.AsyncIterator=_,r.async=function(t,e,n,o,i){void 0===i&&(i=Promise);var a=new _(l(t,e,n,o),i);return r.isGeneratorFunction(e)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},b(x),c(x,u,"Generator"),c(x,a,(function(){return this})),c(x,"toString",(function(){return"[object Generator]"})),r.keys=function(t){var e=[];for(var r in t)e.push(r);return e.reverse(),function r(){for(;e.length;){var n=e.pop();if(n in t)return r.value=n,r.done=!1,r}return r.done=!0,r}},r.values=k,E.prototype={constructor:E,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(S),!t)for(var e in this)"t"===e.charAt(0)&&o.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function r(r,n){return a.type="throw",a.arg=t,e.next=r,n&&(e.method="next",e.arg=void 0),!!n}for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n],a=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var s=o.call(i,"catchLoc"),u=o.call(i,"finallyLoc");if(s&&u){if(this.prev<i.catchLoc)return r(i.catchLoc,!0);if(this.prev<i.finallyLoc)return r(i.finallyLoc)}else if(s){if(this.prev<i.catchLoc)return r(i.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return r(i.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&o.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var i=n;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,f):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),f},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),S(r),f}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;S(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:k(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),f}},r}function r(t,e,r,n,o,i,a){try{var s=t[i](a),u=s.value}catch(c){return void r(c)}s.done?e(u):Promise.resolve(u).then(n,o)}var n=document.createElement("style");n.innerHTML='._musicAuth_asr9_1{background:url(./assets/bg_top.112cc7b4.png) no-repeat top left,url(./assets/bg_center.9124774b.png) no-repeat left 80%,url(./assets/bg_bottom.579a0f8b.png) no-repeat bottom right,url(./assets/music_main.4ca224cc.png) no-repeat top right;background-size:212px 126px,178px 223px,171px 163px,668px 406px;background-color:#fff}._musicAuth_asr9_1 ._txt_asr9_6{position:relative;z-index:1;padding-bottom:1.25rem}._musicAuth_asr9_1 ._txt_asr9_6:after{content:"";display:block;width:100%;height:13px;background:#cbfdd5;position:absolute;bottom:15px;left:0;z-index:-1;opacity:.63;border-radius:.75rem}._musicAuth_asr9_1 ._col_asr9_24{background:#ffffff;box-shadow:0 10px 36px rgba(0,0,0,.13);border-radius:10px;min-height:197px}._musicAuth_asr9_1 .el-dialog{--el-dialog-width: 379px !important}._musicAuth_asr9_1 .el-dialog__header,._musicAuth_asr9_1 .el-dialog__body{padding:0}\n',document.head.appendChild(n),System.register(["./teacher_main-legacy.a120f3de.js","./index-legacy.9dbe90e0.js"],(function(t){"use strict";var n,o,i,a,s,u,c,l,p,f,h,d,m,g,v,y,x,b,_,w,L,S,E,k,A,O,j,P;return{setters:[function(t){n=t._,o=t.a,i=t.b,a=t.c,s=t.d,u=t.e,c=t.f,l=t.g,p=t.h,f=t.j,h=t.k,d=t.l,m=t.m,g=t.n,v=t.o,y=t.p,x=t.q,b=t.r,_=t.s},function(t){w=t.d,L=t.aX,S=t.b,E=t.c,k=t.a,A=t.b0,O=t.b1,j=t.M,P=t.aL}],execute:function(){var G="_musicAuth_asr9_1",N="_txt_asr9_6",I="_col_asr9_24",C=t("getAssetsHomeFile",(function(t){var e="../images/".concat(t);return{"../images/bg_bottom.png":n,"../images/bg_center.png":o,"../images/bg_left_bottom.png":i,"../images/bg_right_center.png":a,"../images/bg_top.png":s,"../images/icon_music.png":u,"../images/icon_teacher_auth.png":c,"../images/midi_money.png":l,"../images/midi_upload.png":p,"../images/music_main.png":f,"../images/num1.png":h,"../images/num2.png":d,"../images/num3.png":m,"../images/num4.png":g,"../images/o1.png":v,"../images/o2.png":y,"../images/o3.png":x,"../images/o4.png":b,"../images/teacher_main.png":_}[e].default}));t("default",w({name:"musicAuth",data:function(){return{btnTxt:"立即认证",musicCertStatus:!1,popupStatus:!1}},computed:{auth:function(){var t,e=null===(t=L.user.data)||void 0===t?void 0:t.musicianAuthStatus,r={text:"立即认证",status:!1};switch(e){case"DOING":r.text="审核中",r.status=!0;break;case"PASS":r.text="已认证",r.status=!0}return r}},mounted:function(){var t,e=null===(t=L.user.data)||void 0===t?void 0:t.musicianAuthStatus;console.log(L.user),e&&(this.musicCertStatus="DOING"===e||"PASS"===e)},methods:{onSubmit:function(){var t,n=this;return(t=e().mark((function t(){return e().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(t.prev=0,"login"===L.user.status){t.next=4;break}return L.loginPopupStatus=!0,t.abrupt("return");case 4:return t.next=6,S.post("/api-website/teacherAuthMusicianRecord/doApply",{});case 6:L.user.data.musicianAuthStatus="DOING",n.popupStatus=!0,t.next=12;break;case 10:t.prev=10,t.t0=t.catch(0);case 12:case"end":return t.stop()}}),t,null,[[0,10]])})),function(){var e=this,n=arguments;return new Promise((function(o,i){var a=t.apply(e,n);function s(t){r(a,o,i,s,u,"next",t)}function u(t){r(a,o,i,s,u,"throw",t)}s(void 0)}))})()}},render:function(){var t=this;return E("div",{class:[G,"w-[1200px] mt-[72px] mb-[60px] bg-white min-h-full m-auto px-[138px] text-[#333]"]},[E("div",{class:"w-[388px] pt-24 pb-28"},[E("div",{class:"text-[28px] font-semibold pb-5"},[k("音乐人认证是什么")]),E("p",{class:[N]},[k("酷乐秀对有能力编曲的音乐人开通上传曲谱权限,开通")]),E("p",{class:[N]},[k("后您可上传自己编曲的乐谱MIDI让平台学员进行练习,")]),E("p",{class:[N,"inline-block"]},[k("并获取收益。")])]),E("div",{class:"pb-20"},[E("h2",{class:"text-2xl pb-11 text-center font-semibold"},[k("认证权益")]),E(A,{class:"mb-16"},{default:function(){return[E(O,{span:12,class:"pr-3"},{default:function(){return[E("div",{class:[I,"flex items-center px-10"]},[E("img",{class:"w-[97px] h-[73px]",src:C("midi_upload.png")},null),E("div",{class:"pl-10"},[E("div",{class:"flex items-center font-[18px] pb-3"},[E("img",{class:"w-[30px] h-[22px] mr-1",src:C("num1.png")},null),k("MP3文件上传")]),E("p",{class:"text-[14px] leading-6"},[k("您可上传自己编曲的乐谱MP3,并自定义乐谱价格,为平台学员提供智能陪练练习。")])])])]}}),E(O,{span:12,class:"pl-3"},{default:function(){return[E("div",{class:[I,"flex items-center px-10"]},[E("img",{class:"w-[97px] h-[73px]",src:C("midi_money.png")},null),E("div",{class:"pl-10"},[E("div",{class:"flex items-center font-[18px] pb-3"},[E("img",{class:"w-[30px] h-[22px] mr-1",src:C("num2.png")},null),k("乐谱收益")]),E("p",{class:"text-[14px] leading-6"},[k("您可对上传的乐谱自定义价格,学员可自行挑选乐谱购买,购买后您将获取学员购买收入。")])])])]}})]}}),E("div",{class:"text-center"},[E(j,{type:"primary",class:"rounded w-40 !h-[38px]",onClick:this.onSubmit,disabled:this.auth.status},{default:function(){return[t.auth.text]}})])]),E(P,{modelValue:this.popupStatus,"onUpdate:modelValue":function(e){return t.popupStatus=e},closeOnClickModal:!1,closeOnPressEscape:!1,showClose:!0},{default:function(){return[E("div",{class:"p-8"},[E("img",{src:C("icon_music.png")},null),E("p",{class:"text-center text-[#666] text-base -m-1 pb-6"},[k("您已成功提交音乐人认证申请"),E("br",null,null),k("我们将在2个工作日内与您取得联系")]),E(j,{type:"primary",class:"w-full rounded-sm",style:{height:"38px"},onClick:function(){t.popupStatus=!1}},{default:function(){return[k("我知道了")]}})])]}})])}}))}}}))}();