admin-api/public/static/js/pages-users-retrievePasswor...

1 line
11 KiB
JavaScript

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-users-retrievePassword-index"],{"0094":function(t,e,a){"use strict";var n,i=a("da84"),r=a("e330"),s=a("6964"),c=a("f183"),o=a("6d61"),u=a("acac"),d=a("861d"),f=a("4fad"),l=a("69f3").enforce,p=a("cdce"),v=!i.ActiveXObject&&"ActiveXObject"in i,h=function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}},g=o("WeakMap",h,u);if(p&&v){n=u.getConstructor(h,"WeakMap",!0),c.enable();var b=g.prototype,w=r(b["delete"]),m=r(b.has),y=r(b.get),_=r(b.set);s(b,{delete:function(t){if(d(t)&&!f(t)){var e=l(this);return e.frozen||(e.frozen=new n),w(this,t)||e.frozen["delete"](t)}return w(this,t)},has:function(t){if(d(t)&&!f(t)){var e=l(this);return e.frozen||(e.frozen=new n),m(this,t)||e.frozen.has(t)}return m(this,t)},get:function(t){if(d(t)&&!f(t)){var e=l(this);return e.frozen||(e.frozen=new n),m(this,t)?y(this,t):e.frozen.get(t)}return y(this,t)},set:function(t,e){if(d(t)&&!f(t)){var a=l(this);a.frozen||(a.frozen=new n),m(this,t)?_(this,t,e):a.frozen.set(t,e)}else _(this,t,e);return this}})}},"10d1":function(t,e,a){a("0094")},"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)}},"20ae":function(t,e,a){"use strict";a.r(e);var n=a("418f"),i=a("6e38");for(var r in i)["default"].indexOf(r)<0&&function(t){a.d(e,t,(function(){return i[t]}))}(r);a("d2ba");var s=a("f0c5"),c=Object(s["a"])(i["default"],n["b"],n["c"],!1,null,"12c6dd63",null,!1,n["a"],void 0);e["default"]=c.exports},2365: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")},"25b4":function(t,e,a){"use strict";a("7a82");var n=a("4ea4").default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=a("974a"),r=n(a("956a")),s=function(t,e){t&&r.default.set("spread",t||0),t&&e&&(0,i.spread)(t).then((function(t){}))};e.default=s},"418f":function(t,e,a){"use strict";a.d(e,"b",(function(){return n})),a.d(e,"c",(function(){return i})),a.d(e,"a",(function(){}));var n=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)},i=[]},"6e38":function(t,e,a){"use strict";a.r(e);var n=a("9956"),i=a.n(n);for(var r in n)["default"].indexOf(r)<0&&function(t){a.d(e,t,(function(){return n[t]}))}(r);e["default"]=i.a},"8a14":function(t,e,a){var n=a("24fb");e=n(!1),e.push([t.i,".code img[data-v-12c6dd63]{width:100%;height:100%}",""]),t.exports=e},9956:function(t,e,a){"use strict";a("7a82");var n=a("dbce").default,i=a("4ea4").default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,a("ac1f"),a("00b4");var r=i(a("c7eb")),s=i(a("1da1")),c=i(a("25b4")),o=i(a("c260")),u=a("974a"),d=(a("e895"),n(a("2365")),a("8f46")),f=i(a("a4f9")),l=a("26cb"),p=(getApp(),{name:"RetrievePassword",components:{Verify:f.default},mixins:[o.default],data:function(){return{account:"",password:"",confirm_pwd:"",captcha:"",codeKey:"",codeUrl:"",codeVal:"",isShowCode:!1}},onLoad:function(t){t.spread&&(0,c.default)(t.spread,this.isLogin)},computed:(0,d.configMap)(["login_logo"],(0,l.mapGetters)(["isLogin","uid"])),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,s.default)((0,r.default)().mark((function a(){var n;return(0,r.default)().wrap((function(a){while(1)switch(a.prev=a.next){case 0:if(n=e,n.account){a.next=3;break}return a.abrupt("return",n.$util.Tips({title:"请填写手机号码"}));case 3:if(/^1(3|4|5|7|8|9|6)\d{9}$/i.test(n.account)){a.next=5;break}return a.abrupt("return",n.$util.Tips({title:"请输入正确的手机号码"}));case 5:return a.next=7,(0,u.registerVerify)({phone:n.account,type:"change_pwd",captchaType:"blockPuzzle",captchaVerification:t.captchaVerification}).then((function(t){n.$util.Tips({title:t.message}),n.sendCode()})).catch((function(t){n.$util.Tips({title:t})}));case 7:case"end":return a.stop()}}),a)})))()},getcaptcha:function(){var t=this;(0,u.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,s.default)((0,r.default)().mark((function e(){var a;return(0,r.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,u.registerForget)({phone:a.account,sms_code:a.captcha,pwd:a.password,confirm_pwd:a.confirm_pwd}).then((function(t){a.$util.Tips({title:t.message},{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=p},a877:function(t,e,a){var n=a("8a14");n.__esModule&&(n=n.default),"string"===typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var i=a("4f06").default;i("524561c8",n,!0,{sourceMap:!1,shadowMode:!1})},acac:function(t,e,a){"use strict";var n=a("e330"),i=a("6964"),r=a("f183").getWeakData,s=a("19aa"),c=a("825a"),o=a("7234"),u=a("861d"),d=a("2266"),f=a("b727"),l=a("1a2d"),p=a("69f3"),v=p.set,h=p.getterFor,g=f.find,b=f.findIndex,w=n([].splice),m=0,y=function(t){return t.frozen||(t.frozen=new _)},_=function(){this.entries=[]},x=function(t,e){return g(t.entries,(function(t){return t[0]===e}))};_.prototype={get:function(t){var e=x(this,t);if(e)return e[1]},has:function(t){return!!x(this,t)},set:function(t,e){var a=x(this,t);a?a[1]=e:this.entries.push([t,e])},delete:function(t){var e=b(this.entries,(function(e){return e[0]===t}));return~e&&w(this.entries,e,1),!!~e}},t.exports={getConstructor:function(t,e,a,n){var f=t((function(t,i){s(t,p),v(t,{type:e,id:m++,frozen:void 0}),o(i)||d(i,t[n],{that:t,AS_ENTRIES:a})})),p=f.prototype,g=h(e),b=function(t,e,a){var n=g(t),i=r(c(e),!0);return!0===i?y(n).set(e,a):i[n.id]=a,t};return i(p,{delete:function(t){var e=g(this);if(!u(t))return!1;var a=r(t);return!0===a?y(e)["delete"](t):a&&l(a,e.id)&&delete a[e.id]},has:function(t){var e=g(this);if(!u(t))return!1;var a=r(t);return!0===a?y(e).has(t):a&&l(a,e.id)}}),i(p,a?{get:function(t){var e=g(this);if(u(t)){var a=r(t);return!0===a?y(e).get(t):a?a[e.id]:void 0}},set:function(t,e){return b(this,t,e)}}:{add:function(t){return b(this,t,!0)}}),f}}},c260:function(t,e,a){"use strict";a("7a82"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n={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=n},d2ba:function(t,e,a){"use strict";var n=a("a877"),i=a.n(n);i.a},dbce:function(t,e,a){a("d3b7"),a("3ca3"),a("10d1"),a("ddb0"),a("7a82"),a("e439");var n=a("7037")["default"];function i(t){if("function"!==typeof WeakMap)return null;var e=new WeakMap,a=new WeakMap;return(i=function(t){return t?a:e})(t)}t.exports=function(t,e){if(!e&&t&&t.__esModule)return t;if(null===t||"object"!==n(t)&&"function"!==typeof t)return{default:t};var a=i(e);if(a&&a.has(t))return a.get(t);var r={},s=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var c in t)if("default"!==c&&Object.prototype.hasOwnProperty.call(t,c)){var o=s?Object.getOwnPropertyDescriptor(t,c):null;o&&(o.get||o.set)?Object.defineProperty(r,c,o):r[c]=t[c]}return r["default"]=t,a&&a.set(t,r),r},t.exports.__esModule=!0,t.exports["default"]=t.exports},e895:function(t,e){}}]);