index.js 3.6 KB

1
  1. require('../common/vendor.js');(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/users/retrievePassword/index"],{"25fb":function(t,e,n){"use strict";var a=n("49dc"),c=n.n(a);c.a},"2ff9":function(t,e,n){"use strict";n.r(e);var a=n("93c9"),c=n("7314");for(var r in c)["default"].indexOf(r)<0&&function(t){n.d(e,t,(function(){return c[t]}))}(r);n("25fb");var i=n("f0c5"),u=Object(i["a"])(c["default"],a["b"],a["c"],!1,null,"46d906f2",null,!1,a["a"],void 0);e["default"]=u.exports},"49dc":function(t,e,n){},7314:function(t,e,n){"use strict";n.r(e);var a=n("858b"),c=n.n(a);for(var r in a)["default"].indexOf(r)<0&&function(t){n.d(e,t,(function(){return a[t]}))}(r);e["default"]=c.a},"858b":function(t,e,n){"use strict";(function(t){var a=n("4ea4");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var c=a(n("2eee")),r=a(n("c973")),i=a(n("dc9d")),u=n("d1ea"),o={name:"RetrievePassword",data:function(){return{account:"",password:"",captcha:"",keyCode:"",codeUrl:"",codeVal:"",isShowCode:!1}},mixins:[i.default],mounted:function(){this.getCode()},methods:{back:function(){t.navigateBack()},again:function(){this.codeUrl=VUE_APP_API_URL+"/captcha?"+this.keyCode+Date.parse(new Date)},getCode:function(){var t=this;(0,u.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,r.default)(c.default.mark((function e(){var n;return c.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(n=t,n.account){e.next=3;break}return e.abrupt("return",n.$util.Tips({title:n.$t("请填写手机号码")}));case 3:if(/^1(3|4|5|7|8|9|6)\d{9}$/i.test(n.account)){e.next=5;break}return e.abrupt("return",n.$util.Tips({title:n.$t("请输入正确的手机号码")}));case 5:if(n.captcha){e.next=7;break}return e.abrupt("return",n.$util.Tips({title:n.$t("请填写验证码")}));case 7:(0,u.registerReset)({account:n.account,captcha:n.captcha,password:n.password,code:n.codeVal}).then((function(t){n.$util.Tips({title:t.msg},{tab:3})})).catch((function(t){n.$util.Tips({title:t})}));case 8:case"end":return e.stop()}}),e)})))()},code:function(){var t=this;return(0,r.default)(c.default.mark((function e(){var n;return c.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(n=t,n.account){e.next=3;break}return e.abrupt("return",n.$util.Tips({title:n.$t("请填写手机号码")}));case 3:if(/^1(3|4|5|7|8|9|6)\d{9}$/i.test(n.account)){e.next=5;break}return e.abrupt("return",n.$util.Tips({title:n.$t("请输入正确的手机号码")}));case 5:return 2==n.formItem&&(n.type="register"),e.next=8,(0,u.registerVerify)({phone:n.account,type:n.type,key:n.keyCode,code:n.codeVal}).then((function(e){t.$util.Tips({title:e.msg||n.$t("加载失败")}),n.sendCode()})).catch((function(t){n.$util.Tips({title:t})}));case 8:case"end":return e.stop()}}),e)})))()}}};e.default=o}).call(this,n("543d")["default"])},"93c9":function(t,e,n){"use strict";n.d(e,"b",(function(){return a})),n.d(e,"c",(function(){return c})),n.d(e,"a",(function(){}));var a=function(){var t=this,e=t.$createElement,n=(t._self._c,t.$t("找回密码")),a=t.$t("输入手机号码"),c=t.$t("填写验证码"),r=t.$t("填写您的新密码"),i=t.isShowCode?t.$t("填写验证码"):null,u=t.$t("确认"),o=t.$t("立即登录");t.$mp.data=Object.assign({},{$root:{m0:n,m1:a,m2:c,m3:r,m4:i,m5:u,m6:o}})},c=[]},c647:function(t,e,n){"use strict";(function(t,e){var a=n("4ea4");n("4789");a(n("66fd"));var c=a(n("2ff9"));t.__webpack_require_UNI_MP_PLUGIN__=n,e(c.default)}).call(this,n("bc2e")["default"],n("543d")["createPage"])}},[["c647","common/runtime","common/vendor"]]]);