1 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["AppLogin~AppRegister"],{"39c7":function(t,e,r){"use strict";var n=r("cacf"),o=r.n(n);o.a},6354:function(t,e,r){"use strict";var n=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("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"}},[r("div",{staticClass:"imgCode"},[r("p",{staticClass:"codeTitle"},[t._v("输入图形验证码")]),r("van-row",{attrs:{type:"flex"}},[r("van-col",{attrs:{span:"14"}},[r("van-field",{staticStyle:{background:"#F4F4F4",padding:".12rem .16rem"},attrs:{placeholder:"请输入验证码"},model:{value:t.code,callback:function(e){t.code=e},expression:"code"}})],1),r("van-col",{staticClass:"img",attrs:{span:"10"}},[r("van-image",{attrs:{src:t.identifyingCode},on:{click:function(e){return t.updateIdentifyingCode(!0)}},scopedSlots:t._u([{key:"loading",fn:function(){return[r("van-loading",{attrs:{type:"spinner",size:"20"}})]},proxy:!0}])})],1)],1),r("van-row",[r("van-col",{attrs:{span:"14"}}),r("van-col",{attrs:{span:"10"}},[r("span",{staticClass:"imgChange",on:{click:function(e){return t.updateIdentifyingCode(!0)}}},[t._v("看不清?换一换")])])],1)],1)])},o=[],i=r("a34a"),a=r.n(i),c=r("b562");function s(t,e,r,n,o,i,a){try{var c=t[i](a),s=c.value}catch(u){return void r(u)}c.done?e(s):Promise.resolve(s).then(n,o)}function u(t){return function(){var e=this,r=arguments;return new Promise(function(n,o){var i=t.apply(e,r);function a(t){s(i,n,o,a,c,"next",t)}function c(t){s(i,n,o,a,c,"throw",t)}a(void 0)})}}var h={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(a.a.mark(function t(){return a.a.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(a.a.mark(function t(){var e;return a.a.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(a.a.mark(function t(){return a.a.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(c["t"])({phone:this.phone,code:this.code});case 5:return t.next=7,Object(c["m"])({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()}}},l=h,f=(r("39c7"),r("2877")),p=Object(f["a"])(l,n,o,!1,null,"4ee80e4b",null);e["a"]=p.exports},"96cf":function(t,e,r){var n=function(t){"use strict";var e,r=Object.prototype,n=r.hasOwnProperty,o="function"===typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function s(t,e,r,n){var o=e&&e.prototype instanceof g?e:g,i=Object.create(o.prototype),a=new S(n||[]);return i._invoke=R(t,r,a),i}function u(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(n){return{type:"throw",arg:n}}}t.wrap=s;var h="suspendedStart",l="suspendedYield",f="executing",p="completed",d={};function g(){}function y(){}function v(){}var m={};m[i]=function(){return this};var w=Object.getPrototypeOf,E=w&&w(w(b([])));E&&E!==r&&n.call(E,i)&&(m=E);var k=v.prototype=g.prototype=Object.create(m);function x(t){["next","throw","return"].forEach(function(e){t[e]=function(t){return this._invoke(e,t)}})}function L(t){function e(r,o,i,a){var c=u(t[r],t,o);if("throw"!==c.type){var s=c.arg,h=s.value;return h&&"object"===typeof h&&n.call(h,"__await")?Promise.resolve(h.__await).then(function(t){e("next",t,i,a)},function(t){e("throw",t,i,a)}):Promise.resolve(h).then(function(t){s.value=t,i(s)},function(t){return e("throw",t,i,a)})}a(c.arg)}var r;function o(t,n){function o(){return new Promise(function(r,o){e(t,n,r,o)})}return r=r?r.then(o,o):o()}this._invoke=o}function R(t,e,r){var n=h;return function(o,i){if(n===f)throw new Error("Generator is already running");if(n===p){if("throw"===o)throw i;return U()}r.method=o,r.arg=i;while(1){var a=r.delegate;if(a){var c=Y(a,r);if(c){if(c===d)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(n===h)throw n=p,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n=f;var s=u(t,e,r);if("normal"===s.type){if(n=r.done?p:l,s.arg===d)continue;return{value:s.arg,done:r.done}}"throw"===s.type&&(n=p,r.method="throw",r.arg=s.arg)}}}function Y(t,r){var n=t.iterator[r.method];if(n===e){if(r.delegate=null,"throw"===r.method){if(t.iterator["return"]&&(r.method="return",r.arg=e,Y(t,r),"throw"===r.method))return d;r.method="throw",r.arg=new TypeError("The iterator does not provide a 'throw' method")}return d}var o=u(n,t.iterator,r.arg);if("throw"===o.type)return r.method="throw",r.arg=o.arg,r.delegate=null,d;var i=o.arg;return i?i.done?(r[t.resultName]=i.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,d):i:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,d)}function A(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 I(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function S(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(A,this),this.reset(!0)}function b(t){if(t){var r=t[i];if(r)return r.call(t);if("function"===typeof t.next)return t;if(!isNaN(t.length)){var o=-1,a=function r(){while(++o<t.length)if(n.call(t,o))return r.value=t[o],r.done=!1,r;return r.value=e,r.done=!0,r};return a.next=a}}return{next:U}}function U(){return{value:e,done:!0}}return y.prototype=k.constructor=v,v.constructor=y,v[c]=y.displayName="GeneratorFunction",t.isGeneratorFunction=function(t){var e="function"===typeof t&&t.constructor;return!!e&&(e===y||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,v):(t.__proto__=v,c in t||(t[c]="GeneratorFunction")),t.prototype=Object.create(k),t},t.awrap=function(t){return{__await:t}},x(L.prototype),L.prototype[a]=function(){return this},t.AsyncIterator=L,t.async=function(e,r,n,o){var i=new L(s(e,r,n,o));return t.isGeneratorFunction(r)?i:i.next().then(function(t){return t.done?t.value:i.next()})},x(k),k[c]="Generator",k[i]=function(){return this},k.toString=function(){return"[object Generator]"},t.keys=function(t){var e=[];for(var r in t)e.push(r);return e.reverse(),function r(){while(e.length){var n=e.pop();if(n in t)return r.value=n,r.done=!1,r}return r.done=!0,r}},t.values=b,S.prototype={constructor:S,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(I),!t)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=e)},stop:function(){this.done=!0;var t=this.tryEntries[0],e=t.completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function o(n,o){return c.type="throw",c.arg=t,r.next=n,o&&(r.method="next",r.arg=e),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],c=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var s=n.call(a,"catchLoc"),u=n.call(a,"finallyLoc");if(s&&u){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(s){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;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,d):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),d},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),I(r),d}},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;I(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:b(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),d}},t}(t.exports);try{regeneratorRuntime=n}catch(o){Function("r","regeneratorRuntime = r")(n)}},"9d64":function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAUQAAABaCAMAAAD3n9+rAAABNVBMVEUAAAD///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////8BwbUUxrsNxbn4/v0eyb7v/Ptz3ddb2NCi6eRp29RB0snX9vQ4z8Ylys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Uq/i45BiZhSUGKrDLFAOrARKERVGd21MLXCslesVfRuKqoLVTc9aq8cKlkthalFUiE/MeeA0lwoSGzj3zsofUqJOtwRLswr9a6ancoff53mr55kvTAvJrrqtsSqwDz+LDNP/hUe/7Y7k05H3rw0JeK3WiL65GF9MikRPSlWrsekbP5jYfIAh8mjRB4Nk4faTB6v9FiYPOhr8si5R8Tk4Ydj8BtP5UjXgZbThAAAAABJRU5ErkJggg=="},a34a:function(t,e,r){t.exports=r("96cf")},cacf:function(t,e,r){}}]);
|