1 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-users-retrievePassword-index"],{"02de":function(t,e,a){"use strict";var i=a("71fe"),s=a.n(i);s.a},"0cdb":function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABwAAAAgCAYAAAABtRhCAAAD1klEQVRIS+2Xa4gbVRTH///ZjXR3VSz4AquuL+oXv/kA7YeuoiY792bpUoIKYlmh1CKoaEWrxSiWim8RXEWrKD4jVsmdyaKCKVr7oRs/iigoFZHGWl80u2qTzJEbJst0mtnMWvpFvBAIcx6/c86998wZYonLGLOW5GMAlgHYVKvV3iwWi0FaN0yjaIw5g+T1AG4FcHbURkR+APBsJpN5PZvN7uvnLxFoIY7jFEQkJyJXkXRCZy0ReQvAXyTXAcjY5yLSdhznoyAI/Gaz+e7k5OT+XnBWKpXzgiBYBWAYwAoRGQVwKcnzY5nsJ/nKwMDA87lcbq+Vlcvls0jeAmCK5KkxwFcA9gD4HsCPAP5uNpu7aIz5jeRJCaX4A8CHAN6fn5/fUSgUDvXSK5VKxw0NDa0FMAngWpLHJ/j7mZ7nSSj8VkS+Jvmd/QH4YnZ2dnexWGz125eovFarZer1+ioRuZjkqIicQ3IlgHOtXhR4hVJq91Kcp9X1PO9yAJ//D0xbsb56/62S+r5/m4j8rpR6tZv6McvQ87ynANxuQUqphS52TIBRmIg8orW+d8kZep7nAjhdKbV9sZMRhQF4Wil1R1Q/dYbGmINhmzrCSST6hTL2glm9OND2x4yIjGmtd0YjM8ZsI3lP+KxX5H1hIXAMwCcA/rStzb5GThGRNVrrD+KlSypXvzLGSmqb+nsA9tH3/T0icomIbNZab+u1V3HnoU7nNCaVMQa8D8DDAD6zwGkR2UDSuK6bTzocMWhXLXFvY8AZAFmSz9j34RqSO2x92+32aRMTEwdTQtPClgP4KZwMrrZA+6avkzzBDkVKqcf7XIGbwou90En66G8GsNUyRkZGzux0A2PMoyQ3ATgwODi4MpvN/tq3I6dQqFQqK4Ig+BLAid1kusCTSX4DwKb/tlLKTmhHtUql0sDw8PDHAMbCye5CrfV8tN+tB/BCSHlCKXXX0RCNMdMkN1gfIpLXWhv7/7Ax0fO8lwDcHIK2KqXu/zdQz/PsoNwJWES2aK3tleisw4DVanVwbm7unXD6svI3RGS9LUUacLVaXdZoNLaTvCGEPam1vjNqe8QgbKGNRuNlkjeGinsdx9k4Pj5u71LiMsbYYXkawAWdTMii67oPxg0SJ+9yubzRcRx7RYZCo51BEGzJ5/O7ok58378MwEMick2Y1S8kp5RS5V7RLfptMTMzM9pqtZ4jmYsYfyoiJQCHHMe5TkSuDGVtEXkNwN1a6wNJpUj7MbOa5AMAVvdw1ARgA7CHzI73i65UwK4H3/cvEpEpESmQtLYv2n1zXbfeD9SV/wMtt/fR/C3zpwAAAABJRU5ErkJggg=="},"0d94":function(t,e,a){"use strict";a("7a82");var i=a("4ea4").default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,a("ac1f"),a("00b4");var s=i(a("c7eb")),n=i(a("1da1")),c=i(a("dc9d")),r=a("d1ea"),o={name:"RetrievePassword",data:function(){return{account:"",password:"",captcha:"",keyCode:"",codeUrl:"",codeVal:"",isShowCode:!1}},mixins:[c.default],mounted:function(){this.getCode()},methods:{back:function(){uni.navigateBack()},again:function(){this.codeUrl=VUE_APP_API_URL+"/captcha?"+this.keyCode+Date.parse(new Date)},getCode:function(){var t=this;(0,r.getCodeApi)().then((function(e){t.keyCode=e.data.key})).catch((function(e){t.$util.Tips({title:e.msg.msg||t.$t("加载失败")})}))},registerReset:function(){var t=this;return(0,n.default)((0,s.default)().mark((function e(){var a;return(0,s.default)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(a=t,a.account){e.next=3;break}return e.abrupt("return",a.$util.Tips({title:a.$t("请填写手机号码")}));case 3:if(/^1(3|4|5|7|8|9|6)\d{9}$/i.test(a.account)){e.next=5;break}return e.abrupt("return",a.$util.Tips({title:a.$t("请输入正确的手机号码")}));case 5:if(a.captcha){e.next=7;break}return e.abrupt("return",a.$util.Tips({title:a.$t("请填写验证码")}));case 7:(0,r.registerReset)({account:a.account,captcha:a.captcha,password:a.password,code:a.codeVal}).then((function(t){a.$util.Tips({title:t.msg},{tab:3})})).catch((function(t){a.$util.Tips({title:t})}));case 8:case"end":return e.stop()}}),e)})))()},code:function(){var t=this;return(0,n.default)((0,s.default)().mark((function e(){var a;return(0,s.default)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(a=t,a.account){e.next=3;break}return e.abrupt("return",a.$util.Tips({title:a.$t("请填写手机号码")}));case 3:if(/^1(3|4|5|7|8|9|6)\d{9}$/i.test(a.account)){e.next=5;break}return e.abrupt("return",a.$util.Tips({title:a.$t("请输入正确的手机号码")}));case 5:return 2==a.formItem&&(a.type="register"),e.next=8,(0,r.registerVerify)({phone:a.account,type:a.type,key:a.keyCode,code:a.codeVal}).then((function(e){t.$util.Tips({title:e.msg||a.$t("加载失败")}),a.sendCode()})).catch((function(t){a.$util.Tips({title:t})}));case 8:case"end":return e.stop()}}),e)})))()}}};e.default=o},"2ff9":function(t,e,a){"use strict";a.r(e);var i=a("d771"),s=a("7314");for(var n in s)["default"].indexOf(n)<0&&function(t){a.d(e,t,(function(){return s[t]}))}(n);a("02de");var c=a("f0c5"),r=Object(c["a"])(s["default"],i["b"],i["c"],!1,null,"0a53ebe8",null,!1,i["a"],void 0);e["default"]=r.exports},"71fe":function(t,e,a){var i=a("ee1e");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var s=a("4f06").default;s("a095fa86",i,!0,{sourceMap:!1,shadowMode:!1})},7314:function(t,e,a){"use strict";a.r(e);var i=a("0d94"),s=a.n(i);for(var n in i)["default"].indexOf(n)<0&&function(t){a.d(e,t,(function(){return i[t]}))}(n);e["default"]=s.a},"76f3":function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABkAAAAiCAYAAACqVHINAAABcklEQVRIS+2XsUvDQBTGv6+00MGho4OD/gFuGSr+CbkWClIX/wAHBzddhICDCIpL9y46SqEJmRwFK2R018HBwc0OhZR7cqXRWDA27YFLbgu8e797X+4d36PneWXHcY4A7ANYg6UlIm8kO1EUndP3/TOSxyIyJBlZYkBEHJIrAC4M5MN8aK23ms3mwBak3+/XS6XSw+TwQRCISRzH8Uar1XqxBen1euuVSuXZ5MuEhGG4q7W+BlDOgI9I7rmue5uOmRsyLfn0D8hYa30yK/XckGWkKyC51CvkKuTKflZy6TMTXNyuXOoVchVyfTejiAxIjnJpkhEsIlWS9R9GAsArgLEtyNQXTMzi/1uiZapaqBmDIHAB7CRgEblrNBo3vx1kIYjv+z5JlUr6pJTatArpdrvVWq22miSN4/i93W4P54IkhttcN9d1H5f5D+m9YRhua63vE8N9BeDQ9ugAwPSI6RWPqSHoAMCXHBYqMhNCRyl1+QmrN5sHdi02lgAAAABJRU5ErkJggg=="},a9b0:function(t,e,a){t.exports=a.p+"static/img/logo2.bf4a7420.png"},d771:function(t,e,a){"use strict";a.d(e,"b",(function(){return i})),a.d(e,"c",(function(){return s})),a.d(e,"a",(function(){}));var i=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"register absolute"},[i("div",{staticClass:"shading"},[i("div",{staticClass:"pictrue acea-row row-center-wrapper"},[i("v-uni-image",{attrs:{src:a("a9b0")}})],1)]),i("div",{staticClass:"whiteBg"},[i("div",{staticClass:"title"},[t._v(t._s(t.$t("找回密码")))]),i("div",{staticClass:"list"},[i("div",{staticClass:"item"},[i("div",{staticClass:"acea-row row-middle"},[i("v-uni-image",{attrs:{src:a("76f3")}}),i("v-uni-input",{attrs:{type:"text",placeholder:t.$t("输入手机号码")},model:{value:t.account,callback:function(e){t.account=e},expression:"account"}})],1)]),i("div",{staticClass:"item"},[i("div",{staticClass:"acea-row row-middle"},[i("v-uni-image",{attrs:{src:a("0cdb")}}),i("v-uni-input",{staticClass:"codeIput",attrs:{type:"text",placeholder:t.$t("填写验证码")},model:{value:t.captcha,callback:function(e){t.captcha=e},expression:"captcha"}}),i("v-uni-button",{staticClass:"code",class:!0===t.disabled?"on":"",attrs:{disabled:t.disabled},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.code.apply(void 0,arguments)}}},[t._v(t._s(t.text))])],1)]),i("div",{staticClass:"item"},[i("div",{staticClass:"acea-row row-middle"},[i("v-uni-image",{attrs:{src:a("0cdb")}}),i("v-uni-input",{attrs:{type:"password",placeholder:t.$t("填写您的新密码")},model:{value:t.password,callback:function(e){t.password=e},expression:"password"}})],1)]),t.isShowCode?i("div",{staticClass:"item"},[i("div",{staticClass:"align-left"},[i("v-uni-input",{staticClass:"codeIput",attrs:{type:"text",placeholder:t.$t("填写验证码")},model:{value:t.codeVal,callback:function(e){t.codeVal=e},expression:"codeVal"}}),i("div",{staticClass:"code",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.again.apply(void 0,arguments)}}},[i("img",{attrs:{src:t.codeUrl}})])],1)]):t._e()]),i("div",{staticClass:"logon",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.registerReset.apply(void 0,arguments)}}},[t._v(t._s(t.$t("确认")))]),i("div",{staticClass:"tip"},[i("span",{staticClass:"font-color-red",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.back.apply(void 0,arguments)}}},[t._v(t._s(t.$t("立即登录")))])])]),i("div",{staticClass:"bottom"})])},s=[]},dc9d:function(t,e,a){"use strict";a("7a82"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i={data:function(){return{disabled:!1,text:this.$t("验证码"),runTime:void 0,captchaType:"clickWord"}},methods:{sendCode:function(){var t=this;if(!this.disabled){this.disabled=!0;var e=60;this.text=this.$t("剩余")+e+"s",this.runTime=setInterval((function(){if(e-=1,e<0)return clearInterval(t.runTime),t.disabled=!1,void(t.text=t.$t("重新获取"));t.text=t.$t("剩余")+e+"s"}),1e3)}}},onHide:function(){clearInterval(this.runTime)}};e.default=i},ee1e:function(t,e,a){var i=a("24fb");e=i(!1),e.push([t.i,".code img[data-v-0a53ebe8]{width:100%;height:100%}",""]),t.exports=e}}]);
|