1 line
7.6 KiB
JavaScript
1 line
7.6 KiB
JavaScript
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-users-retrievePassword-index"],{"1f34":function(t,e,a){"use strict";a.d(e,"b",(function(){return i})),a.d(e,"c",(function(){return c})),a.d(e,"a",(function(){}));var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"register absolute"},[a("div",{staticClass:"shading"},[a("div",{staticClass:"pictrue acea-row row-center-wrapper"},[t.login_logo?a("v-uni-image",{attrs:{src:t.login_logo}}):t._e()],1)]),a("div",{staticClass:"whiteBg"},[a("div",{staticClass:"title"},[t._v("忘记密码")]),a("div",{staticClass:"list"},[a("div",{staticClass:"item"},[a("div",{staticClass:"acea-row row-middle"},[a("v-uni-image",{attrs:{src:"/static/images/phone_1.png"}}),a("v-uni-input",{attrs:{type:"text",placeholder:"输入手机号码",autocomplete:"off"},model:{value:t.account,callback:function(e){t.account=e},expression:"account"}}),a("v-uni-input",{staticStyle:{height:"0",opacity:"0"},attrs:{type:"text"}})],1)]),a("div",{staticClass:"item"},[a("div",{staticClass:"acea-row row-middle"},[a("v-uni-image",{attrs:{src:"/static/images/code_2.png"}}),a("v-uni-input",{attrs:{type:"password",placeholder:"填写您的新密码",autocomplete:"off"},model:{value:t.password,callback:function(e){t.password=e},expression:"password"}})],1)]),a("div",{staticClass:"item"},[a("div",{staticClass:"acea-row row-middle"},[a("v-uni-image",{attrs:{src:"/static/images/code_2.png"}}),a("v-uni-input",{attrs:{type:"password",placeholder:"再次输入新密码",autocomplete:"off"},model:{value:t.confirm_pwd,callback:function(e){t.confirm_pwd=e},expression:"confirm_pwd"}})],1)]),a("div",{staticClass:"item"},[a("div",{staticClass:"acea-row row-middle"},[a("v-uni-image",{attrs:{src:"/static/images/code_2.png"}}),a("v-uni-input",{staticClass:"codeIput",attrs:{type:"text",placeholder:"填写验证码",autocomplete:"off"},model:{value:t.captcha,callback:function(e){t.captcha=e},expression:"captcha"}}),a("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.handleVerify.apply(void 0,arguments)}}},[t._v(t._s(t.text))])],1)]),t.isShowCode?a("div",{staticClass:"item"},[a("div",{staticClass:"acea-row row-middle"},[a("v-uni-input",{staticClass:"codeIput",attrs:{type:"text",placeholder:"填写验证码"},model:{value:t.codeVal,callback:function(e){t.codeVal=e},expression:"codeVal"}}),a("div",{staticClass:"code",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.again.apply(void 0,arguments)}}},[a("v-uni-image",{staticClass:"code-img",staticStyle:{width:"100%",height:"100%"},attrs:{src:t.codeUrl}})],1)],1)]):t._e()]),a("div",{staticClass:"logon",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.registerReset.apply(void 0,arguments)}}},[t._v("确认")]),a("div",{staticClass:"tip"},[a("span",{staticClass:"font-color-red",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.back.apply(void 0,arguments)}}},[t._v("立即登录")])])]),a("div",{staticClass:"bottom"}),a("Verify",{ref:"verify",attrs:{captchaType:"blockPuzzle",imgSize:{width:"330px",height:"155px"}},on:{success:function(e){arguments[0]=e=t.$handleEvent(e),t.success.apply(void 0,arguments)}}})],1)},c=[]},3389:function(t,e,a){"use strict";var i=a("7ca8"),c=a.n(i);c.a},"366b":function(t,e,a){"use strict";a("7a82"),Object.defineProperty(e,"__esModule",{value:!0}),e.checkPhone=function(t){return!!/^1(3|4|5|6|7|8|9)\d{9}$/.test(t)},e.isEmailAvailable=function(t){return!!/^([a-zA-Z0-9]+[_|\_|\.]?)*[a-zA-Z0-9]+@([a-zA-Z0-9]+[_|\_|\.]?)*[a-zA-Z0-9]+\.[a-zA-Z]{2,3}$/.test(t)},e.isMoney=function(t){return!!/(^[1-9]([0-9]+)?(\.[0-9]{1,2})?$)|(^(0){1}$)|(^[0-9]\.[0-9]([0-9])?$)/.test(t)},a("ac1f"),a("00b4")},"5a2a":function(t,e,a){var i=a("24fb");e=i(!1),e.push([t.i,".code img[data-v-4375bc16]{width:100%;height:100%}",""]),t.exports=e},"723f":function(t,e,a){"use strict";a.r(e);var i=a("a253"),c=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"]=c.a},"7ca8":function(t,e,a){var i=a("5a2a");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var c=a("4f06").default;c("627ec1c2",i,!0,{sourceMap:!1,shadowMode:!1})},a253:function(t,e,a){"use strict";a("7a82");var i=a("dbce").default,c=a("4ea4").default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,a("ac1f"),a("00b4");var s=c(a("c7eb")),n=c(a("1da1")),o=c(a("e193")),r=a("33b4"),u=(a("d49e"),i(a("366b")),a("5315")),d=c(a("4b41")),l=(getApp(),{name:"RetrievePassword",components:{Verify:d.default},mixins:[o.default],data:function(){return{account:"",password:"",confirm_pwd:"",captcha:"",codeKey:"",codeUrl:"",codeVal:"",isShowCode:!1}},computed:(0,u.configMap)(["login_logo"]),onReady:function(){},mounted:function(){},methods:{back:function(){uni.navigateBack()},again:function(){this.codeUrl=VUE_APP_API_URL+"/captcha?"+this.keyCode+Date.parse(new Date)},code:function(t){var e=this;return(0,n.default)((0,s.default)().mark((function a(){var i;return(0,s.default)().wrap((function(a){while(1)switch(a.prev=a.next){case 0:if(i=e,i.account){a.next=3;break}return a.abrupt("return",i.$util.Tips({title:"请填写手机号码"}));case 3:if(/^1(3|4|5|7|8|9|6)\d{9}$/i.test(i.account)){a.next=5;break}return a.abrupt("return",i.$util.Tips({title:"请输入正确的手机号码"}));case 5:return a.next=7,(0,r.registerVerify)({phone:i.account,type:"change_pwd",captchaType:"blockPuzzle",captchaVerification:t.captchaVerification}).then((function(t){i.$util.Tips({title:t.message}),i.sendCode()})).catch((function(t){i.$util.Tips({title:t})}));case 7:case"end":return a.stop()}}),a)})))()},getcaptcha:function(){var t=this;(0,r.getCaptcha)().then((function(e){t.codeUrl=e.data.captcha,t.codeVal=e.data.code,t.codeKey=e.data.key})),t.isShowCode=!0},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:"请填写手机号码"}));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:"请输入正确的手机号码"}));case 5:if("123456"!=a.password){e.next=7;break}return e.abrupt("return",a.$util.Tips({title:"您输入的密码过于简单"}));case 7:if(a.password==a.confirm_pwd){e.next=9;break}return e.abrupt("return",a.$util.Tips({title:"两次密码不一致"}));case 9:if(a.captcha){e.next=11;break}return e.abrupt("return",a.$util.Tips({title:"请填写验证码"}));case 11:(0,r.registerForget)({phone:a.account,sms_code:a.captcha,pwd:a.password,confirm_pwd:a.confirm_pwd}).then((function(t){a.$util.Tips({title:t.msg},{tab:3})})).catch((function(t){a.$util.Tips({title:t})}));case 12:case"end":return e.stop()}}),e)})))()},success:function(t){this.$refs.verify.hide(),this.code(t)},handleVerify:function(){this.$refs.verify.show()}}});e.default=l},d23c:function(t,e,a){"use strict";a.r(e);var i=a("1f34"),c=a("723f");for(var s in c)["default"].indexOf(s)<0&&function(t){a.d(e,t,(function(){return c[t]}))}(s);a("3389");var n=a("f0c5"),o=Object(n["a"])(c["default"],i["b"],i["c"],!1,null,"4375bc16",null,!1,i["a"],void 0);e["default"]=o.exports},d49e:function(t,e){},e193: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}}]); |