report-ui/dist/static/js/chunk-12f3.66ed577f.js

1 line
21 KiB
JavaScript
Raw Permalink Normal View History

2023-04-21 15:50:49 +08:00
(window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-12f3"],{"3Xui":function(e,t,i){"use strict";i.r(t);var s=i("GQeE"),o=i.n(s),r=i("14Xm"),n=i.n(r),a=i("D3Ub"),c=i.n(a),h=i("gDS+"),l=i.n(h),p=i("NFKh"),d=i.n(p);function u(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"XwKsGlMcdPMEhR1B",i=d.a.enc.Utf8.parse(t),s=d.a.enc.Utf8.parse(e);return d.a.AES.encrypt(s,i,{mode:d.a.mode.ECB,padding:d.a.pad.Pkcs7}).toString()}function f(e){var t=e.$el.parentNode.offsetWidth||window.offsetWidth,i=e.$el.parentNode.offsetHeight||window.offsetHeight;return{imgWidth:-1!=e.imgSize.width.indexOf("%")?parseInt(this.imgSize.width)/100*t+"px":this.imgSize.width,imgHeight:-1!=e.imgSize.height.indexOf("%")?parseInt(this.imgSize.height)/100*i+"px":this.imgSize.height,barWidth:-1!=e.barSize.width.indexOf("%")?parseInt(this.barSize.width)/100*t+"px":this.barSize.width,barHeight:-1!=e.barSize.height.indexOf("%")?parseInt(this.barSize.height)/100*i+"px":this.barSize.height}}var m=i("4d7F"),g=i.n(m),v=i("vDqi"),y=i.n(v),b=i("XJYT");y.a.defaults.baseURL="http://report.picaiba.com/api/";var w=y.a.create({withCredentials:!1,timeout:6e4,headers:{"Content-Type":"application/json"}});w.interceptors.request.use(function(e){return e},function(e){g.a.reject(e)}),w.interceptors.response.use(function(e){var t=e.data;return 200==t.code?t:"50014"!=t.code?"3100"==t.code||"3101"==t.code?t:(Object(b.Message)({message:t.repMsg||t.message,type:"error",duration:3e3}),t):void Object(b.MessageBox)({message:"当前登录已失效或异地登录,请重新登录",type:"error",duration:3e3}).then(function(){sessionStorage.clear(),localStorage.clear(),window.location.href="/"}).catch(function(e){})},function(e){var t=e.response.code,i=e.response.data,s="";s=200!=t?"服务器内部错误,请联系管理员":"失败原因:"+i.code+"--"+i.repMsg,Object(b.Message)({message:s,type:"error",duration:5e3})});var k=w;function x(e){return k({url:"auth-service/user/captcha/get",method:"post",data:e})}function S(e){return k({url:"auth-service/user/captcha/check",method:"post",data:e})}var C={name:"VerifySlide",props:{captchaType:{type:String},type:{type:String,default:"1"},mode:{type:String,default:"fixed"},vSpace:{type:Number,default:5},explain:{type:String,default:"向右滑动完成验证"},imgSize:{type:Object,default:function(){return{width:"310px",height:"155px"}}},blockSize:{type:Object,default:function(){return{width:"50px",height:"50px"}}},barSize:{type:Object,default:function(){return{width:"310px",height:"40px"}}}},data:function(){return{secretKey:"",passFlag:"",backImgBase:"",blockBackImgBase:"",backToken:"",startMoveTime:"",endMovetime:"",tipsBackColor:"",tipWords:"",text:"",finishText:"",setSize:{imgHeight:0,imgWidth:0,barHeight:0,barWidth:0},top:0,left:0,moveBlockLeft:void 0,leftBarWidth:void 0,moveBlockBackgroundColor:void 0,leftBarBorderColor:"#ddd",iconColor:void 0,iconClass:"icon-right",status:!1,isEnd:!1,showRefresh:!0,transitionLeft:"",transitionWidth:""}},computed:{barArea:function(){return this.$el.querySelector(".verify-bar-area")},resetSize:function(){return f}},methods:{init:function(){var e=this;this.text=this.explain,this.getPictrue(),this.$nextTick(function(){var t=e.resetSize(e);for(var i in t)e.$set(e.setSize,i,t[i]);e.$parent.$emit("ready",e)});var t=this;window.removeEventListener("touchmove",function(e){t.move(e)}),window.removeEventListener("mousemove",function(e){t.move(e)}),window.removeEventListener("touchend",function(){t.end()}),window.removeEventListener("mouseup",function(){t.end()}),window.addEventListener("touchmove",function(e){t.move(e)}),window.addEventListener("mousemove",function(e){t.move(e)}),window.addEventListener("touchend",function(){t.end()}),window.addEventListener("mouseup",function(){t.end()})},start:function(e){if((e=e||window.event).touches)t=e.touches[0].pageX;else var t=e.clientX;this.startLeft=Math.floor(t-this.barArea.getBoundingClientRect().left),this.startMoveTime=+new Date,0==this.isEnd&&(this.text="",this.moveBlockBackgroundColor="#337ab7",this.leftBarBorderColor="#337AB7",this.iconColor=