index.js 2.5 KB

1
  1. (global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/mine/pwd/index"],{"0d44":function(e,n,r){"use strict";r.r(n);var t=r("3da1"),u=r.n(t);for(var o in t)["default"].indexOf(o)<0&&function(e){r.d(n,e,(function(){return t[e]}))}(o);n["default"]=u.a},"12c4":function(e,n,r){},"1e78":function(e,n,r){"use strict";r.r(n);var t=r("bd25"),u=r("0d44");for(var o in u)["default"].indexOf(o)<0&&function(e){r.d(n,e,(function(){return u[e]}))}(o);r("8588");var i=r("f0c5"),s=Object(i["a"])(u["default"],t["b"],t["c"],!1,null,null,null,!1,t["a"],void 0);n["default"]=s.exports},"3ad8":function(e,n,r){"use strict";(function(e,n){var t=r("4ea4");r("11d3"),r("5c17");t(r("66fd"));var u=t(r("1e78"));e.__webpack_require_UNI_MP_PLUGIN__=r,n(u.default)}).call(this,r("bc2e")["default"],r("543d")["createPage"])},"3da1":function(e,n,r){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var t=r("2ce7"),u={data:function(){return{user:{oldPassword:void 0,newPassword:void 0,confirmPassword:void 0},rules:{oldPassword:{rules:[{required:!0,errorMessage:"旧密码不能为空"}]},newPassword:{rules:[{required:!0,errorMessage:"新密码不能为空"},{minLength:6,maxLength:20,errorMessage:"长度在 6 到 20 个字符"}]},confirmPassword:{rules:[{required:!0,errorMessage:"确认密码不能为空"},{validateFunction:function(e,n,r){return r.newPassword===n},errorMessage:"两次输入的密码不一致"}]}}}},onReady:function(){this.$refs.form.setRules(this.rules)},methods:{submit:function(){var e=this,n=this;this.$refs.form.validate().then((function(r){(0,t.updateUserPwd)(e.user.oldPassword,e.user.newPassword).then((function(e){n.$toast("修改成功"),setTimeout((function(){n.$tab.reLaunch("/pages/mine/index")}),1500)}))}))}}};n.default=u},8588:function(e,n,r){"use strict";var t=r("12c4"),u=r.n(t);u.a},bd25:function(e,n,r){"use strict";r.d(n,"b",(function(){return u})),r.d(n,"c",(function(){return o})),r.d(n,"a",(function(){return t}));var t={uniForms:function(){return Promise.all([r.e("common/vendor"),r.e("uni_modules/uni-forms/components/uni-forms/uni-forms")]).then(r.bind(null,"6a99"))},uniFormsItem:function(){return Promise.all([r.e("common/vendor"),r.e("uni_modules/uni-forms/components/uni-forms-item/uni-forms-item")]).then(r.bind(null,"3b57"))},uniEasyinput:function(){return r.e("uni_modules/uni-easyinput/components/uni-easyinput/uni-easyinput").then(r.bind(null,"5426"))}},u=function(){var e=this.$createElement;this._self._c},o=[]}},[["3ad8","common/runtime","common/vendor"]]]);