| 123456789 |
- import{u as useRouter}from"./vue-router-97798bdd.js";import{_ as _export_sfc,A as Api}from"./_plugin-vue_export-helper-8c6b27bd.js";import{c as commonjsGlobal}from"./index-73d4c5eb.js";import{d as defineComponent,b as resolveComponent,o as openBlock,e as createElementBlock,$ as createBaseVNode,f as createVNode,g as withCtx,r as reactive,K as createTextVNode,a0 as pushScopeId,a1 as popScopeId}from"./vue-064866b6.js";var md5Exports={},md5$1={get exports(){return md5Exports},set exports(e){md5Exports=e}};/**
- * [js-md5]{@link https://github.com/emn178/js-md5}
- *
- * @namespace md5
- * @version 0.7.3
- * @author Chen, Yi-Cyuan [emn178@gmail.com]
- * @copyright Chen, Yi-Cyuan 2014-2017
- * @license MIT
- */(function(module){(function(){var ERROR="input is invalid type",WINDOW=typeof window=="object",root=WINDOW?window:{};root.JS_MD5_NO_WINDOW&&(WINDOW=!1);var WEB_WORKER=!WINDOW&&typeof self=="object",NODE_JS=!root.JS_MD5_NO_NODE_JS&&typeof process=="object"&&process.versions&&process.versions.node;NODE_JS?root=commonjsGlobal:WEB_WORKER&&(root=self);var COMMON_JS=!root.JS_MD5_NO_COMMON_JS&&!0&&module.exports,ARRAY_BUFFER=!root.JS_MD5_NO_ARRAY_BUFFER&&typeof ArrayBuffer<"u",HEX_CHARS="0123456789abcdef".split(""),EXTRA=[128,32768,8388608,-2147483648],SHIFT=[0,8,16,24],OUTPUT_TYPES=["hex","array","digest","buffer","arrayBuffer","base64"],BASE64_ENCODE_CHAR="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split(""),blocks=[],buffer8;if(ARRAY_BUFFER){var buffer=new ArrayBuffer(68);buffer8=new Uint8Array(buffer),blocks=new Uint32Array(buffer)}(root.JS_MD5_NO_NODE_JS||!Array.isArray)&&(Array.isArray=function(e){return Object.prototype.toString.call(e)==="[object Array]"}),ARRAY_BUFFER&&(root.JS_MD5_NO_ARRAY_BUFFER_IS_VIEW||!ArrayBuffer.isView)&&(ArrayBuffer.isView=function(e){return typeof e=="object"&&e.buffer&&e.buffer.constructor===ArrayBuffer});var createOutputMethod=function(e){return function(o){return new Md5(!0).update(o)[e]()}},createMethod=function(){var e=createOutputMethod("hex");NODE_JS&&(e=nodeWrap(e)),e.create=function(){return new Md5},e.update=function(t){return e.create().update(t)};for(var o=0;o<OUTPUT_TYPES.length;++o){var r=OUTPUT_TYPES[o];e[r]=createOutputMethod(r)}return e},nodeWrap=function(method){var crypto=eval("require('crypto')"),Buffer=eval("require('buffer').Buffer"),nodeMethod=function(e){if(typeof e=="string")return crypto.createHash("md5").update(e,"utf8").digest("hex");if(e==null)throw ERROR;return e.constructor===ArrayBuffer&&(e=new Uint8Array(e)),Array.isArray(e)||ArrayBuffer.isView(e)||e.constructor===Buffer?crypto.createHash("md5").update(new Buffer(e)).digest("hex"):method(e)};return nodeMethod};function Md5(e){if(e)blocks[0]=blocks[16]=blocks[1]=blocks[2]=blocks[3]=blocks[4]=blocks[5]=blocks[6]=blocks[7]=blocks[8]=blocks[9]=blocks[10]=blocks[11]=blocks[12]=blocks[13]=blocks[14]=blocks[15]=0,this.blocks=blocks,this.buffer8=buffer8;else if(ARRAY_BUFFER){var o=new ArrayBuffer(68);this.buffer8=new Uint8Array(o),this.blocks=new Uint32Array(o)}else this.blocks=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];this.h0=this.h1=this.h2=this.h3=this.start=this.bytes=this.hBytes=0,this.finalized=this.hashed=!1,this.first=!0}Md5.prototype.update=function(e){if(!this.finalized){var o,r=typeof e;if(r!=="string"){if(r==="object"){if(e===null)throw ERROR;if(ARRAY_BUFFER&&e.constructor===ArrayBuffer)e=new Uint8Array(e);else if(!Array.isArray(e)&&(!ARRAY_BUFFER||!ArrayBuffer.isView(e)))throw ERROR}else throw ERROR;o=!0}for(var t,n=0,i,s=e.length,a=this.blocks,h=this.buffer8;n<s;){if(this.hashed&&(this.hashed=!1,a[0]=a[16],a[16]=a[1]=a[2]=a[3]=a[4]=a[5]=a[6]=a[7]=a[8]=a[9]=a[10]=a[11]=a[12]=a[13]=a[14]=a[15]=0),o)if(ARRAY_BUFFER)for(i=this.start;n<s&&i<64;++n)h[i++]=e[n];else for(i=this.start;n<s&&i<64;++n)a[i>>2]|=e[n]<<SHIFT[i++&3];else if(ARRAY_BUFFER)for(i=this.start;n<s&&i<64;++n)t=e.charCodeAt(n),t<128?h[i++]=t:t<2048?(h[i++]=192|t>>6,h[i++]=128|t&63):t<55296||t>=57344?(h[i++]=224|t>>12,h[i++]=128|t>>6&63,h[i++]=128|t&63):(t=65536+((t&1023)<<10|e.charCodeAt(++n)&1023),h[i++]=240|t>>18,h[i++]=128|t>>12&63,h[i++]=128|t>>6&63,h[i++]=128|t&63);else for(i=this.start;n<s&&i<64;++n)t=e.charCodeAt(n),t<128?a[i>>2]|=t<<SHIFT[i++&3]:t<2048?(a[i>>2]|=(192|t>>6)<<SHIFT[i++&3],a[i>>2]|=(128|t&63)<<SHIFT[i++&3]):t<55296||t>=57344?(a[i>>2]|=(224|t>>12)<<SHIFT[i++&3],a[i>>2]|=(128|t>>6&63)<<SHIFT[i++&3],a[i>>2]|=(128|t&63)<<SHIFT[i++&3]):(t=65536+((t&1023)<<10|e.charCodeAt(++n)&1023),a[i>>2]|=(240|t>>18)<<SHIFT[i++&3],a[i>>2]|=(128|t>>12&63)<<SHIFT[i++&3],a[i>>2]|=(128|t>>6&63)<<SHIFT[i++&3],a[i>>2]|=(128|t&63)<<SHIFT[i++&3]);this.lastByteIndex=i,this.bytes+=i-this.start,i>=64?(this.start=i-64,this.hash(),this.hashed=!0):this.start=i}return this.bytes>4294967295&&(this.hBytes+=this.bytes/4294967296<<0,this.bytes=this.bytes%4294967296),this}},Md5.prototype.finalize=function(){if(!this.finalized){this.finalized=!0;var e=this.blocks,o=this.lastByteIndex;e[o>>2]|=EXTRA[o&3],o>=56&&(this.hashed||this.hash(),e[0]=e[16],e[16]=e[1]=e[2]=e[3]=e[4]=e[5]=e[6]=e[7]=e[8]=e[9]=e[10]=e[11]=e[12]=e[13]=e[14]=e[15]=0),e[14]=this.bytes<<3,e[15]=this.hBytes<<3|this.bytes>>>29,this.hash()}},Md5.prototype.hash=function(){var e,o,r,t,n,i,s=this.blocks;this.first?(e=s[0]-680876937,e=(e<<7|e>>>25)-271733879<<0,t=(-1732584194^e&2004318071)+s[1]-117830708,t=(t<<12|t>>>20)+e<<0,r=(-271733879^t&(e^-271733879))+s[2]-1126478375,r=(r<<17|r>>>15)+t<<0,o=(e^r&(t^e))+s[3]-1316259209,o=(o<<22|o>>>10)+r<<0):(e=this.h0,o=this.h1,r=this.h2,t=this.h3,e+=(t^o&(r^t))+s[0]-680876936,e=(e<<7|e>>>25)+o<<0,t+=(r^e&(o^r))+s[1]-389564586,t=(t<<12|t>>>20)+e<<0,r+=(o^t&(e^o))+s[2]+606105819,r=(r<<17|r>>>15)+t<<0,o+=(e^r&(t^e))+s[3]-1044525330,o=(o<<22|o>>>10)+r<<0),e+=(t^o&(r^t))+s[4]-176418897,e=(e<<7|e>>>25)+o<<0,t+=(r^e&(o^r))+s[5]+1200080426,t=(t<<12|t>>>20)+e<<0,r+=(o^t&(e^o))+s[6]-1473231341,r=(r<<17|r>>>15)+t<<0,o+=(e^r&(t^e))+s[7]-45705983,o=(o<<22|o>>>10)+r<<0,e+=(t^o&(r^t))+s[8]+1770035416,e=(e<<7|e>>>25)+o<<0,t+=(r^e&(o^r))+s[9]-1958414417,t=(t<<12|t>>>20)+e<<0,r+=(o^t&(e^o))+s[10]-42063,r=(r<<17|r>>>15)+t<<0,o+=(e^r&(t^e))+s[11]-1990404162,o=(o<<22|o>>>10)+r<<0,e+=(t^o&(r^t))+s[12]+1804603682,e=(e<<7|e>>>25)+o<<0,t+=(r^e&(o^r))+s[13]-40341101,t=(t<<12|t>>>20)+e<<0,r+=(o^t&(e^o))+s[14]-1502002290,r=(r<<17|r>>>15)+t<<0,o+=(e^r&(t^e))+s[15]+1236535329,o=(o<<22|o>>>10)+r<<0,e+=(r^t&(o^r))+s[1]-165796510,e=(e<<5|e>>>27)+o<<0,t+=(o^r&(e^o))+s[6]-1069501632,t=(t<<9|t>>>23)+e<<0,r+=(e^o&(t^e))+s[11]+643717713,r=(r<<14|r>>>18)+t<<0,o+=(t^e&(r^t))+s[0]-373897302,o=(o<<20|o>>>12)+r<<0,e+=(r^t&(o^r))+s[5]-701558691,e=(e<<5|e>>>27)+o<<0,t+=(o^r&(e^o))+s[10]+38016083,t=(t<<9|t>>>23)+e<<0,r+=(e^o&(t^e))+s[15]-660478335,r=(r<<14|r>>>18)+t<<0,o+=(t^e&(r^t))+s[4]-405537848,o=(o<<20|o>>>12)+r<<0,e+=(r^t&(o^r))+s[9]+568446438,e=(e<<5|e>>>27)+o<<0,t+=(o^r&(e^o))+s[14]-1019803690,t=(t<<9|t>>>23)+e<<0,r+=(e^o&(t^e))+s[3]-187363961,r=(r<<14|r>>>18)+t<<0,o+=(t^e&(r^t))+s[8]+1163531501,o=(o<<20|o>>>12)+r<<0,e+=(r^t&(o^r))+s[13]-1444681467,e=(e<<5|e>>>27)+o<<0,t+=(o^r&(e^o))+s[2]-51403784,t=(t<<9|t>>>23)+e<<0,r+=(e^o&(t^e))+s[7]+1735328473,r=(r<<14|r>>>18)+t<<0,o+=(t^e&(r^t))+s[12]-1926607734,o=(o<<20|o>>>12)+r<<0,n=o^r,e+=(n^t)+s[5]-378558,e=(e<<4|e>>>28)+o<<0,t+=(n^e)+s[8]-2022574463,t=(t<<11|t>>>21)+e<<0,i=t^e,r+=(i^o)+s[11]+1839030562,r=(r<<16|r>>>16)+t<<0,o+=(i^r)+s[14]-35309556,o=(o<<23|o>>>9)+r<<0,n=o^r,e+=(n^t)+s[1]-1530992060,e=(e<<4|e>>>28)+o<<0,t+=(n^e)+s[4]+1272893353,t=(t<<11|t>>>21)+e<<0,i=t^e,r+=(i^o)+s[7]-155497632,r=(r<<16|r>>>16)+t<<0,o+=(i^r)+s[10]-1094730640,o=(o<<23|o>>>9)+r<<0,n=o^r,e+=(n^t)+s[13]+681279174,e=(e<<4|e>>>28)+o<<0,t+=(n^e)+s[0]-358537222,t=(t<<11|t>>>21)+e<<0,i=t^e,r+=(i^o)+s[3]-722521979,r=(r<<16|r>>>16)+t<<0,o+=(i^r)+s[6]+76029189,o=(o<<23|o>>>9)+r<<0,n=o^r,e+=(n^t)+s[9]-640364487,e=(e<<4|e>>>28)+o<<0,t+=(n^e)+s[12]-421815835,t=(t<<11|t>>>21)+e<<0,i=t^e,r+=(i^o)+s[15]+530742520,r=(r<<16|r>>>16)+t<<0,o+=(i^r)+s[2]-995338651,o=(o<<23|o>>>9)+r<<0,e+=(r^(o|~t))+s[0]-198630844,e=(e<<6|e>>>26)+o<<0,t+=(o^(e|~r))+s[7]+1126891415,t=(t<<10|t>>>22)+e<<0,r+=(e^(t|~o))+s[14]-1416354905,r=(r<<15|r>>>17)+t<<0,o+=(t^(r|~e))+s[5]-57434055,o=(o<<21|o>>>11)+r<<0,e+=(r^(o|~t))+s[12]+1700485571,e=(e<<6|e>>>26)+o<<0,t+=(o^(e|~r))+s[3]-1894986606,t=(t<<10|t>>>22)+e<<0,r+=(e^(t|~o))+s[10]-1051523,r=(r<<15|r>>>17)+t<<0,o+=(t^(r|~e))+s[1]-2054922799,o=(o<<21|o>>>11)+r<<0,e+=(r^(o|~t))+s[8]+1873313359,e=(e<<6|e>>>26)+o<<0,t+=(o^(e|~r))+s[15]-30611744,t=(t<<10|t>>>22)+e<<0,r+=(e^(t|~o))+s[6]-1560198380,r=(r<<15|r>>>17)+t<<0,o+=(t^(r|~e))+s[13]+1309151649,o=(o<<21|o>>>11)+r<<0,e+=(r^(o|~t))+s[4]-145523070,e=(e<<6|e>>>26)+o<<0,t+=(o^(e|~r))+s[11]-1120210379,t=(t<<10|t>>>22)+e<<0,r+=(e^(t|~o))+s[2]+718787259,r=(r<<15|r>>>17)+t<<0,o+=(t^(r|~e))+s[9]-343485551,o=(o<<21|o>>>11)+r<<0,this.first?(this.h0=e+1732584193<<0,this.h1=o-271733879<<0,this.h2=r-1732584194<<0,this.h3=t+271733878<<0,this.first=!1):(this.h0=this.h0+e<<0,this.h1=this.h1+o<<0,this.h2=this.h2+r<<0,this.h3=this.h3+t<<0)},Md5.prototype.hex=function(){this.finalize();var e=this.h0,o=this.h1,r=this.h2,t=this.h3;return HEX_CHARS[e>>4&15]+HEX_CHARS[e&15]+HEX_CHARS[e>>12&15]+HEX_CHARS[e>>8&15]+HEX_CHARS[e>>20&15]+HEX_CHARS[e>>16&15]+HEX_CHARS[e>>28&15]+HEX_CHARS[e>>24&15]+HEX_CHARS[o>>4&15]+HEX_CHARS[o&15]+HEX_CHARS[o>>12&15]+HEX_CHARS[o>>8&15]+HEX_CHARS[o>>20&15]+HEX_CHARS[o>>16&15]+HEX_CHARS[o>>28&15]+HEX_CHARS[o>>24&15]+HEX_CHARS[r>>4&15]+HEX_CHARS[r&15]+HEX_CHARS[r>>12&15]+HEX_CHARS[r>>8&15]+HEX_CHARS[r>>20&15]+HEX_CHARS[r>>16&15]+HEX_CHARS[r>>28&15]+HEX_CHARS[r>>24&15]+HEX_CHARS[t>>4&15]+HEX_CHARS[t&15]+HEX_CHARS[t>>12&15]+HEX_CHARS[t>>8&15]+HEX_CHARS[t>>20&15]+HEX_CHARS[t>>16&15]+HEX_CHARS[t>>28&15]+HEX_CHARS[t>>24&15]},Md5.prototype.toString=Md5.prototype.hex,Md5.prototype.digest=function(){this.finalize();var e=this.h0,o=this.h1,r=this.h2,t=this.h3;return[e&255,e>>8&255,e>>16&255,e>>24&255,o&255,o>>8&255,o>>16&255,o>>24&255,r&255,r>>8&255,r>>16&255,r>>24&255,t&255,t>>8&255,t>>16&255,t>>24&255]},Md5.prototype.array=Md5.prototype.digest,Md5.prototype.arrayBuffer=function(){this.finalize();var e=new ArrayBuffer(16),o=new Uint32Array(e);return o[0]=this.h0,o[1]=this.h1,o[2]=this.h2,o[3]=this.h3,e},Md5.prototype.buffer=Md5.prototype.arrayBuffer,Md5.prototype.base64=function(){for(var e,o,r,t="",n=this.array(),i=0;i<15;)e=n[i++],o=n[i++],r=n[i++],t+=BASE64_ENCODE_CHAR[e>>>2]+BASE64_ENCODE_CHAR[(e<<4|o>>>4)&63]+BASE64_ENCODE_CHAR[(o<<2|r>>>6)&63]+BASE64_ENCODE_CHAR[r&63];return e=n[i],t+=BASE64_ENCODE_CHAR[e>>>2]+BASE64_ENCODE_CHAR[e<<4&63]+"==",t};var exports=createMethod();COMMON_JS?module.exports=exports:root.md5=exports})()})(md5$1);const md5=md5Exports,login_vue_vue_type_style_index_0_scoped_2ae1d19d_lang="",_sfc_main=defineComponent({setup(){const e=useRouter(),o=reactive({phonenumber:"2340",password:"123456",remember:!0}),r=i=>{n()},t=i=>{console.log("Failed:",i)},n=async()=>{const i=await Api.loginbyaccount({accountno:o.phonenumber,password:md5(o.password),systemclient:"web"});i.code===1&&(sessionStorage.setItem("a_list",JSON.stringify(i.account_list)),e.push({path:"/home"}))};return{formState:o,onFinish:r,onFinishFailed:t}},mounted(){sessionStorage.clear()}}),_withScopeId=e=>(pushScopeId("data-v-2ae1d19d"),e=e(),popScopeId(),e),_hoisted_1={class:"conatiner"},_hoisted_2=_withScopeId(()=>createBaseVNode("div",{class:"login-wrap"},null,-1)),_hoisted_3={class:"login-form"},_hoisted_4=_withScopeId(()=>createBaseVNode("p",{class:"color-info"},"欢迎登录",-1)),_hoisted_5=_withScopeId(()=>createBaseVNode("p",{class:"title"},"楚楚E-订单系统",-1)),_hoisted_6=_withScopeId(()=>createBaseVNode("span",{style:{color:"#999","font-weight":"300"}},"其他登录方式",-1)),_hoisted_7=_withScopeId(()=>createBaseVNode("span",null,"敬请期待",-1));function _sfc_render(e,o,r,t,n,i){const s=resolveComponent("a-input"),a=resolveComponent("a-form-item"),h=resolveComponent("a-input-password"),c=resolveComponent("a-checkbox"),d=resolveComponent("a-button"),l=resolveComponent("a-form"),u=resolveComponent("el-divider");return openBlock(),createElementBlock("div",_hoisted_1,[_hoisted_2,createBaseVNode("div",_hoisted_3,[_hoisted_4,_hoisted_5,createVNode(l,{model:e.formState,name:"basic",layout:"vertical",autocomplete:"off",onFinish:e.onFinish,onFinishFailed:e.onFinishFailed},{default:withCtx(()=>[createVNode(a,{label:"账号",name:"phonenumber",rules:[{required:!0,message:"Please input your phonenumber!"}]},{default:withCtx(()=>[createVNode(s,{value:e.formState.phonenumber,"onUpdate:value":o[0]||(o[0]=f=>e.formState.phonenumber=f),size:"large"},null,8,["value"])]),_:1}),createVNode(a,{label:"密码",name:"password",rules:[{required:!0,message:"Please input your password!"}]},{default:withCtx(()=>[createVNode(h,{value:e.formState.password,"onUpdate:value":o[1]||(o[1]=f=>e.formState.password=f),size:"large"},null,8,["value"])]),_:1}),createVNode(a,{name:"remember"},{default:withCtx(()=>[createVNode(c,{checked:e.formState.remember,"onUpdate:checked":o[2]||(o[2]=f=>e.formState.remember=f)},{default:withCtx(()=>[createTextVNode("记住密码")]),_:1},8,["checked"])]),_:1}),createVNode(a,null,{default:withCtx(()=>[createVNode(d,{type:"primary","html-type":"submit",size:"large",block:""},{default:withCtx(()=>[createTextVNode("登录")]),_:1})]),_:1})]),_:1},8,["model","onFinish","onFinishFailed"]),createVNode(u,null,{default:withCtx(()=>[_hoisted_6]),_:1}),_hoisted_7])])}const login=_export_sfc(_sfc_main,[["render",_sfc_render],["__scopeId","data-v-2ae1d19d"]]);export{login as default};
|