profile.js 3.5 KB

1
  1. (global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/user/setting/profile"],{"1c96":function(e,n,u){"use strict";u.r(n);var t=u("acf7"),o=u("dd3f");for(var r in o)"default"!==r&&function(e){u.d(n,e,(function(){return o[e]}))}(r);u("87e4");var i,c=u("f0c5"),a=Object(c["a"])(o["default"],t["b"],t["c"],!1,null,null,null,!1,t["a"],i);n["default"]=a.exports},"87e4":function(e,n,u){"use strict";var t=u("de75"),o=u.n(t);o.a},acf7:function(e,n,u){"use strict";u.d(n,"b",(function(){return o})),u.d(n,"c",(function(){return r})),u.d(n,"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,"ce96"))},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,"23cb"))},uIcon:function(){return u.e("uni_modules/vk-uview-ui/components/u-icon/u-icon").then(u.bind(null,"ba35"))},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,"6943"))},uGap:function(){return u.e("uni_modules/vk-uview-ui/components/u-gap/u-gap").then(u.bind(null,"dc7f"))},uButton:function(){return u.e("uni_modules/vk-uview-ui/components/u-button/u-button").then(u.bind(null,"ce9e"))},uToast:function(){return u.e("uni_modules/vk-uview-ui/components/u-toast/u-toast").then(u.bind(null,"934c"))},uSelect:function(){return u.e("uni_modules/vk-uview-ui/components/u-select/u-select").then(u.bind(null,"2de4"))}},o=function(){var e=this,n=e.$createElement;e._self._c;e._isMounted||(e.e0=function(n){e.groupTypeSelectShow=!0})},r=[]},c350:function(e,n,u){"use strict";(function(e){Object.defineProperty(n,"__esModule",{value:!0}),n.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"]}],groupTypeName:[{required:!0,message:"身份不得为空",trigger:["change","blur"]}]}}},onLoad:function(n){var u=this,t=e.getStorageSync("MD_userInfo2");this.form.nickname=t.nickname,this.form.group_type=t.group_type;var o=e.getStorageSync("MD_dict"),r=o.group_type||[],i=[];r.forEach((function(e){e.val==t.group_type&&(u.form.groupTypeName=e.key),i.push({value:e.val,label:e.key})})),this.groupTypeSelectList=[].concat(i)},onReady:function(){this.$refs.uForm.setRules(this.rules)},methods:{groupTypeSelectConfirm:function(e){var n=this;e.map((function(e,u){n.form.group_type=e.value,n.form.groupTypeName=e.label}))},pageTo:function(n){"dev"!==n?e.navigateTo({url:n}):e.$msg("开发中~")},submitHandle:function(){var n=this;this.$refs.uForm.validate((function(u){if(u){var t={nickname:n.form.nickname,group_type:n.form.group_type};n.form.password&&(t.password=n.form.password),e.api.base.apiuseredit(t).then((function(n){e.$msgConfirm("编辑成功",(function(){e.reLaunch({url:"/pages/user/setting/setting"})}),(function(){e.reLaunch({url:"/pages/user/setting/setting"})}))}))}}))}}};n.default=u}).call(this,u("543d")["default"])},dd3f:function(e,n,u){"use strict";u.r(n);var t=u("c350"),o=u.n(t);for(var r in t)"default"!==r&&function(e){u.d(n,e,(function(){return t[e]}))}(r);n["default"]=o.a},de75:function(e,n,u){},f312:function(e,n,u){"use strict";(function(e){u("3690");t(u("66fd"));var n=t(u("1c96"));function t(e){return e&&e.__esModule?e:{default:e}}wx.__webpack_require_UNI_MP_PLUGIN__=u,e(n.default)}).call(this,u("543d")["createPage"])}},[["f312","common/runtime","common/vendor"]]]);