1 line
16 KiB
JavaScript
1 line
16 KiB
JavaScript
|
(window.webpackJsonp=window.webpackJsonp||[]).push([[22,9],{439:function(e,t,o){"use strict";var n=o(18),r=o(2),l=o(3),c=o(137),d=o(27),f=o(19),m=o(273),h=o(54),v=o(136),x=o(272),w=o(5),k=o(97).f,y=o(45).f,S=o(25).f,C=o(440),_=o(441).trim,O="Number",N=r.Number,T=N.prototype,I=r.TypeError,E=l("".slice),L=l("".charCodeAt),R=function(e){var t=x(e,"number");return"bigint"==typeof t?t:M(t)},M=function(e){var t,o,n,r,l,c,d,code,f=x(e,"number");if(v(f))throw I("Cannot convert a Symbol value to a number");if("string"==typeof f&&f.length>2)if(f=_(f),43===(t=L(f,0))||45===t){if(88===(o=L(f,2))||120===o)return NaN}else if(48===t){switch(L(f,1)){case 66:case 98:n=2,r=49;break;case 79:case 111:n=8,r=55;break;default:return+f}for(c=(l=E(f,2)).length,d=0;d<c;d++)if((code=L(l,d))<48||code>r)return NaN;return parseInt(l,n)}return+f};if(c(O,!N(" 0o1")||!N("0b1")||N("+0x1"))){for(var j,A=function(e){var t=arguments.length<1?0:N(R(e)),o=this;return h(T,o)&&w((function(){C(o)}))?m(Object(t),o,A):t},$=n?k(N):"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(","),D=0;$.length>D;D++)f(N,j=$[D])&&!f(A,j)&&S(A,j,y(N,j));A.prototype=T,T.constructor=A,d(r,O,A)}},440:function(e,t,o){var n=o(3);e.exports=n(1..valueOf)},441:function(e,t,o){var n=o(3),r=o(33),l=o(17),c=o(442),d=n("".replace),f="["+c+"]",m=RegExp("^"+f+f+"*"),h=RegExp(f+f+"*$"),v=function(e){return function(t){var o=l(r(t));return 1&e&&(o=d(o,m,"")),2&e&&(o=d(o,h,"")),o}};e.exports={start:v(1),end:v(2),trim:v(3)}},442:function(e,t){e.exports="\t\n\v\f\r \u2028\u2029\ufeff"},451:function(e,t,o){"use strict";o.r(t);o(439),o(81),o(61),o(11),o(99),o(39),o(98);var n=6e4,r=36e5,l=24*r;function c(e){return(0+e.toString()).slice(-2)}var d={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,o=(time=e,{days:Math.floor(time/l),hours:c(Math.floor(time%l/r)),minutes:c(Math.floor(time%r/n)),seconds:c(Math.floor(time%n/1e3))});this.formateTime=function(e,t){var o=t.days,n=t.hours,r=t.minutes,l=t.seconds;return-1!==e.indexOf("dd")&&(e=e.replace("dd",o)),-1!==e.indexOf("hh")&&(e=e.replace("hh",c(n))),-1!==e.indexOf("mm")&&(e=e.replace("mm",c(r))),-1!==e.indexOf("ss")&&(e=e.replace("ss",c(l))),e}(t,o),this.$emit("change",o),0===e&&(this.pause(),this.$emit("finish"))}}},f=o(9),component=Object(f.a)(d,(function(){var e=this,t=e.$createElement,o=e._self._c||t;return e.time>=0?o("div",[o("client-only",[e.isSlot?e._t("default"):o("span",[e._v(e._s(e.formateTime))])],2)],1):e._e()}),[],!1,null,null,null);t.default=component.exports},456:function(e,t,o){"use strict";o.d(t,"d",(function(){return n})),o.d(t,"e",(function(){return r})),o.d(t,"c",(function(){return l})),o.d(t,"b",(function(){return c})),o.d(t,"a",(function(){return d}));var n=5,r={SMS:0,ACCOUNT:1},l={REGISTER:"ZCYZ",FINDPWD:"ZHMM",LOGIN:"YZMDL",SJSQYZ:"SJSQYZ",CHANGE_MOBILE:"BGSJHM",BIND:"BDSJHM"},c={NONE:"",SEX:"sex",NICKNAME:"nickname",AVATAR:"avatar",MOBILE:"mobile"},d={NORMAL:"normal",HANDLING:"apply",FINISH:"finish"}},535:func
|