1 line
9.2 KiB
JavaScript
1 line
9.2 KiB
JavaScript
|
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-users-retrievePassword-index"],{"172d":function(t,e,a){t.exports=a.p+"static/img/bg-linear.5a23c023.png"},"1de5":function(t,e,a){"use strict";t.exports=function(t,e){return e||(e={}),t=t&&t.__esModule?t.default:t,"string"!==typeof t?t:(/^['"].*['"]$/.test(t)&&(t=t.slice(1,-1)),e.hash&&(t+=e.hash),/["'() \t\n]/.test(t)||e.needQuotes?'"'.concat(t.replace(/"/g,'\\"').replace(/\n/g,"\\n"),'"'):t)}},"3edc":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 n=i(a("c7eb")),s=i(a("1da1")),r=i(a("430f")),c=a("2110"),o={name:"RetrievePassword",data:function(){return{account:"",password:"",captcha:"",keyCode:"",codeUrl:"",codeVal:"",isShowCode:!1}},mixins:[r.default],mounted:function(){},methods:{back:function(){uni.navigateBack()},again:function(){this.codeUrl=VUE_APP_API_URL+"/captcha?"+this.keyCode+Date.parse(new Date)},registerReset:function(){var t=this;return(0,s.default)((0,n.default)().mark((function e(){var a;return(0,n.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:"请填写手机号码"}));case 3:if(/^(13[0-9]|14[01456879]|15[0-35-9]|16[2567]|17[0-8]|18[0-9]|19[0-35-9])\d{8}$/.test(a.account)){e.next=5;break}return e.abrupt("return",a.$util.Tips({title:"请输入正确的手机号码"}));case 5:if(a.captcha){e.next=7;break}return e.abrupt("return",a.$util.Tips({title:"请填写验证码"}));case 7:(0,c.registerReset)({mobile:a.account,password:a.password,code:a.captcha}).then((function(t){a.$util.Tips({title:t.message},{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,s.default)((0,n.default)().mark((function e(){var a;return(0,n.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:"请填写手机号码"}));case 3:if(/^(13[0-9]|14[01456879]|15[0-35-9]|16[2567]|17[0-8]|18[0-9]|19[0-35-9])\d{8}$/.test(a.account)){e.next=5;break}return e.abrupt("return",a.$util.Tips({title:"请输入正确的手机号码"}));case 5:return e.next=7,(0,c.registerVerify)(a.account,3).then((function(t){a.sendCode()})).catch((function(t){a.$util.Tips({title:t})}));case 7:case"end":return e.stop()}}),e)})))()}}};e.default=o},"430f":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:"获取验证码"}},methods:{sendCode:function(){var t=this;if(!this.disabled){this.disabled=!0;var e=60;this.text="剩余 "+e+"s";var a=setInterval((function(){e-=1,e<0&&clearInterval(a),t.text="剩余 "+e+"s",t.text<"剩余 0s"&&(t.disabled=!1,t.text="重新获取")}),1e3)}}}};e.default=i},"68d5":function(t,e,a){"use strict";var i=a("94cb"),n=a.n(i);n.a},"6e92":function(t,e,a){"use strict";a.r(e);var i=a("3edc"),n=a.n(i);for(var s in i)["default"].indexOf(s)<0&&function(t){a.d(e,t,(function(){return i[t]}))}(s);e["default"]=n.a},"94cb":function(t,e,a){var i=a("f188");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var n=a("4f06").default;n("4ca7156a",i,!0,{sourceMap:!1,shadowMode:!1})},a309:function(t,e,a){"use strict";a.r(e);var i=a("cf35"),n=a("6e92");for(var s in n)["default"].indexOf(s)<0&&function(t){a.d(e,t,(function(){return n[t]}))}(s);a("68d5");var r=a("f0c5"),c=Object(r["a"])(n["default"],i["b"],i["c"],!1,null,"526cb135",null,!1,i["a"],void 0);e["default"]=c.exports},cf35:function(t,e,a){"use strict";a.d(e,"b",(function(){return i})),a.d(e,"c",(function(){return n})),a.d(e,"a",(function(){}));var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"login-wrapper"},[t._m(0),a("v-uni-view",{staticClass:"title"},[t._v("找回密码")]),a("div",{staticClass:"whiteBg"},[a("div",{staticClass:"list"},[a("div",{staticClass:"item"},[a("div",{st
|