index-legacy-0bd33309.js 17 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,a=Object.defineProperty||function(t,e,r){t[e]=r.value},i="function"==typeof Symbol?Symbol:{},c=i.iterator||"@@iterator",u=i.asyncIterator||"@@asyncIterator",l=i.toStringTag||"@@toStringTag";function s(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{s({},"")}catch(k){s=function(t,e,r){return t[e]=r}}function p(t,e,r,n){var o=e&&e.prototype instanceof d?e:d,i=Object.create(o.prototype),c=new O(n||[]);return a(i,"_invoke",{value:w(t,r,c)}),i}function f(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(k){return{type:"throw",arg:k}}}r.wrap=p;var h={};function d(){}function y(){}function _(){}var m={};s(m,c,(function(){return this}));var g=Object.getPrototypeOf,v=g&&g(g(E([])));v&&v!==n&&o.call(v,c)&&(m=v);var j=_.prototype=d.prototype=Object.create(m);function A(t){["next","throw","return"].forEach((function(e){s(t,e,(function(t){return this._invoke(e,t)}))}))}function b(e,r){function n(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")?r.resolve(p.__await).then((function(t){n("next",t,c,u)}),(function(t){n("throw",t,c,u)})):r.resolve(p).then((function(t){s.value=t,c(s)}),(function(t){return n("throw",t,c,u)}))}u(l.arg)}var i;a(this,"_invoke",{value: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,r){var n="suspendedStart";return function(o,a){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw a;return S()}for(r.method=o,r.arg=a;;){var i=r.delegate;if(i){var c=x(i,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(t,e,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 x(t,e){var r=e.method,n=t.iterator[r];if(void 0===n)return e.delegate=null,"throw"===r&&t.iterator.return&&(e.method="return",e.arg=void 0,x(t,e),"throw"===e.method)||"return"!==r&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+r+"' method")),h;var o=f(n,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 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:S}}function S(){return{value:void 0,done:!0}}return y.prototype=_,a(j,"constructor",{value:_,configurable:!0}),a(_,"constructor",{value:y,configurable:!0}),y.displayName=s(_,l,"GeneratorFunction"),r.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===y||"GeneratorFunction"===(e.displayName||e.name))},r.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,_):(t.__proto__=_,s(t,l,"GeneratorFunction")),t.prototype=Object.create(j),t},r.awrap=function(t){return{__await:t}},A(b.prototype),s(b.prototype,u,(function(){return this})),r.AsyncIterator=b,r.async=function(t,e,n,o,a){void 0===a&&(a=Promise);var i=new b(p(t,e,n,o),a);return r.isGeneratorFunction(e)?i:i.next().then((function(t){return t.done?t.value:i.next()}))},A(j),s(j,l,"Generator"),s(j,c,(function(){return this})),s(j,"toString",(function(){return"[object Generator]"})),r.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},r.values=E,O.prototype={constructor:O,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(L),!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 i.type="throw",i.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 a=this.tryEntries[n],i=a.completion;if("root"===a.tryLoc)return r("end");if(a.tryLoc<=this.prev){var c=o.call(a,"catchLoc"),u=o.call(a,"finallyLoc");if(c&&u){if(this.prev<a.catchLoc)return r(a.catchLoc,!0);if(this.prev<a.finallyLoc)return r(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return r(a.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return r(a.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 a=n;break}}a&&("break"===t||"continue"===t)&&a.tryLoc<=e&&e<=a.finallyLoc&&(a=null);var i=a?a.completion:{};return i.type=t,i.arg=e,a?(this.method="next",this.next=a.finallyLoc,h):this.complete(i)},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 r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),L(r),h}},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;L(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:E(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),h}},r}function r(t,e,r,n,o,a,i){try{var c=t[a](i),u=c.value}catch(l){return void r(l)}c.done?e(u):Promise.resolve(u).then(n,o)}function n(t){return function(){var e=this,n=arguments;return new Promise((function(o,a){var i=t.apply(e,n);function c(t){r(i,o,a,c,u,"next",t)}function u(t){r(i,o,a,c,u,"throw",t)}c(void 0)}))}}System.register(["./index-legacy-64376843.js","./constant-legacy-90a50c7d.js","./index-legacy-9f254af0.js","./index-legacy-981ae1f4.js","./index-legacy-a7502a0a.js","./index-legacy-b939693c.js","./index-legacy-9d260c53.js","./index-legacy-86b38a8e.js"],(function(t,r){"use strict";var o,a,i,c,u,l,s,p,f,h,d,y,_,m,g,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,m=t.y,g=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",I="_required_1tajy_44",z="_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",r.meta.url).href,H=""+new URL("banner-popup-e91718c1.png",r.meta.url).href;t("default",o({name:"school-register",setup:function(){var t=d(),r=g(),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}),V=i(),G=function(){var t=n(e().mark((function t(){var r,n;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:r=t.sent,n=r.data,o.schoolDetail=n||{},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=n(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,t.next=15,y.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(){u("您已注册")}),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)}}(),Z=function(){o.registerStatus=!1,r.push("/download")},K=function(){o.countDownStatus=!1,m((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:I},[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:I},[s("*")])])}}),l(w,{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(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:I},[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},{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])}}}))}}}))}();