(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/index/editphone"],{"0608":function(n,e,t){"use strict";t.r(e);var o=t("c29b"),u=t("f424");for(var i in u)"default"!==i&&function(n){t.d(e,n,(function(){return u[n]}))}(i);t("4734");var r,c=t("f0c5"),s=Object(c["a"])(u["default"],o["b"],o["c"],!1,null,null,null,!1,o["a"],r);e["default"]=s.exports},"2f9d":function(n,e,t){},"377c":function(n,e,t){"use strict";(function(n){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=i(t("a34a")),u=i(t("d81e"));function i(n){return n&&n.__esModule?n:{default:n}}function r(n,e,t,o,u,i,r){try{var c=n[i](r),s=c.value}catch(a){return void t(a)}c.done?e(s):Promise.resolve(s).then(o,u)}function c(n){return function(){var e=this,t=arguments;return new Promise((function(o,u){var i=n.apply(e,t);function c(n){r(i,o,u,c,s,"next",n)}function s(n){r(i,o,u,c,s,"throw",n)}c(void 0)}))}}var s={onLoad:function(n){},mounted:function(){this.info=u.default.getters["getusers"]},data:function(){return{value:"",newphone:"",newcode:"",type:"number",border:!0,tips:"",newtips:"",seconds:60,newseconds:60,info:{}}},methods:{codeChange:function(n){this.tips=n},codeChange1:function(n){this.newtips=n},getCode:function(){this.$refs.uCode.canGetCode?this.$refs.uCode.start():n.showToast({title:"结束后再发送",icon:"none"})},getnewCode:function(){this.$refs.newuCode.canGetCode?this.$refs.newuCode.start():n.showToast({title:"结束后再发送",icon:"none"})},end:function(){},start:function(){var n=c(o.default.mark((function n(){return o.default.wrap((function(n){while(1)switch(n.prev=n.next){case 0:return n.next=2,this.$request.post("/api/v1/common/sendVerifyCode",{phone:this.info.phone,type:4});case 2:n.sent;case 3:case"end":return n.stop()}}),n,this)})));function e(){return n.apply(this,arguments)}return e}(),newend:function(){},newstart:function(){var n=c(o.default.mark((function n(){return o.default.wrap((function(n){while(1)switch(n.prev=n.next){case 0:return n.next=2,this.$request.post("/api/v1/common/sendVerifyCode",{phone:this.newphone,type:5});case 2:n.sent;case 3:case"end":return n.stop()}}),n,this)})));function e(){return n.apply(this,arguments)}return e}(),savephone:function(){var e=c(o.default.mark((function e(){var t;return o.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,this.$request.post("/api/v1/user/changeUserPhone",{old_verify_code:this.value,new_verify_code:this.newcode,new_phone:this.newphone});case 2:t=e.sent,console.log(t),0==t.status?(n.showToast({title:"保存成功",duration:1e3}),setTimeout((function(){n.navigateBack({delta:1})}),1e3)):n.showToast({title:t.message,icon:"none",duration:1500});case 5:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()}};e.default=s}).call(this,t("543d")["default"])},4734:function(n,e,t){"use strict";var o=t("2f9d"),u=t.n(o);u.a},a73f:function(n,e,t){"use strict";(function(n){t("02cf");o(t("66fd"));var e=o(t("0608"));function o(n){return n&&n.__esModule?n:{default:n}}n(e.default)}).call(this,t("543d")["createPage"])},c29b:function(n,e,t){"use strict";t.d(e,"b",(function(){return u})),t.d(e,"c",(function(){return i})),t.d(e,"a",(function(){return o}));var o={uInput:function(){return Promise.all([t.e("common/vendor"),t.e("uview-ui/components/u-input/u-input")]).then(t.bind(null,"6aa8"))},uVerificationCode:function(){return t.e("uview-ui/components/u-verification-code/u-verification-code").then(t.bind(null,"6382"))},uButton:function(){return t.e("uview-ui/components/u-button/u-button").then(t.bind(null,"9058"))},uNoNetwork:function(){return t.e("uview-ui/components/u-no-network/u-no-network").then(t.bind(null,"36dd"))}},u=function(){var n=this,e=n.$createElement;n._self._c},i=[]},f424:function(n,e,t){"use strict";t.r(e);var o=t("377c"),u=t.n(o);for(var i in o)"default"!==i&&function(n){t.d(e,n,(function(){return o[n]}))}(i);e["default"]=u.a}},[["a73f","common/runtime","common/vendor"]]]);