You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
high-mini/unpackage/dist/build/mp-weixin/pages/login/resetpasswd.js

1 line
2.9 KiB

(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/login/resetpasswd"],{"21d2":function(t,e,n){"use strict";(function(t){n("185d");o(n("66fd"));var e=o(n("3666"));function o(t){return t&&t.__esModule?t:{default:t}}t(e.default)}).call(this,n("543d")["createPage"])},3666:function(t,e,n){"use strict";n.r(e);var o=n("4dbc"),i=n("c8ea");for(var a in i)"default"!==a&&function(t){n.d(e,t,(function(){return i[t]}))}(a);n("6e99");var s,r=n("f0c5"),u=Object(r["a"])(i["default"],o["b"],o["c"],!1,null,null,null,!1,o["a"],s);e["default"]=u.exports},"4dbc":function(t,e,n){"use strict";var o;n.d(e,"b",(function(){return i})),n.d(e,"c",(function(){return a})),n.d(e,"a",(function(){return o}));var i=function(){var t=this,e=t.$createElement;t._self._c},a=[]},"6e99":function(t,e,n){"use strict";var o=n("738f"),i=n.n(o);i.a},"738f":function(t,e,n){},ad26:function(t,e,n){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=i(n("cd20"));function i(t){return t&&t.__esModule?t:{default:t}}var a={data:function(){return{phoneNumber:"",code:"",passwd:"",getCodeText:"获取验证码",getCodeBtnColor:"#ffffff",getCodeisWaiting:!1}},onLoad:function(){},methods:{Timer:function(){},getCode:function(){var e=this;if(!this.getCodeisWaiting){if(!/^1(3|4|5|6|7|8|9)\d{9}$/.test(this.phoneNumber))return t.showToast({title:"请填写正确手机号码",icon:"none"}),!1;this.getCodeText="发送中...",this.getCodeisWaiting=!0,this.getCodeBtnColor="rgba(255,255,255,0.5)",setTimeout((function(){t.showToast({title:"验证码已发送",icon:"none"}),e.code=1234,e.setTimer()}),1e3)}},setTimer:function(){var t=this,e=60;this.getCodeText="重新获取(60)",this.Timer=setInterval((function(){if(e<=0)return t.getCodeisWaiting=!1,t.getCodeBtnColor="#ffffff",t.getCodeText="获取验证码",void clearInterval(t.Timer);t.getCodeText="重新获取("+e+")",e--}),1e3)},doReset:function(){var e=this;return t.hideKeyboard(),/^1(3|4|5|6|7|8|9)\d{9}$/.test(this.phoneNumber)?1234!=this.code?(t.showToast({title:"验证码不正确",icon:"none"}),!1):(t.showLoading({title:"提交中..."}),void setTimeout((function(){t.getStorage({key:"UserList",success:function(n){for(var i in t.hideLoading(),n.data){var a=n.data[i];if(a.username==e.phoneNumber)return n.data[i].passwd=(0,o.default)(e.passwd),void t.setStorage({key:"UserList",data:n.data,success:function(){t.showToast({title:"密码已重置",icon:"success"}),setTimeout((function(){t.navigateBack()}),1e3)}})}t.showToast({title:"手机号码未注册",icon:"none"})},fail:function(e){t.hideLoading(),t.showToast({title:"手机号码未注册",icon:"none"})}})}),1e3)):(t.showToast({title:"请填写正确手机号码",icon:"none"}),!1)}}};e.default=a}).call(this,n("543d")["default"])},c8ea:function(t,e,n){"use strict";n.r(e);var o=n("ad26"),i=n.n(o);for(var a in o)"default"!==a&&function(t){n.d(e,t,(function(){return o[t]}))}(a);e["default"]=i.a}},[["21d2","common/runtime","common/vendor"]]]);