(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-399814d6"],{"5c28":function(e,t,r){},"993d":function(e,t,r){"use strict";r.r(t);var n=function(){var e=this,t=e._self._c;return t("div",{ref:"form",staticClass:"ids-update-phone"},[t("h1",[e._v("更换手机号码")]),t("v-text-field",{ref:"phoneNumber",staticClass:"mx-3",attrs:{outline:"",flat:"",label:"新手机号","prepend-inner-icon":"local_phone",solo:"","validate-on-blur":"",rules:[e.rules.required,e.rules.phoneMatch],required:"",clearable:""},model:{value:e.phoneNumber,callback:function(t){e.phoneNumber=t},expression:"phoneNumber"}}),t("v-flex",{attrs:{xs12:""}},[t("v-btn",{staticClass:"updatePhone",attrs:{color:"primary"},on:{click:e.updatePhone}},[e._v("修改")])],1)],1)},o=[],i=r("2f62"),a=r("0b8b"),u=r("4532");function c(e){return c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},c(e)}function s(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function l(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?s(Object(r),!0).forEach((function(t){f(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):s(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function f(e,t,r){return t=b(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function b(e){var t=p(e,"string");return"symbol"===c(t)?t:String(t)}function p(e,t){if("object"!==c(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!==c(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}var m={name:"iDS-UpdatePhone",data:function(){return{phoneNumber:"",regcode:"",formHasErrors:!1,rules:{required:function(e){return!!e||"该项不能为空"},phoneMatch:function(e){return/^1\d{10}$/.test(e)||"手机号码有误，请重填"}}}},computed:{form:function(){return{phoneNumber:this.phoneNumber}}},methods:l({updatePhone:function(){var e=this,t=!1;Object.keys(this.form).forEach((function(r){e.$refs[r].validate()||(t=!0)})),t||this.mUpdatePhone()},mUpdatePhone:function(){var e=this;a["a"].log("更新手机号码"),this.updateUserPhone({id:u["a"].vm.getUserId(),authorization:{Authorization:"Bearer "+u["a"].vm.getUserToken()},data:{mobileNo:this.phoneNumber},vm:u["a"].vm}).then((function(){a["a"].log("更新成功"),u["a"].vm.setSnackBar({value:{color:"success",text:"修改成功",visible:!0}}),e.$router.back()}),(function(){}))},changeView:function(){u["a"].vm.setTitle("修改个人资料"),u["a"].vm.setBottomNavVisible(!1),u["a"].vm.setBackIcon("arrow_back"),u["a"].vm.setBackDisabled(!1)}},Object(i["b"])("login",["updateUserPhone"])),created:function(){null!=u["a"].vm.getUserToken()&&null!=u["a"].vm.getUserId()?this.changeView():window.location.href="/"}},h=m,d=(r("ccb8"),r("2877")),v=Object(d["a"])(h,n,o,!1,null,null,null);t["default"]=v.exports},ccb8:function(e,t,r){"use strict";r("5c28")}}]);