(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/set/phone"],{129:function(n,t,e){"use strict";(function(n,t){var r=e(4);e(26);r(e(25));var o=r(e(130));n.__webpack_require_UNI_MP_PLUGIN__=e,t(o.default)}).call(this,e(1)["default"],e(2)["createPage"])},130:function(n,t,e){"use strict";e.r(t);var r=e(131),o=e(133);for(var c in o)["default"].indexOf(c)<0&&function(n){e.d(t,n,(function(){return o[n]}))}(c);e(136);var i,u=e(35),a=Object(u["default"])(o["default"],r["render"],r["staticRenderFns"],!1,null,null,null,!1,r["components"],i);a.options.__file="pages/set/phone.vue",t["default"]=a.exports},131:function(n,t,e){"use strict";e.r(t);var r=e(132);e.d(t,"render",(function(){return r["render"]})),e.d(t,"staticRenderFns",(function(){return r["staticRenderFns"]})),e.d(t,"recyclableRender",(function(){return r["recyclableRender"]})),e.d(t,"components",(function(){return r["components"]}))},132:function(n,t,e){"use strict";var r;e.r(t),e.d(t,"render",(function(){return o})),e.d(t,"staticRenderFns",(function(){return i})),e.d(t,"recyclableRender",(function(){return c})),e.d(t,"components",(function(){return r}));var o=function(){var n=this,t=n.$createElement;n._self._c;n._isMounted||(n.e0=function(t){!n.loding&&n.confirm()})},c=!1,i=[];o._withStripped=!0},133:function(n,t,e){"use strict";e.r(t);var r=e(134),o=e.n(r);for(var c in r)["default"].indexOf(c)<0&&function(n){e.d(t,n,(function(){return r[n]}))}(c);t["default"]=o.a},134:function(n,t,e){"use strict";(function(n){var r=e(4);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(e(11)),c=e(100),i=e(28),u=e(135);function a(n,t){var e=Object.keys(n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable}))),e.push.apply(e,r)}return e}function s(n){for(var t=1;t<arguments.length;t++){var e=null!=arguments[t]?arguments[t]:{};t%2?a(Object(e),!0).forEach((function(t){(0,o.default)(n,t,e[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(e)):a(Object(e)).forEach((function(t){Object.defineProperty(n,t,Object.getOwnPropertyDescriptor(e,t))}))}return n}var f={data:function(){return{time:"",countDown:0,account:"",captcha:"",password:"",loding:!1}},watch:{countDown:function(n){0==n&&clearInterval(this.time)}},computed:s({},(0,i.mapState)(["userInfo"])),onLoad:function(){null==this.userInfo.phone?this.account="":(this.account=this.userInfo.phone,this.show=!1)},methods:{verification:function(){var n=this;if(""!=this.account){if(/(^1[3|4|5|7|8][0-9]{9}$)/.test(this.account))return!(n.countDown>0)&&(n.countDown=60,n.time=setInterval((function(){n.countDown--}),1e3),void(0,c.verify)({phone:n.account,type:"BDING_CODE"}).then((function(n){n.data})).catch((function(n){console.log(n)})));this.$api.msg("请输入正确的手机号")}else this.$api.msg("请输入电话号码")},confirm:function(t){var e=this;e.loding=!0,(0,u.binding)({phone:e.account,captcha:e.captcha}).then((function(t){t.data;e.$api.msg("绑定成功！"),setTimeout((function(){e.loding=!1,n.switchTab({url:"/pages/user/my"})}),1e3)})).catch((function(n){e.loding=!1,console.log(n)}))}}};t.default=f}).call(this,e(2)["default"])},136:function(n,t,e){"use strict";e.r(t);var r=e(137),o=e.n(r);for(var c in r)["default"].indexOf(c)<0&&function(n){e.d(t,n,(function(){return r[n]}))}(c);t["default"]=o.a},137:function(n,t,e){}},[[129,"common/runtime","common/vendor"]]]);
//# sourceMappingURL=../../../.sourcemap/mp-weixin/pages/set/phone.js.map