1 |
- !function(){function e(e,n,t,r,o,a,i){try{var s=e[a](i),u=s.value}catch(l){return void t(l)}s.done?n(u):Promise.resolve(u).then(r,o)}function n(n){return function(){var t=this,r=arguments;return new Promise((function(o,a){var i=n.apply(t,r);function s(n){e(i,o,a,s,u,"next",n)}function u(n){e(i,o,a,s,u,"throw",n)}s(void 0)}))}}function t(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function r(e){return function(e){if(Array.isArray(e))return i(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||a(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function o(e,n){return function(e){if(Array.isArray(e))return e}(e)||function(e,n){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==t)return;var r,o,a=[],i=!0,s=!1;try{for(t=t.call(e);!(i=(r=t.next()).done)&&(a.push(r.value),!n||a.length!==n);i=!0);}catch(u){s=!0,o=u}finally{try{i||null==t.return||t.return()}finally{if(s)throw o}}return a}(e,n)||a(e,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function a(e,n){if(e){if("string"==typeof e)return i(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?i(e,n):void 0}}function i(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);t<n;t++)r[t]=e[t];return r}var s=document.createElement("style");s.innerHTML="._login_a43zm_1{min-height:100vh;background:url(./assets/top_bg.e8f7f58b.png) no-repeat top center,url(./assets/bottom_bg.2d0f4251.png) no-repeat bottom center;background-color:#fff;background-size:100%}._login_a43zm_1 ._loginTitle_a43zm_7{display:flex;align-items:center;padding-top:2.66667rem;padding-left:.53333rem;padding-bottom:.61333rem;color:#1a1a1a}._login_a43zm_1 ._loginTitle_a43zm_7 img{width:1.22667rem;height:1.22667rem;margin-right:.26667rem}._login_a43zm_1 ._loginTitle_a43zm_7 p{display:flex;flex-direction:column;font-size:.32rem}._login_a43zm_1 ._loginTitle_a43zm_7 p ._txt_a43zm_25{font-size:.58667rem;font-weight:500}._login_a43zm_1 ._codeText_a43zm_29{color:var(--van-primary)}._login_a43zm_1 ._margin34_a43zm_32{margin:0 .90667rem}._login_a43zm_1 ._formTitle_a43zm_35{font-size:.48rem;color:#000;font-weight:500}._login_a43zm_1 .van-cell-group{margin-bottom:.93333rem}._login_a43zm_1 .van-field{padding-left:0;padding-right:0}._login_a43zm_1 .van-checkbox{display:inline-block;align-items:inherit;overflow:inherit}._login_a43zm_1 .van-checkbox__icon{height:.4rem;line-height:.4rem;display:inline-block;vertical-align:middle}._login_a43zm_1 .van-checkbox__label{line-height:.4rem;color:#999}._login_a43zm_1 ._teacherInfo_a43zm_62{margin:0 .48rem 1.46667rem;background:url(./assets/teacher_card.874c1b7b.png) no-repeat top center;background-size:100%;padding:.37333rem .37333rem .72rem;display:flex;align-items:center}._login_a43zm_1 ._teacherInfo_a43zm_62 ._teacherLogo_a43zm_70,._login_a43zm_1 ._teacherInfo_a43zm_62 ._teacherLogo_a43zm_70 img{width:1.44rem;height:1.44rem;border-radius:50%}._login_a43zm_1 ._teacherInfo_a43zm_62 ._teacherName_a43zm_80{font-size:.37333rem;color:#333;line-height:.53333rem;padding-left:.42667rem}._login_a43zm_1 ._teacherInfo_a43zm_62 ._teacherName_a43zm_80 span{font-weight:500;font-size:.48rem;color:#1a1a1a}._login_a43zm_1 ._itips_a43zm_91{font-size:.32rem;color:#666}._login_a43zm_1 ._protocol_a43zm_95{font-size:.32rem;padding:.8rem 0 .4rem;text-align:center;color:#999}._login_a43zm_1 ._protocol_a43zm_95 ._protocolText_a43zm_101{color:var(--van-primary);line-height:.4rem}._login_a43zm_1 ._protocol_a43zm_95 ._boxStyle_a43zm_105{background:transparent!important;width:.4rem;height:.4rem;border:transparent!important}:root{--van-number-keyboard-background-color: var(--van-gray-2);--van-number-keyboard-key-height: 1.28rem;--van-number-keyboard-key-font-size: .74667rem;--van-number-keyboard-key-active-color: var(--van-gray-3);--van-number-keyboard-key-background-color: var(--van-background-color-light);--van-number-keyboard-delete-font-size: var(--van-font-size-lg);--van-number-keyboard-title-color: var(--van-gray-7);--van-number-keyboard-title-height: .90667rem;--van-number-keyboard-title-font-size: var(--van-font-size-lg);--van-number-keyboard-close-padding: 0 var(--van-padding-md);--van-number-keyboard-close-color: var(--van-text-link-color);--van-number-keyboard-close-font-size: var(--van-font-size-md);--van-number-keyboard-button-text-color: var(--van-white);--van-number-keyboard-button-background-color: var(--van-primary-color);--van-number-keyboard-z-index: 100}.van-number-keyboard{position:fixed;bottom:0;left:0;z-index:var(--van-number-keyboard-z-index);width:100%;padding-bottom:.58667rem;background:var(--van-number-keyboard-background-color);-webkit-user-select:none;-moz-user-select:none;user-select:none}.van-number-keyboard--with-title{border-radius:.53333rem .53333rem 0 0}.van-number-keyboard__header{position:relative;display:flex;align-items:center;justify-content:center;box-sizing:content-box;height:var(--van-number-keyboard-title-height);padding-top:.16rem;color:var(--van-number-keyboard-title-color);font-size:var(--van-number-keyboard-title-font-size)}.van-number-keyboard__title{display:inline-block;font-weight:400}.van-number-keyboard__title-left{position:absolute;left:0}.van-number-keyboard__body{display:flex;padding:.16rem 0 0 .16rem}.van-number-keyboard__keys{display:flex;flex:3;flex-wrap:wrap}.van-number-keyboard__close{position:absolute;right:0;height:100%;padding:var(--van-number-keyboard-close-padding);color:var(--van-number-keyboard-close-color);font-size:var(--van-number-keyboard-close-font-size);background-color:transparent;border:none}.van-number-keyboard__sidebar{display:flex;flex:1;flex-direction:column}.van-number-keyboard--unfit{padding-bottom:0}.van-key{display:flex;align-items:center;justify-content:center;height:var(--van-number-keyboard-key-height);font-size:var(--van-number-keyboard-key-font-size);line-height:1.5;background:var(--van-number-keyboard-key-background-color);border-radius:var(--van-border-radius-lg);cursor:pointer}.van-key--large{position:absolute;top:0;right:.16rem;bottom:.16rem;left:0;height:auto}.van-key--blue,.van-key--delete{font-size:var(--van-number-keyboard-delete-font-size)}.van-key--active{background-color:var(--van-number-keyboard-key-active-color)}.van-key--blue{color:var(--van-number-keyboard-button-text-color);background:var(--van-number-keyboard-button-background-color)}.van-key--blue.van-key--active{opacity:var(--van-active-opacity)}.van-key__wrapper{position:relative;flex:1;flex-basis:33%;box-sizing:border-box;padding:0 .16rem .16rem 0}.van-key__wrapper--wider{flex-basis:66%}.van-key__delete-icon{width:.85333rem;height:.58667rem}.van-key__collapse-icon{width:.8rem;height:.64rem}.van-key__loading-icon{color:var(--van-number-keyboard-button-text-color)}:root{--van-password-input-height: 1.33333rem;--van-password-input-margin: 0 var(--van-padding-md);--van-password-input-font-size: .53333rem;--van-password-input-border-radius: .16rem;--van-password-input-background-color: var(--van-background-color-light);--van-password-input-info-color: var(--van-text-color-2);--van-password-input-info-font-size: var(--van-font-size-md);--van-password-input-error-info-color: var(--van-danger-color);--van-password-input-dot-size: .26667rem;--van-password-input-dot-color: var(--van-text-color);--van-password-input-text-color: var(--van-text-color);--van-password-input-cursor-color: var(--van-text-color);--van-password-input-cursor-width: .02667rem;--van-password-input-cursor-height: 40%;--van-password-input-cursor-animation-duration: 1s}.van-password-input{position:relative;margin:var(--van-password-input-margin);-webkit-user-select:none;-moz-user-select:none;user-select:none}.van-password-input__info,.van-password-input__error-info{margin-top:var(--van-padding-md);font-size:var(--van-password-input-info-font-size);text-align:center}.van-password-input__info{color:var(--van-password-input-info-color)}.van-password-input__error-info{color:var(--van-password-input-error-info-color)}.van-password-input__security{display:flex;width:100%;height:var(--van-password-input-height);cursor:pointer}.van-password-input__security:after{border-radius:var(--van-password-input-border-radius)}.van-password-input__security li{position:relative;display:flex;flex:1;align-items:center;justify-content:center;height:100%;color:var(--van-password-input-text-color);font-size:var(--van-password-input-font-size);line-height:1.2;background:var(--van-password-input-background-color)}.van-password-input__security i{position:absolute;top:50%;left:50%;width:var(--van-password-input-dot-size);height:var(--van-password-input-dot-size);background:var(--van-password-input-dot-color);border-radius:100%;transform:translate(-50%,-50%);visibility:hidden}.van-password-input__cursor{position:absolute;top:50%;left:50%;width:var(--van-password-input-cursor-width);height:var(--van-password-input-cursor-height);background:var(--van-password-input-cursor-color);transform:translate(-50%,-50%);-webkit-animation:var(--van-password-input-cursor-animation-duration) van-cursor-flicker infinite;animation:var(--van-password-input-cursor-animation-duration) van-cursor-flicker infinite}@-webkit-keyframes van-cursor-flicker{0%{opacity:0}50%{opacity:1}to{opacity:0}}@keyframes van-cursor-flicker{0%{opacity:0}50%{opacity:1}to{opacity:0}}._loginCode_1ohk2_1{min-height:100vh;background:url(./assets/top_bg.e8f7f58b.png) no-repeat top center,url(./assets/bottom_bg.2d0f4251.png) no-repeat bottom center;background-color:#fff;background-size:100%}._loginCode_1ohk2_1 .van-password-input{margin:0 1.12rem}._loginCode_1ohk2_1 .van-password-input__security li{background-color:#f3f3f3;width:1.01333rem;height:1.06667rem;border-radius:.16rem}._loginCode_1ohk2_1 .van-button{padding:.37333rem .85333rem}._loginCode_1ohk2_1 .van-count-down{display:inline;color:#fff}._codeTips_1ohk2_23{padding:2.26667rem .93333rem 1.06667rem;font-size:.69333rem;font-weight:500}._codeTips_1ohk2_23 ._codeTxt_1ohk2_28{padding-top:.53333rem;font-size:.42667rem;line-height:.58667rem}._codeTips_1ohk2_23 ._codeTxt_1ohk2_28 span{color:#999}._btnWrap_1ohk2_36{padding-top:1.33333rem;text-align:center}._teacherChange_1l022_1{width:8.29333rem;border-radius:.4rem;overflow:hidden}._changeInfo_1l022_6{display:flex;flex-direction:column;justify-content:space-evenly;height:3.89333rem;background:linear-gradient(to right,#ffefe7,#eafffd);padding:.26667rem .90667rem 0;font-size:.42667rem;color:#333;line-height:.53333rem}._changeInfo_1l022_6 img{width:1.01333rem;height:1.01333rem;border-radius:50%;overflow:hidden;flex-shrink:inherit}._changeInfo_1l022_6 ._txt_1l022_24,._changeInfo_1l022_6 ._name_1l022_25{display:flex;align-items:center}._changeInfo_1l022_6 ._txt_1l022_24{font-weight:500}._changeInfo_1l022_6 span{padding-left:.32rem;max-width:3.73333rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}._changeTips_1l022_39{display:flex;align-items:center;padding:.42667rem .8rem .93333rem;font-size:.37333rem;color:#666;line-height:.53333rem}._changeTips_1l022_39 img{width:.64rem;height:.64rem;margin-right:.26667rem}\n",document.head.appendChild(s),System.register(["./index-legacy.fba2875c.js","./index-legacy.f231f1c5.js","./index-legacy.7dcec7b3.js","./index-legacy.8921f068.js","./index-legacy.fc77fe4f.js","./index-legacy.45490234.js","./index-legacy.32d1c54d.js","./validate-legacy.c1df5f0e.js","./icon_teacher-legacy.42ba77b1.js","./icon_checkbox_default-legacy.e33240bc.js","./index-legacy.2049c355.js","./index-legacy.e7460ea1.js","./use-id-legacy.db87b112.js","./index-legacy.40eca993.js","./use-height-legacy.233a2ec8.js"],(function(e){"use strict";var a,i,s,u,l,c,d,m,p,v,f,h,g,y,_,b,w,k,x,z,A,I,C,T,S,D,N,L,B,M,R,j,V,q,K,E,H,F,Q,O,W,J,G,X,Z;return{setters:[function(e){a=e.A,i=e.j,s=e.d,u=e.E,l=e.S,c=e.ah,d=e.ap,m=e.aS,p=e.$,v=e.aa,f=e.G,h=e.V,g=e.a2,y=e.bs,_=e.a5,b=e.aE,w=e.ad,k=e.bt,x=e.a$,z=e.bu,A=e.aX,I=e.N,C=e.bv,T=e.a1,S=e.bw,D=e.w,N=e.T,L=e.t,B=e.z,M=e.B,R=e.F,j=e.h,V=e.M,q=e.aR},function(e){K=e.C},function(){},function(e){E=e.F},function(e){H=e.R,F=e.C},function(e){Q=e.C},function(){},function(e){O=e.c},function(e){W=e.i},function(e){J=e.a,G=e.i},function(e){X=e.C},function(e){Z=e.C},function(){},function(){},function(){}],execute:function(){var P=o(a("key"),2),Y=P[0],U=P[1],$=i("svg",{class:U("collapse-icon"),viewBox:"0 0 30 24"},[i("path",{d:"M26 13h-2v2h2v-2zm-8-3h2V8h-2v2zm2-4h2V4h-2v2zm2 4h4V4h-2v4h-2v2zm-7 14 3-3h-6l3 3zM6 13H4v2h2v-2zm16 0H8v2h14v-2zm-12-3h2V8h-2v2zM28 0l1 1 1 1v15l-1 2H1l-1-2V2l1-1 1-1zm0 2H2v15h26V2zM6 4v2H4V4zm10 2h2V4h-2v2zM8 9v1H4V8zm8 0v1h-2V8zm-6-5v2H8V4zm4 0v2h-2V4z",fill:"currentColor"},null)]),ee=i("svg",{class:U("delete-icon"),viewBox:"0 0 32 22"},[i("path",{d:"M28 0a4 4 0 0 1 4 4v14a4 4 0 0 1-4 4H10.4a2 2 0 0 1-1.4-.6L1 13.1c-.6-.5-.9-1.3-.9-2 0-1 .3-1.7.9-2.2L9 .6a2 2 0 0 1 1.4-.6zm0 2H10.4l-8.2 8.3a1 1 0 0 0-.3.7c0 .3.1.5.3.7l8.2 8.4H28a2 2 0 0 0 2-2V4c0-1.1-.9-2-2-2zm-5 4a1 1 0 0 1 .7.3 1 1 0 0 1 0 1.4L20.4 11l3.3 3.3c.2.2.3.5.3.7 0 .3-.1.5-.3.7a1 1 0 0 1-.7.3 1 1 0 0 1-.7-.3L19 12.4l-3.4 3.3a1 1 0 0 1-.6.3 1 1 0 0 1-.7-.3 1 1 0 0 1-.3-.7c0-.2.1-.5.3-.7l3.3-3.3-3.3-3.3A1 1 0 0 1 14 7c0-.3.1-.5.3-.7A1 1 0 0 1 15 6a1 1 0 0 1 .6.3L19 9.6l3.3-3.3A1 1 0 0 1 23 6z",fill:"currentColor"},null)]),ne=s({name:Y,props:{type:String,text:u,color:String,wider:Boolean,large:Boolean,loading:Boolean},emits:["press"],setup:function(e,n){var t=n.emit,r=n.slots,o=l(!1),a=c(),s=function(e){a.start(e),o.value=!0},u=function(e){a.move(e),a.direction.value&&(o.value=!1)},p=function(n){o.value&&(r.default||d(n),o.value=!1,t("press",e.text,e.type))},v=function(){if(e.loading)return i(m,{class:U("loading-icon")},null);var n=r.default?r.default():e.text;switch(e.type){case"delete":return n||ee;case"extra":return n||$;default:return n}};return function(){return i("div",{class:U("wrapper",{wider:e.wider}),onTouchstart:s,onTouchmove:u,onTouchend:p,onTouchcancel:p},[i("div",{role:"button",tabindex:0,class:U([e.color,{large:e.large,active:o.value,delete:"delete"===e.type}])},[v()])])}}}),te=o(a("number-keyboard"),2),re=te[0],oe=te[1],ae={show:Boolean,title:String,theme:p("default"),zIndex:u,teleport:[String,Object],maxlength:v(1/0),modelValue:p(""),transition:f,blurOnClose:f,showDeleteKey:f,randomKeyOrder:Boolean,closeButtonText:String,deleteButtonText:String,closeButtonLoading:Boolean,hideOnClickOutside:f,safeAreaInsetBottom:f,extraKey:{type:[String,Array],default:""}},ie=s({name:re,props:ae,emits:["show","hide","blur","input","close","delete","update:modelValue"],setup:function(e,n){var t=n.emit,o=n.slots,a=l(),s=function(){var n=Array(9).fill("").map((function(e,n){return{text:n+1}}));return e.randomKeyOrder&&n.sort((function(){return Math.random()>.5?1:-1})),n},u=h((function(){return"custom"===e.theme?(n=s(),t=e.extraKey,1===(o=Array.isArray(t)?t:[t]).length?n.push({text:0,wider:!0},{text:o[0],type:"extra"}):2===o.length&&n.push({text:o[0],type:"extra"},{text:0},{text:o[1],type:"extra"}),n):[].concat(r(s()),[{text:e.extraKey,type:"extra"},{text:0},{text:e.showDeleteKey?e.deleteButtonText:"",type:e.showDeleteKey?"delete":""}]);var n,t,o})),c=function(){e.show&&t("blur")},d=function(){t("close"),e.blurOnClose&&c()},m=function(){return t(e.show?"show":"hide")},p=function(n,r){if(""!==n){var o=e.modelValue;"delete"===r?(t("delete"),t("update:modelValue",o.slice(0,o.length-1))):"close"===r?d():o.length<e.maxlength&&(t("input",n),t("update:modelValue",o+n))}else"extra"===r&&c()},v=function(){if("custom"===e.theme)return i("div",{class:oe("sidebar")},[e.showDeleteKey&&i(ne,{large:!0,text:e.deleteButtonText,type:"delete",onPress:p},{delete:o.delete}),i(ne,{large:!0,text:e.closeButtonText,type:"close",color:"blue",loading:e.closeButtonLoading,onPress:p},null)])};return g((function(){return e.show}),(function(n){e.transition||t(n?"show":"hide")})),e.hideOnClickOutside&&y(a,c,{eventName:"touchstart"}),function(){var n=function(){var n=e.title,t=e.theme,r=e.closeButtonText,a=o["title-left"],s=r&&"default"===t;if(n||s||a)return i("div",{class:oe("header")},[a&&i("span",{class:oe("title-left")},[a()]),n&&i("h2",{class:oe("title")},[n]),s&&i("button",{type:"button",class:[oe("close"),A],onClick:d},[r])])}(),t=i(x,{name:e.transition?"van-slide-up":""},{default:function(){return[_(i("div",{ref:a,style:w(e.zIndex),class:oe({unfit:!e.safeAreaInsetBottom,"with-title":!!n}),onTouchstart:k,onAnimationend:m,onWebkitAnimationEnd:m},[n,i("div",{class:oe("body")},[i("div",{class:oe("keys")},[u.value.map((function(e){var n={};return"delete"===e.type&&(n.default=o.delete),"extra"===e.type&&(n.default=o["extra-key"]),i(ne,{key:e.text,text:e.text,type:e.type,wider:e.wider,color:e.color,onPress:p},n)}))]),v()])]),[[b,e.show]])]}});return e.teleport?i(z,{to:e.teleport},{default:function(){return[t]}}):t}}}),se=I(ie),ue=o(a("password-input"),2),le=ue[0],ce=ue[1],de={info:String,mask:f,value:p(""),gutter:u,length:v(6),focused:Boolean,errorInfo:String},me=s({name:le,props:de,emits:["focus"],setup:function(e,n){var r=n.emit,o=function(e){e.stopPropagation(),r("focus",e)},a=function(){for(var n=[],r=e.mask,o=e.value,a=e.length,s=e.gutter,u=e.focused,l=0;l<a;l++){var c=o[l],d=0!==l&&!s,m=u&&l===o.length,p=void 0;0!==l&&s&&(p={marginLeft:T(s)}),n.push(i("li",{class:[t({},S,d),ce("item",{focus:m})],style:p},[r?i("i",{style:{visibility:c?"visible":"hidden"}},null):c,m&&i("div",{class:ce("cursor")},null)]))}return n};return function(){var n=e.errorInfo||e.info;return i("div",{class:ce()},[i("ul",{class:[ce("security"),t({},C,!e.gutter)],onTouchstart:o},[a()]),n&&i("div",{class:ce(e.errorInfo?"error-info":"info")},[n])])}}}),pe=I(me),ve="_login_a43zm_1",fe="_loginTitle_a43zm_7",he="_txt_a43zm_25",ge="_margin34_a43zm_32",ye="_formTitle_a43zm_35",_e="_teacherInfo_a43zm_62",be="_teacherLogo_a43zm_70",we="_teacherName_a43zm_80",ke="_itips_a43zm_91",xe="_protocol_a43zm_95",ze="_protocolText_a43zm_101",Ae="_boxStyle_a43zm_105",Ie={loginCode:"_loginCode_1ohk2_1",codeTips:"_codeTips_1ohk2_23",codeTxt:"_codeTxt_1ohk2_28",btnWrap:"_btnWrap_1ohk2_36"},Ce=s({name:"invteCode",props:{phone:String,onLoginSuccess:{type:Function,default:function(){}}},data:function(){return{smsCode:"",showKeyboard:!0,countDownStatus:!0,countDownTime:120,countTimer:null}},watch:{smsCode:function(e){e&&6===e.length&&this.onLogin()}},mounted:function(){var e=this;return n(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:e.$nextTick(n(regeneratorRuntime.mark((function n(){return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,e.onSendSms();case 2:case"end":return n.stop()}}),n)}))));case 1:case"end":return t.stop()}}),t)})))()},unmounted:function(){clearInterval(this.countTimer)},methods:{onSendSms:function(){var e=this;return n(regeneratorRuntime.mark((function n(){return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.prev=0,n.next=3,D.post("/api-student/code/sendSmsCode",{requestType:"form",data:{mobile:e.phone,type:"LOGIN"}});case 3:e.onCountDown(),setTimeout((function(){N("验证码已发送")}),100),n.next=10;break;case 7:n.prev=7,n.t0=n.catch(0),e.countDownStatus=!0;case 10:case"end":return n.stop()}}),n,null,[[0,7]])})))()},onCountDown:function(){var e=this;this.countDownStatus=!1,this.countTimer=setInterval((function(){e.countDownTime>0?e.countDownTime--:(e.countDownStatus=!0,clearInterval(e.countTimer))}),1e3)},onLogin:function(){var e=this;return n(regeneratorRuntime.mark((function n(){var t,r;return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.prev=0,n.next=3,D.post("/api-auth/smsLogin",{requestType:"form",data:{clientId:"student",clientSecret:"student",phone:e.phone,smsCode:e.smsCode,isSurportRegister:!0}});case 3:t=n.sent,r=t.data.authentication,L(r.token_type+" "+r.access_token),window.history.go(-1),e.onLoginSuccess(),n.next=12;break;case 10:n.prev=10,n.t0=n.catch(0);case 12:case"end":return n.stop()}}),n,null,[[0,10]])})))()}},render:function(){var e=this;return i(R,null,[i("div",{class:Ie.loginCode},[i(Z,{border:!1,background:"transparent",title:" ",isBack:!0},null),i("div",{class:Ie.codeTips},[i("p",{class:Ie.txt},[B("输入验证码")]),i("p",{class:Ie.codeTxt},[B("已发送6位验证码至 "),i("span",null,[this.phone])])]),i(pe,{value:this.smsCode,focused:this.showKeyboard,length:6,onFocus:function(){e.showKeyboard=!0},gutter:10},null),i(se,{modelValue:this.smsCode,"onUpdate:modelValue":function(n){return e.smsCode=n},show:this.showKeyboard,maxlength:6,onBlur:function(){e.showKeyboard=!1}},null),i("div",{class:Ie.btnWrap},[i(M,{type:"primary",round:!0,onClick:this.onSendSms,disabled:!this.countDownStatus},{default:function(){return[B("重新发送 "),!e.countDownStatus&&i(R,null,[B("("),e.countDownTime,B(")")])]}})])])])}}),Te="_teacherChange_1l022_1",Se="_changeInfo_1l022_6",De="_txt_1l022_24",Ne="_name_1l022_25",Le="_changeTips_1l022_39",Be=s({name:"teacherChange",props:{changeInfo:{type:Object,default:function(){return{}}},onClose:{type:Function,default:function(){}},onChangeTeacher:{type:Function,default:function(e){}}},computed:{teacherInfo:function(){var e=this.changeInfo,n=e.old,t=e.now;return{oldName:n.username,oldAvatar:n.avatar,nowName:t.username,nowAvatar:t.avatar}}},render:function(){var e=this;return i("div",{class:Te},[i("div",{class:Se},[i(H,null,{default:function(){return[i(F,{span:12,class:De},{default:function(){return[B("您已绑定")]}}),i(F,{span:12,class:Ne},{default:function(){return[i("img",{src:e.teacherInfo.oldAvatar||W},null),i("span",null,[e.teacherInfo.oldName])]}})]}}),i(H,null,{default:function(){return[i(F,{span:12,class:De},{default:function(){return[B("是否更换为")]}}),i(F,{span:12,class:Ne},{default:function(){return[i("img",{src:e.teacherInfo.nowAvatar||W},null),i("span",null,[e.teacherInfo.nowName])]}})]}})]),i("div",{class:Le},[i("img",{src:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAAAXNSR0IArs4c6QAABXFJREFUaN7dmmtTU1cUhsNP8WdYOzjTD1Xb6Uw7WiveWlsvVUArAZRLIECAnAAhhEtIQFRKLWqpgmMdLWCFIIpCpQYJKHCCClUM8aN+evph7wwhRg0JSZHM7JnMnMnOes+z1nv2WXtrNO/5AAn4phOZ9yjMe3rwqrPMq6/wqizrEHPOMu/pYd6j4JtOBBI00XzwerbgVd3LHmz4w43Xs2Xpgb9U1+BV+//HwINHPy/VNeEF73u8Hq86t4KC9485fI/Xvz/4efX1CgzeXyev3ypCps3cig0+kESodFphOf/emgjlNnxYQ7oTkBAzq1Rd4LoNg70w6ISRO+B5sHwWCwkafNOJyxr0Uzd0X4JmB9it4KiBhjpotMEJB5xogLNnoLcTZsaj+y/fdKIGr2palsBfTEHvFag3Q1051FWAzQL1VWCvBketFFIvhDQ1QvMpcHbD3GSEruRRNHJ5EF3wzx7BhWawFkN1KdQoUFsmRZih3rJAw1ELDTZotAsaTSegvQ2ejkUioEeDV52NTsAUXDgFlgKoKgKrQYowQo1JCjGDrfLdNFrPRJJSs5qoF2Y3OqAiFyrzoFIfIOQtNGwWaG+F9rPgqFtM48J5eD6xpAWgJqrgH4+AJRfKs6AiB8w6qMwHiz6ARsliGrYKGBsUv7/Z+SaNvq4lxRCdgKutYMqAsmNQfhw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903nRjb9nqsdzD927Af9AbHqthiWhWbfB/8Nuuq2OheFUcNVsVhj5DHbbyqKW7HbbyqKdzjNv8BYjqelRrm8xEAAAAASUVORK5CYII="},null),i("span",null,[B("更换后原老师已排课程可继续上课")])]),i("div",{class:["btnGroup","btnMore"]},[i(M,{type:"primary",round:!0,plain:!0,onClick:function(){e.onClose()}},{default:function(){return[B("不更换")]}}),i(M,{type:"primary",round:!0,onClick:function(){e.onChangeTeacher(!0)}},{default:function(){return[B("更换")]}})])])}});e("default",s({name:"login",data:function(){return{id:this.$route.query.id,username:"",teacherInfo:{},imgCodeStatus:!1,checked:!1,teacherChangeStatus:!1,changeInfo:{}}},computed:{codeDisable:function(){return console.log(!!this.username),!!this.username}},mounted:function(){var e=this;return n(regeneratorRuntime.mark((function n(){var t;return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return j(),n.prev=1,n.next=4,D.get("/api-student/open/getTeacher",{params:{userId:e.id}});case 4:if(t=n.sent,e.teacherInfo=t.data||{},1!=e.teacherInfo.lockFlag){n.next=9;break}return setTimeout((function(){N("该老师已被冻结")}),100),n.abrupt("return");case 9:n.next=13;break;case 11:n.prev=11,n.t0=n.catch(1);case 13:case"end":return n.stop()}}),n,null,[[1,11]])})))()},methods:{onSendCode:function(){var e=this;return n(regeneratorRuntime.mark((function n(){return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(1!=e.teacherInfo.lockFlag){n.next=2;break}return n.abrupt("return",N("该老师已被冻结"));case 2:if(O(e.username)){n.next=4;break}return n.abrupt("return",N("请输入正确的手机号码"));case 4:if(e.checked){n.next=6;break}return n.abrupt("return",N("请阅读并同意协议"));case 6:e.imgCodeStatus=!0;case 7:case"end":return n.stop()}}),n)})))()},previewProtocol:function(e){"user"===e?this.$router.push({path:"/registerProtocol",query:{showHeader:1}}):"privacy"===e&&this.$router.push({path:"/privacyProtocol",query:{showHeader:1}})},onLoginSuccess:function(){var e=arguments,t=this;return n(regeneratorRuntime.mark((function n(){var r,o,a,i,s;return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return r=e.length>0&&void 0!==e[0]&&e[0],n.prev=1,n.next=4,D.get("/api-student/open/bindTeacher",{params:{phone:t.username,userId:t.id,isUpdate:r}});case 4:o=n.sent,t.changeInfo=o.data||{},a=o.data,i=a.old,s=a.now,!r&&s&&i&&s.userId!==i.userId?t.teacherChangeStatus=!0:i&&i.userId===s.userId?setTimeout((function(){N("您已绑定该老师")}),100):(setTimeout((function(){N("您已成功绑定老师")}),100),t.$router.push("/inviteSuccess")),n.next=12;break;case 10:n.prev=10,n.t0=n.catch(1);case 12:case"end":return n.stop()}}),n,null,[[1,10]])})))()}},render:function(){var e=this;return i("div",{class:ve},[i("div",{class:fe},[i("img",{src:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFwAAABcCAMAAADUMSJqAAACMVBMVEUAAADx8fHw8PDw8PDx8fHx8fHw8PDx8fHw8PDy8vLx8fHx8fH09PTw8PDw8PD////////w8PAp2bgszK4szrAszq8ztZsr0LEvxKcty60tyastyqwr0rI4ppAux6kuxakvwqb+/v4uyKowwKQwvaI3p5EvwaUyuqA0tpw0sZkp17Yq07M1r5cxvqMyuJ4yt50wv6M0s5o2qpM1rZUxvKH8/Pz5+fny8vIq1bUvxagztp0xu6Apup80sJg2q5QyuZ82rZXy+/r8/v74/fz6/v255t36+vr29vYq1LTY9e8r0rM6rpf1/Pve9PDG6uON1cdfvqxRvqjh9fHN7uiy49mp4NWd39Jt18I71bhIxa1Isp7u+ff09PTf9/LN9O3Y8Ou38OW37OKq7N+Z5dev39aP49OL3s562MZ8z78q0rNHwarr+vfk+fXp9/TS9e/c8+/H7+jA6OC26d+76N+e59mj4NR34MyL2syR2ctw3slk3sd/0sJ40L5Qz7dJzrVXy7VmyLU8z7MxzrBXxa84ya1LvKY/vaVWuaU5s5s7qpTo+vfj9fHE7OW/6uGg692Z69ui59uo49h35NCE4dCg2c6G1cVR3s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N7hCATskiqG251ri3yvm0V84GWPHCALDFuicFV0IvK6XMQHfq4hHw5I2u0ujIvcw0Zu1r68IOIDDzfmgxxqdwVMiTjjFvPv8zxnXKW7qzHeyxSuZTjwH5v4D9DW7wso8vMDOiYxcvVwqYg3HNSzrxrwIbM4LhXbIc2Tw3NSOlt2NDqAb9cq2Wx5NtyT0tAy5XFrz47RxtPVpjed7YO94RTHrYIOigUdcQs6nBf0WkHICxFBr3IEvYQS8vpMyIs/Qa8shbxsFfKaWMgLbmGv5oX/UoGgX4f4B/PM8zgpeF23AAAAAElFTkSuQmCC",alt:""},null),i("p",null,[i("span",{class:he},[B("酷乐秀")]),i("span",null,[B("你的器乐学习好帮手")])])]),i("div",{class:_e},[i("div",{class:be},[i("img",{src:this.teacherInfo.avatar||W,alt:""},null)]),i("div",{class:we},[i("span",null,[this.teacherInfo.username])," ",B("老师邀请您注册酷乐秀一起体验器乐学习的乐趣吧!")])]),i(K,{class:ge,border:!1},{default:function(){return[i(H,{style:{marginBottom:"16px"}},{default:function(){return[i(F,{span:24,class:ye},{default:function(){return[B("手机号")]}}),i(F,{span:24,class:"van-hairline--bottom"},{default:function(){return[i(E,{modelValue:e.username,"onUpdate:modelValue":function(n){return e.username=n},name:"手机号",placeholder:"请输入您的手机号",type:"tel",maxlength:11},null)]}})]}}),i("div",{class:ke},[B("未注册的手机号码将自动注册酷乐秀账号")])]}}),i("div",{class:ge},[i(M,{round:!0,block:!0,type:"primary",disabled:!this.codeDisable,onClick:this.onSendCode},{default:function(){return[B("获取短信验证码")]}})]),i("div",{class:xe},[i(Q,{modelValue:this.checked,"onUpdate:modelValue":function(n){return e.checked=n}},{default:function(){return[B("我已阅读并同意")]},icon:function(e){return i(V,{class:Ae,name:e.checked?J:G,size:"15"},null)}}),i("span",{class:ze,onClick:function(){e.previewProtocol("user")}},[B("《用户注册协议》")]),B("和"),i("span",{class:ze,onClick:function(){e.previewProtocol("privacy")}},[B("《隐私政策》")])]),i(X,{modelValue:this.imgCodeStatus,"onUpdate:modelValue":function(n){return e.imgCodeStatus=n}},{default:function(){return[e.imgCodeStatus&&i(Ce,{phone:e.username,onLoginSuccess:e.onLoginSuccess},null)]}}),i(q,{show:this.teacherChangeStatus,round:!0},{default:function(){return[i(Be,{changeInfo:e.changeInfo,onClose:function(){e.teacherChangeStatus=!1,e.$router.push("/inviteSuccess")},onChangeTeacher:function(n){e.onLoginSuccess(n)}},null)]}})])}}))}}}))}();
|