1 |
- (global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/mine/info/edit"],{"0987":function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var u=t("2ce7"),r={data:function(){return{user:{nickName:"",phonenumber:"",email:"",sex:""},sexs:[{text:"男",value:"0"},{text:"女",value:"1"}],rules:{nickName:{rules:[{required:!0,errorMessage:"用户昵称不能为空"}]},phonenumber:{rules:[{required:!0,errorMessage:"手机号码不能为空"},{pattern:/^1[3|4|5|6|7|8|9][0-9]\d{8}$/,errorMessage:"请输入正确的手机号码"}]},email:{rules:[{required:!0,errorMessage:"邮箱地址不能为空"},{format:"email",errorMessage:"请输入正确的邮箱地址"}]}}}},onLoad:function(){this.getUser()},onReady:function(){this.$refs.form.setRules(this.rules)},methods:{getUser:function(){var e=this;(0,u.getUserProfile)().then((function(n){e.user=n.data}))},submit:function(e){var n=this;this.$refs.form.validate().then((function(e){(0,u.updateUserProfile)(n.user).then((function(e){n.$modal.msgSuccess("修改成功")}))}))}}};n.default=r},"2f8c":function(e,n,t){"use strict";(function(e,n){var u=t("4ea4");t("11d3"),t("5c17");u(t("66fd"));var r=u(t("90b7"));e.__webpack_require_UNI_MP_PLUGIN__=t,n(r.default)}).call(this,t("bc2e")["default"],t("543d")["createPage"])},"845f":function(e,n,t){"use strict";var u=t("f0c0"),r=t.n(u);r.a},"90b7":function(e,n,t){"use strict";t.r(n);var u=t("db26"),r=t("b7c8");for(var i in r)["default"].indexOf(i)<0&&function(e){t.d(n,e,(function(){return r[e]}))}(i);t("845f");var o=t("f0c5"),s=Object(o["a"])(r["default"],u["b"],u["c"],!1,null,null,null,!1,u["a"],void 0);n["default"]=s.exports},b7c8:function(e,n,t){"use strict";t.r(n);var u=t("0987"),r=t.n(u);for(var i in u)["default"].indexOf(i)<0&&function(e){t.d(n,e,(function(){return u[e]}))}(i);n["default"]=r.a},db26:function(e,n,t){"use strict";t.d(n,"b",(function(){return r})),t.d(n,"c",(function(){return i})),t.d(n,"a",(function(){return u}));var u={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"))},uniDataCheckbox:function(){return Promise.all([t.e("common/vendor"),t.e("uni_modules/uni-data-checkbox/components/uni-data-checkbox/uni-data-checkbox")]).then(t.bind(null,"3f35"))}},r=function(){var e=this.$createElement;this._self._c},i=[]},f0c0:function(e,n,t){}},[["2f8c","common/runtime","common/vendor"]]]);
|