(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/set/phone"],{"233a":function(t,n,e){},"2e6e":function(t,n,e){"use strict";(function(t){var o=e("4ea4");Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var c=o(e("9523")),r=e("0c0e"),i=e("26cb");e("5833");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 u(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){(0,c.default)(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}var f={data:function(){return{time:"",countDown:0,account:"",captcha:"",password:"",loding:!1,show:!0}},watch:{countDown:function(t){0==t&&clearInterval(this.time)}},computed:u({},(0,i.mapState)(["userInfo"])),onLoad:function(){null==this.userInfo.phone?this.account="":(this.account=this.userInfo.phone,this.show=!1)},methods:u(u({},(0,i.mapMutations)(["setUserInfo"])),{},{verification:function(){var t=this;if(""!=t.account)return!(t.countDown>0)&&(t.countDown=60,t.time=setInterval((function(){t.countDown--}),1e3),void(0,r.verify)({phone:t.account,type:"BDING_CODE"}).then((function(n){n.data;t.GetuserInfo()})).catch((function(t){console.log(t)})));t.$api.msg("请输入电话号码")},GetuserInfo:function(){var t=this;(0,r.getUserInfo)({}).then((function(n){var e=n.data;t.setUserInfo(e)}))},confirm:function(n){var e=this;this.loding=!0,(0,r.bangding)({phone:this.account,captcha:this.captcha}).then((function(n){n.data;e.loding=!1,e.$api.msg("绑定成功！"),setTimeout((function(){t.switchTab({url:"/pages/user/user"})}),1e3)})).catch((function(t){e.loding=!1,console.log(t)}))}})};n.default=f}).call(this,e("543d")["default"])},"375d":function(t,n,e){"use strict";e.r(n);var o=e("469d"),c=e("bc2a");for(var r in c)["default"].indexOf(r)<0&&function(t){e.d(n,t,(function(){return c[t]}))}(r);e("5611");var i=e("f0c5"),a=Object(i["a"])(c["default"],o["b"],o["c"],!1,null,null,null,!1,o["a"],void 0);n["default"]=a.exports},"469d":function(t,n,e){"use strict";e.d(n,"b",(function(){return o})),e.d(n,"c",(function(){return c})),e.d(n,"a",(function(){}));var o=function(){var t=this,n=t.$createElement;t._self._c;t._isMounted||(t.e0=function(n){!t.loding&&t.confirm()})},c=[]},5611:function(t,n,e){"use strict";var o=e("233a"),c=e.n(o);c.a},b776:function(t,n,e){"use strict";(function(t,n){var o=e("4ea4");e("2e1c");o(e("66fd"));var c=o(e("375d"));t.__webpack_require_UNI_MP_PLUGIN__=e,n(c.default)}).call(this,e("bc2e")["default"],e("543d")["createPage"])},bc2a:function(t,n,e){"use strict";e.r(n);var o=e("2e6e"),c=e.n(o);for(var r in o)["default"].indexOf(r)<0&&function(t){e.d(n,t,(function(){return o[t]}))}(r);n["default"]=c.a}},[["b776","common/runtime","common/vendor"]]]);