1 line
8.0 KiB
JavaScript
1 line
8.0 KiB
JavaScript
|
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-users-retrievePassword-index"],{"1ab3":function(t,e,a){"use strict";a("6a54"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n={data:function(){return{disabled:!1,text:"获取验证码"}},methods:{sendCode:function(){var t=this;if(!this.disabled){this.disabled=!0;var e=60;this.text="剩余 "+e+"s";var a=setInterval((function(){e-=1,e<0&&clearInterval(a),t.text="剩余 "+e+"s",t.text<"剩余 0s"&&(t.disabled=!1,t.text="重新获取")}),1e3)}}}};e.default=n},"2ec5":function(t,e,a){"use strict";t.exports=function(t,e){return e||(e={}),t=t&&t.__esModule?t.default:t,"string"!==typeof t?t:(/^['"].*['"]$/.test(t)&&(t=t.slice(1,-1)),e.hash&&(t+=e.hash),/["'() \t\n]/.test(t)||e.needQuotes?'"'.concat(t.replace(/"/g,'\\"').replace(/\n/g,"\\n"),'"'):t)}},"7be5":function(t,e,a){var n=a("df10");n.__esModule&&(n=n.default),"string"===typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var i=a("967d").default;i("82078b2c",n,!0,{sourceMap:!1,shadowMode:!1})},8685:function(t,e,a){"use strict";a.r(e);var n=a("a53c"),i=a.n(n);for(var c in n)["default"].indexOf(c)<0&&function(t){a.d(e,t,(function(){return n[t]}))}(c);e["default"]=i.a},a53c:function(t,e,a){"use strict";a("6a54");var n=a("f5bd").default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,a("5c47"),a("0506");var i=n(a("2634")),c=n(a("2fdc")),s=a("8f59"),r=n(a("1ab3")),o=a("672a"),u=a("96e0"),l=a("aa10"),d=n(a("283c")),p=(getApp(),{name:"RetrievePassword",components:{Verify:d.default},mixins:[r.default],data:function(){return{account:"",password:"",confirm_pwd:"",captcha:"",codeKey:"",codeUrl:"",codeVal:"",isShowCode:!1,domain:l.HTTP_REQUEST_URL}},computed:(0,u.configMap)(["login_logo"],(0,s.mapGetters)(["viewColor"])),onReady:function(){},mounted:function(){},methods:{back:function(){uni.navigateBack()},again:function(){this.codeUrl=VUE_APP_API_URL+"/captcha?"+this.keyCode+Date.parse(new Date)},code:function(t){var e=this;return(0,c.default)((0,i.default)().mark((function a(){var n;return(0,i.default)().wrap((function(a){while(1)switch(a.prev=a.next){case 0:if(n=e,n.account){a.next=3;break}return a.abrupt("return",n.$util.Tips({title:"请填写手机号码"}));case 3:if(/^1(3|4|5|7|8|9|6)\d{9}$/i.test(n.account)){a.next=5;break}return a.abrupt("return",n.$util.Tips({title:"请输入正确的手机号码"}));case 5:return a.next=7,(0,o.registerVerify)({phone:n.account,type:"change_pwd",captchaType:"blockPuzzle",captchaVerification:t.captchaVerification}).then((function(t){n.$util.Tips({title:t.message}),n.sendCode()})).catch((function(t){n.$util.Tips({title:t})}));case 7:case"end":return a.stop()}}),a)})))()},getcaptcha:function(){var t=this;(0,o.getCaptcha)().then((function(e){t.codeUrl=e.data.captcha,t.codeVal=e.data.code,t.codeKey=e.data.key})),t.isShowCode=!0},registerReset:function(){var t=this;return(0,c.default)((0,i.default)().mark((function e(){var a;return(0,i.default)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(a=t,a.account){e.next=3;break}return e.abrupt("return",a.$util.Tips({title:"请填写手机号码"}));case 3:if(/^1(3|4|5|7|8|9|6)\d{9}$/i.test(a.account)){e.next=5;break}return e.abrupt("return",a.$util.Tips({title:"请输入正确的手机号码"}));case 5:if("123456"!=a.password){e.next=7;break}return e.abrupt("return",a.$util.Tips({title:"您输入的密码过于简单"}));case 7:if(a.password==a.confirm_pwd){e.next=9;break}return e.abrupt("return",a.$util.Tips({title:"两次密码不一致"}));case 9:if(a.captcha){e.next=11;break}return e.abrupt("return",a.$util.Tips({title:"请填写验证码"}));case 11:(0,o.registerForget)({phone:a.account,sms_code:a.captcha,pwd:a.password,confirm_pwd:a.confirm_pwd}).then((function(t){a.$util.Tips({title:t.message},{tab:3})})).catch((function(t){a.$util.Tips({title:t})}));case 12:case"end":return e.stop()}}),e)})))()},success:function(t){this.$refs.verify.hide(),this.code(t)},handleVerify:function(){this.$refs.verify.show()}}});e.default=p},d0d0:function(t,e,a){"use strict";a.r(e);var n=a("d61b")
|