1 line
12 KiB
JavaScript
1 line
12 KiB
JavaScript
|
(window.webpackJsonp=window.webpackJsonp||[]).push([[44,9],{496:function(e,t,r){"use strict";r.r(t);r(300),r(87),r(63),r(12),r(47),r(39),r(88);var n=6e4,o=36e5,c=24*o;function l(e){return(0+e.toString()).slice(-2)}var m={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:l(Math.floor(time%c/o)),minutes:l(Math.floor(time%o/n)),seconds:l(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",l(n))),-1!==e.indexOf("mm")&&(e=e.replace("mm",l(o))),-1!==e.indexOf("ss")&&(e=e.replace("ss",l(c))),e}(t,r),this.$emit("change",r),0===e&&(this.pause(),this.$emit("finish"))}}},d=r(9),component=Object(d.a)(m,(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},501: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 l})),r.d(t,"a",(function(){return m}));var n=5,o={SMS:0,ACCOUNT:1},c={REGISTER:"ZCYZ",FINDPWD:"ZHMM",LOGIN:"YZMDL",SJSQYZ:"SJSQYZ",CHANGE_MOBILE:"BGSJHM",BIND:"BDSJHM"},l={NONE:"",SEX:"sex",NICKNAME:"nickname",AVATAR:"avatar",MOBILE:"mobile"},m={NORMAL:"normal",HANDLING:"apply",FINISH:"finish"}},580:function(e,t,r){var content=r(645);content.__esModule&&(content=content.default),"string"==typeof content&&(content=[[e.i,content,""]]),content.locals&&(e.exports=content.locals);(0,r(18).default)("0a4db450",content,!0,{sourceMap:!1})},644:function(e,t,r){"use strict";r(580)},645:function(e,t,r){var n=r(17)((function(i){return i[1]}));n.push([e.i,".store{width:100%}.store .main{margin:0 auto;padding-bottom:52px;width:660px}.store .main .title{color:#101010;font-size:18px;padding:16px 0;text-align:center}.store .main ::v-deep .el-input__inner{border-radius:0!important}.store .main .avatar-uploader .el-upload{border:1px solid #d9d9d9;border-radius:0;color:#101010;cursor:pointer;height:100px;line-height:0px;overflow:hidden;padding:20px 0;position:relative;width:100px}.store .main .avatar-uploader .el-upload:hover{border-color:#ff2c3c}.store .main .avatar-uploader-icon{color:#8c939d;font-size:28px;text-align:center}.store .main .avatar{display:block;height:100px;width:100px}",""]),n.locals={},e.exports=n},718:function(e,t,r){"use strict";r.r(t);r(30);var n=r(10),o=r(8),c=(r(39),r(64),r(24),r(20),r(23),r(12),r(31),r(21),r(32),r(56),r(195)),l=r(501);function m(object,e){var t=Object.keys(object);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(object);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(object,e).enumerable}))),t.push.apply(t,r)}return t}function d(e){for(var i=1;i<arguments.length;i++){var source=null!=arguments[i]?arguments[i]:{};i%2?m(Object(source),!0).forEach((function(t){Object(n.a)(e,t,source[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(source)):m(Obje
|