(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/set/user"],{"236b":function(t,n,e){"use strict";e.r(n);var o=e("6be8"),c=e("3419");for(var r in c)["default"].indexOf(r)<0&&function(t){e.d(n,t,(function(){return c[t]}))}(r);e("2746");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},2746:function(t,n,e){"use strict";var o=e("d976"),c=e.n(o);c.a},3419:function(t,n,e){"use strict";e.r(n);var o=e("be62"),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},"6be8":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=[]},b0ff:function(t,n,e){"use strict";(function(t,n){var o=e("4ea4");e("12d5");o(e("66fd"));var c=o(e("236b"));t.__webpack_require_UNI_MP_PLUGIN__=e,n(c.default)}).call(this,e("bc2e")["default"],e("543d")["createPage"])},be62: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("26cb"),i=e("36af");function u(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 a(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,c.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}var f={data:function(){return{time:"",countDown:0,account:"",captcha:"",password:"",loding:!1}},watch:{countDown:function(t){0==t&&clearInterval(this.time)}},computed:a({},(0,r.mapState)(["userInfo"])),onLoad:function(){null==this.userInfo.phone?this.account="":(this.account=this.userInfo.phone,this.show=!1)},methods:a(a({},(0,r.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,i.spread)({phone:o.account}).then((function(n){n.data;o.$api.msg("绑定成功！"),(0,i.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=f}).call(this,e("543d")["default"])},d976:function(t,n,e){}},[["b0ff","common/runtime","common/vendor"]]]);