pages-set-password.ec366bdb.js 6.1 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-set-password"],{1527:function(t,e,n){"use strict";var a=n("34a1"),i=n.n(a);i.a},"1ebe":function(t,e,n){"use strict";var a=n("4ea4");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=a(n("5530")),o=n("cc17"),c=n("2f62"),r=n("4b22"),s={data:function(){return{time:"",countDown:0,account:"",captcha:"",password:"",loding:!1}},computed:(0,i.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,o.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("修改成功")})).catch((function(t){e.loding=!1,console.log(t)}))}}};e.default=s},"34a1":function(t,e,n){var a=n("ece8");"string"===typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);var i=n("4f06").default;i("0d9b8ba0",a,!0,{sourceMap:!1,shadowMode:!1})},"4b22":function(t,e,n){"use strict";var a=n("4ea4");Object.defineProperty(e,"__esModule",{value:!0}),e.userEdit=o,e.logout=c,e.registerReset=r,e.binding=s;var i=a(n("bc58"));function o(t){return(0,i.default)({url:"/api/user/edit",method:"post",data:t})}function c(t){return(0,i.default)({url:"/api/logout",method:"get",data:t})}function r(t){return(0,i.default)({url:"/api/register/reset",method:"post",data:t})}function s(t){return(0,i.default)({url:"/api/binding",method:"post",data:t})}},5144:function(t,e,n){"use strict";var a;n.d(e,"b",(function(){return i})),n.d(e,"c",(function(){return o})),n.d(e,"a",(function(){return a}));var i=function(){var t=this,e=t.$createElement,n=t._self._c||e;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(e){t.account=e},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(e){t.captcha=e},expression:"captcha"}}),n("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),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(e){t.password=e},expression:"password"}})],1),n("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=[]},a442:function(t,e,n){"use strict";n.r(e);var a=n("1ebe"),i=n.n(a);for(var o in a)"default"!==o&&function(t){n.d(e,t,(function(){return a[t]}))}(o);e["default"]=i.a},cc17:function(t,e,n){"use strict";var a=n("4ea4");Object.defineProperty(e,"__esModule",{value:!0}),e.login=o,e.verify=c,e.getUserInfo=r,e.loginMobile=s,e.register=u,e.registerVerify=l,e.jiaMobile=d;var i=a(n("bc58"));function o(t){return(0,i.default)({url:"/api/login",method:"post",data:t})}function c(t){return(0,i.default)({url:"/api/verify_code",method:"post",data:t})}function r(t){return(0,i.default)({url:"/api/userinfo",method:"get",data:t})}function s(t){return(0,i.default)({url:"/api/login/mobile",method:"post",data:t})}function u(t){return(0,i.default)({url:"/api/register",method:"post",data:t})}function l(t){return(0,i.default)({url:"/api/auth/verify",data:t})}function d(t){return(0,i.default)({url:"/api/register",method:"post",data:t})}},d486:function(t,e,n){"use strict";n.r(e);var a=n("5144"),i=n("a442");for(var o in i)"default"!==o&&function(t){n.d(e,t,(function(){return i[t]}))}(o);n("1527");var c,r=n("f0c5"),s=Object(r["a"])(i["default"],a["b"],a["c"],!1,null,"607775e8",null,!1,a["a"],c);e["default"]=s.exports},ece8:function(t,e,n){var a=n("24fb");e=a(!1),e.push([t.i,'@charset "UTF-8";\n/* 页面左右间距 */\n/* 文字尺寸 */\n/*文字颜色*/\n/* 边框颜色 */\n/*颜色*/\n/* 图片加载中颜色 */\n/* 行为相关颜色 */\n/* 功能栏字体大小 */\n/*功能栏左侧小图标*/uni-page-body[data-v-607775e8]{background:#f8f6f6}.container[data-v-607775e8]{padding-top:%?30?%}.row[data-v-607775e8]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;position:relative;padding:0 %?30?%;height:%?110?%;background:#fff}.row .tit[data-v-607775e8]{-webkit-flex-shrink:0;flex-shrink:0;width:%?120?%;font-size:%?30?%;color:#303133}.row .input[data-v-607775e8]{-webkit-box-flex:1;-webkit-flex:1;flex:1;font-size:%?30?%;color:#303133}.row .iconlocation[data-v-607775e8]{font-size:%?36?%;color:#909399}.add-btn[data-v-607775e8]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;width:%?690?%;height:%?80?%;margin:%?60?% auto;font-size:%?32?%;color:#fff;background-color:#921a23;border-radius:%?10?%}.bg-gray[data-v-607775e8]{background-color:#999}.code[data-v-607775e8]{color:#5dbc7c;font-size:%?23?%;border-left:1px solid #eee;width:%?150?%;-webkit-flex-shrink:0;flex-shrink:0;text-align:center}body.?%PAGE?%[data-v-607775e8]{background:#f8f6f6}',""]),t.exports=e}}]);