(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/set/phone"],{2415:function(t,n,e){"use strict";e.r(n);var c=e("73a1"),o=e.n(c);for(var r in c)["default"].indexOf(r)<0&&function(t){e.d(n,t,(function(){return c[t]}))}(r);n["default"]=o.a},"73a1":function(t,n,e){"use strict";(function(t){var c=e("4ea4");Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var o=c(e("9523")),r=e("ec28"),i=e("26cb"),a=e("2b06");function u(t,n){var e=Object.keys(t);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(t);n&&(c=c.filter((function(n){return Object.getOwnPropertyDescriptor(t,n).enumerable}))),e.push.apply(e,c)}return e}var f={data:function(){return{time:"",countDown:0,account:"",captcha:"",password:"",loding:!1}},watch:{countDown:function(t){0==t&&clearInterval(this.time)}},computed:function(t){for(var n=1;n<arguments.length;n++){var e=null!=arguments[n]?arguments[n]:{};n%2?u(Object(e),!0).forEach((function(n){(0,o.default)(t,n,e[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):u(Object(e)).forEach((function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(e,n))}))}return t}({},(0,i.mapState)(["userInfo"])),onLoad:function(){null==this.userInfo.phone?this.account="":(this.account=this.userInfo.phone,this.show=!1)},methods:{verification:function(){var t=this;if(""!=this.account){if(/(^1[1|2|3|4|5|6|7|8|9][0-9]{9}$)/.test(this.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(t){t.data})).catch((function(t){console.log(t)})));this.$api.msg("请输入正确的手机号")}else this.$api.msg("请输入电话号码")},confirm:function(n){var e=this;e.loding=!0,(0,a.binding)({phone:e.account,captcha:e.captcha}).then((function(n){n.data;e.$api.msg("绑定成功！"),setTimeout((function(){e.loding=!1,t.switchTab({url:"/pages/user/user"})}),1e3)})).catch((function(t){e.loding=!1,console.log(t)}))}}};n.default=f}).call(this,e("543d")["default"])},"9c48":function(t,n,e){"use strict";(function(t,n){var c=e("4ea4");e("3e39");c(e("66fd"));var o=c(e("b356"));t.__webpack_require_UNI_MP_PLUGIN__=e,n(o.default)}).call(this,e("bc2e")["default"],e("543d")["createPage"])},af38:function(t,n,e){},b356:function(t,n,e){"use strict";e.r(n);var c=e("ce6a"),o=e("2415");for(var r in o)["default"].indexOf(r)<0&&function(t){e.d(n,t,(function(){return o[t]}))}(r);e("b89e");var i=e("f0c5"),a=Object(i["a"])(o["default"],c["b"],c["c"],!1,null,null,null,!1,c["a"],void 0);n["default"]=a.exports},b89e:function(t,n,e){"use strict";var c=e("af38"),o=e.n(c);o.a},ce6a:function(t,n,e){"use strict";e.d(n,"b",(function(){return c})),e.d(n,"c",(function(){return o})),e.d(n,"a",(function(){}));var c=function(){var t=this,n=t.$createElement;t._self._c;t._isMounted||(t.e0=function(n){!t.loding&&t.confirm()})},o=[]}},[["9c48","common/runtime","common/vendor"]]]);