glhcp/server/public/pc/_nuxt/368d8ef.js

1 line
7.6 KiB
JavaScript
Raw Normal View History

2023-09-28 03:22:06 +00:00
(window.webpackJsonp=window.webpackJsonp||[]).push([[24,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 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,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"))}}},m=r(9),component=Object(m.a)(d,(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 d}));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"},d={NORMAL:"normal",HANDLING:"apply",FINISH:"finish"}},584:function(e,t,r){var content=r(654);content.__esModule&&(content=content.default),"string"==typeof content&&(content=[[e.i,content,""]]),content.locals&&(e.exports=content.locals);(0,r(18).default)("62e62b82",content,!0,{sourceMap:!1})},653:function(e,t,r){"use strict";r(584)},654:function(e,t,r){var n=r(17)((function(i){return i[1]}));n.push([e.i,".register-container[data-v-42129c30]{flex:1}.register-container .register-box[data-v-42129c30]{border:1px solid #e5e5e5;padding-bottom:55px;padding-top:40px;width:880px}.register-container .register-box .register-title[data-v-42129c30]{font-size:24px}.register-container .register-box .form-box .register-form-item[data-v-42129c30]{margin-top:24px}.register-container .register-box .form-box .register-form-item .form-input[data-v-42129c30]{width:400px}.register-container .register-box .form-box .register-form-item .verify-code-img[data-v-42129c30]{background-color:red;height:40px;margin-left:26px;width:100px}.register-container .register-box .form-box .register-form-item .sms-btn[data-v-42129c30]{height:40px;margin-left:16px;width:120px}",""]),n.locals={},e.exports=n},725:function(e,t,r){"use strict";r.r(t);var n=r(8),o=(r(39),r(88),r(56),r(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:r(496).default},data:function(){return{telephone:"",smsCode:"",password:"",againPwd:"",canSend:!0}},computed:{registerSetting:function(){return this.$store.state.config.register_setting}},methods:{sendSMSCode:function(){var e=this;return Object(n.a)(regeneratorRuntime.mark((function t(){var r;return reg