forgetpwd.js 2.8 KB

1
  1. (global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/mine/pwd/forgetpwd"],{"401c":function(e,n,t){"use strict";t.r(n);var i=t("fd8f"),o=t("7f24");for(var u in o)["default"].indexOf(u)<0&&function(e){t.d(n,e,(function(){return o[e]}))}(u);t("60b4");var s=t("f0c5"),r=Object(s["a"])(o["default"],i["b"],i["c"],!1,null,null,null,!1,i["a"],void 0);n["default"]=r.exports},"60b4":function(e,n,t){"use strict";var i=t("9cc3"),o=t.n(i);o.a},"7f24":function(e,n,t){"use strict";t.r(n);var i=t("88d8"),o=t.n(i);for(var u in i)["default"].indexOf(u)<0&&function(e){t.d(n,e,(function(){return i[e]}))}(u);n["default"]=o.a},"88d8":function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var i=t("2ce7"),o={data:function(){return{timefalg:!1,time:"",phonenumber:"",code:"",newcode:"",user:{}}},onReady:function(){},methods:{getCode:function(){var e=this;if(this.phonenumber){!this.phonenumber||/^(13[0-9]|14[01456879]|15[0-35-9]|16[2567]|17[0-8]|18[0-9]|19[0-35-9])\d{8}$/.test(this.phonenumber)?(0,i.getappForgetPW)(this.phonenumber).then((function(n){200==n.code?(e.$toast("发送成功"),e.newcode=n.msg,e.time=60,e.timefalg=!0,e.setTimein()):e.$toast(n.msg)})):e.$toast("请输入正确的手机号")}else e.$toast("请输入手机号")},setTimein:function(){var e=this;clearInterval(e.timer),e.timer=setInterval((function(){e.time<=1&&(e.timefalg=!1,e.time=60,clearInterval(e.timer)),e.time=e.time-1}),1e3)},submit:function(){if(this.phonenumber)if(this.code)if(this.code==this.newcode){!this.phonenumber||/^(13[0-9]|14[01456879]|15[0-35-9]|16[2567]|17[0-8]|18[0-9]|19[0-35-9])\d{8}$/.test(this.phonenumber)?this.$tab.navigateTo("/pages/mine/pwd/resetpwd?phone="+this.phonenumber+"&code="+this.code):this.$toast("请输入正确的手机号")}else this.$toast("验证码错误,请重新输入");else this.$toast("请输入验证码");else this.$toast("请输入手机号")}}};n.default=o},"9cc3":function(e,n,t){},b790:function(e,n,t){"use strict";(function(e,n){var i=t("4ea4");t("11d3"),t("5c17");i(t("66fd"));var o=i(t("401c"));e.__webpack_require_UNI_MP_PLUGIN__=t,n(o.default)}).call(this,t("bc2e")["default"],t("543d")["createPage"])},fd8f:function(e,n,t){"use strict";t.d(n,"b",(function(){return o})),t.d(n,"c",(function(){return u})),t.d(n,"a",(function(){return i}));var i={uniForms:function(){return Promise.all([t.e("common/vendor"),t.e("uni_modules/uni-forms/components/uni-forms/uni-forms")]).then(t.bind(null,"6a99"))},uniFormsItem:function(){return Promise.all([t.e("common/vendor"),t.e("uni_modules/uni-forms/components/uni-forms-item/uni-forms-item")]).then(t.bind(null,"3b57"))},uniEasyinput:function(){return t.e("uni_modules/uni-easyinput/components/uni-easyinput/uni-easyinput").then(t.bind(null,"5426"))}},o=function(){var e=this.$createElement;this._self._c},u=[]}},[["b790","common/runtime","common/vendor"]]]);