(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/tabbar/my/settings/account-security/account-security"],{"17e8":function(o,n,t){"use strict";(function(o){Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var e=s(t("1da1"));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"])},"40cf":function(o,n,t){"use strict";var e=t("8b72"),s=t.n(e);s.a},"420b":function(o,n,t){"use strict";t.r(n);var e=t("17e8"),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},"588c":function(o,n,t){"use strict";t.r(n);var e=t("b522"),s=t("420b");for(var a in s)"default"!==a&&function(o){t.d(n,o,(function(){return s[o]}))}(a);t("40cf");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},"844c":function(o,n,t){"use strict";(function(o){t("481f");e(t("66fd"));var n=e(t("588c"));function e(o){return o&&o.__esModule?o:{default:o}}o(n.default)}).call(this,t("543d")["createPage"])},"8b72":function(o,n,t){},b522: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=[]}},[["844c","common/runtime","common/vendor"]]]);