(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-73a0f3fa"],{1644:function(e,t,o){},"58fb":function(e,t,o){},"62de":function(e,t,o){"use strict";o("8ac4")},7835:function(e,t,o){"use strict";o("1644")},7972:function(e,t,o){"use strict";o("58fb")},"8ac4":function(e,t,o){},"8d00":function(e,t,o){"use strict";o("a321")},"9ed6":function(e,t,o){"use strict";o.r(t);var a=function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("div",{staticStyle:{height:"100vh",width:"100vw",overflow:"hidden"}},[o("div",{staticClass:"login-container"},[o("div",{staticClass:"loginMain"},[o("el-form",{ref:"loginForm",staticClass:"login-form",attrs:{model:e.loginForm,rules:e.loginRules,"auto-complete":"on","label-position":"left"}},[o("div",{staticClass:"title-container"},[o("h3",{staticClass:"title"},[e._v("云物业管理AI运营平台 ")])]),e._v(" "),o("div",[o("el-tabs",{staticClass:"loginTabs",on:{"tab-click":e.loginTypeChange},model:{value:e.activeName,callback:function(t){e.activeName=t},expression:"activeName"}},[o("el-tab-pane",{attrs:{label:"微信扫码",name:"byWechat"}},[o("div",{staticClass:"wechat-login-container"},[o("div",{staticClass:"qr-code-container"},[e.wechatQrCode&&!e.wechatQrCodeExpired?o("div",{staticClass:"qr-code-wrapper",on:{click:e.refreshWechatQrCode}},[o("img",{staticClass:"qr-code-image",attrs:{src:e.wechatQrCode,alt:"微信扫码登录"}}),e._v(" "),o("div",{staticClass:"qr-code-tip"},[e._v("请使用微信扫描二维码登录")]),e._v(" "),o("div",{staticClass:"qr-code-countdown"},[o("el-statistic",{attrs:{value:e.wechatCountdownSeconds,title:"二维码剩余时间",precision:0,suffix:"秒","value-style":{color:e.wechatCountdownSeconds<=10?"#f56c6c":"#409eff"}}})],1),e._v(" "),o("div",{staticClass:"qr-code-refresh-tip"},[e._v("点击刷新二维码")])]):e.wechatQrCodeExpired?o("div",{staticClass:"qr-code-expired"},[o("i",{staticClass:"el-icon-warning-outline"}),e._v(" "),o("div",{staticClass:"qr-code-expired-tip"},[e._v("二维码已过期")]),e._v(" "),o("el-button",{staticClass:"refresh-btn",attrs:{type:"primary",size:"small"},on:{click:e.refreshWechatQrCode}},[e._v("\n 重新获取二维码\n ")])],1):o("div",{staticClass:"qr-code-loading"},[o("i",{staticClass:"el-icon-loading"}),e._v(" "),o("div",[e._v("正在生成二维码...")])])]),e._v(" "),e.wechatQrCodeExpired?e._e():o("div",{staticClass:"wechat-login-tip"},[o("i",{staticClass:"el-icon-mobile-phone"}),e._v(" "),o("span",[e._v("请使用微信扫描上方二维码完成登录")])])])]),e._v(" "),o("el-tab-pane",{attrs:{label:"验证码",name:"byVerify"}},[o("el-form-item",{attrs:{prop:"username"}},[o("div",{staticClass:"itemSet"},[o("span",{staticClass:"svg-container"},[o("svg-icon",{attrs:{"icon-class":"mobile"}})],1),e._v(" "),o("el-input",{ref:"username",attrs:{clearable:"",placeholder:"手机号码",name:"username",type:"text",autocomplete:"off"},model:{value:e.loginForm.username,callback:function(t){e.$set(e.loginForm,"username",t)},expression:"loginForm.username"}})],1)]),e._v(" "),o("div",{staticClass:"verifyContent"},[e.verify?o("el-form-item",{attrs:{prop:"verifycode"}},[o("div",{staticClass:"itemSet"},[o("span",{staticClass:"svg-container"},[o("svg-icon",{attrs:{"icon-class":"verif"}})],1),e._v(" "),o("el-input",{ref:"verifycode",attrs:{clearable:"",type:"text",maxlength:"4",placeholder:"验证码"},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.handleLogin(t)}},model:{value:e.loginForm.verifycode,callback:function(t){e.$set(e.loginForm,"verifycode",t)},expression:"loginForm.verifycode"}})],1)]):e._e(),e._v(" "),o("el-button",{directives:[{name:"points",rawName:"v-points",value:500,expression:"500"}],staticClass:"verifyBtn",attrs:{plain:"",disabled:e.verifyIng},on:{click:e.getVerify}},[e._v(e._s(e.verifyTitle))])],1),e._v(" "),o("div",{staticStyle:{"font-size":"12px","margin-bottom":"22px"}},[e._v("\n *输入验证码进行登录,仅支持中国大陆手机号码\n ")])],1),e._v(" "),o("el-tab-pane",{attrs:{label:"账号密码",name:"byPwd"}},[o("el-form-item",{attrs:{prop:"username"}},[o("div",{staticClass:"itemSet"},[o("span",{staticClass:"svg-container"},[o("svg-icon",{attrs:{"icon-class":"user2"}})],1),e._v(" "),o("el-input",{ref:"username",attrs:{clearable:"",placeholder:e.$t("login.username"),name:"username",type:"text",autocomplete:"off"},model:{value:e.loginForm.username,callback:function(t){e.$set(e.loginForm,"username",t)},expression:"loginForm.username"}})],1)]),e._v(" "),o("el-form-item",{attrs:{prop:"password"}},[o("div",{staticClass:"itemSet"},[o("span",{staticClass:"svg-container"},[o("svg-icon",{attrs:{"icon-class":"lock2"}})],1),e._v(" "),o("el-input",{key:e.passwordType,ref:"password",attrs:{clearable:"",type:e.passwordType,placeholder:e.$t("login.password"),name:"password",autocomplete:"off"},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.handleLogin(t)}},model:{value:e.loginForm.password,callback:function(t){e.$set(e.loginForm,"password",t)},expression:"loginForm.password"}}),e._v(" "),o("span",{staticClass:"show-pwd",on:{click:e.showPwd}},[o("svg-icon",{attrs:{"icon-class":"password"===e.passwordType?"eye":"eye-open"}})],1)],1)]),e._v(" "),"byPwd"===e.activeName?o("el-form-item",{staticClass:"captcha-form-item",attrs:{prop:"captchaCode"}},[o("div",{staticClass:"itemSet"},[o("span",{staticClass:"svg-container"},[o("svg-icon",{attrs:{"icon-class":"lock"}})],1),e._v(" "),o("el-input",{ref:"captchaCode",staticStyle:{width:"60%"},attrs:{placeholder:"请输入图形验证码",name:"captchaCode",type:"text",autocomplete:"off",maxlength:"4",clearable:""},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.handleLogin(t)}},model:{value:e.loginForm.captchaCode,callback:function(t){e.$set(e.loginForm,"captchaCode",t)},expression:"loginForm.captchaCode"}}),e._v(" "),o("div",{staticClass:"captcha-container",on:{click:e.refreshCaptcha}},[e.captchaImage?o("img",{staticClass:"captcha-image",attrs:{src:e.captchaImage,alt:"验证码"}}):o("div",{staticClass:"captcha-placeholder"},[e._v("\n 点击获取验证码\n ")])])],1),e._v(" "),o("div",{staticClass:"captcha-tip"},[e._v("验证码不区分大小写")])]):e._e(),e._v(" "),o("div",{staticStyle:{"text-align":"right","margin-bottom":"15px"}},[o("el-button",{attrs:{type:"text"},on:{click:function(t){e.changePasswordShow=!0}}},[e._v("忘记密码")])],1)],1)],1)],1),e._v(" "),o("el-button",{directives:[{name:"points",rawName:"v-points",value:500,expression:"500"}],staticClass:"loginBtn",attrs:{loading:e.loading,size:"medium"},nativeOn:{click:function(t){return t.preventDefault(),e.handleLogin(t)}}},[e._v("\n "+e._s(e.$t("login.logIn"))+"\n ")])],1)],1),e._v(" "),o("div",{staticClass:"CopyRight"},[e._v("Power by Community Cloud Technology")]),e._v(" "),o("el-dialog",{attrs:{"custom-class":"r2Dialog",title:"选择角色",visible:e.selectRolesDialog,"close-on-click-modal":!1,width:"560px"},on:{"update:visible":function(t){e.selectRolesDialog=t}}},[o("div",{staticClass:"roleWrap"},[o("div",{directives:[{name:"show",rawName:"v-show",value:e.roleDivShow,expression:"roleDivShow"}],staticClass:"roleDiv el-icon-warning"},[e._v("\n 请选择所在的公司及岗位角色\n ")]),e._v(" "),o("ul",{staticClass:"roleTree"},e._l(e.roleList,(function(t){return o("li",{key:t.id},[o("span",[e._v(e._s(t[0].orgName))]),e._v(" "),e._l(t,(function(t,a){return o("ul",{key:a,staticClass:"roleTreeChild"},[o("li",{on:{click:function(o){return e.handleSelectedRole(t)}}},[o("span",{class:{checkColor:t.id===e.selectRole.id}},[e._v(e._s(t.roleName))]),e._v(" "),o("span",{directives:[{name:"show",rawName:"v-show",value:t.id===e.selectRole.id,expression:"childItem.id === selectRole.id"}]},[o("i",{staticClass:"checkColor el-icon-check"})])])])}))],2)})),0),e._v(" "),o("div",{staticClass:"btnWrap"},[o("el-button",{directives:[{name:"points",rawName:"v-points",value:500,expression:"500"}],staticClass:"commitDialogBtn",attrs:{disabled:e.btnDisabled},on:{click:function(t){return e.submiLogInInfo()}}},[e._v("确定")])],1)])]),e._v(" "),o("Forget",{attrs:{show:e.forgetShow},on:{callClose:function(t){e.forgetShow=!1}}}),e._v(" "),o("ChangePassword",{attrs:{show:e.changePasswordShow},on:{callClose:function(t){e.changePasswordShow=!1}}})],1),e._v(" "),o("el-dialog",{staticClass:"change-password-dialog",attrs:{title:"密码过于简单,请及时修改密码,有利于账号安全",visible:e.showChangePasswordDialog,"close-on-click-modal":!1,"close-on-press-escape":!1,"show-close":!1,width:"500px",center:""},on:{"update:visible":function(t){e.showChangePasswordDialog=t}}},[o("el-form",{ref:"changePasswordForm",attrs:{model:e.changePasswordForm,rules:e.changePasswordRules,"label-width":"100px"}},[o("el-form-item",{attrs:{label:"手机号",prop:"mobile"}},[o("el-input",{attrs:{type:"text",clearable:"",placeholder:"请输入手机号",autocomplete:"off",name:"force-change-password-mobile"},model:{value:e.changePasswordForm.mobile,callback:function(t){e.$set(e.changePasswordForm,"mobile",t)},expression:"changePasswordForm.mobile"}})],1),e._v(" "),o("el-form-item",{attrs:{label:"验证码",prop:"smscode"}},[o("div",{staticClass:"code-btn"},[o("el-input",{attrs:{type:"text",maxlength:"4",clearable:"",placeholder:"请输入验证码",autocomplete:"off",name:"force-change-password-smscode"},model:{value:e.changePasswordForm.smscode,callback:function(t){e.$set(e.changePasswordForm,"smscode",t)},expression:"changePasswordForm.smscode"}}),e._v(" "),o("el-button",{attrs:{type:"primary",disabled:e.changePasswordVerifyIng},on:{click:e.getChangePasswordVerify}},[e._v("\n "+e._s(e.changePasswordVerifyTitle)+"\n ")])],1)]),e._v(" "),o("el-form-item",{staticClass:"password-form-item",attrs:{label:"新密码",required:"",prop:"newPassword"}},[o("div",{staticClass:"password-input-wrapper"},[o("el-input",{attrs:{type:"password",clearable:"",placeholder:"请输入新密码","show-password":"",autocomplete:"new-password",name:"force-change-password-new"},model:{value:e.changePasswordForm.newPassword,callback:function(t){e.$set(e.changePasswordForm,"newPassword",t)},expression:"changePasswordForm.newPassword"}}),e._v(" "),o("el-tooltip",{attrs:{placement:"top"}},[o("div",{attrs:{slot:"content"},slot:"content"},[o("div",[e._v("密码复杂度要求:")]),e._v(" "),o("div",[e._v("• 至少8位字符")]),e._v(" "),o("div",[e._v("• 包含大写字母 (A-Z)")]),e._v(" "),o("div",[e._v("• 包含小写字母 (a-z)")]),e._v(" "),o("div",[e._v("• 包含数字 (0-9)")]),e._v(" "),o("div",[e._v("• 包含特殊字符 (!@#$%^&*等)")])]),e._v(" "),o("span",{staticClass:"password-tip-icon"},[o("i",{staticClass:"el-icon-question itemcursor"})])])],1)]),e._v(" "),o("el-form-item",{attrs:{label:"确认密码",prop:"confirmNewPassword"}},[o("el-input",{attrs:{type:"password",clearable:"",placeholder:"请确认密码","show-password":"",autocomplete:"new-password",name:"force-change-password-confirm"},model:{value:e.changePasswordForm.confirmNewPassword,callback:function(t){e.$set(e.changePasswordForm,"confirmNewPassword",t)},expression:"changePasswordForm.confirmNewPassword"}})],1)],1),e._v(" "),o("div",{staticClass:"change-password-info"},[o("i",{staticClass:"el-icon-info"}),e._v("\n 修改密码需要验证手机号,验证通过后可设置新密码!\n ")]),e._v(" "),o("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[o("el-button",{attrs:{loading:e.changePasswordLoading,type:"primary"},on:{click:e.handleChangePassword}},[e._v("\n 确认修改\n ")])],1)],1),e._v(" "),o("el-dialog",{staticClass:"wechat-bind-dialog",attrs:{title:"首次扫码登录需绑定账号密码",visible:e.wechatBindDialog,"close-on-click-modal":!1,"close-on-press-escape":!1,"show-close":!1,width:"40%",center:""}},[o("el-form",{ref:"wechatBindForm",attrs:{model:e.wechatBindForm,rules:e.loginRules,"label-width":"100px"}},[o("el-form-item",{attrs:{label:"手机号",prop:"username"}},[o("el-input",{attrs:{type:"text",clearable:"",placeholder:"请输入手机号",autocomplete:"off",name:"wechat-bind-username"},model:{value:e.wechatBindForm.username,callback:function(t){e.$set(e.wechatBindForm,"username",t)},expression:"wechatBindForm.username"}})],1),e._v(" "),o("el-form-item",{attrs:{label:"密码",prop:"password"}},[o("el-input",{attrs:{type:"password",clearable:"",placeholder:"请输入密码","show-password":"",autocomplete:"new-password",name:"wechat-bind-password"},model:{value:e.wechatBindForm.password,callback:function(t){e.$set(e.wechatBindForm,"password",t)},expression:"wechatBindForm.password"}})],1),e._v(" "),o("el-form-item",{attrs:{label:"验证码",prop:"captchaCode"}},[o("div",{staticClass:"code-btn"},[o("el-input",{staticStyle:{width:"60%"},attrs:{type:"text",maxlength:"4",clearable:"",placeholder:"请输入图形验证码",autocomplete:"off",name:"wechat-bind-captcha"},model:{value:e.wechatBindForm.captchaCode,callback:function(t){e.$set(e.wechatBindForm,"captchaCode",t)},expression:"wechatBindForm.captchaCode"}}),e._v(" "),o("div",{staticClass:"captcha-container",on:{click:e.refreshWechatBindCaptcha}},[e.wechatBindCaptchaImage?o("img",{staticClass:"captcha-image",attrs:{src:e.wechatBindCaptchaImage,alt:"验证码"}}):o("div",{staticClass:"captcha-placeholder"},[e._v("点击获取验证码")])])],1),e._v(" "),o("div",{staticClass:"captcha-tip"},[e._v("验证码不区分大小写")])])],1),e._v(" "),o("div",{staticClass:"wechat-bind-info"},[o("i",{staticClass:"el-icon-info"}),e._v("\n 首次使用微信扫码登录需要绑定您的账号密码,绑定后可直接使用微信扫码登录!\n ")]),e._v(" "),o("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[o("el-button",{attrs:{loading:e.wechatBindLoading,type:"primary"},on:{click:e.handleWechatBindLogin}},[e._v("\n 确认绑定\n ")])],1)],1)],1)},s=[],n=o("1131"),i=function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("div",[o("el-dialog",{attrs:{title:"忘记密码",visible:e.show,"close-on-click-modal":!1,width:"25%","before-close":e.handleClose},on:{"update:visible":function(t){e.show=t}}},[o("el-form",{ref:"form",attrs:{model:e.form,rules:e.rules,"label-width":"110px"}},[o("el-form-item",{attrs:{label:"账号/手机号",prop:"mobile"}},[o("el-input",{attrs:{type:"text",clearable:"",placeholder:"账号/手机号",autocomplete:"off",name:"forget-password-mobile"},model:{value:e.form.mobile,callback:function(t){e.$set(e.form,"mobile",t)},expression:"form.mobile"}})],1),e._v(" "),o("el-form-item",{attrs:{label:"验证码",prop:"smscode"}},[o("div",{staticClass:"code-btn"},[o("el-input",{attrs:{placeholder:"短息验证码",type:"text",maxlength:"4",clearable:"",autocomplete:"off",name:"forget-password-smscode"},model:{value:e.form.smscode,callback:function(t){e.$set(e.form,"smscode",t)},expression:"form.smscode"}}),e._v(" "),o("el-button",{attrs:{type:"primary",disabled:e.verifyIng},on:{click:e.getVerify}},[e._v(e._s(e.verifyTitle))])],1)]),e._v(" "),o("el-form-item",[o("el-button",{directives:[{name:"points",rawName:"v-points",value:500,expression:"500"}],attrs:{type:"primary"},on:{click:e.submitForm}},[e._v("确认提交")])],1)],1),e._v(" "),o("div",{staticClass:"forget-info"},[o("i",{staticClass:"el-icon-info"}),e._v(" 忘记密码验证通过后将重置密码,重置后的密码为手机号后6位!\n ")])],1)],1)},r=[],c=o("21bf"),l={props:{show:{type:Boolean,default:!1}},data:function(){var e=function(e,t,o){""===t?o(new Error("请输入短信验证码")):o()},t=function(e,t,o){var a=/^(13[0-9]|14[01456879]|15[0-35-9]|16[2567]|17[0-8]|18[0-9]|19[0-35-9])\d{8}$/;""===t?o(new Error("请输入账号(手机号)")):a.test(t)?o():o(new Error("账号(手机号)输入有误"))};return{timer:null,count:"",verifyTitle:"获取验证码",verifyIng:!1,savekey:"",form:{mobile:"",smscode:""},rules:{mobile:[{required:!0,validator:t,trigger:"blur"}],smscode:[{required:!0,validator:e,trigger:"blur"}]}}},watch:{show:function(e){var t=this;e&&this.$nextTick((function(){t.form={mobile:"",smscode:""}}))}},mounted:function(){},methods:{getVerify:function(){var e=this,t=/^(13[0-9]|14[01456879]|15[0-35-9]|16[2567]|17[0-8]|18[0-9]|19[0-35-9])\d{8}$/;if(!this.form.mobile)return this.$message("请输入账号/手机号"),!1;if(!t.test(this.form.mobile))return this.$message("账号/手机号输入有误"),!1;var o="code".concat(Date.now()).concat(this.form.mobile),a={key:o,mobile:this.form.mobile,type:1};Object(c["b"])(a).then((function(t){0==t.code&&(e.$message({message:"短信发送成功,请查看!",type:"success"}),e.savekey=o,e.codeTime())}))},codeTime:function(){var e=this,t=60;this.count=t,this.verifyIng=!0,this.verifyTitle="".concat(this.count,"秒后再次获取"),this.timer||(this.timer=setInterval((function(){e.count>1&&e.count<=t?(e.count--,e.verifyTitle="".concat(e.count,"秒后再次获取")):(e.verifyIng=!1,clearInterval(e.timer),e.timer=null,e.verifyTitle="获取验证码")}),1e3))},submitForm:function(){var e=this;this.$refs.form.validate((function(t){if(t){e.form.mobile;var o={mobile:e.form.mobile,smscode:e.form.smscode,newPassword:e.getLastSixChars(e.form.mobile),key:e.savekey};Object(c["j"])(o).then((function(t){e.$message({type:"success",message:"密码重置成功"}),e.handleClose()}))}}))},getLastSixChars:function(e){return e.slice(-6)},handleClose:function(){this.$refs["form"].resetFields(),this.verifyIng=!1,clearInterval(this.timer),this.timer=null,this.verifyTitle="获取验证码",this.$emit("callClose")}}},d=l,h=(o("62de"),o("829d")),m=Object(h["a"])(d,i,r,!1,null,"122c312d",null),u=m.exports,f=function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("div",[o("el-dialog",{attrs:{title:"修改密码",visible:e.show,"close-on-click-modal":!1,width:"30%","before-close":e.handleClose},on:{"update:visible":function(t){e.show=t}}},[o("el-form",{ref:"form",attrs:{model:e.form,rules:e.rules,"label-width":"100px"}},[o("el-form-item",{attrs:{label:"手机号",prop:"mobile"}},[o("el-input",{attrs:{type:"text",clearable:"",placeholder:"请输入手机号",autocomplete:"off",name:"change-password-mobile"},model:{value:e.form.mobile,callback:function(t){e.$set(e.form,"mobile",t)},expression:"form.mobile"}})],1),e._v(" "),o("el-form-item",{attrs:{label:"验证码",prop:"smscode"}},[o("div",{staticClass:"code-btn"},[o("el-input",{attrs:{type:"text",maxlength:"4",clearable:"",placeholder:"请输入验证码",autocomplete:"off",name:"change-password-smscode"},model:{value:e.form.smscode,callback:function(t){e.$set(e.form,"smscode",t)},expression:"form.smscode"}}),e._v(" "),o("el-button",{attrs:{type:"primary",disabled:e.verifyIng},on:{click:e.getVerify}},[e._v(e._s(e.verifyTitle))])],1)]),e._v(" "),o("el-form-item",{attrs:{label:"新密码",prop:"newPassword"}},[o("div",{staticClass:"password-input-row"},[o("el-input",{attrs:{type:"password",clearable:"",placeholder:"请输入新密码","show-password":"",autocomplete:"new-password",name:"change-password-new"},model:{value:e.form.newPassword,callback:function(t){e.$set(e.form,"newPassword",t)},expression:"form.newPassword"}}),e._v(" "),o("el-tooltip",{attrs:{placement:"top"}},[o("div",{attrs:{slot:"content"},slot:"content"},[o("div",[o("div",[e._v("密码复杂度要求:")]),e._v(" "),o("div",[e._v("• 至少8位字符")]),e._v(" "),o("div",[e._v("• 包含大写字母 (A-Z)")]),e._v(" "),o("div",[e._v("• 包含小写字母 (a-z)")]),e._v(" "),o("div",[e._v("• 包含数字 (0-9)")]),e._v(" "),o("div",[e._v("• 包含特殊字符 (!@#$%^&*等)")])])]),e._v(" "),o("span",[o("i",{staticClass:"el-icon-question itemcursor"})])])],1)]),e._v(" "),o("el-form-item",{attrs:{label:"确认密码",prop:"confirmNewPassword"}},[o("el-input",{attrs:{type:"password",clearable:"",placeholder:"请确认密码","show-password":"",autocomplete:"new-password",name:"change-password-confirm"},model:{value:e.form.confirmNewPassword,callback:function(t){e.$set(e.form,"confirmNewPassword",t)},expression:"form.confirmNewPassword"}})],1),e._v(" "),o("el-form-item",[o("el-button",{directives:[{name:"points",rawName:"v-points",value:500,expression:"500"}],attrs:{type:"primary"},on:{click:e.submitForm}},[e._v("确认修改")])],1)],1),e._v(" "),o("div",{staticClass:"change-password-info"},[o("i",{staticClass:"el-icon-info"}),e._v("\n 修改密码需要验证手机号,验证通过后可设置新密码!\n ")])],1)],1)},g=[],p={props:{show:{type:Boolean,default:!1}},data:function(){var e=this,t=function(e,t,o){var a=/^(13[0-9]|14[01456879]|15[0-35-9]|16[2567]|17[0-8]|18[0-9]|19[0-35-9])\d{8}$/;""===t?o(new Error("请输入手机号")):a.test(t)?o():o(new Error("手机号格式不正确"))},o=function(e,t,o){""===t?o(new Error("请输入验证码")):o()},a=function(e,t,o){""===t?o(new Error("请输入新密码")):t.length<8?o(new Error("密码长度至少8位")):/(?=.*[a-z])/.test(t)?/(?=.*[A-Z])/.test(t)?/(?=.*\d)/.test(t)?/(?=.*[!@#$%^&*()_+\-=\[\]{};':"\\|,.<>\/?])/.test(t)?o():o(new Error("密码必须包含特殊字符")):o(new Error("密码必须包含数字")):o(new Error("密码必须包含大写字母")):o(new Error("密码必须包含小写字母"))},s=function(t,o,a){""===o?a(new Error("请再次输入密码")):o!==e.form.newPassword?a(new Error("两次输入密码不一致!")):o.length<8?a(new Error("密码长度至少8位")):/(?=.*[a-z])/.test(o)?/(?=.*[A-Z])/.test(o)?/(?=.*\d)/.test(o)?/(?=.*[!@#$%^&*()_+\-=\[\]{};':"\\|,.<>\/?])/.test(o)?a():a(new Error("密码必须包含特殊字符")):a(new Error("密码必须包含数字")):a(new Error("密码必须包含大写字母")):a(new Error("密码必须包含小写字母"))};return{timer:null,count:"",verifyTitle:"获取验证码",verifyIng:!1,savekey:"",form:{mobile:"",newPassword:"",confirmNewPassword:"",smscode:""},rules:{mobile:[{required:!0,validator:t,trigger:"blur"}],smscode:[{validator:o,trigger:"blur"}],newPassword:[{validator:a,trigger:"blur"}],confirmNewPassword:[{validator:s,trigger:"blur"}]}}},watch:{show:function(e){var t=this;e&&this.$nextTick((function(){t.form={mobile:"",newPassword:"",confirmNewPassword:"",smscode:""}}))}},methods:{maskPhoneNumber:function(e){return e?e.replace(/(\d{3})\d{4}(\d{4})/,"$1****$2"):""},getVerify:function(){var e=this;if(this.form.mobile){var t="code".concat(Date.now()).concat(this.form.mobile),o={key:t,mobile:this.form.mobile,type:1};Object(c["b"])(o).then((function(o){0==o.code&&(e.$message({message:"短信发送成功,请查看!",type:"success"}),e.savekey=t,e.codeTime())}))}else this.$message({message:"请先输入手机号",type:"error"})},codeTime:function(){var e=this,t=60;this.count=t,this.verifyIng=!0,this.verifyTitle="".concat(this.count,"秒后再次获取"),this.timer||(this.timer=setInterval((function(){e.count>1&&e.count<=t?(e.count--,e.verifyTitle="".concat(e.count,"秒后再次获取")):(e.verifyIng=!1,clearInterval(e.timer),e.timer=null,e.verifyTitle="获取验证码")}),1e3))},submitForm:function(){var e=this;this.$refs.form.validate((function(t){if(t){var o={mobile:e.form.mobile,smscode:e.form.smscode,newPassword:e.form.confirmNewPassword,key:e.savekey};Object(c["j"])(o).then((function(t){e.$message({type:"success",message:"密码修改成功!"}),e.handleClose()}))}}))},psdSafety:function(){this.$alert('\n
密码复杂度要求:
\n安全建议:
\n