(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["AppRegister"],{1226:function(t,e,n){"use strict";n("d539")},"47ad":function(t,e,n){},6354:function(t,e,n){"use strict";var o=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("van-popup",{staticClass:"imgCodePopup",attrs:{"close-on-click-overlay":!1,closeable:"","close-icon":"close"},on:{close:t.onClose},model:{value:t.showImgCode,callback:function(e){t.showImgCode=e},expression:"showImgCode"}},[n("div",{staticClass:"imgCode"},[n("p",{staticClass:"codeTitle"},[t._v("输入图形验证码")]),n("van-row",{attrs:{type:"flex"}},[n("van-col",{attrs:{span:"14"}},[n("van-field",{staticStyle:{background:"#F4F4F4",padding:".12rem .16rem"},attrs:{placeholder:"请输入验证码"},model:{value:t.code,callback:function(e){t.code=e},expression:"code"}})],1),n("van-col",{staticClass:"img",attrs:{span:"10"}},[n("van-image",{attrs:{src:t.identifyingCode},on:{click:function(e){return t.updateIdentifyingCode(!0)}},scopedSlots:t._u([{key:"loading",fn:function(){return[n("van-loading",{attrs:{type:"spinner",size:"20"}})]},proxy:!0}])})],1)],1),n("van-row",[n("van-col",{attrs:{span:"14"}}),n("van-col",{attrs:{span:"10"}},[n("span",{staticClass:"imgChange",on:{click:function(e){return t.updateIdentifyingCode(!0)}}},[t._v("看不清?换一换")])])],1)],1)])},r=[],i=n("b562");function a(t){return a="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},a(t)}function c(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */c=function(){return t};var t={},e=Object.prototype,n=e.hasOwnProperty,o="function"==typeof Symbol?Symbol:{},r=o.iterator||"@@iterator",i=o.asyncIterator||"@@asyncIterator",s=o.toStringTag||"@@toStringTag";function u(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{u({},"")}catch(C){u=function(t,e,n){return t[e]=n}}function l(t,e,n,o){var r=e&&e.prototype instanceof p?e:p,i=Object.create(r.prototype),a=new I(o||[]);return i._invoke=function(t,e,n){var o="suspendedStart";return function(r,i){if("executing"===o)throw new Error("Generator is already running");if("completed"===o){if("throw"===r)throw i;return R()}for(n.method=r,n.arg=i;;){var a=n.delegate;if(a){var c=b(a,n);if(c){if(c===d)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===o)throw o="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o="executing";var s=h(t,e,n);if("normal"===s.type){if(o=n.done?"completed":"suspendedYield",s.arg===d)continue;return{value:s.arg,done:n.done}}"throw"===s.type&&(o="completed",n.method="throw",n.arg=s.arg)}}}(t,n,a),i}function h(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(C){return{type:"throw",arg:C}}}t.wrap=l;var d={};function p(){}function f(){}function m(){}var g={};u(g,r,(function(){return this}));var v=Object.getPrototypeOf,y=v&&v(v(L([])));y&&y!==e&&n.call(y,r)&&(g=y);var w=m.prototype=p.prototype=Object.create(g);function k(t){["next","throw","return"].forEach((function(e){u(t,e,(function(t){return this._invoke(e,t)}))}))}function S(t,e){function o(r,i,c,s){var u=h(t[r],t,i);if("throw"!==u.type){var l=u.arg,d=l.value;return d&&"object"==a(d)&&n.call(d,"__await")?e.resolve(d.__await).then((function(t){o("next",t,c,s)}),(function(t){o("throw",t,c,s)})):e.resolve(d).then((function(t){l.value=t,c(l)}),(function(t){return o("throw",t,c,s)}))}s(u.arg)}var r;this._invoke=function(t,n){function i(){return new e((function(e,r){o(t,n,e,r)}))}return r=r?r.then(i,i):i()}}function b(t,e){var n=t.iterator[e.method];if(void 0===n){if(e.delegate=null,"throw"===e.method){if(t.iterator.return&&(e.method="return",e.arg=void 0,b(t,e),"throw"===e.method))return d;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return d}var o=h(n,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,d;var r=o.arg;return r?r.done?(e[t.resultName]=r.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,d):r:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,d)}function E(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 x(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function I(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(E,this),this.reset(!0)}function L(t){if(t){var e=t[r];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,i=function e(){for(;++o=0;--r){var i=this.tryEntries[r],a=i.completion;if("root"===i.tryLoc)return o("end");if(i.tryLoc<=this.prev){var c=n.call(i,"catchLoc"),s=n.call(i,"finallyLoc");if(c&&s){if(this.prev=0;--o){var r=this.tryEntries[o];if(r.tryLoc<=this.prev&&n.call(r,"finallyLoc")&&this.prev=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),x(n),d}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var o=n.completion;if("throw"===o.type){var r=o.arg;x(n)}return r}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:L(t),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=void 0),d}},t}function s(t,e,n,o,r,i,a){try{var c=t[i](a),s=c.value}catch(u){return void n(u)}c.done?e(s):Promise.resolve(s).then(o,r)}function u(t){return function(){var e=this,n=arguments;return new Promise((function(o,r){var i=t.apply(e,n);function a(t){s(i,o,r,a,c,"next",t)}function c(t){s(i,o,r,a,c,"throw",t)}a(void 0)}))}}var l={name:"imgCode",props:{value:Boolean,phone:String||Number},data:function(){var t=window.location.origin;return{showImgCode:this.value,identifyingCode:t+"/api-teacher/code/getLoginImage?phone="+this.phone,code:null}},mounted:function(){var t=u(c().mark((function t(){return c().wrap((function(t){while(1)switch(t.prev=t.next){case 0:case"end":return t.stop()}}),t)})));function e(){return t.apply(this,arguments)}return e}(),methods:{updateIdentifyingCode:function(){var t=u(c().mark((function t(){var e;return c().wrap((function(t){while(1)switch(t.prev=t.next){case 0:e=window.location.origin,this.identifyingCode="".concat(e,"/api-teacher/code/getLoginImage?phone=").concat(this.phone,"&token=").concat(Math.random());case 2:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}(),checkVerifyLoginImage:function(){var t=u(c().mark((function t(){return c().wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(t.prev=0,!(this.code.length<4)){t.next=3;break}return t.abrupt("return");case 3:return t.next=5,Object(i["u"])({phone:this.phone,code:this.code});case 5:return t.next=7,Object(i["n"])({mobile:this.phone});case 7:this.$toast("验证码已发送"),this.$emit("input",!1),this.$emit("onCodeSend",!0),t.next=15;break;case 12:t.prev=12,t.t0=t["catch"](0),this.updateIdentifyingCode();case 15:case"end":return t.stop()}}),t,this,[[0,12]])})));function e(){return t.apply(this,arguments)}return e}(),onClose:function(){this.$emit("input",!1)}},watch:{code:function(t){t.length>=4&&this.checkVerifyLoginImage()}}},h=l,d=(n("a654"),n("2877")),p=Object(d["a"])(h,o,r,!1,null,"732d6116",null);e["a"]=p.exports},"9d64":function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAUQAAABaCAMAAAD3n9+rAAABNVBMVEUAAAD///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////8BwbUUxrsNxbn4/v0eyb7v/Ptz3ddb2NCi6eRp29RB0snX9vQ4z8YlysC07uqX5uG/8O2r6+ff+PbN8/Hn+vnG8u/S9fKP5N+H4t1L1Mxg2dFW1s5R1c1H08oyzsR+4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3zsofUqJOtwRLswr9a6ancoff53mr55kvTAvJrrqtsSqwDz+LDNP/hUe/7Y7k05H3rw0JeK3WiL65GF9MikRPSlWrsekbP5jYfIAh8mjRB4Nk4faTB6v9FiYPOhr8si5R8Tk4Ydj8BtP5UjXgZbThAAAAABJRU5ErkJggg=="},a654:function(t,e,n){"use strict";n("47ad")},d539:function(t,e,n){},f7df:function(t,e,n){"use strict";n.r(e);var o=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"login"},[t._m(0),n("div",{staticClass:"container"},[n("div",{staticClass:"input-group"},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.phoneNumber,expression:"phoneNumber"}],staticClass:"input",attrs:{type:"number",placeholder:"请输入手机号",maxlength:"11",minlength:"11",pattern:"[0-9]"},domProps:{value:t.phoneNumber},on:{input:function(e){e.target.composing||(t.phoneNumber=e.target.value)}}})]),n("div",{staticClass:"input-group",staticStyle:{"margin-bottom":"0.05rem"}},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.code,expression:"code"}],staticClass:"input",attrs:{type:"text",placeholder:"请输入验证码",minlength:"6",maxlength:"6"},domProps:{value:t.code},on:{input:function(e){e.target.composing||(t.code=e.target.value)}}}),n("span",{directives:[{name:"show",rawName:"v-show",value:t.countDownStatus,expression:"countDownStatus"}],staticClass:"code-text",on:{click:t.onSendCode}},[t._v(t._s(t.codeText))]),n("span",{directives:[{name:"show",rawName:"v-show",value:!t.countDownStatus,expression:"!countDownStatus"}],staticClass:"code-text"},[n("van-count-down",{ref:"countdown",attrs:{"auto-start":!1,time:t.countDownTime,format:"ss秒"},on:{finish:t.onFinished}})],1)]),n("div",{staticClass:"agreeProtocol"},[n("van-checkbox",{model:{value:t.agreeStatus,callback:function(e){t.agreeStatus=e},expression:"agreeStatus"}}),n("i",{staticStyle:{"font-style":"normal"},on:{click:function(e){t.agreeStatus=!t.agreeStatus}}},[t._v("阅读并同意")]),n("span",{on:{click:t.onToProtocol}},[t._v("《用户协议》")])],1),n("van-button",{attrs:{round:"",size:"large"},on:{click:t.onCodeLogin}},[t._v("注册并登录")]),n("span",{staticClass:"login-change",on:{click:t.onUrlLogin}},[t._v("登录")]),t.showImgCode?n("m-img-code",{attrs:{phone:t.phoneNumber},on:{onCodeSend:t.onCodeSend},model:{value:t.showImgCode,callback:function(e){t.showImgCode=e},expression:"showImgCode"}}):t._e()],1)])},r=[function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("div",{staticClass:"logo"},[o("img",{attrs:{src:n("9d64"),alt:""}})])}],i=n("b562"),a=n("6354"),c={name:"login",components:{MImgCode:a["a"]},data:function(){var t=localStorage.getItem("getRegister");return t=t?JSON.parse(t):{},localStorage.removeItem("getRegister"),{groupId:this.$route.query.groupId,countDownStatus:!0,phoneNumber:t.phoneNumber?t.phoneNumber:null,isRegister:0,code:t.code?t.code:null,codeText:"获取验证码",countDownTime:12e4,isClick:!1,agreeStatus:!!t.agreeStatus&&t.agreeStatus,showImgCode:!1}},mounted:function(){localStorage.removeItem("userInfo"),localStorage.removeItem("Authorization")},methods:{codeBlur:function(){setTimeout((function(){var t=document.documentElement.scrollTop||document.body.scrollTop||0;window.scrollTo(0,Math.max(t-1,0))}),100)},onToProtocol:function(){localStorage.setItem("getRegister",JSON.stringify({phoneNumber:this.phoneNumber,code:this.code,agreeStatus:this.agreeStatus})),this.$router.push({path:"/userProtocol",query:{groupId:this.groupId}})},onUrlLogin:function(){this.$router.push({path:"/appLogin",query:{groupId:this.groupId}})},onSendCode:function(){var t=this;this.checkPhone(this.phoneNumber)&&Object(i["l"])({mobile:this.phoneNumber}).then((function(e){var n=e.data;if(200==n.code){if(t.isRegister=n.data,1==n.data)return void t.$toast("用户已存在");t.showImgCode=!0}}))},onCodeSend:function(){this.countDownStatus=!1,this.$refs.countdown.start()},onCodeLogin:function(){var t=this;this.phoneNumber?this.checkPhone(this.phoneNumber)&&(this.code?this.agreeStatus?this.isClick||(this.isClick=!0,Object(i["l"])({mobile:this.phoneNumber}).then((function(e){var n=e.data;if(200==n.code){if(t.isRegister=n.data,1==n.data)return t.$toast("用户已存在"),void(t.isClick=!1);t.onLogin()}}))):this.$toast("请先阅读并同意用户协议"):this.$toast("请输入验证码")):this.$toast("请输入手机号")},onLogin:function(){var t=this,e={clientId:"student",clientSecret:"student",phone:this.phoneNumber,smsCode:this.code,channel:"H5",isLessee:"true"};Object(i["o"])(e).then((function(e){var n=e.data;if(t.isClick=!1,200==n.code){var o=n.data.authentication;localStorage.setItem("userInfo",o.token_type+" "+o.access_token),n.password?t.$router.push({path:"/classDetail",query:{groupId:t.groupId}}):t.$router.push({path:"/appSetInfo",query:{groupId:t.groupId}})}else t.$toast(n.msg)}))},onFinished:function(){this.countDownStatus=!0,this.$refs.countdown.reset()},checkPhone:function(t){var e=!0;return/^1(3|4|5|6|7|8|9)\d{9}$/.test(t)||(this.$toast("手机号输入有误"),e=!1),e}}},s=c,u=(n("1226"),n("2877")),l=Object(u["a"])(s,o,r,!1,null,"316025f8",null);e["default"]=l.exports}}]);