(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/set/user"],{"0c60":function(t,n,e){},"16bf":function(t,n,e){"use strict";(function(t){Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var o=e("26cb"),c=e("7eca");function r(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 i(t){for(var n=1;n<arguments.length;n++){var e=null!=arguments[n]?arguments[n]:{};n%2?r(Object(e),!0).forEach((function(n){u(t,n,e[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):r(Object(e)).forEach((function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(e,n))}))}return t}function u(t,n,e){return n in t?Object.defineProperty(t,n,{value:e,enumerable:!0,configurable:!0,writable:!0}):t[n]=e,t}var a={data:function(){return{time:"",countDown:0,account:"",captcha:"",password:"",loding:!1}},watch:{countDown:function(t){0==t&&clearInterval(this.time)}},computed:i({},(0,o.mapState)(["userInfo"])),onLoad:function(){null==this.userInfo.phone?this.account="":(this.account=this.userInfo.phone,this.show=!1)},methods:i(i({},(0,o.mapMutations)("user",["setUserInfo","setOrderInfo"])),{},{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 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,o=this;o.loding=!0,(0,c.spread)({phone:o.account}).then((function(n){n.data;o.$api.msg("绑定成功！"),(0,c.userinfo)({}).then((function(t){var n=t.data;e.setUserInfo(n)})).catch((function(t){console.log(t)})),setTimeout((function(){o.loding=!1,t.navigateBack({})}),1e3)})).catch((function(t){o.loding=!1,console.log(t)}))}})};n.default=a}).call(this,e("543d")["default"])},"6f46":function(t,n,e){"use strict";var o=e("0c60"),c=e.n(o);c.a},"6ff3":function(t,n,e){"use strict";e.r(n);var o=e("7da3"),c=e("c683");for(var r in c)"default"!==r&&function(t){e.d(n,t,(function(){return c[t]}))}(r);e("6f46");var i,u=e("f0c5"),a=Object(u["a"])(c["default"],o["b"],o["c"],!1,null,null,null,!1,o["a"],i);n["default"]=a.exports},"7da3":function(t,n,e){"use strict";var o;e.d(n,"b",(function(){return c})),e.d(n,"c",(function(){return r})),e.d(n,"a",(function(){return o}));var c=function(){var t=this,n=t.$createElement;t._self._c;t._isMounted||(t.e0=function(n){!t.loding&&t.confirm()})},r=[]},c683:function(t,n,e){"use strict";e.r(n);var o=e("16bf"),c=e.n(o);for(var r in o)"default"!==r&&function(t){e.d(n,t,(function(){return o[t]}))}(r);n["default"]=c.a},da79:function(t,n,e){"use strict";(function(t){e("856e");o(e("66fd"));var n=o(e("6ff3"));function o(t){return t&&t.__esModule?t:{default:t}}wx.__webpack_require_UNI_MP_PLUGIN__=e,t(n.default)}).call(this,e("543d")["createPage"])}},[["da79","common/runtime","common/vendor"]]]);