!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 n};var n={},r=Object.prototype,o=r.hasOwnProperty,a=Object.defineProperty||function(t,e,n){t[e]=n.value},i="function"==typeof Symbol?Symbol:{},c=i.iterator||"@@iterator",u=i.asyncIterator||"@@asyncIterator",l=i.toStringTag||"@@toStringTag";function s(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{s({},"")}catch(k){s=function(t,e,n){return t[e]=n}}function p(t,e,n,r){var o=e&&e.prototype instanceof d?e:d,i=Object.create(o.prototype),c=new O(r||[]);return a(i,"_invoke",{value:w(t,n,c)}),i}function f(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(k){return{type:"throw",arg:k}}}n.wrap=p;var h={};function d(){}function y(){}function _(){}var g={};s(g,c,(function(){return this}));var m=Object.getPrototypeOf,v=m&&m(m(E([])));v&&v!==r&&o.call(v,c)&&(g=v);var j=_.prototype=d.prototype=Object.create(g);function A(t){["next","throw","return"].forEach((function(e){s(t,e,(function(t){return this._invoke(e,t)}))}))}function b(e,n){function r(a,i,c,u){var l=f(e[a],e,i);if("throw"!==l.type){var s=l.arg,p=s.value;return p&&"object"==t(p)&&o.call(p,"__await")?n.resolve(p.__await).then((function(t){r("next",t,c,u)}),(function(t){r("throw",t,c,u)})):n.resolve(p).then((function(t){s.value=t,c(s)}),(function(t){return r("throw",t,c,u)}))}u(l.arg)}var i;a(this,"_invoke",{value:function(t,e){function o(){return new n((function(n,o){r(t,e,n,o)}))}return i=i?i.then(o,o):o()}})}function w(t,e,n){var r="suspendedStart";return function(o,a){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw a;return S()}for(n.method=o,n.arg=a;;){var i=n.delegate;if(i){var c=x(i,n);if(c){if(c===h)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var u=f(t,e,n);if("normal"===u.type){if(r=n.done?"completed":"suspendedYield",u.arg===h)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(r="completed",n.method="throw",n.arg=u.arg)}}}function x(t,e){var n=e.method,r=t.iterator[n];if(void 0===r)return e.delegate=null,"throw"===n&&t.iterator.return&&(e.method="return",e.arg=void 0,x(t,e),"throw"===e.method)||"return"!==n&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+n+"' method")),h;var o=f(r,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,h;var a=o.arg;return a?a.done?(e[t.resultName]=a.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,h):a:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,h)}function C(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 L(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function O(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(C,this),this.reset(!0)}function E(t){if(t){var e=t[c];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,r=function e(){for(;++n=0;--r){var a=this.tryEntries[r],i=a.completion;if("root"===a.tryLoc)return n("end");if(a.tryLoc<=this.prev){var c=o.call(a,"catchLoc"),u=o.call(a,"finallyLoc");if(c&&u){if(this.prev=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&o.call(r,"finallyLoc")&&this.prev=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),L(n),h}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var o=r.arg;L(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:E(t),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=void 0),h}},n}function n(t,e,n,r,o,a,i){try{var c=t[a](i),u=c.value}catch(l){return void n(l)}c.done?e(u):Promise.resolve(u).then(r,o)}function r(t){return function(){var e=this,r=arguments;return new Promise((function(o,a){var i=t.apply(e,r);function c(t){n(i,o,a,c,u,"next",t)}function u(t){n(i,o,a,c,u,"throw",t)}c(void 0)}))}}System.register(["./index-legacy-9572cf39.js","./constant-legacy-90a50c7d.js","./index-legacy-7e0acc44.js","./index-legacy-0e12a30c.js","./index-legacy-bc1d90bf.js","./index-legacy-870d50da.js","./index-legacy-730341a9.js","./index-legacy-e0a24453.js"],(function(t,n){"use strict";var o,a,i,c,u,l,s,p,f,h,d,y,_,g,m,v,j,A,b,w,x,C=document.createElement("style");return C.textContent="._school-register_1tajy_1{--van-cell-font-size: .42667rem}._school-register_1tajy_1 ._codeText_1tajy_4{color:var(--k-font-primary)}._school-register_1tajy_1 ._banner_1tajy_7{position:relative;width:100%}._school-register_1tajy_1 ._banner_1tajy_7 img{width:inherit}._school-register_1tajy_1 ._bannerContainer_1tajy_14{position:absolute;top:.8rem;left:.58667rem}._school-register_1tajy_1 ._bannerContainer_1tajy_14 ._bannerTitle_1tajy_19{font-size:.74667rem;color:#fff;line-height:1.06667rem;text-shadow:0 .05333rem .10667rem #17af92}._school-register_1tajy_1 ._bannerContainer_1tajy_14 ._bannerSchool_1tajy_25{padding-top:.26667rem;display:flex;align-items:flex-start;max-width:4.8rem}._school-register_1tajy_1 ._bannerContainer_1tajy_14 ._iconSchool_1tajy_31{display:inline-block;width:.42667rem;height:.42667rem;margin-right:.16rem;margin-top:.05333rem}._school-register_1tajy_1 ._bannerContainer_1tajy_14 ._schoolName_1tajy_38{font-size:.37333rem;font-weight:500;color:#0e8e76;line-height:.53333rem}._school-register_1tajy_1 ._required_1tajy_44{color:#ff5a56}._school-register_1tajy_1 .van-field__label{color:var(--k-gray-1);font-size:.42667rem}._school-register_1tajy_1 .van-cell-group{margin-top:.32rem}._school-register_1tajy_1 .van-field__control{color:var(--k-gray-2)}._school-register_1tajy_1 .van-field__control::-moz-placeholder{color:var(--k-gray-4)}._school-register_1tajy_1 .van-field__control::placeholder{color:var(--k-gray-4)}._school-register_1tajy_1 ._tips_1tajy_60{height:.74667rem;display:flex;align-items:center;background:#edf9f7;border-radius:.16rem;padding:0 .21333rem;font-size:.34667rem;color:var(--k-font-primary);line-height:.48rem}._school-register_1tajy_1 ._tips_1tajy_60 ._iconTips_1tajy_71{width:.42667rem;height:.42667rem;margin-right:.10667rem}._popup_1tajy_76{width:7.36rem;border-radius:.21333rem;overflow:inherit;margin-top:-.53333rem}._popup_1tajy_76 ._popupContainer_1tajy_82{position:relative}._popup_1tajy_76 ._popupContainer_1tajy_82 h3{padding-top:.48rem;padding-bottom:.26667rem;font-size:.45333rem;font-weight:500;color:var(--k-gray-1);line-height:.64rem;text-align:center}._popup_1tajy_76 ._popupContainer_1tajy_82 ._popupContent_1tajy_94{padding:0 .66667rem .58667rem;font-size:.37333rem;color:var(--k-gray-3);line-height:.53333rem}._popup_1tajy_76 ._popupContainer_1tajy_82 ._popupContent_1tajy_94 span{color:var(--k-font-primary)}._popup_1tajy_76 ._popupContainer_1tajy_82 ._popupBtn_1tajy_103{display:block;margin:0 auto .64rem;width:4.74667rem;height:.96rem;--van-button-normal-font-size: .42667rem}._popup_1tajy_76 ._bannerPopup_1tajy_110{width:100%;margin-top:-.58667rem}\n",document.head.appendChild(C),{setters:[function(t){o=t.d,a=t.O,i=t.i,c=t.o,u=t.f,l=t.g,s=t.h,p=t.F,f=t.B,h=t.P,d=t.W,y=t.a,_=t.e,g=t.y,m=t.N},function(t){v=t.E},function(t){j=t.C,A=t.I},function(t){b=t.C},function(t){w=t.C},function(t){x=t.F},null,null],execute:function(){var C="_school-register_1tajy_1",L="_codeText_1tajy_4",O="_banner_1tajy_7",E="_bannerContainer_1tajy_14",S="_bannerTitle_1tajy_19",k="_bannerSchool_1tajy_25",U="_iconSchool_1tajy_31",Y="_schoolName_1tajy_38",z="_required_1tajy_44",I="_tips_1tajy_60",P="_iconTips_1tajy_71",N="_popup_1tajy_76",M="_popupContainer_1tajy_82",T="_popupContent_1tajy_94",D="_popupBtn_1tajy_103",F="_bannerPopup_1tajy_110",B=""+new URL("banner-b102b79e.png",n.meta.url).href,H=""+new URL("banner-popup-e91718c1.png",n.meta.url).href;t("default",o({name:"school-register",setup:function(){var t=d(),n=m(),o=a({id:t.query.id,imgCodeStatus:!1,type:t.query.type||"",username:"",nameReg:/^[\u4E00-\u9FA5]+$/,phone:"",isAgree:!1,smsCode:"",registerStatus:!1,countDownStatus:!0,schoolDetail:{},countDownTime:12e4,btnLoading:!1}),V=i(),G=function(){var t=r(e().mark((function t(){var n,r;return e().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,y.get("/api-web/open/school/cooperation",{params:{id:o.id}});case 3:n=t.sent,r=n.data,o.schoolDetail=r||{},t.next=10;break;case 8:t.prev=8,t.t0=t.catch(0);case 10:case"end":return t.stop()}}),t,null,[[0,8]])})));return function(){return t.apply(this,arguments)}}(),R=function(){var t=r(e().mark((function t(){return e().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(o.username){t.next=3;break}return u("请输入真实姓名"),t.abrupt("return");case 3:if(o.nameReg.test(o.username)){t.next=6;break}return u("姓名必须为中文"),t.abrupt("return");case 6:if(_(o.phone)){t.next=9;break}return u("请输入正确的手机号"),t.abrupt("return");case 9:if(o.smsCode){t.next=12;break}return u("请输入验证码"),t.abrupt("return");case 12:return t.prev=12,o.btnLoading=!0,t.next=16,y.post("/api-web/open/school/staffSave",{data:{schoolId:o.id,userType:o.type,username:o.username,mobile:o.phone,smsCode:o.smsCode}});case 16:999===t.sent.code?setTimeout((function(){u("您已注册")}),100):o.registerStatus=!0,t.next=22;break;case 20:t.prev=20,t.t0=t.catch(12);case 22:return t.prev=22,o.btnLoading=!1,t.finish(22);case 25:case"end":return t.stop()}}),t,null,[[12,20,22,25]])})));return function(){return t.apply(this,arguments)}}(),Z=function(){o.registerStatus=!1,n.push("/download")},K=function(){o.countDownStatus=!1,g((function(){V.value.start()}))},Q=function(){if(!_(o.phone))return u("请输入正确的手机号码");o.imgCodeStatus=!0},X=function(){o.countDownStatus=!0,V.value.reset()};return c((function(){o.id?(document.title=v[o.type]+"注册",G()):u("链接有误")})),function(){var t,e;return l("div",{class:C},[l("div",{class:O},[l("img",{src:B,alt:"banner"},null),l("div",{class:E},[l("div",{class:S},[v[o.type],s("注册")]),l("div",{class:k},[l("img",{src:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAMAAABEpIrGAAAAZlBMVEUAAAALkHoOjnYNj3UOjnYOjnYOjnYOjncOjnYPjnMOjXYNjnYNjnYOjnYPjHQMj3YAk3ENj3YOjnYOjnYPjnYOjnYOkHQOjnYNj3cPjnYOjnUNkHYOj3YOj3cNj3gOj3cOjnYOjnb8Wfe0AAAAIXRSTlMAF5Y88OCy8eIcwvnotR9QCKrsu1auEtmZi4NfWUdBoaAwesabAAAA0UlEQVQ4y83RW26DMBBAUZOYocamNhDIO+3d/ybrBvXlYFDVn94vj+YIjYT6WdG2hVro0kF3ya4L4Z5kPnLWwDAA3XlmbRrA7ZTaOaAx6f6qgXacDgX0NQF7cP5j8A72Cahw49c0dugHUH4fn34DzFDHbApsHWtNfB+ZSsDUMb43S2AzgVsIjzeEcPsE2/kjtzPg2XuzAMKLBfsasqDnXp8DHvTpVIHPgAO8/244ZICAiXeCZEDzb4GUUItYKnHQi/Tg4mhFaihFsdI6KFZSf+4N3zgqnBNSCiAAAAAASUVORK5CYII=",class:U},null),l("p",{class:Y},[null===(t=o.schoolDetail)||void 0===t||null===(e=t.cooperation)||void 0===e?void 0:e.name])])])]),l(b,{inset:!0},{default:function(){return[l(x,{labelAlign:"top",class:"border",modelValue:o.username,"onUpdate:modelValue":function(t){return o.username=t},placeholder:"请填写您的真实姓名",autocomplete:"off",maxlength:8},{label:function(){return l(p,null,[s("真实姓名"),l("i",{class:z},[s("*")])])}}),l(x,{labelAlign:"top",modelValue:o.phone,"onUpdate:modelValue":function(t){return o.phone=t},placeholder:"请填写您的手机号码",autocomplete:"off",maxlength:11},{label:function(){return l(p,null,[s("手机号码"),l("i",{class:z},[s("*")])])}}),l(w,{border:!1},{default:function(){return[l("div",{class:I},[l("img",{src:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAMAAABEpIrGAAAA3lBMVEUAAAAI5tIF59IC6NQI5tID6tUA6tUA/9sC5tME59MB6NUJ59EH6NMC5tMI5tEF59IF59IG6NYD49UB6dYH480L38wK5tEA6NQL59AA6tUIzsACu68FxLcEwbUK0sMDv7IK1ccFxrkCvbEHyrz///8Gx7oGybsM2coK08QIy70Ew7YI0MIL18gK1MUDwLMHzL4Bua0Bt6wHyr0K4M0H3csF2sgbzcABzr842c0F1cUw1col0cURxLkK4s4C2Mf1/PzG8u+G4tto49pg2NAd1cgq08czzMIRyLwE08MBzLypPxxzAAAAGnRSTlMA+eqamhgMB/niyMhX9PTHiS0kVyT94omJJOmve2sAAAHXSURBVDjLZZN7Q6pAEMWXl/HwVd4eN0BFQVFELSCi1N517/f/Qs3ObgzV/Ps75+zM7C6jarV1R1UU1dHbLfa7/ujd/el8vhqvVnnW1U9+4KMLJZtzPB6ncTyMc6V/1OSGs+f4iw+TyyTvGcSPzzLJ0xQwcKjCOq79Z6fAyY58s6gsQ57vZHX86/Pza8LxZrGYHnqij4s9xd+G4a3g0+lslvdxPoXipQDswKNoZvJp9Qy56A4Ed2C/BnsUBF6lwf6680b3dyBAO3Iv6LRYO+M8FpwL3jAeubfMB0zPgdfDv4XhPbdHiJd+ojFnlRLf3IMA4xH7/sxm6ri5HBDcRMTXvsqUdEj8+gYEGI94PRqZTMG74cW75wJPcsCTicnUuLZD9yD4aPK1ypz0knj08fi4I+y6ns30AjHE4/RkHwF3Sw0WhXZYLnW/Fn6oYgCrlvGId09PnrTzmsCq4YwF2jH+JQxfaru7LTW87g3eDU73/vDwLvl2u3XNvwyqn+PxorvdrrZfXR3OxZPrVRzTdIiBl7Z8+oaVUPfEA8uon71VARZcxoOfnj1k9Arve7xb2bUf++gr/3zibmmei/OpTrROUQYjECz/Hzoafd7m99ds1TRVWxs0vv8n09dwAyYqkL0AAAAASUVORK5CYII=",class:P},null),s("提示:手机号码将成为您管乐迷管理端登录账户")])]}}),l(x,{labelAlign:"top",class:"border",modelValue:o.smsCode,"onUpdate:modelValue":function(t){return o.smsCode=t},placeholder:"请输入验证码",autocomplete:"off",maxlength:6},{label:function(){return l(p,null,[s("验证码"),l("i",{class:z},[s("*")])])},button:function(){return o.countDownStatus?l("span",{class:L,onClick:Q},[s("获取验证码")]):l(j,{ref:function(t){return V.value=t},"auto-start":!1,time:o.countDownTime,onFinish:X,format:"ss秒"},null)}})]}}),l("div",{class:["btnGroupFixed"],style:{"margin-top":"18px"}},[l(f,{round:!0,block:!0,type:"primary",onClick:R,disabled:o.btnLoading,loading:o.btnLoading},{default:function(){return[s("提交")]}})]),l(h,{show:o.registerStatus,"onUpdate:show":function(t){return o.registerStatus=t},class:N,closeOnClickOverlay:!1},{default:function(){var t,e;return[l("div",{class:M},[l("img",{src:H,class:F},null),l("h3",null,[s("注册成功")]),l("div",{class:T},[s("恭喜您在"),null===(t=o.schoolDetail)||void 0===t||null===(e=t.cooperation)||void 0===e?void 0:e.name,s("成功注册为"),l("span",null,[s("【"),v[o.type],s("】")]),s(",请下载管乐迷管理端App进行乐团管理吧~")]),l(f,{type:"primary",round:!0,class:D,onClick:Z},{default:function(){return[s("立即下载")]}})])]}}),o.imgCodeStatus?l(A,{value:o.imgCodeStatus,"onUpdate:value":function(t){return o.imgCodeStatus=t},phone:o.phone,onClose:function(){o.imgCodeStatus=!1},onSendCode:K},null):null])}}}))}}}))}();