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
8.0 KiB
1 lines
8.0 KiB
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-users-retrievePassword-index"],{"07a8":function(t,e,a){var n=a("24fb");e=n(!1),e.push([t.i,'@charset "UTF-8";\n/**\n * 这里是uni-app内置的常用样式变量\n *\n * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量\n * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App\n *\n */\n/**\n * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能\n *\n * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件\n */\n/* 颜色变量 */\n/* 行为相关颜色 */\n/* 背景颜色 */\n/* 边框颜色 */\n/* 尺寸变量 */\n/* 文字尺寸 */\n/* 图片尺寸 */\n/* Border Radius */\n/* 水平间距 */\n/* 垂直间距 */\n/* 透明度 */\n/* 文章场景相关 */.register[data-v-e3b633e4]{background:#fff;height:100vh}.register .list .item .code[data-v-e3b633e4]{color:var(--view-theme)}.whiteBg .logon[data-v-e3b633e4]{display:flex;align-items:center;justify-content:center;width:100%;height:%?86?%;margin-top:%?48?%;background-color:var(--view-theme);border-radius:%?120?%;color:#fff;font-size:%?30?%}.whiteBg[data-v-e3b633e4]{background-repeat:no-repeat;background-size:100% auto}',""]),t.exports=e},"0850":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",style:t.viewColor},[a("div",{staticClass:"whiteBg",style:{"background-image":"url("+t.domain+"/static/images/logo_bgl.png)"}},[a("v-uni-view",{staticClass:"login_title"},[a("v-uni-view",{staticClass:"title_h"},[t._v("找回密码")])],1),a("div",{staticClass:"list"},[a("div",{staticClass:"item"},[a("v-uni-input",{attrs:{type:"text",placeholder:"输入手机号码","placeholder-class":"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("v-uni-input",{attrs:{type:"password",placeholder:"填写您的新密码","placeholder-class":"placeholder",autocomplete:"off"},model:{value:t.password,callback:function(e){t.password=e},expression:"password"}})],1),a("div",{staticClass:"item"},[a("v-uni-input",{attrs:{type:"password",placeholder:"再次输入新密码","placeholder-class":"placeholder",autocomplete:"off"},model:{value:t.confirm_pwd,callback:function(e){t.confirm_pwd=e},expression:"confirm_pwd"}})],1),a("div",{staticClass:"item"},[a("v-uni-input",{staticClass:"codeIput",attrs:{type:"text",placeholder:"填写验证码","placeholder-class":"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)]),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("v-uni-text",{on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.back.apply(void 0,arguments)}}},[t._v("立即登录")])],1)],1),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=[]},"0b14":function(t,e,a){var n=a("07a8");n.__esModule&&(n=n.default),"string"===typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var i=a("4f06").default;i("35228481",n,!0,{sourceMap:!1,shadowMode:!1})},"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)}},"24c9":function(t,e,a){"use strict";a("7a82");var n=a("4ea4").default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,a("ac1f"),a("00b4");var i=n(a("c7eb")),c=n(a("1da1")),s=a("26cb"),r=n(a("e1ea")),o=a("6859"),u=a("3255"),l=a("f26a"),d=n(a("496c")),p=(getApp(),{name:"RetrievePassword",components:{Verify:d.default},mixins:[r.default],data:function(){return{account:"",password:"",confirm_pwd:"",captcha:"",codeKey:"",codeUrl:"",codeVal:"",isShowCode:!1,domain:l.HTTP_REQUEST_URL}},computed:(0,u.configMap)(["login_logo"],(0,s.mapGetters)(["viewColor"])),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,i.default)().mark((function a(){var n;return(0,i.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,o.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,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,i.default)().mark((function e(){var a;return(0,i.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,o.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},"50b8":function(t,e,a){"use strict";a.r(e);var n=a("24c9"),i=a.n(n);for(var c in n)["default"].indexOf(c)<0&&function(t){a.d(e,t,(function(){return n[t]}))}(c);e["default"]=i.a},c502:function(t,e,a){"use strict";var n=a("0b14"),i=a.n(n);i.a},e1ea: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},e5aa:function(t,e,a){"use strict";a.r(e);var n=a("0850"),i=a("50b8");for(var c in i)["default"].indexOf(c)<0&&function(t){a.d(e,t,(function(){return i[t]}))}(c);a("c502");var s=a("f0c5"),r=Object(s["a"])(i["default"],n["b"],n["c"],!1,null,"e3b633e4",null,!1,n["a"],void 0);e["default"]=r.exports}}]); |