| 1 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-0374bc72"],{"10dd":function(e,t,o){var a=o("3b43"),r=o("5e68").EXISTS,i=o("ce5b"),n=o("98fb").f,l=Function.prototype,s=i(l.toString),c=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,u=i(c.exec),m="name";a&&!r&&n(l,m,{configurable:!0,get:function(){try{return u(c,s(this))[1]}catch(e){return""}}})},"4ffd":function(e,t,o){e.exports=o.p+"img/bg_beswell.390c4dc1.png"},"57d4":function(e,t,o){e.exports=o.p+"img/logo_goallout.f0477b24.png"},"8f13":function(e,t,o){},9452:function(e,t,o){e.exports=o.p+"img/bg_goallout.68e8e421.png"},"9d9e":function(e,t,o){"use strict";o("8f13")},a55b:function(e,t,o){"use strict";o.r(t);var a=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{style:e.isGoAllOut?{backgroundImage:"url("+e.goAllOutBc+")"}:{backgroundImage:"url("+e.besWellBc+")"}},[a("el-container",[a("el-header"),a("el-main",[a("el-card",{staticClass:"box-card"},[e.isGoAllOut?a("div",[a("h5",{staticClass:"title"},[a("img",{attrs:{src:o("57d4"),alt:""}})]),a("span",{staticClass:"subtitle"},[e._v("小飞龙场馆管理系统")])]):a("div",[a("h5",{staticClass:"title"},[a("img",{attrs:{src:o("b62b"),alt:""}})]),a("span",{staticClass:"subtitle"},[e._v("运动健身场馆管理系统")])]),a("el-form",{ref:"form",attrs:{model:e.form,"label-width":"0px"}},[a("el-form-item",{attrs:{label:""}},[a("el-input",{attrs:{placeholder:"用户名"},model:{value:e.form.name,callback:function(t){e.$set(e.form,"name",t)},expression:"form.name"}})],1),a("el-form-item",{attrs:{label:""}},[a("el-input",{attrs:{placeholder:"密码",type:"password"},model:{value:e.form.pwd,callback:function(t){e.$set(e.form,"pwd",t)},expression:"form.pwd"}})],1),a("el-form-item",{attrs:{label:""}},[a("el-input",{attrs:{placeholder:"验证码"},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.onSubmit.apply(null,arguments)}},model:{value:e.form.valid,callback:function(t){e.$set(e.form,"valid",t)},expression:"form.valid"}}),a("img",{attrs:{id:"validImg",src:e.valImgSrc,alt:"",width:"100px",height:"42px",title:"看不清?刷一下试试!"},on:{click:e.getGenVerifyPic}})],1),a("br"),a("br"),a("el-form-item",[a("el-button",{attrs:{type:"primary"},on:{click:e.onSubmit}},[e._v("登陆")])],1),a("el-form-item",[a("a",{attrs:{href:"https://beian.miit.gov.cn/",target:"_blank"}},[e._v("鲁ICP备2020039388号-1")])])],1)],1)],1),a("el-footer")],1)],1)},r=[],i=(o("10dd"),o("b8a1")),n=(o("379d"),o("daf0")),l={data:function(){return{besWellBc:o("4ffd"),goAllOutBc:o("9452"),isGoAllOut:getRunVersion(),form:{name:"",pwd:"",valid:"",picId:""},valImgSrc:"",valImgId:"",overtime:"",userLevel:"",userLevelText:""}},mounted:function(){this.overtime=new Date,this.getGenVerifyPic(),1==this.$route.query.status&&(this.changeValImg(),this.overtime=new Date),document.body.clientWidth<1024&&this.$message.warning("请横屏使用本系统")},methods:{getGenVerifyPic:function(){var e=this,t={token:localStorage.token,width:100,height:42,noiseCount:10,length:4,source:123456789},o=n.stringify(t);Object(i["Xc"])(o).then((function(t){var o=t;e.valImgSrc=o.Pic,e.valImgId=o.Id,e.form.picId=o.Id}))},changeValImg:function(){this.getGenVerifyPic()},onSubmit:function(){this.pwdLoginBtn()},pwdLoginBtn:function(){var e=this,t=this.form.name,o=this.form.pwd,a=this.form.valid;e.overtime=new Date,globalValid(t,2,17,"用户名",e)&&globalValid(o,5,17,"密码",e)&&globalValid(a,3,5,"验证码",e)&&this.loginInfo()},getManagerSelfQuery:function(){var e=this,t={token:localStorage.token},o=n.stringify(t);Object(i["id"])(o).then((function(t){var o=t;if(0==o.Code)switch(e.userLevelText=o.Rs.Role.Name,e.userLevel=o.Rs.Role.Id,localStorage.ShopId=o.Rs.ShopId,localStorage.SuperShopId=o.Rs.Shop.SuperShop,localStorage.ShopName=o.Rs.Shop.ShopName,parseInt(e.userLevel)){case 1:e.$router.push({path:"/"});break;case 2:e.$router.push({path:"/shopManage"});break;case 3:e.$router.push({path:"/"});break;case 4:e.$router.push({path:"/"});break}else{if(1010==o.Code)return e.$message.error(o.Memo+" 错误码:"+o.Code),e.$router.push({path:"/login",query:{status:1}}),!1;e.$message.error(o.Memo+" 错误码:"+o.Code)}}))},loginInfo:function(){var e=this,t=this,o=(headapi,this.form.name),a=this.form.pwd,r=this.form.valid,l=new Date,s=l-t.overtime,c=120;if(s>1e3*c)return t.changeValImg(),t.$message.error("验证码已超时,请重新输入"),!1;var u={verifyName:o,verifyCode:a,picCode:r,picId:this.form.picId,channel:2},m=n.stringify(u);Object(i["ze"])(m).then((function(a){0==a.Code?(t.res=a.Rs,localStorage.userName=o,localStorage.token=a.Rs.token,e.getManagerSelfQuery()):10005==a.Code?(t.$refs.userpwd.value="",t.$notify({title:"警告",message:"密码错误,请重新输入",type:"warning"})):(t.$notify({title:"警告",message:a.Memo+",错误代码:"+a.Code,type:"warning"}),t.form.valid="",t.changeValImg())}))}}},s=l,c=(o("9d9e"),o("cba8")),u=Object(c["a"])(s,a,r,!1,null,"060771e4",null);t["default"]=u.exports},b62b:function(e,t,o){e.exports=o.p+"img/logo_beswell.b27dfeab.png"}}]);
|