徐总多门店
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

1 lines
3.8 KiB

require('../common/vendor.js');(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/users/retrievePassword/index"],{"049a":function(t,e,n){"use strict";(function(t,e){var i=n("47a9");n("7561");i(n("3240"));var a=i(n("5e1d"));t.__webpack_require_UNI_MP_PLUGIN__=n,e(a.default)}).call(this,n("3223")["default"],n("df3c")["createPage"])},"52f1":function(t,e,n){"use strict";n.d(e,"b",(function(){return i})),n.d(e,"c",(function(){return a})),n.d(e,"a",(function(){}));var i=function(){var t=this.$createElement;this._self._c},a=[]},"5e1d":function(t,e,n){"use strict";n.r(e);var i=n("52f1"),a=n("b558");for(var r in a)["default"].indexOf(r)<0&&function(t){n.d(e,t,(function(){return a[t]}))}(r);n("7b8f");var c=n("828b"),u=Object(c["a"])(a["default"],i["b"],i["c"],!1,null,"be146fac",null,!1,i["a"],void 0);e["default"]=u.exports},"7b8f":function(t,e,n){"use strict";var i=n("915c"),a=n.n(i);a.a},"81cd":function(t,e,n){"use strict";(function(t){var i=n("47a9");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var a=i(n("7eb4")),r=i(n("ee10")),c=i(n("6ec3")),u=i(n("cef6")),s=n("77d7"),o=n("bad7"),f={name:"RetrievePassword",components:{Verify:function(){n.e("pages/users/components/verify/verify").then(function(){return resolve(n("a4ec"))}.bind(null,n)).catch(n.oe)}},data:function(){return{account:"",password:"",passwordAgain:"",captcha:"",keyCode:"",codeUrl:"",codeVal:"",isShowCode:!1,imgHost:o.HTTP_REQUEST_URL,type:"register"}},mixins:[c.default,u.default],mounted:function(){},methods:{back:function(){t.navigateBack()},again:function(){this.codeUrl=VUE_APP_API_URL+"/captcha?"+this.keyCode+Date.parse(new Date)},registerReset:function(){var t=this;return(0,r.default)(a.default.mark((function e(){var n;return a.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:"请填写手机号码"}));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:"请输入正确的手机号码"}));case 5:if(n.captcha){e.next=7;break}return e.abrupt("return",n.$util.Tips({title:"请填写验证码"}));case 7:if(n.password){e.next=9;break}return e.abrupt("return",n.$util.Tips({title:"请填写新密码"}));case 9:if(n.password==n.passwordAgain){e.next=11;break}return e.abrupt("return",n.$util.Tips({title:"两次密码不一致"}));case 11:(0,s.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 12:case"end":return e.stop()}}),e)})))()},success:function(t){var e=this;this.$refs.verify.hide(),(0,s.getCodeApi)().then((function(n){e.keyCode=n.data.key,e.getCode(t)})).catch((function(t){e.$util.Tips({title:t})}))},code:function(t){return this.account?/^1(3|4|5|7|8|9|6)\d{9}$/i.test(this.account)?void this.$refs.verify.show():this.$util.Tips({title:"请输入正确的手机号码"}):this.$util.Tips({title:"请填写手机号码"})},getCode:function(t){var e=this;return(0,r.default)(a.default.mark((function n(){var i;return a.default.wrap((function(n){while(1)switch(n.prev=n.next){case 0:return i=e,n.next=4,(0,s.registerVerify)({phone:i.account,type:i.type,key:i.keyCode,captchaType:"blockPuzzle",captchaVerification:t.captchaVerification}).then((function(t){i.$util.Tips({title:t.msg}),i.sendCode()})).catch((function(t){i.$util.Tips({title:t})}));case 4:case"end":return n.stop()}}),n)})))()}}};e.default=f}).call(this,n("df3c")["default"])},"915c":function(t,e,n){},b558:function(t,e,n){"use strict";n.r(e);var i=n("81cd"),a=n.n(i);for(var r in i)["default"].indexOf(r)<0&&function(t){n.d(e,t,(function(){return i[t]}))}(r);e["default"]=a.a}},[["049a","common/runtime","common/vendor","pages/users/common/vendor"]]]);