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