You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
1 line
25 KiB
1 line
25 KiB
1 year ago
|
(window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-13a15aee"],{1148:function(e,t,i){"use strict";var n=i("5926"),o=i("577e"),s=i("1d80"),r=RangeError;e.exports=function(e){var t=o(s(this)),i="",a=n(e);if(a<0||a===1/0)throw new r("Wrong number of repetitions");for(;0<a;(a>>>=1)&&(t+=t))1&a&&(i+=t);return i}},"1c40":function(e,t,i){"use strict";i("34cfa")},"318e":function(e,t,i){"use strict";i.r(t);var n=i("5530"),o=i("c7eb"),s=i("1da1"),r=(i("b0c0"),i("14d9"),i("d3b7"),i("159b"),i("5723")),a=i("42e3"),c=i("c276"),h=(i("7daa"),i("a9e3"),i("25f0"),i("a15b"),i("ac1f"),i("5319"),i("e9c4"),i("b680"),i("3452")),l=i.n(h);function u(e,t){return t=l.a.enc.Utf8.parse(1<arguments.length&&void 0!==t?t:"XwKsGlMcdPMEhR1B"),e=l.a.enc.Utf8.parse(e),l.a.AES.encrypt(e,t,{mode:l.a.mode.ECB,padding:l.a.pad.Pkcs7}).toString()}function d(e){var t=e.$el.parentNode.offsetWidth||window.offsetWidth,i=e.$el.parentNode.offsetHeight||window.offsetHeight,n=-1!=e.imgSize.width.indexOf("%")?parseInt(this.imgSize.width)/100*t+"px":this.imgSize.width,o=-1!=e.imgSize.height.indexOf("%")?parseInt(this.imgSize.height)/100*i+"px":this.imgSize.height;t=-1!=e.barSize.width.indexOf("%")?parseInt(this.barSize.width)/100*t+"px":this.barSize.width,e=-1!=e.barSize.height.indexOf("%")?parseInt(this.barSize.height)/100*i+"px":this.barSize.height;return{imgWidth:n,imgHeight:o,barWidth:t,barHeight:e}}var f=i("2934"),p=(h={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"}}},defaultImg:{type:String,default:""}},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 d}},watch:{type:{immediate:!0,handler:function(){this.init()}}},mounted:function(){this.$el.onselectstart=function(){return!1}},methods:{init:function(){var e=this,t=(this.text=this.explain,this.getPictrue(),this.$nextTick((function(){var t,i=e.resetSize(e);for(t in i)e.$set(e.setSize,t,i[t]);e.$parent.$emit("ready",e)})),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){var t;t=(e=e||window.event).touches?e.touches[0].pageX: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="#fff",e.stopPropagation(),this.status=!0)},move:function(e){e=e||window.event,this.status&&0==this.isEnd&&((e=(e=(e.touches?e.touches[0].pageX:e.clientX)-this.barArea.getBoundingClientRect().left)>=this.barArea.offsetWidth-parseInt(parseInt(this.blockSize.width)/2)-2?this.barArea.offsetWidth-parseInt(parseInt(this.blockSize.width)/2)-2:e)<=0&&(e=parseInt(parseInt(this.blockSize.width)/2)),this.moveBlockLeft=e-this.startLeft+"px",this.leftBarWidth=e-this.startLeft+"px")},end:function(){var e,t,i=this,n=(this.endMove
|