(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["AppLogin"],{4127:function(e,t,r){"use strict";var n=r("d2334"),o=r("b313"),i=Object.prototype.hasOwnProperty,a={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,t){return e+"["+t+"]"},repeat:function(e){return e}},s=Array.isArray,u=Array.prototype.push,c=function(e,t){u.apply(e,s(t)?t:[t])},l=Date.prototype.toISOString,p=o["default"],d={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:n.encode,encodeValuesOnly:!1,format:p,formatter:o.formatters[p],indices:!1,serializeDate:function(e){return l.call(e)},skipNulls:!1,strictNullHandling:!1},f=function(e){return"string"===typeof e||"number"===typeof e||"boolean"===typeof e||"symbol"===typeof e||"bigint"===typeof e},h=function e(t,r,o,i,a,u,l,p,h,m,y,g,b){var v=t;if("function"===typeof l?v=l(r,v):v instanceof Date?v=m(v):"comma"===o&&s(v)&&(v=n.maybeMap(v,(function(e){return e instanceof Date?m(e):e})).join(",")),null===v){if(i)return u&&!g?u(r,d.encoder,b,"key"):r;v=""}if(f(v)||n.isBuffer(v)){if(u){var w=g?r:u(r,d.encoder,b,"key");return[y(w)+"="+y(u(v,d.encoder,b,"value"))]}return[y(r)+"="+y(String(v))]}var O,C=[];if("undefined"===typeof v)return C;if(s(l))O=l;else{var j=Object.keys(v);O=p?j.sort(p):j}for(var N=0;N0?g+y:""}},4328:function(e,t,r){"use strict";var n=r("4127"),o=r("9e6a"),i=r("b313");e.exports={formats:i,parse:o,stringify:n}},"9d64":function(e,t,r){e.exports=r.p+"img/logo.334a5ce4.png"},"9e6a":function(e,t,r){"use strict";var n=r("d2334"),o=Object.prototype.hasOwnProperty,i=Array.isArray,a={allowDots:!1,allowPrototypes:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:n.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},s=function(e){return e.replace(/&#(\d+);/g,(function(e,t){return String.fromCharCode(parseInt(t,10))}))},u=function(e,t){return e&&"string"===typeof e&&t.comma&&e.indexOf(",")>-1?e.split(","):e},c="utf8=%26%2310003%3B",l="utf8=%E2%9C%93",p=function(e,t){var r,p={},d=t.ignoreQueryPrefix?e.replace(/^\?/,""):e,f=t.parameterLimit===1/0?void 0:t.parameterLimit,h=d.split(t.delimiter,f),m=-1,y=t.charset;if(t.charsetSentinel)for(r=0;r-1&&(b=i(b)?[b]:b),o.call(p,g)?p[g]=n.combine(p[g],b):p[g]=b}return p},d=function(e,t,r,n){for(var o=n?t:u(t,r),i=e.length-1;i>=0;--i){var a,s=e[i];if("[]"===s&&r.parseArrays)a=[].concat(o);else{a=r.plainObjects?Object.create(null):{};var c="["===s.charAt(0)&&"]"===s.charAt(s.length-1)?s.slice(1,-1):s,l=parseInt(c,10);r.parseArrays||""!==c?!isNaN(l)&&s!==c&&String(l)===c&&l>=0&&r.parseArrays&&l<=r.arrayLimit?(a=[],a[l]=o):a[c]=o:a={0:o}}o=a}return o},f=function(e,t,r,n){if(e){var i=r.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,a=/(\[[^[\]]*])/,s=/(\[[^[\]]*])/g,u=r.depth>0&&a.exec(i),c=u?i.slice(0,u.index):i,l=[];if(c){if(!r.plainObjects&&o.call(Object.prototype,c)&&!r.allowPrototypes)return;l.push(c)}var p=0;while(r.depth>0&&null!==(u=s.exec(i))&&p是否注册?",confirmButtonText:"注册"}).then((function(){e.$router.push({path:"/appRegister",query:{groupId:e.groupId}})})).catch((function(){})):e.$toast(r.msg)}))},onCodeLogin:function(){var e=this;if(!this.isClick){this.isClick=!0;var t={clientId:"student",clientSecret:"student",phone:this.phoneNumber,smsCode:this.code,channel:"H5"};Object(i["n"])(t).then((function(t){var r=t.data;if(e.isClick=!1,200==r.code){var n=r.data.authentication;localStorage.setItem("userInfo",n.token_type+" "+n.access_token),r.data.password?e.$router.push({path:"/classDetail",query:{groupId:e.groupId}}):e.$router.push({path:"/appSetInfo",query:{groupId:e.groupId}})}else 99==r.code?e.$dialog.confirm({message:"此手机号尚未注册
是否注册?",confirmButtonText:"注册"}).then((function(){e.$router.push({path:"/appRegister",query:{groupId:e.groupId}})})).catch((function(){})):e.$toast(r.msg)}))}},onLogin:function(){var e=this;this.isClick||(this.isClick=!0,Object(i["s"])({clientId:"student",clientSecret:"student",username:this.phoneNumber,password:this.password}).then((function(t){var r=t.data;if(e.isClick=!1,200==r.code){var n=r.data.authentication;localStorage.setItem("userInfo",n.token_type+" "+n.access_token),e.$router.push({path:"/classDetail",query:{groupId:e.groupId}})}else 99==r.code?e.$dialog.confirm({message:"此手机号尚未注册
是否注册?",confirmButtonText:"注册"}).then((function(){e.$router.push({path:"/appRegister",query:{groupId:e.groupId}})})).catch((function(){})):e.$toast(r.msg)})))},onFinished:function(){this.countDownStatus=!0,this.$refs.countdown.reset()},checkPhone:function(e){var t=!0;return/^1(3|4|5|6|7|8|9)\d{9}$/.test(e)||(this.$toast("手机号输入有误"),t=!1),t}}},s=a,u=(r("fe3a"),r("2877")),c=Object(u["a"])(s,n,o,!1,null,"7f0b2d45",null);t["default"]=c.exports},d2334:function(e,t,r){"use strict";var n=Object.prototype.hasOwnProperty,o=Array.isArray,i=function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e}(),a=function(e){while(e.length>1){var t=e.pop(),r=t.obj[t.prop];if(o(r)){for(var n=[],i=0;i=48&&s<=57||s>=65&&s<=90||s>=97&&s<=122?o+=n.charAt(a):s<128?o+=i[s]:s<2048?o+=i[192|s>>6]+i[128|63&s]:s<55296||s>=57344?o+=i[224|s>>12]+i[128|s>>6&63]+i[128|63&s]:(a+=1,s=65536+((1023&s)<<10|1023&n.charCodeAt(a)),o+=i[240|s>>18]+i[128|s>>12&63]+i[128|s>>6&63]+i[128|63&s])}return o},d=function(e){for(var t=[{obj:{o:e},prop:"o"}],r=[],n=0;n