personalData.js 4.1 KB

12
  1. (global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/myCenter/personalData/personalData"],{71:function(n,t,e){"use strict";(function(n,t){var o=e(4);e(26);o(e(25));var i=o(e(72));n.__webpack_require_UNI_MP_PLUGIN__=e,t(i.default)}).call(this,e(1)["default"],e(2)["createPage"])},72:function(n,t,e){"use strict";e.r(t);var o=e(73),i=e(75);for(var u in i)["default"].indexOf(u)<0&&function(n){e.d(t,n,(function(){return i[n]}))}(u);e(79);var r,a=e(40),c=Object(a["default"])(i["default"],o["render"],o["staticRenderFns"],!1,null,"44ded03a",null,!1,o["components"],r);c.options.__file="pages/myCenter/personalData/personalData.vue",t["default"]=c.exports},73:function(n,t,e){"use strict";e.r(t);var o=e(74);e.d(t,"render",(function(){return o["render"]})),e.d(t,"staticRenderFns",(function(){return o["staticRenderFns"]})),e.d(t,"recyclableRender",(function(){return o["recyclableRender"]})),e.d(t,"components",(function(){return o["components"]}))},74:function(n,t,e){"use strict";var o;e.r(t),e.d(t,"render",(function(){return i})),e.d(t,"staticRenderFns",(function(){return r})),e.d(t,"recyclableRender",(function(){return u})),e.d(t,"components",(function(){return o}));try{o={uniList:function(){return e.e("uni_modules/uni-list/components/uni-list/uni-list").then(e.bind(null,231))},uniListItem:function(){return e.e("uni_modules/uni-list/components/uni-list-item/uni-list-item").then(e.bind(null,238))},uniPopup:function(){return e.e("uni_modules/uni-popup/components/uni-popup/uni-popup").then(e.bind(null,245))},uniEasyinput:function(){return e.e("uni_modules/uni-easyinput/components/uni-easyinput/uni-easyinput").then(e.bind(null,252))}}}catch(a){if(-1===a.message.indexOf("Cannot find module")||-1===a.message.indexOf(".vue"))throw a;console.error(a.message),console.error("1. 排查组件名称拼写是否正确"),console.error("2. 排查组件是否符合 easycom 规范,文档:https://uniapp.dcloud.net.cn/collocation/pages?id=easycom"),console.error("3. 若组件不符合 easycom 规范,需手动引入,并在 components 中注册该组件")}var i=function(){var n=this,t=n.$createElement;n._self._c},u=!1,r=[];i._withStripped=!0},75:function(n,t,e){"use strict";e.r(t);var o=e(76),i=e.n(o);for(var u in o)["default"].indexOf(u)<0&&function(n){e.d(t,n,(function(){return o[n]}))}(u);t["default"]=i.a},76:function(n,t,e){"use strict";(function(n){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=e(37),i=e(77),u={data:function(){return{defaultAvatar:e(78),avatar:"",updateValue:"",form:{accountId:void 0,accountName:"",accountRealName:"",accountAvatar:"",accountPhone:"",accountStaffNo:"",accountIntro:""}}},onShow:function(){this.init()},methods:{init:function(){this.getUserProfile()},getUserProfile:function(){var n=this;(0,o.getUserProfile)().then((function(t){n.form=t.data}))},handle:function(n){"avatar"===n?this.updateAvatar():(this.updateValue=this.form[n],this.type=n,this.open())},open:function(){this.$refs.popup.open()},close:function(){this.$refs.popup.close()},ImageError:function(){this.avatar=this.defaultAvatar},editAvart:function(){var t=this;n.chooseImage({count:1,sizeType:["original","compressed"],sourceType:["album","camera"],success:function(n){var e=n.tempFilePaths[0];(0,i.upload)({filePath:e}).then((function(n){var e=JSON.parse(n);t.form.accountAvatar=e.data.fileUrl}))}})},confirm:function(t){isEmpty(t)?n.showToast({icon:"none",title:"请填写修改内容"}):(this.form[this.type]=t,this.updateValue="",this.close())},submit:function(){(0,o.updateUserProfile)(this.form).then((function(){n.showToast({title:"修改成功!",icon:"none",duration:1e3}),setTimeout((function(){n.hideToast(),n.reLaunch({url:"/pages/myCenter/myCenter"})}),1e3)}))},isEmpty:function(n){return"undefined"===n||void 0===n||""===n||null===n}}};t.default=u}).call(this,e(2)["default"])},79:function(n,t,e){"use strict";e.r(t);var o=e(80),i=e.n(o);for(var u in o)["default"].indexOf(u)<0&&function(n){e.d(t,n,(function(){return o[n]}))}(u);t["default"]=i.a},80:function(n,t,e){}},[[71,"common/runtime","common/vendor"]]]);
  2. //# sourceMappingURL=../../../../.sourcemap/mp-weixin/pages/myCenter/personalData/personalData.js.map