(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/index/editinfo"],{"0694":function(t,n,e){},"33db":function(t,n,e){"use strict";e.d(n,"b",(function(){return r})),e.d(n,"c",(function(){return i})),e.d(n,"a",(function(){return o}));var o={uNoNetwork:function(){return e.e("uview-ui/components/u-no-network/u-no-network").then(e.bind(null,"36dd"))}},r=function(){var t=this,n=t.$createElement;t._self._c;t._isMounted||(t.e0=function(n){t.isShowConfirm=!0},t.e1=function(n){n.stopPropagation(),t.isShowConfirm=!1})},i=[]},3928:function(t,n,e){"use strict";e.r(n);var o=e("41e3"),r=e.n(o);for(var i in o)"default"!==i&&function(t){e.d(n,t,(function(){return o[t]}))}(i);n["default"]=r.a},"3c38":function(t,n,e){"use strict";(function(t){e("02cf");o(e("66fd"));var n=o(e("abc9"));function o(t){return t&&t.__esModule?t:{default:t}}t(n.default)}).call(this,e("543d")["createPage"])},"41e3":function(t,n,e){"use strict";(function(t){Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var o=i(e("a34a")),r=e("2f62");function i(t){return t&&t.__esModule?t:{default:t}}function u(t,n,e,o,r,i,u){try{var c=t[i](u),a=c.value}catch(f){return void e(f)}c.done?n(a):Promise.resolve(a).then(o,r)}function c(t){return function(){var n=this,e=arguments;return new Promise((function(o,r){var i=t.apply(n,e);function c(t){u(i,o,r,c,a,"next",t)}function a(t){u(i,o,r,c,a,"throw",t)}c(void 0)}))}}function a(t,n){var e=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);n&&(o=o.filter((function(n){return Object.getOwnPropertyDescriptor(t,n).enumerable}))),e.push.apply(e,o)}return e}function f(t){for(var n=1;n<arguments.length;n++){var e=null!=arguments[n]?arguments[n]:{};n%2?a(Object(e),!0).forEach((function(n){s(t,n,e[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):a(Object(e)).forEach((function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(e,n))}))}return t}function s(t,n,e){return n in t?Object.defineProperty(t,n,{value:e,enumerable:!0,configurable:!0,writable:!0}):t[n]=e,t}var l={onLoad:function(t){this.newName=t.name,this.phone=t.phone},mounted:function(){},data:function(){return{isShowConfirm:!1,newName:"",phone:""}},methods:f(f({},(0,r.mapMutations)(["logout"])),{},{editName:function(){var n=c(o.default.mark((function n(){var e;return o.default.wrap((function(n){while(1)switch(n.prev=n.next){case 0:return n.next=2,this.$request.post("/api/v1/user/updateUser",{nickname:this.newName});case 2:e=n.sent,0==e.status&&(this.isShowConfirm=!1,t.showToast({title:"修改成功",icon:"none"}));case 4:case"end":return n.stop()}}),n,this)})));function e(){return n.apply(this,arguments)}return e}(),gotophone:function(){t.navigateTo({url:"editphone"})},gotopwd:function(){t.navigateTo({url:"paypassword"})},switchNum:function(){var n=this;t.showModal({title:"提示",content:"是否要注销当前账号",success:function(e){if(e.confirm){var o=n;t.showLoading({title:"清除中..."}),setTimeout((function(){o.logout(),t.clearStorage(),t.hideLoading(),t.reLaunch({url:"index"})}),2e3)}else e.cancel}})}})};n.default=l}).call(this,e("543d")["default"])},4952:function(t,n,e){"use strict";var o=e("0694"),r=e.n(o);r.a},abc9:function(t,n,e){"use strict";e.r(n);var o=e("33db"),r=e("3928");for(var i in r)"default"!==i&&function(t){e.d(n,t,(function(){return r[t]}))}(i);e("4952");var u,c=e("f0c5"),a=Object(c["a"])(r["default"],o["b"],o["c"],!1,null,"7dcb0bdb",null,!1,o["a"],u);n["default"]=a.exports}},[["3c38","common/runtime","common/vendor"]]]);