canyin-project/ybcy/views/channel/index20240524/static/js/chunk-2c6857a1.fa4c9a55.js

1 line
4.9 KiB
JavaScript
Raw Permalink Normal View History

2024-11-01 16:07:54 +08:00
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2c6857a1"],{"2e79":function(e,t,r){"use strict";var a=r("c5d6"),o=r.n(a);o.a},"76b7":function(e,t,r){},c1d14:function(e,t,r){"use strict";r.r(t);var a=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"ba_f outerLayer"},[r("div",{staticClass:"sellback",attrs:{id:"box"}},[r("div",{staticClass:"login_wrap"},[r("div",{staticClass:"warp_content"},[e._m(0),r("el-form",{ref:"ruleForm",staticClass:"demo-ruleForm",attrs:{model:e.ruleForm,"status-icon":"",rules:e.rules,"label-width":"0"}},[r("el-form-item",{attrs:{prop:"userName"}},[r("el-input",{staticStyle:{width:"300px"},attrs:{"prefix-icon":"iconfont iconzhanghao mar_l5",autocomplete:"off",placeholder:"请输入登录账号"},model:{value:e.ruleForm.userName,callback:function(t){e.$set(e.ruleForm,"userName",t)},expression:"ruleForm.userName"}})],1),r("el-form-item",{attrs:{prop:"passWord"}},[r("el-input",{staticStyle:{width:"300px"},attrs:{"prefix-icon":"iconfont iconmima mar_l5",autocomplete:"off",type:"password",placeholder:"请输入密码"},model:{value:e.ruleForm.passWord,callback:function(t){e.$set(e.ruleForm,"passWord",t)},expression:"ruleForm.passWord"}})],1),r("el-form-item",{attrs:{prop:"yzm"}},[r("el-input",{staticClass:"yzm",staticStyle:{width:"300px"},attrs:{size:"large","prefix-icon":"iconfont iconmima mar_l5",autocomplete:"off",placeholder:"请输入图形验证码"},model:{value:e.ruleForm.yzm,callback:function(t){e.$set(e.ruleForm,"yzm",t)},expression:"ruleForm.yzm"}},[r("el-button",{attrs:{slot:"append"},slot:"append"},[r("canvas",{attrs:{id:"canvas",width:"120",height:"40"},on:{click:e.getYzm}})])],1)],1),r("el-form-item",[r("el-button",{staticStyle:{width:"300px"},attrs:{type:"primary"},nativeOn:{click:function(t){return t.preventDefault(),e.loginEnter(t)},keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.loginEnter("loginData")}}},[e._v("登录")])],1)],1)],1)])])])},o=[function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"title"},[r("h3",[e._v("商家管理后台登录")]),r("span",{staticClass:"txt"})])}],n=(r("96cf"),r("1da1")),s=r("5530"),i=r("294d");function l(e){var t=document.getElementById("canvas"),r=t.getContext("2d");function a(){var e=Math.floor(256*Math.random()),t=Math.floor(256*Math.random()),r=Math.floor(256*Math.random());return"rgb("+e+","+t+","+r+")"}function o(){r.strokeRect(0,15,120,40);for(var e,t=["0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f"],o=[],n=0;n<4;n++){var s=20+20*n,i=20+10*Math.random(),l=Math.floor(Math.random()*t.length),c=t[l];r.font="bold 20px 微软雅黑",r.fillStyle=a(),r.translate(s,i);var u=90*Math.random()*Math.PI/180;r.rotate(u),r.fillText(c,0,0),r.rotate(-u),r.translate(-s,-i),o[n]=c}e=o[0]+o[1]+o[2]+o[3];for(n=0;n<8;n++)r.beginPath(),r.moveTo(120*Math.random(),40*Math.random()),r.lineTo(120*Math.random(),40*Math.random()),r.strokeStyle=a(),r.stroke();for(n=0;n<20;n++){r.beginPath();s=120*Math.random(),i=40*Math.random();r.moveTo(s,i),r.lineTo(s+1,i+1),r.strokeStyle=a(),r.stroke()}sessionStorage.setItem("yzm",e)}1==e&&o(),t.onclick=function(){r.clearRect(0,0,120,40),o()}}r("76b7");var c=r("2f62"),u={mounted:function(){l(1)},created:function(){var e=this;document.onkeydown=function(t){if(void 0==window.event)var r=t.keyCode;else r=window.event.keyCode;13==r&&e.loginEnter("loginData")}},data:function(){var e=function(e,t,r){if(!t)return r(new Error("账号不能为空"));setTimeout((function(){r()}),1e3)},t=function(e,t,r){""===t?r(new Error("请输入密码")):setTimeout((function(){r()}),1e3)},r=function(e,t,r){""===t?r(new Error("请输入验证码")):setTimeout((function(){r()}),1e3)};return{ruleForm:{userName:"",passWord:"",yzm:""},rules:{userName:[{validator:e,trigger:"blur"}],passWord:[{validator:t,trigger:"blur"}],yzm:[{validator:r,trigger:"blur"}]},graphical:"",canvas:"",context:""}},methods:Object(s["a"])(Object(s["a"])({},Object(c["c"])(["storeMsg"])),{},{getYzm:function(){l()},loginEnter:function(e){var t=t