1 |
- !function(){function e(t){return e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e(t)}function t(){"use strict";/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */t=function(){return r};var r={},n=Object.prototype,o=n.hasOwnProperty,i=Object.defineProperty||function(e,t,r){e[t]=r.value},a="function"==typeof Symbol?Symbol:{},c=a.iterator||"@@iterator",u=a.asyncIterator||"@@asyncIterator",l=a.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(k){s=function(e,t,r){return e[t]=r}}function p(e,t,r,n){var o=t&&t.prototype instanceof d?t:d,a=Object.create(o.prototype),c=new O(n||[]);return i(a,"_invoke",{value:x(e,r,c)}),a}function f(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(k){return{type:"throw",arg:k}}}r.wrap=p;var h={};function d(){}function _(){}function m(){}var g={};s(g,c,(function(){return this}));var v=Object.getPrototypeOf,y=v&&v(v(E([])));y&&y!==n&&o.call(y,c)&&(g=y);var A=m.prototype=d.prototype=Object.create(g);function b(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function w(t,r){function n(i,a,c,u){var l=f(t[i],t,a);if("throw"!==l.type){var s=l.arg,p=s.value;return p&&"object"==e(p)&&o.call(p,"__await")?r.resolve(p.__await).then((function(e){n("next",e,c,u)}),(function(e){n("throw",e,c,u)})):r.resolve(p).then((function(e){s.value=e,c(s)}),(function(e){return n("throw",e,c,u)}))}u(l.arg)}var a;i(this,"_invoke",{value:function(e,t){function o(){return new r((function(r,o){n(e,t,r,o)}))}return a=a?a.then(o,o):o()}})}function x(e,t,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 S()}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var c=j(a,r);if(c){if(c===h)continue;return c}}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=f(e,t,r);if("normal"===u.type){if(n=r.done?"completed":"suspendedYield",u.arg===h)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(n="completed",r.method="throw",r.arg=u.arg)}}}function j(e,t){var r=t.method,n=e.iterator[r];if(void 0===n)return t.delegate=null,"throw"===r&&e.iterator.return&&(t.method="return",t.arg=void 0,j(e,t),"throw"===t.method)||"return"!==r&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+r+"' method")),h;var o=f(n,e.iterator,t.arg);if("throw"===o.type)return t.method="throw",t.arg=o.arg,t.delegate=null,h;var i=o.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,h):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,h)}function C(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function L(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function O(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(C,this),this.reset(!0)}function E(e){if(e){var t=e[c];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,n=function t(){for(;++r<e.length;)if(o.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=void 0,t.done=!0,t};return n.next=n}}return{next:S}}function S(){return{value:void 0,done:!0}}return _.prototype=m,i(A,"constructor",{value:m,configurable:!0}),i(m,"constructor",{value:_,configurable:!0}),_.displayName=s(m,l,"GeneratorFunction"),r.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===_||"GeneratorFunction"===(t.displayName||t.name))},r.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,m):(e.__proto__=m,s(e,l,"GeneratorFunction")),e.prototype=Object.create(A),e},r.awrap=function(e){return{__await:e}},b(w.prototype),s(w.prototype,u,(function(){return this})),r.AsyncIterator=w,r.async=function(e,t,n,o,i){void 0===i&&(i=Promise);var a=new w(p(e,t,n,o),i);return r.isGeneratorFunction(t)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},b(A),s(A,l,"Generator"),s(A,c,(function(){return this})),s(A,"toString",(function(){return"[object Generator]"})),r.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},r.values=E,O.prototype={constructor:O,reset:function(e){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(L),!e)for(var t in this)"t"===t.charAt(0)&&o.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(r,n){return a.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.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 c=o.call(i,"catchLoc"),u=o.call(i,"finallyLoc");if(c&&u){if(this.prev<i.catchLoc)return r(i.catchLoc,!0);if(this.prev<i.finallyLoc)return r(i.finallyLoc)}else if(c){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(e,t){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"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,h):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),h},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),L(r),h}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;L(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:E(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),h}},r}function r(e,t,r,n,o,i,a){try{var c=e[i](a),u=c.value}catch(l){return void r(l)}c.done?t(u):Promise.resolve(u).then(n,o)}function n(e){return function(){var t=this,n=arguments;return new Promise((function(o,i){var a=e.apply(t,n);function c(e){r(a,o,i,c,u,"next",e)}function u(e){r(a,o,i,c,u,"throw",e)}c(void 0)}))}}System.register(["./index-legacy-81086347.js","./constant-legacy-90a50c7d.js","./index-legacy-9e599765.js","./index-legacy-d727f666.js","./index-legacy-beaac310.js","./index-legacy-4c9acb6d.js","./index-legacy-00cdca86.js","./index-legacy-7e2f95a9.js"],(function(e,r){"use strict";var o,i,a,c,u,l,s,p,f,h,d,_,m,g,v,y,A,b,w,x,j,C=document.createElement("style");return C.textContent="._school-register_1r4op_1{--van-cell-font-size: .42667rem}._school-register_1r4op_1 ._codeText_1r4op_4{color:var(--k-font-primary)}._school-register_1r4op_1 ._banner_1r4op_7{position:relative;width:100%}._school-register_1r4op_1 ._banner_1r4op_7 img{width:inherit}._school-register_1r4op_1 ._bannerContainer_1r4op_14{position:absolute;top:.8rem;left:.58667rem}._school-register_1r4op_1 ._bannerContainer_1r4op_14 ._bannerTitle_1r4op_19{font-size:.74667rem;color:#fff;line-height:1.06667rem;text-shadow:0 .05333rem .10667rem #17af92}._school-register_1r4op_1 ._bannerContainer_1r4op_14 ._bannerSchool_1r4op_25{padding-top:.26667rem;display:flex;align-items:flex-start;max-width:4.8rem}._school-register_1r4op_1 ._bannerContainer_1r4op_14 ._iconSchool_1r4op_31{display:inline-block;width:.42667rem;height:.42667rem;margin-right:.16rem;margin-top:.05333rem}._school-register_1r4op_1 ._bannerContainer_1r4op_14 ._schoolName_1r4op_38{font-size:.37333rem;font-weight:500;color:#0e8e76;line-height:.53333rem}._school-register_1r4op_1 ._required_1r4op_44{color:#ff5a56}._school-register_1r4op_1 .van-field__label{color:var(--k-gray-1);font-size:.42667rem}._school-register_1r4op_1 .van-cell-group{margin-top:.32rem}._school-register_1r4op_1 .van-field__control{color:var(--k-gray-2)}._school-register_1r4op_1 .van-field__control::-moz-placeholder{color:#dcdcdc}._school-register_1r4op_1 .van-field__control::placeholder{color:#dcdcdc}._school-register_1r4op_1 ._tips_1r4op_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_1r4op_1 ._tips_1r4op_60 ._iconTips_1r4op_71{width:.42667rem;height:.42667rem;margin-right:.10667rem}._popup_1r4op_76{width:7.36rem;border-radius:.21333rem;overflow:inherit;margin-top:-.53333rem}._popup_1r4op_76 ._popupContainer_1r4op_82{position:relative}._popup_1r4op_76 ._popupContainer_1r4op_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_1r4op_76 ._popupContainer_1r4op_82 ._popupContent_1r4op_94{padding:0 .66667rem .58667rem;font-size:.37333rem;color:var(--k-gray-3);line-height:.53333rem}._popup_1r4op_76 ._popupContainer_1r4op_82 ._popupContent_1r4op_94 span{color:var(--k-font-primary)}._popup_1r4op_76 ._popupContainer_1r4op_82 ._popupBtn_1r4op_103{display:block;margin:0 auto .64rem;width:4.74667rem;height:.96rem;--van-button-normal-font-size: .42667rem}._popup_1r4op_76 ._bannerPopup_1r4op_110{width:100%;margin-top:-.58667rem}\n",document.head.appendChild(C),{setters:[function(e){o=e.d,i=e.O,a=e.i,c=e.o,u=e.f,l=e.g,s=e.h,p=e.F,f=e.B,h=e.P,d=e.W,_=e.a,m=e.e,g=e.y,v=e.N},function(e){y=e.E},function(e){A=e.C,b=e.I},function(e){w=e.C},function(e){x=e.C},function(e){j=e.F},null,null],execute:function(){var C="_school-register_1r4op_1",L="_codeText_1r4op_4",O="_banner_1r4op_7",E="_bannerContainer_1r4op_14",S="_bannerTitle_1r4op_19",k="_bannerSchool_1r4op_25",U="_iconSchool_1r4op_31",Y="_schoolName_1r4op_38",I="_required_1r4op_44",z="_tips_1r4op_60",P="_iconTips_1r4op_71",N="_popup_1r4op_76",M="_popupContainer_1r4op_82",T="_popupContent_1r4op_94",D="_popupBtn_1r4op_103",F="_bannerPopup_1r4op_110",B=""+new URL("banner-b102b79e.png",r.meta.url).href,H=""+new URL("banner-popup-e91718c1.png",r.meta.url).href;e("default",o({name:"school-register",setup:function(){var e=d(),r=v(),o=i({id:e.query.id,imgCodeStatus:!1,type:e.query.type||"",username:"",nameReg:/^[\u4E00-\u9FA5]+$/,phone:"",isAgree:!1,smsCode:"",registerStatus:!1,countDownStatus:!0,schoolDetail:{},countDownTime:12e4}),V=a(),G=function(){var e=n(t().mark((function e(){var r,n;return t().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,_.get("/api-web/open/school/cooperation",{params:{id:o.id}});case 3:r=e.sent,n=r.data,o.schoolDetail=n||{},e.next=10;break;case 8:e.prev=8,e.t0=e.catch(0);case 10:case"end":return e.stop()}}),e,null,[[0,8]])})));return function(){return e.apply(this,arguments)}}(),R=function(){var e=n(t().mark((function e(){return t().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(o.username){e.next=3;break}return u("请输入真实姓名"),e.abrupt("return");case 3:if(o.nameReg.test(o.username)){e.next=6;break}return u("姓名必须为中文"),e.abrupt("return");case 6:if(m(o.phone)){e.next=9;break}return u("请输入正确的手机号"),e.abrupt("return");case 9:if(o.smsCode){e.next=12;break}return u("请输入验证码"),e.abrupt("return");case 12:return e.prev=12,e.next=15,_.post("/api-web/open/school/staffSave",{hideLoading:!1,data:{schoolId:o.id,userType:o.type,username:o.username,mobile:o.phone,smsCode:o.smsCode}});case 15:999===e.sent.code?setTimeout((function(){u("您已注册")}),100):o.registerStatus=!0,e.next=21;break;case 19:e.prev=19,e.t0=e.catch(12);case 21:case"end":return e.stop()}}),e,null,[[12,19]])})));return function(){return e.apply(this,arguments)}}(),Z=function(){o.registerStatus=!1,r.push("/download")},K=function(){o.countDownStatus=!1,g((function(){V.value.start()}))},Q=function(){if(!m(o.phone))return u("请输入正确的手机号码");o.imgCodeStatus=!0},X=function(){o.countDownStatus=!0,V.value.reset()};return c((function(){o.id?(document.title=y[o.type]+"注册",G()):u("链接有误")})),function(){var e,t;return l("div",{class:C},[l("div",{class:O},[l("img",{src:B,alt:"banner"},null),l("div",{class:E},[l("div",{class:S},[y[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===(e=o.schoolDetail)||void 0===e||null===(t=e.cooperation)||void 0===t?void 0:t.name])])])]),l(w,{inset:!0},{default:function(){return[l(j,{labelAlign:"top",class:"border",modelValue:o.username,"onUpdate:modelValue":function(e){return o.username=e},placeholder:"请填写您的真实姓名",autocomplete:"off",maxlength:8},{label:function(){return l(p,null,[s("真实姓名"),l("i",{class:I},[s("*")])])}}),l(j,{labelAlign:"top",modelValue:o.phone,"onUpdate:modelValue":function(e){return o.phone=e},placeholder:"请填写您的手机号码",autocomplete:"off",maxlength:11},{label:function(){return l(p,null,[s("手机号码"),l("i",{class:I},[s("*")])])}}),l(x,{border:!1},{default:function(){return[l("div",{class:z},[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(j,{labelAlign:"top",class:"border",modelValue:o.smsCode,"onUpdate:modelValue":function(e){return o.smsCode=e},placeholder:"请输入验证码",autocomplete:"off",maxlength:6},{label:function(){return l(p,null,[s("验证码"),l("i",{class:I},[s("*")])])},button:function(){return o.countDownStatus?l("span",{class:L,onClick:Q},[s("获取验证码")]):l(A,{ref:function(e){return V.value=e},"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},{default:function(){return[s("提交")]}})]),l(h,{show:o.registerStatus,"onUpdate:show":function(e){return o.registerStatus=e},class:N,closeOnClickOverlay:!1},{default:function(){var e,t;return[l("div",{class:M},[l("img",{src:H,class:F},null),l("h3",null,[s("注册成功")]),l("div",{class:T},[s("恭喜您在"),null===(e=o.schoolDetail)||void 0===e||null===(t=e.cooperation)||void 0===t?void 0:t.name,s("成功注册为"),l("span",null,[s("【"),y[o.type],s("】")]),s(",请下载管乐迷学校端App进行乐团管理吧~")]),l(f,{type:"primary",round:!0,class:D,onClick:Z},{default:function(){return[s("立即下载")]}})])]}}),o.imgCodeStatus?l(b,{value:o.imgCodeStatus,"onUpdate:value":function(e){return o.imgCodeStatus=e},phone:o.phone,onClose:function(){o.imgCodeStatus=!1},onSendCode:K},null):null])}}}))}}}))}();
|