1 line
9.1 KiB
JavaScript
1 line
9.1 KiB
JavaScript
|
|
(window.webpackJsonp=window.webpackJsonp||[]).push([[22,9],{473:function(e,t,r){"use strict";var n=r(14),o=r(4),c=r(5),f=r(141),l=r(24),d=r(18),m=r(290),h=r(54),x=r(104),v=r(289),w=r(3),S=r(105).f,y=r(45).f,N=r(23).f,C=r(474),I=r(475).trim,_="Number",M=o.Number,T=M.prototype,k=o.TypeError,E=c("".slice),O=c("".charCodeAt),R=function(e){var t=v(e,"number");return"bigint"==typeof t?t:A(t)},A=function(e){var t,r,n,o,c,f,l,code,d=v(e,"number");if(x(d))throw k("Cannot convert a Symbol value to a number");if("string"==typeof d&&d.length>2)if(d=I(d),43===(t=O(d,0))||45===t){if(88===(r=O(d,2))||120===r)return NaN}else if(48===t){switch(O(d,1)){case 66:case 98:n=2,o=49;break;case 79:case 111:n=8,o=55;break;default:return+d}for(f=(c=E(d,2)).length,l=0;l<f;l++)if((code=O(c,l))<48||code>o)return NaN;return parseInt(c,n)}return+d};if(f(_,!M(" 0o1")||!M("0b1")||M("+0x1"))){for(var $,D=function(e){var t=arguments.length<1?0:M(R(e)),r=this;return h(T,r)&&w((function(){C(r)}))?m(Object(t),r,D):t},F=n?S(M):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,isFinite,isInteger,isNaN,isSafeInteger,parseFloat,parseInt,fromString,range".split(","),P=0;F.length>P;P++)d(M,$=F[P])&&!d(D,$)&&N(D,$,y(M,$));D.prototype=T,T.constructor=D,l(o,_,D,{constructor:!0})}},474:function(e,t,r){var n=r(5);e.exports=n(1..valueOf)},475:function(e,t,r){var n=r(5),o=r(36),c=r(19),f=r(476),l=n("".replace),d="["+f+"]",m=RegExp("^"+d+d+"*"),h=RegExp(d+d+"*$"),x=function(e){return function(t){var r=c(o(t));return 1&e&&(r=l(r,m,"")),2&e&&(r=l(r,h,"")),r}};e.exports={start:x(1),end:x(2),trim:x(3)}},476:function(e,t){e.exports="\t\n\v\f\r \u2028\u2029\ufeff"},485:function(e,t,r){"use strict";r.r(t);r(473),r(86),r(62),r(12),r(107),r(40),r(106);var n=6e4,o=36e5,c=24*o;function f(e){return(0+e.toString()).slice(-2)}var l={components:{},props:{isSlot:{type:Boolean,default:!1},time:{type:Number,default:0},format:{type:String,default:"hh:mm:ss"},autoStart:{type:Boolean,default:!0}},watch:{time:{immediate:!0,handler:function(e){e&&this.reset()}}},data:function(){return{timeObj:{},formateTime:0}},created:function(){},computed:{},methods:{createTimer:function(e){return setTimeout(e,100)},isSameSecond:function(e,t){return Math.floor(e)===Math.floor(t)},start:function(){this.counting||(this.counting=!0,this.endTime=Date.now()+1e3*this.remain,this.setTimer())},setTimer:function(){var e=this;this.tid=this.createTimer((function(){var t=e.getRemain();e.isSameSecond(t,e.remain)&&0!==t||e.setRemain(t),0!==e.remain&&e.setTimer()}))},getRemain:function(){return Math.max(this.endTime-Date.now(),0)},pause:function(){this.counting=!1,clearTimeout(this.tid)},reset:function(){this.pause(),this.remain=this.time,this.setRemain(this.remain),this.autoStart&&this.start()},setRemain:function(e){var t=this.format;this.remain=e;var time,r=(time=e,{days:Math.floor(time/c),hours:f(Math.floor(time%c/o)),minutes:f(Math.floor(time%o/n)),seconds:f(Math.floor(time%n/1e3))});this.formateTime=function(e,t){var r=t.days,n=t.hours,o=t.minutes,c=t.seconds;return-1!==e.indexOf("dd")&&(e=e.replace("dd",r)),-1!==e.indexOf("hh")&&(e=e.replace("hh",f(n))),-1!==e.indexOf("mm")&&(e=e.replace("mm",f(o))),-1!==e.indexOf("ss")&&(e=e.replace("ss",f(c))),e}(t,r),this.$emit("change",r),0===e&&(this.pause(),this.$emit("finish"))}}},d=r(8),component=Object(d.a)(l,(function(){var e=this,t=e._self._c;return e.time>=0?t("div",[t("client-only",[e.isSlot?e._t("default"):t("span",[e._v(e._s(e.formateTime))])],2)],1):e._e()}),[],!1,null,null,null);t.default=component.exports},490:function(e,t,r){"use strict";r.d(t,"d",(function(){return n})),r.d(t,"e",(function(){return o})),r.d(t,"c",(function(){return c})),r.d(t,"b",(function(){return f})),r.d(t,"a",(function(){return l}));var n=5,o={SMS:0,ACCOUNT:1},c={REGISTER:"ZCYZ",FINDPWD:"ZHMM",LOGIN:"YZMDL",SJSQYZ:"SJSQYZ",CHANGE_MOBILE:"BGSJHM",BIND:"BDSJHM"},f={NONE:"",SEX:"sex",NICKNAME:"nickname",AVATAR:"avatar",MOBILE:"mobile"},l={NORMAL:"normal",HANDLING:"apply",FINISH:"finish"}},573:functi
|