resetpwd.js 2.5 KB

1
  1. (global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/mine/pwd/resetpwd"],{"073e":function(n,e,t){"use strict";var o=t("e550"),r=t.n(o);r.a},"534c":function(n,e,t){"use strict";t.d(e,"b",(function(){return r})),t.d(e,"c",(function(){return u})),t.d(e,"a",(function(){return o}));var o={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"))}},r=function(){var n=this.$createElement;this._self._c},u=[]},"7c14":function(n,e,t){"use strict";t.r(e);var o=t("a229"),r=t.n(o);for(var u in o)["default"].indexOf(u)<0&&function(n){t.d(e,n,(function(){return o[n]}))}(u);e["default"]=r.a},a229:function(n,e,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=t("2ce7"),r={data:function(){return{phone:"",code:"",user:{newPassword:void 0,confirmPassword:void 0},rules:{newPassword:{rules:[{required:!0,errorMessage:"新密码不能为空"},{minLength:6,maxLength:20,errorMessage:"长度在 6 到 20 个字符"}]},confirmPassword:{rules:[{required:!0,errorMessage:"确认密码不能为空"},{validateFunction:function(n,e,t){return t.newPassword===e},errorMessage:"两次输入的密码不一致"}]}}}},onReady:function(){this.$refs.form.setRules(this.rules)},onLoad:function(n){this.phone=n.phone,this.code=n.code},methods:{submit:function(){var n=this,e=this;this.$refs.form.validate().then((function(t){var r={phone:n.phone,code:n.code,password:n.user.newPassword};(0,o.getappCheck)(r).then((function(n){e.$toast("重置成功"),setTimeout((function(){e.$tab.reLaunch("/pages/login")}),1500)}))}))}}};e.default=r},e550:function(n,e,t){},f5ad:function(n,e,t){"use strict";t.r(e);var o=t("534c"),r=t("7c14");for(var u in r)["default"].indexOf(u)<0&&function(n){t.d(e,n,(function(){return r[n]}))}(u);t("073e");var i=t("f0c5"),s=Object(i["a"])(r["default"],o["b"],o["c"],!1,null,null,null,!1,o["a"],void 0);e["default"]=s.exports},fd0b:function(n,e,t){"use strict";(function(n,e){var o=t("4ea4");t("11d3"),t("5c17");o(t("66fd"));var r=o(t("f5ad"));n.__webpack_require_UNI_MP_PLUGIN__=t,e(r.default)}).call(this,t("bc2e")["default"],t("543d")["createPage"])}},[["fd0b","common/runtime","common/vendor"]]]);