|
12 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-6610d797"],{"159b":function(t,e,n){var i=n("da84"),o=n("fdbc"),a=n("17c2"),s=n("9112");for(var r in o){var c=i[r],l=c&&c.prototype;if(l&&l.forEach!==a)try{s(l,"forEach",a)}catch(u){l.forEach=a}}},"17c2":function(t,e,n){"use strict";var i=n("b727").forEach,o=n("a640"),a=n("ae40"),s=o("forEach"),r=a("forEach");t.exports=s&&r?[].forEach:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0)}},4160:function(t,e,n){"use strict";var i=n("23e7"),o=n("17c2");i({target:"Array",proto:!0,forced:[].forEach!=o},{forEach:o})},5530:function(t,e,n){"use strict";n.d(e,"a",(function(){return a}));n("a4d3"),n("4de4"),n("4160"),n("e439"),n("dbb4"),n("b64b"),n("159b");var i=n("ade3");function o(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function a(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?o(Object(n),!0).forEach((function(e){Object(i["a"])(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}},6069:function(t,e,n){},"793e":function(t,e,n){"use strict";var i=n("a8ff"),o=n.n(i);o.a},"7db0":function(t,e,n){"use strict";var i=n("23e7"),o=n("b727").find,a=n("44d2"),s=n("ae40"),r="find",c=!0,l=s(r);r in[]&&Array(1)[r]((function(){c=!1})),i({target:"Array",proto:!0,forced:c||!l},{find:function(t){return o(this,t,arguments.length>1?arguments[1]:void 0)}}),a(r)},"86cd":function(t,e,n){"use strict";var i=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("el-button",{staticClass:"loginright_btn nopadding",attrs:{type:"primary",disabled:t.BtnSms},on:{click:function(e){return t.getPhoneCode()}}},[t._v(" "+t._s(t.smsTip)+" ")])},o=[],a={props:{phoneNum:{type:String,default:function(t){return t}},checkPhoneNum:{type:String,default:function(t){return t}},isCheckPhone:{type:Boolean,default:!1}},data:function(){return{count:60,BtnSms:!1,timer:"",smsTip:"获取验证码"}},methods:{getPhoneCode:function(){/^1[3456789]\d{9}$/.test(this.phoneNum)&&/^1[3456789]\d{9}$/.test(this.checkPhoneNum)?this.isCheckPhone?this.checkPhone():this.getYZM():this.$notify.error({message:"请检查手机号是否填写正确。",offset:100,duration:2500})},getYZM:function(){var t=this,e=this;this.$axios({method:"get",url:encodeURI("/api/account/verification/"+e.phoneNum),data:{phone:e.phoneNum}}).then((function(n){1==n.data.state?(e.$notify({message:n.data.message,type:"warning",offset:100,duration:2500}),t.countDownTimer()):e.$notify.error({message:n.data.message,offset:100,duration:2500})})).catch((function(t){console.log(t)}))},checkPhone:function(){var t=this,e=this;this.$axios({method:"get",url:encodeURI("/api/account/check/phone/"+e.checkPhoneNum),params:{phone:e.checkPhoneNum}}).then((function(n){1==n.data.state?t.getYZM():e.$notify.error({message:n.data.message,offset:100,duration:2500})})).catch((function(t){console.log(t)}))},countDownTimer:function(){var t=this;this.BtnSms=!0,this.smsTip=this.count+"秒后重新获取",this.timer=setInterval((function(){t.count-=1,t.count>0?t.smsTip=t.count+"秒后重新获取":(t.BtnSms=!1,t.smsTip="获取验证码",t.count=60,clearInterval(t.timer))}),1e3)}}},s=a,r=(n("a4f2"),n("2877")),c=Object(r["a"])(s,i,o,!1,null,null,null);e["a"]=c.exports},"9ed6":function(t,e,n){"use strict";n.r(e);var i=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"loginbox_warp"},[n("iframe",{staticClass:"login_bg",staticStyle:{width:"calc(100vw)",height:"calc(100vh)",position:"absolute",top:"0"},attrs:{src:"/static/img/bgAnimate/bganimat.html",frameborder:"0"}}),t._m(0),n("div",{staticClass:"loginbox"},[n("div",[n("div",{directives:[{name:"show",rawName:"v-show",value:0==t.loginShow,expression:"loginShow == 0"}]},[n("div",{staticClass:"login_formBox"},[n("label",{staticClass:"loginlabel"},[t._v("验证身份")]),n("label",{staticClass:"loginlabel"},[n("i",{staticClass:"icon font_family icon-icon_fanhui combackreturn",on:{click:t.returnLoign}}),t._v("设置密码 ")]),t._m(1)]),t._m(2)]),1==t.loginShow?n("div",[n("div",{staticClass:"login_formBox"},[n("label",{staticClass:"loginlabel"},[t._v("登入")]),n("form",{staticClass:"formlogin"},[n("div",{staticClass:"formlogin_item"},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.account,expression:"account"}],staticClass:"login_input",attrs:{type:"text",name:"username",placeholder:"请输入企业预留手机号或邮箱"},domProps:{value:t.account},on:{input:function(e){e.target.composing||(t.account=e.target.value)}}})]),n("div",{staticClass:"formlogin_item"},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.pwd,expression:"pwd"}],staticClass:"login_input",attrs:{type:"password",name:"",placeholder:"输入登入密码"},domProps:{value:t.pwd},on:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.ToMain(e)},input:function(e){e.target.composing||(t.pwd=e.target.value)}}}),""!=t.account?n("a",{staticClass:"loginlabel_resit",attrs:{href:"javascript:;"},on:{click:t.backPassword}},[t._v("忘记密码")]):t._e()]),1==t.errTips?n("div",{staticClass:"worningalert"},[t._v(t._s(t.tipmgs))]):t._e()])]),n("div",[n("button",{staticClass:"login_btn",on:{click:t.ToMain,keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.ToMain(e)}}},[t._v("登入")])])]):t._e(),2==t.loginShow?n("div",[n("div",{staticClass:"login_formBox"},[n("label",{staticClass:"loginlabel"},[t._v("登入后台")]),n("form",{staticClass:"formlogin",attrs:{name:"formName"}},[n("div",{staticClass:"formlogin_item"},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.account,expression:"account"}],staticClass:"login_input",attrs:{type:"text",name:"inputName",value:"",placeholder:"请输入企业预留手机号或邮箱"},domProps:{value:t.account},on:{input:function(e){e.target.composing||(t.account=e.target.value)}}})]),n("div",{staticClass:"formlogin_item"},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.pwd,expression:"pwd"}],staticClass:"login_input",attrs:{type:"password",name:"",placeholder:"请输入登入密码"},domProps:{value:t.pwd},on:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.ToMain(e)},input:function(e){e.target.composing||(t.pwd=e.target.value)}}}),""!=t.account?n("a",{staticClass:"loginlabel_resit",attrs:{href:"javascript:;"},on:{click:t.backPassword}},[t._v("忘记密码")]):t._e()]),1==t.errTips?n("div",{staticClass:"worningalert"},[t._v(t._s(t.tipmgs))]):t._e()])]),n("el-checkbox",{staticClass:"login_checkBox mt-10",model:{value:t.isRemember,callback:function(e){t.isRemember=e},expression:"isRemember"}},[t._v("记住密码")]),n("div",[n("button",{staticClass:"login_btn",on:{click:t.ToMain},nativeOn:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.ToMain(e)}}},[t._v("登入")])])],1):t._e(),3==t.loginShow?n("div",[n("div",{staticClass:"login_formBox"},[n("label",{staticClass:"loginlabel"},[n("i",{staticClass:"icon font_family icon-icon_fanhui combackreturn",on:{click:t.loginPage}}),t._v("输入账号 ")]),n("form",{staticClass:"formlogin"},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.phoneNumber,expression:"phoneNumber"}],staticClass:"login_input",attrs:{type:"text",name:"",placeholder:"请输入企业预留手机号或邮箱"},domProps:{value:t.phoneNumber},on:{input:function(e){e.target.composing||(t.phoneNumber=e.target.value)}}})])]),n("div",[n("button",{staticClass:"login_btn",on:{click:t.next}},[t._v("下一步")])])]):t._e(),4==t.loginShow?n("div",[n("div",{staticClass:"login_formBox"},[n("label",{staticClass:"loginlabel"},[n("i",{staticClass:"icon font_family icon-icon_fanhui combackreturn",on:{click:t.prev}}),t._v("验证身份 ")]),n("form",{staticClass:"formlogin"},[n("div",{staticClass:"formlogin_item rightBtn_input"},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.phoneCode,expression:"phoneCode"}],staticClass:"login_input",attrs:{type:"text",name:"",placeholder:"输入验证码"},domProps:{value:t.phoneCode},on:{input:function(e){e.target.composing||(t.phoneCode=e.target.value)}}}),n("BtnSmsCode",{attrs:{phoneNum:t.phoneNumber,checkPhoneNum:t.phoneNumber}})],1)])]),n("div",[n("button",{staticClass:"login_btn",on:{click:function(e){t.loginShow=5}}},[t._v("下一步")])])]):t._e(),5==t.loginShow?n("div",[n("div",{staticClass:"login_formBox"},[n("label",{staticClass:"loginlabel"},[n("i",{staticClass:"icon font_family icon-icon_fanhui combackreturn",on:{click:t.prev}}),t._v("重置密码 ")]),n("form",{staticClass:"formlogin"},[n("div",{staticClass:"formlogin_item"},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.firstNewPwd,expression:"firstNewPwd"}],staticClass:"login_input",attrs:{type:"text",name:"",placeholder:"输入新密码"},domProps:{value:t.firstNewPwd},on:{input:function(e){e.target.composing||(t.firstNewPwd=e.target.value)}}})]),n("div",{staticClass:"formlogin_item"},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.enterNewPwd,expression:"enterNewPwd"}],staticClass:"login_input",attrs:{type:"password",name:"",placeholder:"确认新密码"},domProps:{value:t.enterNewPwd},on:{input:[function(e){e.target.composing||(t.enterNewPwd=e.target.value)},function(e){return t.checkPwd()}]}}),n("span",{staticClass:"yyerrtip"},[t._v(t._s(t.checkPwdTip))])])])]),n("div",[n("button",{staticClass:"login_btn",on:{click:t.returnLoign}},[t._v("重新登入")])])]):t._e()])])])},o=[function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"LoginTitleWel"},[n("div",{staticClass:"logintitlefirst"},[n("span",[t._v("欢迎使用")]),n("span",[t._v("LOCKING")])])])},function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("form",{staticClass:"formlogin"},[n("div",{staticClass:"formlogin_item"},[n("input",{staticClass:"login_input",attrs:{type:"text",name:"",placeholder:"请输入企业预留手机号或邮箱"}})]),n("div",{staticClass:"formlogin_item"},[n("input",{staticClass:"login_input",attrs:{type:"password",name:"",placeholder:"设置登入密码"}})]),n("div",{staticClass:"formlogin_item"},[n("input",{staticClass:"login_input",attrs:{type:"password",name:"",placeholder:"确认登入密码"}})])])},function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("button",{staticClass:"login_btn"},[t._v("下一步")]),n("button",{staticClass:"login_btn"},[t._v("完成并登入")])])}],a=(n("b0c0"),n("96cf"),n("1da1")),s=n("86cd"),r=n("1d40"),c={components:{BtnSmsCode:s["a"]},data:function(){return{filelist:[],login:!0,regist:!1,errTips:!1,tipmgs:"",account:"",pwd:"",loginShow:1,isBackground:!1,phoneNumber:"",firstNewPwd:"",enterNewPwd:"",checkPwdTip:"",phoneCode:"",isRemember:!1,isClient:r["a"].isClient}},beforeRouteLeave:function(t,e,n){sessionStorage.login=e.name,n()},created:function(){sessionStorage.login="",r["a"].init()},mounted:function(){var t=this;this.loadRemember(),window["tipMsg"]=function(e){t.tipMsg(e)}},methods:{tipMsg:function(t){this.$notify({message:t,type:"warning",offset:100,duration:3500})},loadRemember:function(){if(this.$cookie.get("remember")){this.account=this.$cookie.get("account"),this.pwd=this.$cookie.get("pwd");var t=this.$cookie.get("background");"false"==t&&(this.isBackground=!1),this.isRemember=!0}},backPassword:function(){this.loginShow=3},prev:function(){this.loginShow=3},next:function(){/^1[3456789]\d{9}$/.test(this.phoneNumber)?this.checkPhone():this.$notify({message:"请检查手机号是否填写正确。",type:["warning"],offset:100,duration:2500})},checkPhone:function(){var t=this;this.$axios({method:"get",url:encodeURI("/api/account/check/phone/"+t.phoneNum),params:{phone:t.phoneNum}}).then((function(e){1==e.data.state?(t.$notify({type:"warning",message:e.data.message,offset:100,duration:2500}),t.loginShow=4):t.$notify.error({message:e.data.message,offset:100,duration:2500})})).catch((function(t){console.log(t)}))},loginPage:function(){this.loginShow=1,this.isBackground?this.isBackground=!1:this.isBackground=!0},returnLoign:function(){if(this.firstNewPwd==this.enterNewPwd){var t=this;this.$axios({method:"put",url:encodeURI("/api/account/pwd/phone"),data:{phone:t.phoneNumber,code:t.phoneCode,newPwd:t.enterNewPwd}}).then((function(e){1==e.data.state?(t.$notify({type:"warning",message:e.data.message,offset:100,duration:2500}),t.firstNewPwd="",t.enterNewPwd="",t.phoneNumber="",t.phoneCode="",t.loginPage()):t.$notify.error({message:e.data.message,offset:100,duration:2500})})).catch((function(t){console.log(t)}))}else this.$notify({message:"您输入的两次密码不一致",type:["warning"],offset:100,duration:2500})},loginBackManage:function(){this.loginShow=2,this.isBackground=!0},ToMain:function(){var t=this;return Object(a["a"])(regeneratorRuntime.mark((function e(){var n,i,o;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(n=t,""!=n.account){e.next=5;break}return n.errTips=!0,n.tipmgs="请输入用户名!",e.abrupt("return");case 5:if(""!=n.pwd){e.next=9;break}return n.errTips=!0,n.tipmgs="请输入密码!",e.abrupt("return");case 9:return e.next=11,t.$store.login(t.account,t.pwd);case 11:if(i=e.sent,o=0===i.Code,o){e.next=16;break}return t.$notify({message:"登录失败,用户名或密码错误!",type:["warning"]}),e.abrupt("return");case 16:n.isRemember?(n.$cookie.set("remember",!0),n.$cookie.set("account",n.account),n.$cookie.set("pwd",n.pwd),n.$cookie.set("background",n.isBackground)):(n.$cookie.remove("remember"),n.$cookie.remove("account"),n.$cookie.remove("pwd"),n.$cookie.remove("background")),n.$router.push({path:"platform"}),n.$notify({message:"链接成功。",type:"success"});case 19:case"end":return e.stop()}}),e)})))()},checkPwd:function(){this.firstNewPwd!=this.enterNewPwd?this.checkPwdTip="两次密码输入不一致,请重新输入。":this.checkPwdTip="成功"}}},l=c,u=(n("793e"),n("2877")),d=Object(u["a"])(l,i,o,!1,null,null,null);e["default"]=d.exports},a4f2:function(t,e,n){"use strict";var i=n("6069"),o=n.n(i);o.a},a8ff:function(t,e,n){},ade3:function(t,e,n){"use strict";function i(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}n.d(e,"a",(function(){return i}))},b64b:function(t,e,n){var i=n("23e7"),o=n("7b0b"),a=n("df75"),s=n("d039"),r=s((function(){a(1)}));i({target:"Object",stat:!0,forced:r},{keys:function(t){return a(o(t))}})},d81d:function(t,e,n){"use strict";var i=n("23e7"),o=n("b727").map,a=n("1dde"),s=n("ae40"),r=a("map"),c=s("map");i({target:"Array",proto:!0,forced:!r||!c},{map:function(t){return o(this,t,arguments.length>1?arguments[1]:void 0)}})},dbb4:function(t,e,n){var i=n("23e7"),o=n("83ab"),a=n("56ef"),s=n("fc6a"),r=n("06cf"),c=n("8418");i({target:"Object",stat:!0,sham:!o},{getOwnPropertyDescriptors:function(t){var e,n,i=s(t),o=r.f,l=a(i),u={},d=0;while(l.length>d)n=o(i,e=l[d++]),void 0!==n&&c(u,e,n);return u}})},e439:function(t,e,n){var i=n("23e7"),o=n("d039"),a=n("fc6a"),s=n("06cf").f,r=n("83ab"),c=o((function(){s(1)})),l=!r||c;i({target:"Object",stat:!0,forced:l,sham:!r},{getOwnPropertyDescriptor:function(t,e){return s(a(t),e)}})}}]);
- //# sourceMappingURL=chunk-6610d797.001c8e88.js.map
|