profile.js 3.3 KB

1
  1. (global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/user/setting/profile"],{"0f4f":function(n,e,u){},"2c4d":function(n,e,u){"use strict";var t=u("0f4f"),o=u.n(t);o.a},"45a7":function(n,e,u){"use strict";u.d(e,"b",(function(){return o})),u.d(e,"c",(function(){return i})),u.d(e,"a",(function(){return t}));var t={uForm:function(){return u.e("uni_modules/vk-uview-ui/components/u-form/u-form").then(u.bind(null,"e893"))},uFormItem:function(){return Promise.all([u.e("common/vendor"),u.e("uni_modules/vk-uview-ui/components/u-form-item/u-form-item")]).then(u.bind(null,"a81d"))},uIcon:function(){return u.e("uni_modules/vk-uview-ui/components/u-icon/u-icon").then(u.bind(null,"ccaa"))},uInput:function(){return Promise.all([u.e("common/vendor"),u.e("uni_modules/vk-uview-ui/components/u-input/u-input")]).then(u.bind(null,"830c"))},uGap:function(){return u.e("uni_modules/vk-uview-ui/components/u-gap/u-gap").then(u.bind(null,"9db7"))},uButton:function(){return u.e("uni_modules/vk-uview-ui/components/u-button/u-button").then(u.bind(null,"51b1b"))},uToast:function(){return u.e("uni_modules/vk-uview-ui/components/u-toast/u-toast").then(u.bind(null,"9568"))},uSelect:function(){return u.e("uni_modules/vk-uview-ui/components/u-select/u-select").then(u.bind(null,"17bf"))}},o=function(){var n=this.$createElement;this._self._c},i=[]},6345:function(n,e,u){"use strict";u.r(e);var t=u("45a7"),o=u("7c27");for(var i in o)["default"].indexOf(i)<0&&function(n){u.d(e,n,(function(){return o[n]}))}(i);u("2c4d");var r=u("f0c5"),a=Object(r["a"])(o["default"],t["b"],t["c"],!1,null,null,null,!1,t["a"],void 0);e["default"]=a.exports},7887:function(n,e,u){"use strict";(function(n,e){var t=u("4ea4");u("2ab2");t(u("66fd"));var o=t(u("6345"));n.__webpack_require_UNI_MP_PLUGIN__=u,e(o.default)}).call(this,u("bc2e")["default"],u("543d")["createPage"])},"7c27":function(n,e,u){"use strict";u.r(e);var t=u("e180"),o=u.n(t);for(var i in t)["default"].indexOf(i)<0&&function(n){u.d(e,n,(function(){return t[n]}))}(i);e["default"]=o.a},e180:function(n,e,u){"use strict";(function(n){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var u={data:function(){return{groupTypeSelectShow:!1,groupTypeSelectList:[],maskShow:!1,form:{nickname:null,password:null},rules:{nickname:[{required:!0,message:"昵称不得为空",trigger:["change","blur"]}]}}},onLoad:function(e){var u=this,t=n.getStorageSync("MD_userInfo2");this.form.nickname=t.nickname,this.form.group_type=t.group_type;var o=n.getStorageSync("MD_dict"),i=o.group_type||[],r=[];i.forEach((function(n){n.val==t.group_type&&(u.form.groupTypeName=n.key),r.push({value:n.val,label:n.key})})),this.groupTypeSelectList=[].concat(r)},onReady:function(){this.$refs.uForm.setRules(this.rules)},methods:{groupTypeSelectConfirm:function(n){var e=this;n.map((function(n,u){e.form.group_type=n.value,e.form.groupTypeName=n.label}))},pageTo:function(e){"dev"!==e?n.navigateTo({url:e}):n.$msg("开发中~")},submitHandle:function(){var e=this;this.$refs.uForm.validate((function(u){if(u){var t={nickname:e.form.nickname};e.form.password&&(t.password=e.form.password),n.api.base.apiuseredit(t).then((function(e){n.$msgConfirm("编辑成功",(function(){n.reLaunch({url:"/pages/user/setting/setting"})}),(function(){n.reLaunch({url:"/pages/user/setting/setting"})}))}))}}))}}};e.default=u}).call(this,u("543d")["default"])}},[["7887","common/runtime","common/vendor"]]]);