new_naweigete/crmeb/public/admin/dist/system_static/js/chunk-2d8a6de0.ac6b97bc.js

1 line
52 KiB
JavaScript
Raw Normal View History

2025-03-12 10:47:34 +08:00
(window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-2d8a6de0"],{1102:function(t,e,n){},"1cf0":function(t,e,n){},"217b4":function(t,e,n){n("1102")},2431:function(t,e,n){n.r(e);var r=n("c7eb"),i=n("1da1"),s=(n("14d9"),n("ac1f"),n("5319"),n("d9e2"),n("00b4"),n("90e7")),o={name:"login",data:function(){return{formInline:{account:"",password:""},ruleInline:{account:[{required:!0,validator:function(t,e,n){if(!e)return n(new Error("请填写手机号"));/^1[3456789]\d{9}$/.test(e)?n():n(new Error("手机号格式不正确!"))},trigger:"blur"}],password:[{required:!0,message:"请输入密码",trigger:"blur"}]}}},created:function(){var t=this;document.onkeydown=function(e){13===window.event.keyCode&&t.handleSubmit("formInline")}},methods:{handleSubmit:function(t){var e=this;this.$refs[t].validate((function(t){if(!t)return!1;Object(s.j)(e.formInline).then((()=>{var t=Object(i.a)(Object(r.a)().mark((function t(n){return Object(r.a)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:e.$message.success("登录成功!"),e.$emit("on-Login");case 2:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}})()).catch((function(t){e.$message.error(t.msg)}))}))},changePassword:function(){this.$emit("on-change")},changeReg:function(){this.$emit("on-changes")}}},a=(n("940e"),n("2877")),c=(o=Object(a.a)(o,(function(){var t=this,e=t._self._c;return e("el-row",[e("el-col",{attrs:{span:24}},[e("div",{staticClass:"index_from page-account-container"},[e("div",{staticClass:"page-account-top"},[e("span",{staticClass:"page-account-top-tit"},[t._v("一号通账户登录")])]),e("el-form",{ref:"formInline",attrs:{model:t.formInline,rules:t.ruleInline},on:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.handleSubmit("formInline")}},nativeOn:{submit:function(t){t.preventDefault()}}},[e("el-form-item",{staticClass:"maxInpt",attrs:{prop:"sms_account"}},[e("el-input",{attrs:{type:"text",prefix:"ios-contact-outline",placeholder:"请输入手机号"},model:{value:t.formInline.account,callback:function(e){t.$set(t.formInline,"account",e)},expression:"formInline.account"}})],1),e("el-form-item",{staticClass:"maxInpt",attrs:{prop:"sms_token"}},[e("el-input",{attrs:{type:"password",prefix:"ios-lock-outline",placeholder:"请输入密码"},model:{value:t.formInline.password,callback:function(e){t.$set(t.formInline,"password",e)},expression:"formInline.password"}})],1),e("el-form-item",{staticClass:"maxInpt"},[e("el-button",{staticClass:"btn",attrs:{type:"primary",long:"",size:"large"},on:{click:function(e){return t.handleSubmit("formInline")}}},[t._v("登录")])],1)],1),e("div",{staticClass:"page-account-other"},[e("span",{on:{click:t.changePassword}},[t._v("忘记密码 |")]),e("span",{on:{click:t.changeReg}},[t._v(" 注册账户")])])],1)])],1)}),[],!1,null,"34a9c846",null).exports,n("6ea4")),u={name:"forgetPassword",components:{steps:c.a},data:function(){var t=this;return{cutNUm:"获取验证码",canClick:!0,current:0,formInline:{account:"",phone:"",verify_code:"",password:"",checkPass:""},ruleInline:{phone:[{required:!0,validator:function(t,e,n){if(!e)return n(new Error("请填写手机号"));/^1[3456789]\d{9}$/.test(e)?n():n(new Error("手机号格式不正确!"))},trigger:"blur"}],verify_code:[{required:!0,message:"请输入验证码",trigger:"blur"}],password:[{validator:function(e,n,r){""===n?r(new Error("请输入密码")):(1===t.current?""!==t.formInline.checkPass&&t.$refs.formInline.validateField("checkPass"):n!==t.formInline.checkPass&&r(new Error("请输入正确密码!")),r())},trigger:"blur"}],checkPass:[{validator:function(e,n,r){""===n?r(new Error("请再次输入密码")):n!==t.formInline.password?r(new Error("两次输入密码不一致!")):r()},trigger:"blur"}]},stepList:["验证账号信息","修改账户密码","登录"]}},methods:{cutDown:function(){var t,e,n=this;this.formInline.phone?this.canClick&&(this.canClick=!1,this.cutNUm=60,t={phone:this.formInline.phone},Object(s.c)(t).then((()=>{var t=Object(i.a)(Object(r.a)().mark((function t(e){return Object