(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/tabbar/my/settings/account-security/account-security"],{"35e1":function(o,n,t){"use strict";t.r(n);var e=t("95d3"),s=t.n(e);for(var a in e)"default"!==a&&function(o){t.d(n,o,(function(){return e[o]}))}(a);n["default"]=s.a},7615:function(o,n,t){},"95d3":function(o,n,t){"use strict";(function(o){Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var e=s(t("7cc2"));function s(o){return o&&o.__esModule?o:{default:o}}var a={data:function(){return{phone:o.getStorageSync("userInfo").mobile,newPhone:"",phoneDialog:!1,passwordDialog:!1,oldPassword:"",newPassword:"",againPassword:""}},onPullDownRefresh:function(){o.startPullDownRefresh()},methods:{cancellation:function(){o.showToast({icon:"none",title:"请联系管理员注销账号"})},clickUpdatePasswordConfirm:function(){""===this.oldPassword?o.showToast({icon:"none",title:"请输入原始密码"}):this.oldPassword!==o.getStorageSync("userInfo").pass_word?o.showToast({icon:"none",title:"原始密码错误"}):""===this.newPassword?o.showToast({icon:"none",title:"请输入新密码"}):this.newPassword===this.oldPassword?o.showToast({icon:"none",title:"密码未改变"}):""===this.againPassword?o.showToast({icon:"none",title:"请确认密码"}):e.default.post("/hs/updatePassword",{password:this.newPassword,id:o.getStorageSync("userInfo").user_id}).then((function(n){console.log("修改密码",n),1===n.data&&(o.showToast({icon:"loading",title:"修改成功\r\n请重新登录"}),setTimeout((function(){o.reLaunch({url:"/pages/login/login"})}),1e3))}),(function(o){console.log("err",o)}))},clickUpdatePhoneConfirm:function(){""===this.newPhone?o.showToast({icon:"none",title:"请输入手机号"}):this.newPhone===o.getStorageSync("userInfo").mobile?o.showToast({icon:"none",title:"手机号未改变"}):e.default.post("/hs/updatePhone",{mobile:this.newPhone,id:o.getStorageSync("userInfo").user_id}).then((function(n){console.log("修改手机号",n.data),1===n.data&&(o.showToast({icon:"loading",title:"修改成功\r\n请重新登录"}),setTimeout((function(){o.reLaunch({url:"/pages/login/login"})}),1e3))}),(function(o){console.log("err",o)}))},updatePassword:function(){this.passwordDialog=!0},updatePhone:function(){this.phoneDialog=!0},hideModal:function(){this.phoneDialog=!1,this.passwordDialog=!1}}};n.default=a}).call(this,t("543d")["default"])},accd:function(o,n,t){"use strict";var e;t.d(n,"b",(function(){return s})),t.d(n,"c",(function(){return a})),t.d(n,"a",(function(){return e}));var s=function(){var o=this,n=o.$createElement;o._self._c},a=[]},cafe:function(o,n,t){"use strict";(function(o){t("813a");e(t("66fd"));var n=e(t("eca0"));function e(o){return o&&o.__esModule?o:{default:o}}o(n.default)}).call(this,t("543d")["createPage"])},ddd4:function(o,n,t){"use strict";var e=t("7615"),s=t.n(e);s.a},eca0:function(o,n,t){"use strict";t.r(n);var e=t("accd"),s=t("35e1");for(var a in s)"default"!==a&&function(o){t.d(n,o,(function(){return s[o]}))}(a);t("ddd4");var i,c=t("f0c5"),r=Object(c["a"])(s["default"],e["b"],e["c"],!1,null,"595c0910",null,!1,e["a"],i);n["default"]=r.exports}},[["cafe","common/runtime","common/vendor"]]]);