(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-set-phone"],{"0286":function(t,n,e){"use strict";var a=e("6cea"),o=e.n(a);o.a},"2f1a":function(t,n,e){"use strict";var a=e("4ea4");Object.defineProperty(n,"__esModule",{value:!0}),n.userEdit=i,n.logout=c,n.registerReset=r,n.binding=u;var o=a(e("6150"));function i(t){return(0,o.default)({url:"/api/user/edit",method:"post",data:t})}function c(t){return(0,o.default)({url:"/api/logout",method:"get",data:t})}function r(t){return(0,o.default)({url:"/api/register/reset",method:"post",data:t})}function u(t){return(0,o.default)({url:"/api/binding",method:"post",data:t})}},"3c7a":function(t,n,e){"use strict";e.r(n);var a=e("83e7"),o=e("89f9");for(var i in o)"default"!==i&&function(t){e.d(n,t,(function(){return o[t]}))}(i);e("0286");var c,r=e("f0c5"),u=Object(r["a"])(o["default"],a["b"],a["c"],!1,null,"0295e43a",null,!1,a["a"],c);n["default"]=u.exports},5857:function(t,n,e){"use strict";var a=e("4ea4");Object.defineProperty(n,"__esModule",{value:!0}),n.login=i,n.register=c,n.verify=r,n.getUserInfo=u,n.loginMobile=s,n.bangding=l;var o=a(e("6150"));function i(t){return(0,o.default)({url:"/api/login",method:"post",data:t})}function c(t){return(0,o.default)({url:"/api/register",method:"post",data:t})}function r(t){return(0,o.default)({url:"/api/register/verify",method:"post",data:t})}function u(t){return(0,o.default)({url:"/api/userinfo",method:"get",data:t})}function s(t){return(0,o.default)({url:"/api/login/mobile",method:"post",data:t})}function l(t){return(0,o.default)({url:"/api/binding",method:"POST",data:t})}},"6cea":function(t,n,e){var a=e("8d5c");"string"===typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);var o=e("4f06").default;o("c3398d62",a,!0,{sourceMap:!1,shadowMode:!1})},"755e":function(t,n,e){"use strict";var a=e("4ea4");Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var o=a(e("5530")),i=e("5857"),c=e("26cb"),r=e("2f1a"),u={data:function(){return{time:"",countDown:0,account:"",captcha:"",password:"",loding:!1}},watch:{countDown:function(t){0==t&&clearInterval(this.time)}},computed:(0,o.default)({},(0,c.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[3|4|5|7|8][0-9]{9}$)/.test(this.account))return!(t.countDown>0)&&(t.countDown=60,t.time=setInterval((function(){t.countDown--}),1e3),void(0,i.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(t){var n=this;n.loding=!0,(0,r.binding)({phone:n.account,captcha:n.captcha}).then((function(t){t.data;n.$api.msg("绑定成功!"),setTimeout((function(){n.loding=!1,uni.switchTab({url:"/pages/user/user"})}),1e3)})).catch((function(t){n.loding=!1,console.log(t)}))}}};n.default=u},"83e7":function(t,n,e){"use strict";var a;e.d(n,"b",(function(){return o})),e.d(n,"c",(function(){return i})),e.d(n,"a",(function(){return a}));var o=function(){var t=this,n=t.$createElement,e=t._self._c||n;return e("v-uni-view",{staticClass:"container"},[e("v-uni-view",{staticClass:"row b-b"},[e("v-uni-text",{staticClass:"tit"},[t._v("手机号")]),e("v-uni-input",{staticClass:"input",attrs:{type:"text",placeholder:"请填写手机号","placeholder-class":"placeholder"},model:{value:t.account,callback:function(n){t.account=n},expression:"account"}})],1),e("v-uni-view",[e("v-uni-view",{staticClass:"row b-b"},[e("v-uni-text",{staticClass:"tit"},[t._v("验证码")]),e("v-uni-input",{staticClass:"input",attrs:{type:"text",placeholder:"请填写验证码","placeholder-class":"placeholder"},model:{value:t.captcha,callback:function(n){t.captcha=n},expression:"captcha"}}),e("v-uni-view",{staticClass:"code",on:{click:function(n){arguments[0]=n=t.$handleEvent(n),t.verification.apply(void 0,arguments)}}},[t._v(t._s(0==t.countDown?"验证码":t.countDown))])],1),e("v-uni-button",{staticClass:"add-btn",class:{"bg-gray":t.loding},on:{click:function(n){arguments[0]=n=t.$handleEvent(n),!t.loding&&t.confirm()}}},[t._v("提交")])],1)],1)},i=[]},"89f9":function(t,n,e){"use strict";e.r(n);var a=e("755e"),o=e.n(a);for(var i in a)"default"!==i&&function(t){e.d(n,t,(function(){return a[t]}))}(i);n["default"]=o.a},"8d5c":function(t,n,e){var a=e("24fb");n=a(!1),n.push([t.i,'@charset "UTF-8";\n/* 页面左右间距 */\n/* 文字尺寸 */\n/*文字颜色*/\n/* 边框颜色 */\n/*颜色*/\n/* 图片加载中颜色 */\n/* 行为相关颜色 */\n/* 功能栏字体大小 */\n/*功能栏左侧小图标*/uni-page-body[data-v-0295e43a]{background:#f8f8f8}.row[data-v-0295e43a]{display:flex;align-items:center;position:relative;padding:0 %?30?%;height:%?110?%;background:#fff}.row .tit[data-v-0295e43a]{flex-shrink:0;width:%?120?%;font-size:%?30?%;color:#303133}.row .input[data-v-0295e43a]{flex:1;font-size:%?30?%;color:#303133}.row .iconlocation[data-v-0295e43a]{font-size:%?36?%;color:#909399}.add-btn[data-v-0295e43a]{display:flex;align-items:center;justify-content:center;width:%?690?%;height:%?80?%;margin:%?60?% auto;font-size:%?32?%;color:#fff;background-color:#5dbc7c;border-radius:%?10?%}.bg-gray[data-v-0295e43a]{background-color:#999}.code[data-v-0295e43a]{color:#5dbc7c;font-size:%?23?%;border-left:1px solid #eee;width:%?150?%;flex-shrink:0;text-align:center}body.?%PAGE?%[data-v-0295e43a]{background:#f8f8f8}',""]),t.exports=n}}]);