pages-set-password.ec0266c6.js 5.7 KB

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