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 lines
2.9 KiB

(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/login/resetpasswd"],{"3a4e":function(t,e,n){"use strict";var o=n("f7cc"),i=n.n(o);i.a},"4d2d":function(t,e,n){"use strict";n.r(e);var o=n("69e9"),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},"69e9":function(t,e,n){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=i(n("ff24"));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"])},"6ba5":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=[]},a18b:function(t,e,n){"use strict";n.r(e);var o=n("6ba5"),i=n("4d2d");for(var a in i)"default"!==a&&function(t){n.d(e,t,(function(){return i[t]}))}(a);n("3a4e");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},f57e:function(t,e,n){"use strict";(function(t){n("e5b1");o(n("66fd"));var e=o(n("a18b"));function o(t){return t&&t.__esModule?t:{default:t}}t(e.default)}).call(this,n("543d")["createPage"])},f7cc:function(t,e,n){}},[["f57e","common/runtime","common/vendor"]]]);