1 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-set-password"],{1969:function(t,a,n){"use strict";n.r(a);var e=n("4253"),o=n("a488");for(var i in o)"default"!==i&&function(t){n.d(a,t,(function(){return o[t]}))}(i);n("948c");var c,r=n("f0c5"),s=Object(r["a"])(o["default"],e["b"],e["c"],!1,null,"00a0fcc3",null,!1,e["a"],c);a["default"]=s.exports},"2aa6":function(t,a,n){var e=n("3ff5");"string"===typeof e&&(e=[[t.i,e,""]]),e.locals&&(t.exports=e.locals);var o=n("4f06").default;o("0aed4590",e,!0,{sourceMap:!1,shadowMode:!1})},"3a66":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.transaction=s,a.binding=u;var o=e(n("0e39"));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/transaction",method:"post",data:t})}function u(t){return(0,o.default)({url:"/api/binding",method:"post",data:t})}},"3ff5":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-00a0fcc3]{background:#f8f8f8}.container[data-v-00a0fcc3]{padding-top:%?30?%}.row[data-v-00a0fcc3]{display:flex;align-items:center;position:relative;padding:0 %?30?%;height:%?110?%;background:#fff}.row .tit[data-v-00a0fcc3]{flex-shrink:0;width:%?120?%;font-size:%?30?%;color:#303133}.row .input[data-v-00a0fcc3]{flex:1;font-size:%?30?%;color:#303133}.row .iconlocation[data-v-00a0fcc3]{font-size:%?36?%;color:#909399}.add-btn[data-v-00a0fcc3]{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-00a0fcc3]{background-color:#999}.code[data-v-00a0fcc3]{color:#5dbc7c;font-size:%?23?%;border-left:1px solid #eee;width:%?150?%;flex-shrink:0;text-align:center}body.?%PAGE?%[data-v-00a0fcc3]{background:#f8f8f8}',""]),t.exports=a},4253: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=[]},"81de":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("bcd7"),c=n("26cb"),r=n("3a66"),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|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 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},"948c":function(t,a,n){"use strict";var e=n("2aa6"),o=n.n(e);o.a},a488:function(t,a,n){"use strict";n.r(a);var e=n("81de"),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},bcd7: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=d;var o=e(n("0e39"));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 d(t){return(0,o.default)({url:"/api/binding",method:"POST",data:t})}}}]);
|