杨总惠通宝
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.
 
 
 
 
 
 
htb_backend/public/static/js/pages-users-retrievePasswor...

1 lines
14 KiB

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-users-retrievePassword-index"],{"0094":function(t,e,n){"use strict";var i,r=n("da84"),a=n("e330"),c=n("6964"),s=n("f183"),o=n("6d61"),u=n("acac"),f=n("861d"),d=n("4fad"),l=n("69f3").enforce,p=n("cdce"),v=!r.ActiveXObject&&"ActiveXObject"in r,h=function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}},b=o("WeakMap",h,u);if(p&&v){i=u.getConstructor(h,"WeakMap",!0),s.enable();var g=b.prototype,w=a(g["delete"]),y=a(g.has),m=a(g.get),x=a(g.set);c(g,{delete:function(t){if(f(t)&&!d(t)){var e=l(this);return e.frozen||(e.frozen=new i),w(this,t)||e.frozen["delete"](t)}return w(this,t)},has:function(t){if(f(t)&&!d(t)){var e=l(this);return e.frozen||(e.frozen=new i),y(this,t)||e.frozen.has(t)}return y(this,t)},get:function(t){if(f(t)&&!d(t)){var e=l(this);return e.frozen||(e.frozen=new i),y(this,t)?m(this,t):e.frozen.get(t)}return m(this,t)},set:function(t,e){if(f(t)&&!d(t)){var n=l(this);n.frozen||(n.frozen=new i),y(this,t)?x(this,t,e):n.frozen.set(t,e)}else x(this,t,e);return this}})}},"10d1":function(t,e,n){n("0094")},"1de5":function(t,e,n){"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)}},"26b3":function(t,e,n){"use strict";n("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 n=setInterval((function(){e-=1,e<0&&clearInterval(n),t.text="剩余 "+e+"s",t.text<"剩余 0s"&&(t.disabled=!1,t.text="重新获取")}),1e3)}}}};e.default=i},"3c86":function(t,e,n){"use strict";n("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)},n("ac1f"),n("00b4")},"4fad":function(t,e,n){var i=n("d039"),r=n("861d"),a=n("c6b6"),c=n("d86b"),s=Object.isExtensible,o=i((function(){s(1)}));t.exports=o||c?function(t){return!!r(t)&&((!c||"ArrayBuffer"!=a(t))&&(!s||s(t)))}:s},"5fff":function(t,e,n){"use strict";n.d(e,"b",(function(){return i})),n.d(e,"c",(function(){return r})),n.d(e,"a",(function(){}));var i=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"register absolute"},[n("div",{staticClass:"shading"},[n("div",{staticClass:"pictrue acea-row row-center-wrapper"},[t.login_logo?n("v-uni-image",{attrs:{src:t.login_logo}}):t._e()],1)]),n("div",{staticClass:"whiteBg"},[n("div",{staticClass:"title"},[t._v("忘记密码")]),n("div",{staticClass:"list"},[n("div",{staticClass:"item"},[n("div",{staticClass:"acea-row row-middle"},[n("v-uni-image",{attrs:{src:"/static/images/phone_1.png"}}),n("v-uni-input",{attrs:{type:"text",placeholder:"输入手机号码",autocomplete:"off"},model:{value:t.account,callback:function(e){t.account=e},expression:"account"}}),n("v-uni-input",{staticStyle:{height:"0",opacity:"0"},attrs:{type:"text"}})],1)]),n("div",{staticClass:"item"},[n("div",{staticClass:"acea-row row-middle"},[n("v-uni-image",{attrs:{src:"/static/images/code_2.png"}}),n("v-uni-input",{attrs:{type:"password",placeholder:"填写您的新密码",autocomplete:"off"},model:{value:t.password,callback:function(e){t.password=e},expression:"password"}})],1)]),n("div",{staticClass:"item"},[n("div",{staticClass:"acea-row row-middle"},[n("v-uni-image",{attrs:{src:"/static/images/code_2.png"}}),n("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)]),n("div",{staticClass:"item"},[n("div",{staticClass:"acea-row row-middle"},[n("v-uni-image",{attrs:{src:"/static/images/code_2.png"}}),n("v-uni-input",{staticClass:"codeIput",attrs:{type:"text",placeholder:"填写验证码",autocomplete:"off"},model:{value:t.captcha,callback:function(e){t.captcha=e},expression:"captcha"}}),n("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?n("div",{staticClass:"item"},[n("div",{staticClass:"acea-row row-middle"},[n("v-uni-input",{staticClass:"codeIput",attrs:{type:"text",placeholder:"填写验证码"},model:{value:t.codeVal,callback:function(e){t.codeVal=e},expression:"codeVal"}}),n("div",{staticClass:"code",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.again.apply(void 0,arguments)}}},[n("v-uni-image",{staticClass:"code-img",staticStyle:{width:"100%",height:"100%"},attrs:{src:t.codeUrl}})],1)],1)]):t._e()]),n("div",{staticClass:"logon",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.registerReset.apply(void 0,arguments)}}},[t._v("确认")]),n("div",{staticClass:"tip"},[n("span",{staticClass:"font-color-red",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.back.apply(void 0,arguments)}}},[t._v("立即登录")])])]),n("div",{staticClass:"bottom"}),n("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)},r=[]},"6d61":function(t,e,n){"use strict";var i=n("23e7"),r=n("da84"),a=n("e330"),c=n("94ca"),s=n("cb2d"),o=n("f183"),u=n("2266"),f=n("19aa"),d=n("1626"),l=n("7234"),p=n("861d"),v=n("d039"),h=n("1c7e"),b=n("d44e"),g=n("7156");t.exports=function(t,e,n){var w=-1!==t.indexOf("Map"),y=-1!==t.indexOf("Weak"),m=w?"set":"add",x=r[t],_=x&&x.prototype,k=x,C={},$=function(t){var e=a(_[t]);s(_,t,"add"==t?function(t){return e(this,0===t?0:t),this}:"delete"==t?function(t){return!(y&&!p(t))&&e(this,0===t?0:t)}:"get"==t?function(t){return y&&!p(t)?void 0:e(this,0===t?0:t)}:"has"==t?function(t){return!(y&&!p(t))&&e(this,0===t?0:t)}:function(t,n){return e(this,0===t?0:t,n),this})},z=c(t,!d(x)||!(y||_.forEach&&!v((function(){(new x).entries().next()}))));if(z)k=n.getConstructor(e,t,w,m),o.enable();else if(c(t,!0)){var O=new k,j=O[m](y?{}:-0,1)!=O,P=v((function(){O.has(1)})),E=h((function(t){new x(t)})),M=!y&&v((function(){var t=new x,e=5;while(e--)t[m](e,e);return!t.has(-0)}));E||(k=e((function(t,e){f(t,_);var n=g(new x,t,k);return l(e)||u(e,n[m],{that:n,AS_ENTRIES:w}),n})),k.prototype=_,_.constructor=k),(P||M)&&($("delete"),$("has"),w&&$("get")),(M||j)&&$(m),y&&_.clear&&delete _.clear}return C[t]=k,i({global:!0,constructor:!0,forced:k!=x},C),b(k,t),y||n.setStrong(k,t,w),k}},"728c":function(t,e,n){var i=n("b310");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var r=n("4f06").default;r("59e5fe06",i,!0,{sourceMap:!1,shadowMode:!1})},"86c2":function(t,e,n){"use strict";n("7a82");var i=n("dbce").default,r=n("4ea4").default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,n("ac1f"),n("00b4");var a=r(n("c7eb")),c=r(n("1da1")),s=r(n("26b3")),o=n("c6c3"),u=(n("959f"),i(n("3c86")),n("4f1b")),f=r(n("025b")),d=(getApp(),{name:"RetrievePassword",components:{Verify:f.default},mixins:[s.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,c.default)((0,a.default)().mark((function n(){var i;return(0,a.default)().wrap((function(n){while(1)switch(n.prev=n.next){case 0:if(i=e,i.account){n.next=3;break}return n.abrupt("return",i.$util.Tips({title:"请填写手机号码"}));case 3:if(/^1(3|4|5|7|8|9|6)\d{9}$/i.test(i.account)){n.next=5;break}return n.abrupt("return",i.$util.Tips({title:"请输入正确的手机号码"}));case 5:return n.next=7,(0,o.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 n.stop()}}),n)})))()},getcaptcha:function(){var t=this;(0,o.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,c.default)((0,a.default)().mark((function e(){var n;return(0,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("123456"!=n.password){e.next=7;break}return e.abrupt("return",n.$util.Tips({title:"您输入的密码过于简单"}));case 7:if(n.password==n.confirm_pwd){e.next=9;break}return e.abrupt("return",n.$util.Tips({title:"两次密码不一致"}));case 9:if(n.captcha){e.next=11;break}return e.abrupt("return",n.$util.Tips({title:"请填写验证码"}));case 11:(0,o.registerForget)({phone:n.account,sms_code:n.captcha,pwd:n.password,confirm_pwd:n.confirm_pwd}).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){this.$refs.verify.hide(),this.code(t)},handleVerify:function(){this.$refs.verify.show()}}});e.default=d},"959f":function(t,e){},acac:function(t,e,n){"use strict";var i=n("e330"),r=n("6964"),a=n("f183").getWeakData,c=n("19aa"),s=n("825a"),o=n("7234"),u=n("861d"),f=n("2266"),d=n("b727"),l=n("1a2d"),p=n("69f3"),v=p.set,h=p.getterFor,b=d.find,g=d.findIndex,w=i([].splice),y=0,m=function(t){return t.frozen||(t.frozen=new x)},x=function(){this.entries=[]},_=function(t,e){return b(t.entries,(function(t){return t[0]===e}))};x.prototype={get:function(t){var e=_(this,t);if(e)return e[1]},has:function(t){return!!_(this,t)},set:function(t,e){var n=_(this,t);n?n[1]=e:this.entries.push([t,e])},delete:function(t){var e=g(this.entries,(function(e){return e[0]===t}));return~e&&w(this.entries,e,1),!!~e}},t.exports={getConstructor:function(t,e,n,i){var d=t((function(t,r){c(t,p),v(t,{type:e,id:y++,frozen:void 0}),o(r)||f(r,t[i],{that:t,AS_ENTRIES:n})})),p=d.prototype,b=h(e),g=function(t,e,n){var i=b(t),r=a(s(e),!0);return!0===r?m(i).set(e,n):r[i.id]=n,t};return r(p,{delete:function(t){var e=b(this);if(!u(t))return!1;var n=a(t);return!0===n?m(e)["delete"](t):n&&l(n,e.id)&&delete n[e.id]},has:function(t){var e=b(this);if(!u(t))return!1;var n=a(t);return!0===n?m(e).has(t):n&&l(n,e.id)}}),r(p,n?{get:function(t){var e=b(this);if(u(t)){var n=a(t);return!0===n?m(e).get(t):n?n[e.id]:void 0}},set:function(t,e){return g(this,t,e)}}:{add:function(t){return g(this,t,!0)}}),d}}},b310:function(t,e,n){var i=n("24fb");e=i(!1),e.push([t.i,".code img[data-v-5f7fc800]{width:100%;height:100%}",""]),t.exports=e},bb2f:function(t,e,n){var i=n("d039");t.exports=!i((function(){return Object.isExtensible(Object.preventExtensions({}))}))},c715:function(t,e,n){"use strict";n.r(e);var i=n("86c2"),r=n.n(i);for(var a in i)["default"].indexOf(a)<0&&function(t){n.d(e,t,(function(){return i[t]}))}(a);e["default"]=r.a},d86b:function(t,e,n){var i=n("d039");t.exports=i((function(){if("function"==typeof ArrayBuffer){var t=new ArrayBuffer(8);Object.isExtensible(t)&&Object.defineProperty(t,"a",{value:8})}}))},dbce:function(t,e,n){n("d3b7"),n("3ca3"),n("10d1"),n("ddb0"),n("7a82"),n("e439");var i=n("7037")["default"];function r(t){if("function"!==typeof WeakMap)return null;var e=new WeakMap,n=new WeakMap;return(r=function(t){return t?n:e})(t)}t.exports=function(t,e){if(!e&&t&&t.__esModule)return t;if(null===t||"object"!==i(t)&&"function"!==typeof t)return{default:t};var n=r(e);if(n&&n.has(t))return n.get(t);var a={},c=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in t)if("default"!==s&&Object.prototype.hasOwnProperty.call(t,s)){var o=c?Object.getOwnPropertyDescriptor(t,s):null;o&&(o.get||o.set)?Object.defineProperty(a,s,o):a[s]=t[s]}return a["default"]=t,n&&n.set(t,a),a},t.exports.__esModule=!0,t.exports["default"]=t.exports},e28c:function(t,e,n){"use strict";n.r(e);var i=n("5fff"),r=n("c715");for(var a in r)["default"].indexOf(a)<0&&function(t){n.d(e,t,(function(){return r[t]}))}(a);n("eec1");var c=n("f0c5"),s=Object(c["a"])(r["default"],i["b"],i["c"],!1,null,"5f7fc800",null,!1,i["a"],void 0);e["default"]=s.exports},eec1:function(t,e,n){"use strict";var i=n("728c"),r=n.n(i);r.a},f183:function(t,e,n){var i=n("23e7"),r=n("e330"),a=n("d012"),c=n("861d"),s=n("1a2d"),o=n("9bf2").f,u=n("241c"),f=n("057f"),d=n("4fad"),l=n("90e3"),p=n("bb2f"),v=!1,h=l("meta"),b=0,g=function(t){o(t,h,{value:{objectID:"O"+b++,weakData:{}}})},w=t.exports={enable:function(){w.enable=function(){},v=!0;var t=u.f,e=r([].splice),n={};n[h]=1,t(n).length&&(u.f=function(n){for(var i=t(n),r=0,a=i.length;r<a;r++)if(i[r]===h){e(i,r,1);break}return i},i({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:f.f}))},fastKey:function(t,e){if(!c(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!s(t,h)){if(!d(t))return"F";if(!e)return"E";g(t)}return t[h].objectID},getWeakData:function(t,e){if(!s(t,h)){if(!d(t))return!0;if(!e)return!1;g(t)}return t[h].weakData},onFreeze:function(t){return p&&v&&d(t)&&!s(t,h)&&g(t),t}};a[h]=!0}}]);