(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/set/phone"],{"0357":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("e803"),i=e("26cb"),u=e("1418");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}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?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}({},(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[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,u.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"])},"48ff":function(t,n,e){"use strict";e.r(n);var o=e("0357"),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},"4fb6":function(t,n,e){"use strict";(function(t,n){var o=e("4ea4");e("ab68");o(e("66fd"));var c=o(e("8731"));t.__webpack_require_UNI_MP_PLUGIN__=e,n(c.default)}).call(this,e("bc2e")["default"],e("543d")["createPage"])},"680b":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=[]},8731:function(t,n,e){"use strict";e.r(n);var o=e("680b"),c=e("48ff");for(var r in c)["default"].indexOf(r)<0&&function(t){e.d(n,t,(function(){return c[t]}))}(r);e("9b0b");var i=e("f0c5"),u=Object(i["a"])(c["default"],o["b"],o["c"],!1,null,null,null,!1,o["a"],void 0);n["default"]=u.exports},"9b0b":function(t,n,e){"use strict";var o=e("e2c0"),c=e.n(o);c.a},e2c0:function(t,n,e){}},[["4fb6","common/runtime","common/vendor"]]]);