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 n};var n={},r=Object.prototype,o=r.hasOwnProperty,i=Object.defineProperty||function(t,e,n){t[e]=n.value},a="function"==typeof Symbol?Symbol:{},l=a.iterator||"@@iterator",c=a.asyncIterator||"@@asyncIterator",u=a.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(S){s=function(t,e,n){return t[e]=n}}function f(t,e,n,r){var o=e&&e.prototype instanceof d?e:d,a=Object.create(o.prototype),l=new L(r||[]);return i(a,"_invoke",{value:q(t,n,l)}),a}function p(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(S){return{type:"throw",arg:S}}}n.wrap=f;var h={};function d(){}function _(){}function m(){}var g={};s(g,l,(function(){return this}));var v=Object.getPrototypeOf,y=v&&v(v(O([])));y&&y!==r&&o.call(y,l)&&(g=y);var A=m.prototype=d.prototype=Object.create(g);function b(t){["next","throw","return"].forEach((function(e){s(t,e,(function(t){return this._invoke(e,t)}))}))}function w(e,n){function r(i,a,l,c){var u=p(e[i],e,a);if("throw"!==u.type){var s=u.arg,f=s.value;return f&&"object"==t(f)&&o.call(f,"__await")?n.resolve(f.__await).then((function(t){r("next",t,l,c)}),(function(t){r("throw",t,l,c)})):n.resolve(f).then((function(t){s.value=t,l(s)}),(function(t){return r("throw",t,l,c)}))}c(u.arg)}var a;i(this,"_invoke",{value:function(t,e){function o(){return new n((function(n,o){r(t,e,n,o)}))}return a=a?a.then(o,o):o()}})}function q(t,e,n){var r="suspendedStart";return function(o,i){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw i;return E()}for(n.method=o,n.arg=i;;){var a=n.delegate;if(a){var l=x(a,n);if(l){if(l===h)continue;return l}}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 c=p(t,e,n);if("normal"===c.type){if(r=n.done?"completed":"suspendedYield",c.arg===h)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(r="completed",n.method="throw",n.arg=c.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=p(r,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,h;var i=o.arg;return i?i.done?(e[t.resultName]=i.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,h):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,h)}function j(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 C(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function L(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(j,this),this.reset(!0)}function O(t){if(t){var e=t[l];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<t.length;)if(o.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return r.next=r}}return{next:E}}function E(){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,u,"GeneratorFunction"),n.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===_||"GeneratorFunction"===(e.displayName||e.name))},n.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,m):(t.__proto__=m,s(t,u,"GeneratorFunction")),t.prototype=Object.create(A),t},n.awrap=function(t){return{__await:t}},b(w.prototype),s(w.prototype,c,(function(){return this})),n.AsyncIterator=w,n.async=function(t,e,r,o,i){void 0===i&&(i=Promise);var a=new w(f(t,e,r,o),i);return n.isGeneratorFunction(e)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},b(A),s(A,u,"Generator"),s(A,l,(function(){return this})),s(A,"toString",(function(){return"[object Generator]"})),n.keys=function(t){var e=Object(t),n=[];for(var r in e)n.push(r);return n.reverse(),function t(){for(;n.length;){var r=n.pop();if(r in e)return t.value=r,t.done=!1,t}return t.done=!0,t}},n.values=O,L.prototype={constructor:L,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(C),!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 n(n,r){return a.type="throw",a.arg=t,e.next=n,r&&(e.method="next",e.arg=void 0),!!r}for(var r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var l=o.call(i,"catchLoc"),c=o.call(i,"finallyLoc");if(l&&c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(l){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&o.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var i=r;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,h):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),h},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),C(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;C(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:O(t),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=void 0),h}},n}function n(t,e,n,r,o,i,a){try{var l=t[i](a),c=l.value}catch(u){return void n(u)}l.done?e(c):Promise.resolve(c).then(r,o)}function r(t){return function(){var e=this,r=arguments;return new Promise((function(o,i){var a=t.apply(e,r);function l(t){n(a,o,i,l,c,"next",t)}function c(t){n(a,o,i,l,c,"throw",t)}l(void 0)}))}}System.register(["./index-legacy-b18bb14e.js","./constant-legacy-90a50c7d.js","./index-legacy-32112df3.js","./index-legacy-6db65026.js","./index-legacy-84591f58.js","./index-legacy-3097683e.js","./index-legacy-25d68968.js","./index-legacy-6737fac6.js"],(function(t,n){"use strict";var o,i,a,l,c,u,s,f,p,h,d,_,m,g,v,y,A,b,w,q,x,j=document.createElement("style");return j.textContent="._school-register_lfqo5_1{--van-cell-font-size: .42667rem}._school-register_lfqo5_1 ._codeText_lfqo5_4{color:var(--k-font-primary)}._school-register_lfqo5_1 ._banner_lfqo5_7{position:relative;width:100%}._school-register_lfqo5_1 ._banner_lfqo5_7 img{width:inherit}._school-register_lfqo5_1 ._bannerContainer_lfqo5_14{position:absolute;top:.8rem;left:.58667rem}._school-register_lfqo5_1 ._bannerContainer_lfqo5_14 ._bannerTitle_lfqo5_19{font-size:.74667rem;color:#fff;line-height:1.06667rem;text-shadow:0 .05333rem .10667rem #17af92}._school-register_lfqo5_1 ._bannerContainer_lfqo5_14 ._bannerSchool_lfqo5_25{padding-top:.26667rem;display:flex;align-items:flex-start;max-width:4.8rem}._school-register_lfqo5_1 ._bannerContainer_lfqo5_14 ._iconSchool_lfqo5_31{display:inline-block;width:.42667rem;height:.42667rem;margin-right:.16rem;margin-top:.05333rem}._school-register_lfqo5_1 ._bannerContainer_lfqo5_14 ._schoolName_lfqo5_38{font-size:.37333rem;font-weight:500;color:#0e8e76;line-height:.53333rem}._school-register_lfqo5_1 ._required_lfqo5_44{color:#ff5a56}._school-register_lfqo5_1 .van-field__label{color:var(--k-gray-1);font-size:.42667rem}._school-register_lfqo5_1 .van-cell-group{margin-top:.32rem}._school-register_lfqo5_1 ._tips_lfqo5_54{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_lfqo5_1 ._tips_lfqo5_54 ._iconTips_lfqo5_65{width:.42667rem;height:.42667rem;margin-right:.10667rem}._popup_lfqo5_70{width:7.36rem;border-radius:.21333rem;overflow:inherit;margin-top:-.53333rem}._popup_lfqo5_70 ._popupContainer_lfqo5_76{position:relative}._popup_lfqo5_70 ._popupContainer_lfqo5_76 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_lfqo5_70 ._popupContainer_lfqo5_76 ._popupContent_lfqo5_88{padding:0 .66667rem .58667rem;font-size:.37333rem;color:var(--k-gray-3);line-height:.53333rem}._popup_lfqo5_70 ._popupContainer_lfqo5_76 ._popupContent_lfqo5_88 span{color:var(--k-font-primary)}._popup_lfqo5_70 ._popupContainer_lfqo5_76 ._popupBtn_lfqo5_97{display:block;margin:0 auto .64rem;width:4.74667rem;--van-button-normal-font-size: .42667rem}._popup_lfqo5_70 ._bannerPopup_lfqo5_103{width:100%;margin-top:-.58667rem}\n",document.head.appendChild(j),{setters:[function(t){o=t.d,i=t.O,a=t.i,l=t.o,c=t.f,u=t.g,s=t.h,f=t.F,p=t.B,h=t.P,d=t.W,_=t.a,m=t.e,g=t.y,v=t.N},function(t){y=t.E},function(t){A=t.C,b=t.I},function(t){w=t.C},function(t){q=t.C},function(t){x=t.F},null,null],execute:function(){var j="_school-register_lfqo5_1",C="_codeText_lfqo5_4",L="_banner_lfqo5_7",O="_bannerContainer_lfqo5_14",E="_bannerTitle_lfqo5_19",S="_bannerSchool_lfqo5_25",k="_iconSchool_lfqo5_31",U="_schoolName_lfqo5_38",Y="_required_lfqo5_44",I="_tips_lfqo5_54",z="_iconTips_lfqo5_65",N="_popup_lfqo5_70",P="_popupContainer_lfqo5_76",M="_popupContent_lfqo5_88",T="_popupBtn_lfqo5_97",D="_bannerPopup_lfqo5_103",F=""+new URL("banner-b102b79e.png",n.meta.url).href,B=""+new URL("banner-popup-e91718c1.png",n.meta.url).href;t("default",o({name:"school-register",setup:function(){var t=d(),n=v(),o=i({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}),H=a(),V=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,_.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)}}(),G=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 c("请输入真实姓名"),t.abrupt("return");case 3:if(o.nameReg.test(o.username)){t.next=6;break}return c("姓名必须为中文"),t.abrupt("return");case 6:if(m(o.phone)){t.next=9;break}return c("请输入正确的手机号"),t.abrupt("return");case 9:if(o.smsCode){t.next=12;break}return c("请输入验证码"),t.abrupt("return");case 12:return t.prev=12,t.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===t.sent.code?setTimeout((function(){c("您已注册")}),100):o.registerStatus=!0,t.next=21;break;case 19:t.prev=19,t.t0=t.catch(12);case 21:case"end":return t.stop()}}),t,null,[[12,19]])})));return function(){return t.apply(this,arguments)}}(),R=function(){o.registerStatus=!1,n.push("/download")},Z=function(){o.countDownStatus=!1,g((function(){H.value.start()}))},K=function(){if(!m(o.phone))return c("请输入正确的手机号码");o.imgCodeStatus=!0},Q=function(){o.countDownStatus=!0,H.value.reset()};return l((function(){o.id?(document.title=y[o.type]+"注册",V()):c("链接有误")})),function(){var t,e;return u("div",{class:j},[u("div",{class:L},[u("img",{src:F,alt:"banner"},null),u("div",{class:O},[u("div",{class:E},[y[o.type],s("注册")]),u("div",{class:S},[u("img",{src:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAMAAABEpIrGAAAAZlBMVEUAAAALkHoOjnYNj3UOjnYOjnYOjnYOjncOjnYPjnMOjXYNjnYNjnYOjnYPjHQMj3YAk3ENj3YOjnYOjnYPjnYOjnYOkHQOjnYNj3cPjnYOjnUNkHYOj3YOj3cNj3gOj3cOjnYOjnb8Wfe0AAAAIXRSTlMAF5Y88OCy8eIcwvnotR9QCKrsu1auEtmZi4NfWUdBoaAwesabAAAA0UlEQVQ4y83RW26DMBBAUZOYocamNhDIO+3d/ybrBvXlYFDVn94vj+YIjYT6WdG2hVro0kF3ya4L4Z5kPnLWwDAA3XlmbRrA7ZTaOaAx6f6qgXacDgX0NQF7cP5j8A72Cahw49c0dugHUH4fn34DzFDHbApsHWtNfB+ZSsDUMb43S2AzgVsIjzeEcPsE2/kjtzPg2XuzAMKLBfsasqDnXp8DHvTpVIHPgAO8/244ZICAiXeCZEDzb4GUUItYKnHQi/Tg4mhFaihFsdI6KFZSf+4N3zgqnBNSCiAAAAAASUVORK5CYII=",class:k},null),u("p",{class:U},[null===(t=o.schoolDetail)||void 0===t||null===(e=t.cooperation)||void 0===e?void 0:e.name])])])]),u(w,{inset:!0},{default:function(){return[u(x,{labelAlign:"top",class:"border",modelValue:o.username,"onUpdate:modelValue":function(t){return o.username=t},placeholder:"请填写您的真实姓名",autocomplete:"off",maxlength:8},{label:function(){return u(f,null,[s("真实姓名"),u("i",{class:Y},[s("*")])])}}),u(x,{labelAlign:"top",modelValue:o.phone,"onUpdate:modelValue":function(t){return o.phone=t},placeholder:"请填写您的手机号码",autocomplete:"off",maxlength:11},{label:function(){return u(f,null,[s("手机号码"),u("i",{class:Y},[s("*")])])}}),u(q,{border:!1},{default:function(){return[u("div",{class:I},[u("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:z},null),s("提示:手机号码将成为您管乐迷学校端登录账户")])]}}),u(x,{labelAlign:"top",class:"border",modelValue:o.smsCode,"onUpdate:modelValue":function(t){return o.smsCode=t},placeholder:"请输入验证码",autocomplete:"off",maxlength:6},{label:function(){return u(f,null,[s("验证码"),u("i",{class:Y},[s("*")])])},button:function(){return o.countDownStatus?u("span",{class:C,onClick:K},[s("获取验证码")]):u(A,{ref:function(t){return H.value=t},"auto-start":!1,time:o.countDownTime,onFinish:Q,format:"ss秒"},null)}})]}}),u("div",{class:["btnGroupFixed"],style:{"margin-top":"18px"}},[u(p,{round:!0,block:!0,type:"primary",onClick:G},{default:function(){return[s("提交")]}})]),u(h,{show:o.registerStatus,"onUpdate:show":function(t){return o.registerStatus=t},class:N,closeOnClickOverlay:!1},{default:function(){var t,e;return[u("div",{class:P},[u("img",{src:B,class:D},null),u("h3",null,[s("注册成功")]),u("div",{class:M},[s("恭喜您在"),null===(t=o.schoolDetail)||void 0===t||null===(e=t.cooperation)||void 0===e?void 0:e.name,s("成功注册为"),u("span",null,[s("【"),y[o.type],s("】")]),s(",请下载管乐迷学校端App进行乐团管理吧~")]),u(p,{type:"primary",round:!0,class:T,onClick:R},{default:function(){return[s("立即下载")]}})])]}}),o.imgCodeStatus?u(b,{value:o.imgCodeStatus,"onUpdate:value":function(t){return o.imgCodeStatus=t},phone:o.phone,onClose:function(){o.imgCodeStatus=!1},onSendCode:Z},null):null])}}}))}}}))}();
|