chunk-4bfe921c.686b6ea5.js 11 KB

12
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-4bfe921c"],{"1da1":function(t,r,e){"use strict";function n(t,r,e,n,o,i,a){try{var c=t[i](a),u=c.value}catch(s){return void e(s)}c.done?r(u):Promise.resolve(u).then(n,o)}function o(t){return function(){var r=this,e=arguments;return new Promise((function(o,i){var a=t.apply(r,e);function c(t){n(a,o,i,c,u,"next",t)}function u(t){n(a,o,i,c,u,"throw",t)}c(void 0)}))}}e.d(r,"a",(function(){return o}))},3109:function(t,r,e){"use strict";e("45c3")},"3cbc":function(t,r){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAaCAYAAACtv5zzAAAAAXNSR0IArs4c6QAAAlpJREFUSEu1lr1rFFEUxc95I4S4GCWmkE3hRyFaCJaCYKGFFiL4UbnsFmbeQ1crQYJgYE1Ag2AnJHPHYsHCQgNKmpRb+PEPmAgRUYyCBBGNIrLr5spINqzJzs5OSKace+75zb1z350hEq6BgYFjnuddAHAIQFZVf5F8paqTJEMR+d7OgnFB51wfgAcATrQxmCfpB0EwGadpCcjn85nu7u6XAA4kVaiqSvKMiDxppW0JsNaOkbyYZN4U/wFgj4h8WZmzClAoFPq7urrmSMa2LwY8KiLXEwG+7ztjTJDi6RvSNyKyNxHgnLsD4NoaAD+z2ezWUqm02Jy7qg3OuWEAQ2kBqvotDMNeANoWYK09S/JxWgCAFyJyuJMWbVbVTyS3pYQURWQsERAJnHM+gDAFYHp2dvZgpVL50xFgCXIPwOUOIB8AHBWRtx0ftIbQOXcJwAiA7TGgiWq1eqVcLn9OtSqaxblcrieTyZwEcARAn6r+Jjmjqk/DMJxOqjDptBrn3BbP80wro3q9vigiCytHs+2YFovFHbVazSd5HMB+Ve2NWxtLi+6rqs6QnDLG3B8fH5+PBTjnhlR1kGQmqfSYeFTNbREZbcSXW2StfUTy3BqN/0tT1YdhGJ6Pbv4DWGtHSN5YD/Mmj5siUqLv+7uNMdEM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2CAEXUgmSwAAAAABJRU5ErkJggg=="},"45c3":function(t,r,e){},"96cf":function(t,r,e){var n=function(t){"use strict";var r,e=Object.prototype,n=e.hasOwnProperty,o=Object.defineProperty||function(t,r,e){t[r]=e.value},i="function"===typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",c=i.asyncIterator||"@@asyncIterator",u=i.toStringTag||"@@toStringTag";function s(t,r,e){return Object.defineProperty(t,r,{value:e,enumerable:!0,configurable:!0,writable:!0}),t[r]}try{s({},"")}catch(q){s=function(t,r,e){return t[r]=e}}function l(t,r,e,n){var i=r&&r.prototype instanceof m?r:m,a=Object.create(i.prototype),c=new B(n||[]);return o(a,"_invoke",{value:J(t,e,c)}),a}function f(t,r,e){try{return{type:"normal",arg:t.call(r,e)}}catch(q){return{type:"throw",arg:q}}}t.wrap=l;var h="suspendedStart",p="suspendedYield",d="executing",g="completed",v={};function m(){}function y(){}function A(){}var w={};s(w,a,(function(){return this}));var b=Object.getPrototypeOf,x=b&&b(b(F([])));x&&x!==e&&n.call(x,a)&&(w=x);var E=A.prototype=m.prototype=Object.create(w);function L(t){["next","throw","return"].forEach((function(r){s(t,r,(function(t){return this._invoke(r,t)}))}))}function O(t,r){function e(o,i,a,c){var u=f(t[o],t,i);if("throw"!==u.type){var s=u.arg,l=s.value;return l&&"object"===typeof l&&n.call(l,"__await")?r.resolve(l.__await).then((function(t){e("next",t,a,c)}),(function(t){e("throw",t,a,c)})):r.resolve(l).then((function(t){s.value=t,a(s)}),(function(t){return e("throw",t,a,c)}))}c(u.arg)}var i;function a(t,n){function o(){return new r((function(r,o){e(t,n,r,o)}))}return i=i?i.then(o,o):o()}o(this,"_invoke",{value:a})}function J(t,r,e){var n=h;return function(o,i){if(n===d)throw new Error("Generator is already running");if(n===g){if("throw"===o)throw i;return R()}e.method=o,e.arg=i;while(1){var a=e.delegate;if(a){var c=N(a,e);if(c){if(c===v)continue;return c}}if("next"===e.method)e.sent=e._sent=e.arg;else if("throw"===e.method){if(n===h)throw n=g,e.arg;e.dispatchException(e.arg)}else"return"===e.method&&e.abrupt("return",e.arg);n=d;var u=f(t,r,e);if("normal"===u.type){if(n=e.done?g:p,u.arg===v)continue;return{value:u.arg,done:e.done}}"throw"===u.type&&(n=g,e.method="throw",e.arg=u.arg)}}}function N(t,e){var n=e.method,o=t.iterator[n];if(o===r)return e.delegate=null,"throw"===n&&t.iterator["return"]&&(e.method="return",e.arg=r,N(t,e),"throw"===e.method)||"return"!==n&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+n+"' method")),v;var i=f(o,t.iterator,e.arg);if("throw"===i.type)return e.method="throw",e.arg=i.arg,e.delegate=null,v;var a=i.arg;return a?a.done?(e[t.resultName]=a.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=r),e.delegate=null,v):a:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,v)}function S(t){var r={tryLoc:t[0]};1 in t&&(r.catchLoc=t[1]),2 in t&&(r.finallyLoc=t[2],r.afterLoc=t[3]),this.tryEntries.push(r)}function k(t){var r=t.completion||{};r.type="normal",delete r.arg,t.completion=r}function B(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(S,this),this.reset(!0)}function F(t){if(t){var e=t[a];if(e)return e.call(t);if("function"===typeof t.next)return t;if(!isNaN(t.length)){var o=-1,i=function e(){while(++o<t.length)if(n.call(t,o))return e.value=t[o],e.done=!1,e;return e.value=r,e.done=!0,e};return i.next=i}}return{next:R}}function R(){return{value:r,done:!0}}return y.prototype=A,o(E,"constructor",{value:A,configurable:!0}),o(A,"constructor",{value:y,configurable:!0}),y.displayName=s(A,u,"GeneratorFunction"),t.isGeneratorFunction=function(t){var r="function"===typeof t&&t.constructor;return!!r&&(r===y||"GeneratorFunction"===(r.displayName||r.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,A):(t.__proto__=A,s(t,u,"GeneratorFunction")),t.prototype=Object.create(E),t},t.awrap=function(t){return{__await:t}},L(O.prototype),s(O.prototype,c,(function(){return this})),t.AsyncIterator=O,t.async=function(r,e,n,o,i){void 0===i&&(i=Promise);var a=new O(l(r,e,n,o),i);return t.isGeneratorFunction(e)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},L(E),s(E,u,"Generator"),s(E,a,(function(){return this})),s(E,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var r=Object(t),e=[];for(var n in r)e.push(n);return e.reverse(),function t(){while(e.length){var n=e.pop();if(n in r)return t.value=n,t.done=!1,t}return t.done=!0,t}},t.values=F,B.prototype={constructor:B,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=r,this.done=!1,this.delegate=null,this.method="next",this.arg=r,this.tryEntries.forEach(k),!t)for(var e in this)"t"===e.charAt(0)&&n.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=r)},stop:function(){this.done=!0;var t=this.tryEntries[0],r=t.completion;if("throw"===r.type)throw r.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function o(n,o){return c.type="throw",c.arg=t,e.next=n,o&&(e.method="next",e.arg=r),!!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 u=n.call(a,"catchLoc"),s=n.call(a,"finallyLoc");if(u&&s){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(u){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(t,r){for(var e=this.tryEntries.length-1;e>=0;--e){var o=this.tryEntries[e];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=r&&r<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=r,i?(this.method="next",this.next=i.finallyLoc,v):this.complete(a)},complete:function(t,r){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&&r&&(this.next=r),v},finish:function(t){for(var r=this.tryEntries.length-1;r>=0;--r){var e=this.tryEntries[r];if(e.finallyLoc===t)return this.complete(e.completion,e.afterLoc),k(e),v}},catch:function(t){for(var r=this.tryEntries.length-1;r>=0;--r){var e=this.tryEntries[r];if(e.tryLoc===t){var n=e.completion;if("throw"===n.type){var o=n.arg;k(e)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:F(t),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=r),v}},t}(t.exports);try{regeneratorRuntime=n}catch(o){"object"===typeof globalThis?globalThis.regeneratorRuntime=n:Function("r","regeneratorRuntime = r")(n)}},"9ed6":function(t,r,e){"use strict";e.r(r);var n=function(){var t=this,r=t._self._c;return r("div",{staticClass:"login-main"},[r("div",{staticClass:"login-div-bg"}),r("div",{staticClass:"login-div"},[r("div",{staticClass:"login-title"},[t._v("欢迎使用缘中秀收银")]),r("div",{staticClass:"login-form"},[r("el-form",{ref:"form",attrs:{model:t.form,rules:t.rules}},[r("el-form-item",{attrs:{prop:"username"}},[r("el-input",{attrs:{placeholder:"账号"},model:{value:t.form.username,callback:function(r){t.$set(t.form,"username",r)},expression:"form.username"}},[r("img",{attrs:{slot:"prefix",src:e("3cbc")},slot:"prefix"})])],1),r("el-form-item",{attrs:{prop:"password"}},[r("el-input",{attrs:{type:"password",placeholder:"密码"},model:{value:t.form.password,callback:function(r){t.$set(t.form,"password",r)},expression:"form.password"}},[r("img",{attrs:{slot:"prefix",src:e("441d")},slot:"prefix"})])],1)],1)],1),r("div",{staticClass:"login-btn"},[r("el-button",{attrs:{type:"primary"},on:{click:t.login}},[t._v("登录")])],1)])])},o=[],i=(e("96cf"),e("1da1")),a=e("a27e"),c=function(t){return Object(a["a"])({method:"POST",url:"/api.php/api/login",data:t})},u=e("5f87"),s={data:function(){return{form:{username:void 0,password:void 0},rules:{username:[{required:!0,message:"请输入账号",trigger:"blur"}],password:[{required:!0,message:"请输入密码",trigger:"blur"}]}}},methods:{login:function(){var t=this;this.$refs.form.validate(function(){var r=Object(i["a"])(regeneratorRuntime.mark((function r(e){var n;return regeneratorRuntime.wrap((function(r){while(1)switch(r.prev=r.next){case 0:if(!e){r.next=7;break}return r.next=3,c(t.form);case 3:n=r.sent,200==n.data.code?(window.localStorage.setItem("userInfo",JSON.stringify(n.data.data)),Object(u["b"])(n.data.data.token),t.$router.push("/home"),t.$message({message:"登入成功",type:"success"})):t.$message({message:n.data.message,type:"warning"}),r.next=9;break;case 7:return console.log("error submit!!"),r.abrupt("return",!1);case 9:case"end":return r.stop()}}),r)})));return function(t){return r.apply(this,arguments)}}())}}},l=s,f=(e("3109"),e("2877")),h=Object(f["a"])(l,n,o,!1,null,null,null);r["default"]=h.exports}}]);
  2. //# sourceMappingURL=chunk-4bfe921c.686b6ea5.js.map