dggzichahu/public/pc/_nuxt/797f058.js

1 line
8.7 KiB
JavaScript
Executable File
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

(window.webpackJsonp=window.webpackJsonp||[]).push([[20,16],{404:function(e,t,r){"use strict";var n=r(11),o=r(5),c=r(116),d=r(23),l=r(15),f=r(52),m=r(251),h=r(81),w=r(7),v=r(83),x=r(82).f,S=r(42).f,N=r(22).f,C=r(405).trim,y="Number",I=o.Number,_=I.prototype,M=f(v(_))==y,E=function(e){var t,r,n,o,c,d,l,code,f=h(e,!1);if("string"==typeof f&&f.length>2)if(43===(t=(f=C(f)).charCodeAt(0))||45===t){if(88===(r=f.charCodeAt(2))||120===r)return NaN}else if(48===t){switch(f.charCodeAt(1)){case 66:case 98:n=2,o=49;break;case 79:case 111:n=8,o=55;break;default:return+f}for(d=(c=f.slice(2)).length,l=0;l<d;l++)if((code=c.charCodeAt(l))<48||code>o)return NaN;return parseInt(c,n)}return+f};if(c(y,!I(" 0o1")||!I("0b1")||I("+0x1"))){for(var T,k=function(e){var t=arguments.length<1?0:e,r=this;return r instanceof k&&(M?w((function(){_.valueOf.call(r)})):f(r)!=y)?m(new I(E(t)),r,k):E(t)},A=n?x(I):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger,fromString,range".split(","),O=0;A.length>O;O++)l(I,T=A[O])&&!l(k,T)&&N(k,T,S(I,T));k.prototype=_,_.constructor=k,d(o,y,k)}},405:function(e,t,r){var n=r(27),o="["+r(406)+"]",c=RegExp("^"+o+o+"*"),d=RegExp(o+o+"*$"),l=function(e){return function(t){var r=String(n(t));return 1&e&&(r=r.replace(c,"")),2&e&&(r=r.replace(d,"")),r}};e.exports={start:l(1),end:l(2),trim:l(3)}},406:function(e,t){e.exports="\t\n\v\f\r    \u2028\u2029\ufeff"},416: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 d})),r.d(t,"a",(function(){return l}));var n=5,o={SMS:0,ACCOUNT:1},c={REGISTER:"ZCYZ",FINDPWD:"ZHMM",LOGIN:"YZMDL",CHANGE_MOBILE:"BGSJHM",BIND:"BDSJHM"},d={NONE:"",SEX:"sex",NICKNAME:"nickname",AVATAR:"avatar",MOBILE:"mobile"},l={NORMAL:"normal",HANDLING:"apply",FINISH:"finish"}},417:function(e,t,r){"use strict";r.r(t);r(404),r(69),r(53),r(18),r(85),r(68),r(84);var n=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,r=(time=e,{days:Math.floor(time/c),hours:d(Math.floor(time%c/o)),minutes:d(Math.floor(time%o/n)),seconds:d(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",d(n))),-1!==e.indexOf("mm")&&(e=e.replace("mm",d(o))),-1!==e.indexOf("ss")&&(e=e.replace("ss",d(c))),e}(t,r),this.$emit("change",r),0===e&&(this.pause(),this.$emit("finish"))}}},f=r(8),component=Object(f.a)(l,(function(){var e=this,t=e.$createElement,r=e._self._c||t;return e.time>=0?r("div",[r("client-only",[e.isSlot?e._t("default"):r("span",[e._v(e._s(e.formateTime))])],2)],1):e._e()}),[],!1,null,null,null);t.default=component.exports},486:function(e,t,r){var content=r(538);content.__esModule&&(content=content.default),"string"==typeof content&&(content=[[e.i,content,""]]),content.locals&&(e.exports=content.locals);(0,r(14).default)("e3e19aac",content,!0,{sourceMap:!1})},537:function(e,t,r){"use strict";r(486)},538:function(e,t,r){var n=r(13)(!1);n.push([e.i,".forget-pwd-container[data-v-cdb40c40]{flex:1}.forget-pwd-container .forget-pwd-box[data-v-cdb40c40]{padding-top:40px;padding-bottom:55px;width:880px;border:1px solid #e5e5e5}.forget-pwd-container .forget-pwd-box .forget-pwd-title[data-v-cdb40c40]{font-size:24px}.forget-pwd-container .forget-pwd-box .form-box .forget-form-item[data-v-cdb40c40]{margin-top:24px}.forget-pwd-container .forget-pwd-box .form-box .form-input[data-v-cdb40c40]{width:400px}.forget-pwd-container .forget-pwd-box .form-box .verify-code-img[data-v-cdb40c40]{width:100px;height:40px;margin-left:26px;background-color:red}.forget-pwd-container .forget-pwd-box .form-box .sms-btn[data-v-cdb40c40]{margin-left:16px;height:40px;width:120px}",""]),e.exports=n},605:function(e,t,r){"use strict";r.r(t);var n=r(3),o=(r(47),r(69),r(416)),c={head:function(){return{title:this.$store.getters.headTitle,link:[{rel:"icon",type:"image/x-icon",href:this.$store.getters.favicon}]}},layout:"default_layout",components:{CountDown:r(417).default},data:function(){return{telephone:"",smsCode:"",canSend:!0,password:"",againPwd:""}},methods:{forgetFun:function(){var e=this;return Object(n.a)(regeneratorRuntime.mark((function t(){var r,time;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e.telephone){t.next=5;break}return e.$message({message:"请输入手机号码",type:"error"}),t.abrupt("return");case 5:if(e.smsCode){t.next=10;break}return e.$message({message:"请输入验证码",type:"error"}),t.abrupt("return");case 10:if(e.password){t.next=15;break}return e.$message({message:"请输入密码信息",type:"error"}),t.abrupt("return");case 15:if(e.password==e.againPwd){t.next=18;break}return e.$message({message:"两次输入密码不一致",type:"error"}),t.abrupt("return");case 18:return t.next=20,e.$post("login_password/forget",{mobile:e.telephone,code:e.smsCode,password:e.password,repassword:e.againPwd,client:o.d});case 20:1==(r=t.sent).code&&(e.$message({message:r.msg,type:"success"}),time=setTimeout((function(){e.$router.push("/account/login"),clearTimeout(time)}),1e3));case 22:case"end":return t.stop()}}),t)})))()},sendSMSCode:function(){var e=this;return Object(n.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e.telephone){t.next=3;break}return e.$message({message:"请输入手机号码",type:"error"}),t.abrupt("return");case 3:return t.next=5,e.$post("sms/send",{mobile:e.telephone,key:o.c.FINDPWD});case 5:1==t.sent.code&&(e.canSend=!1,e.$message({message:"发送成功",type:"success"}));case 7:case"end":return t.stop()}}),t)})))()}}},d=(r(537),r(8)),component=Object(d.a)(c,(function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"forget-pwd-container column-center"},[r("div",{staticClass:"forget-pwd-box column-center bg-white"},[r("div",{staticClass:"forget-pwd-title"},[e._v("忘记密码")]),e._v(" "),r("el-form",{staticClass:"form-box column"},[r("div",{staticClass:"forget-form-item"},[r("el-input",{staticClass:"form-input",attrs:{placeholder:"请输入手机号码"},model:{value:e.telephone,callback:function(t){e.telephone=t},expression:"telephone"}},[r("i",{staticClass:"el-icon-user",staticStyle:{"font-size":"18px"},attrs:{slot:"prepend"},slot:"prepend"})])],1),e._v(" "),r("div",{staticClass:"forget-form-item row"},[r("el-input",{staticClass:"form-input",staticStyle:{width:"264px"},attrs:{placeholder:"短信验证码"},model:{value:e.smsCode,callback:function(t){e.smsCode=t},expression:"smsCode"}}),e._v(" "),r("el-button",{staticClass:"sms-btn",on:{click:e.sendSMSCode}},[e.canSend?r("div",[e._v("获取验证码")]):r("count-down",{attrs:{time:60,format:"ss秒",autoStart:""},on:{finish:function(t){e.canSend=!0}}})],1)],1),e._v(" "),r("div",{staticClass:"forget-form-item"},[r("el-input",{attrs:{placeholder:"请输入密码 (数字与字母自由组合)","show-password":""},model:{value:e.password,callback:function(t){e.password=t},expression:"password"}},[r("i",{staticClass:"el-icon-more-outline",staticStyle:{"font-size":"18px"},attrs:{slot:"prepend"},slot:"prepend"})])],1),e._v(" "),r("div",{staticClass:"forget-form-item"},[r("el-input",{attrs:{placeholder:"再次输入密码","show-password":""},model:{value:e.againPwd,callback:function(t){e.againPwd=t},expression:"againPwd"}},[r("i",{staticClass:"el-icon-key",staticStyle:{"font-size":"18px"},attrs:{slot:"prepend"},slot:"prepend"})])],1),e._v(" "),r("div",{staticClass:"column",staticStyle:{"margin-top":"46px"}},[r("el-button",{attrs:{type:"primary"},on:{click:e.forgetFun}},[e._v("确定")])],1)])],1)])}),[],!1,null,"cdb40c40",null);t.default=component.exports}}]);