1 line
7.5 KiB
JavaScript
1 line
7.5 KiB
JavaScript
|
(window.webpackJsonp=window.webpackJsonp||[]).push([[22,9],{496:function(e,t,n){"use strict";n.r(t);n(300),n(87),n(63),n(12),n(47),n(39),n(88);var r=6e4,o=36e5,c=24*o;function d(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,n=(time=e,{days:Math.floor(time/c),hours:d(Math.floor(time%c/o)),minutes:d(Math.floor(time%o/r)),seconds:d(Math.floor(time%r/1e3))});this.formateTime=function(e,t){var n=t.days,r=t.hours,o=t.minutes,c=t.seconds;return-1!==e.indexOf("dd")&&(e=e.replace("dd",n)),-1!==e.indexOf("hh")&&(e=e.replace("hh",d(r))),-1!==e.indexOf("mm")&&(e=e.replace("mm",d(o))),-1!==e.indexOf("ss")&&(e=e.replace("ss",d(c))),e}(t,n),this.$emit("change",n),0===e&&(this.pause(),this.$emit("finish"))}}},f=n(9),component=Object(f.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},501:function(e,t,n){"use strict";n.d(t,"d",(function(){return r})),n.d(t,"e",(function(){return o})),n.d(t,"c",(function(){return c})),n.d(t,"b",(function(){return d})),n.d(t,"a",(function(){return l}));var r=5,o={SMS:0,ACCOUNT:1},c={REGISTER:"ZCYZ",FINDPWD:"ZHMM",LOGIN:"YZMDL",SJSQYZ:"SJSQYZ",CHANGE_MOBILE:"BGSJHM",BIND:"BDSJHM"},d={NONE:"",SEX:"sex",NICKNAME:"nickname",AVATAR:"avatar",MOBILE:"mobile"},l={NORMAL:"normal",HANDLING:"apply",FINISH:"finish"}},582:function(e,t,n){var content=n(650);content.__esModule&&(content=content.default),"string"==typeof content&&(content=[[e.i,content,""]]),content.locals&&(e.exports=content.locals);(0,n(18).default)("a27fb3d4",content,!0,{sourceMap:!1})},649:function(e,t,n){"use strict";n(582)},650:function(e,t,n){var r=n(17)((function(i){return i[1]}));r.push([e.i,".forget-pwd-container[data-v-11daf7c4]{flex:1}.forget-pwd-container .forget-pwd-box[data-v-11daf7c4]{border:1px solid #e5e5e5;padding-bottom:55px;padding-top:40px;width:880px}.forget-pwd-container .forget-pwd-box .forget-pwd-title[data-v-11daf7c4]{font-size:24px}.forget-pwd-container .forget-pwd-box .form-box .forget-form-item[data-v-11daf7c4]{margin-top:24px}.forget-pwd-container .forget-pwd-box .form-box .form-input[data-v-11daf7c4]{width:400px}.forget-pwd-container .forget-pwd-box .form-box .verify-code-img[data-v-11daf7c4]{background-color:red;height:40px;margin-left:26px;width:100px}.forget-pwd-container .forget-pwd-box .form-box .sms-btn[data-v-11daf7c4]{height:40px;margin-left:16px;width:120px}",""]),r.locals={},e.exports=r},723:function(e,t,n){"use strict";n.r(t);var r=n(8),o=(n(56),n(87),n(39),n(88),n(501)),c={head:function(){return{title:this.$store.getters.headTitle,link:[{rel:"icon",type:"image/x-icon",href:this.$store.getters.favicon}]}},layout:"main",components:{CountDown:n(496).default},data:function(){return{telephone:"",smsCode:"",canSend:!0,password:"",againPwd:""}},methods:{forgetFun:function(){var e=this;return Object(r.a)(regeneratorRuntime.mark((function t(){var time;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e.telephone){t.next=5;break}return e.$mess
|