6635ab5f949c79906750fac6965e88ac50904e82d8dee4f2480f6a0a2a9193c0ef94a029be6d406c6072c8af3bf4df7f2904007a129ce8f44e349260370e 9.2 KB

1
  1. {"code":"/*!\n * build: vue-admin-beautiful \n * copyright: chuzhixin 1204505056@qq.com \n * time: 2022-12-12 09:51:32\n */\n(window[\"webpackJsonp\"]=window[\"webpackJsonp\"]||[]).push([[\"chunk-49eac67b\"],{\"21aa\":function(s,t,e){\"use strict\";e.r(t);var i=function(){var s=this,t=s.$createElement,i=s._self._c||t;return i(\"div\",{staticClass:\"loginContainer\"},[i(\"img\",{staticClass:\"logoimg\",attrs:{src:e(\"273b\"),alt:\"\"}}),i(\"div\",{staticClass:\"login-wrapper\"},[s._m(0),i(\"div\",{staticClass:\"login-container\"},[i(\"div\",{staticClass:\"account-wrapper\"},[i(\"div\",{staticClass:\"account-title\"},[i(\"p\",{staticClass:\"account-title-item\",class:[\"login_form\"===s.tab_on?\"account-title-active\":\"\"],on:{click:function(t){s.tab_on=\"login_form\"}}},[s._v(\" 收银台登录 \"),i(\"span\",{staticClass:\"account-title-line\"})])])]),\"login_form\"===s.tab_on?i(\"div\",{staticClass:\"account-login-wrapper\"},[i(\"div\",{staticClass:\"account-input-list\"},[i(\"div\",{staticClass:\"account-input-item\"},[i(\"div\",{staticClass:\"phoneWrapper\"},[i(\"p\",{staticClass:\"inputText\",class:[s.login_form.mobile?\"inputTextFocus\":\"\"]},[s._v(\" 手机号/帐号 \")]),i(\"div\",{staticClass:\"inputBox\",class:[s.login_form_mobile?\"alert\":\"\"]},[i(\"input\",{directives:[{name:\"model\",rawName:\"v-model\",value:s.login_form.mobile,expression:\"login_form.mobile\"}],attrs:{type:\"text\",maxlength:\"50\"},domProps:{value:s.login_form.mobile},on:{blur:function(t){return s.inputBlur(t,\"mobile\")},focus:function(t){return s.inputFocus(t,\"mobile\")},input:function(t){t.target.composing||s.$set(s.login_form,\"mobile\",t.target.value)}}}),i(\"p\",{staticClass:\"inputAlert hasTitle\"},[s._v(\"请输入正确的帐号\")])])])]),i(\"div\",{staticClass:\"account-input-item\"},[i(\"div\",{staticClass:\"passwordWrapper\"},[i(\"p\",{staticClass:\"inputText\",class:[s.login_form.password?\"inputTextFocus\":\"\"]},[s._v(\" 密码 \")]),i(\"div\",{staticClass:\"inputBox\",class:[s.login_form_password?\"alert\":\"\"]},[\"checkbox\"===(s.login_form_look?\"text\":\"password\")?i(\"input\",{directives:[{name:\"model\",rawName:\"v-model\",value:s.login_form.password,expression:\"login_form.password\"}],attrs:{maxlength:\"50\",type:\"checkbox\"},domProps:{checked:Array.isArray(s.login_form.password)?s._i(s.login_form.password,null)>-1:s.login_form.password},on:{blur:function(t){return s.inputBlur(t,\"password\")},focus:function(t){return s.inputFocus(t,\"password\")},change:function(t){var e=s.login_form.password,i=t.target,o=!!i.checked;if(Array.isArray(e)){var r=null,n=s._i(e,r);i.checked?n<0&&s.$set(s.login_form,\"password\",e.concat([r])):n>-1&&s.$set(s.login_form,\"password\",e.slice(0,n).concat(e.slice(n+1)))}else s.$set(s.login_form,\"password\",o)}}}):\"radio\"===(s.login_form_look?\"text\":\"password\")?i(\"input\",{directives:[{name:\"model\",rawName:\"v-model\",value:s.login_form.password,expression:\"login_form.password\"}],attrs:{maxlength:\"50\",type:\"radio\"},domProps:{checked:s._q(s.login_form.password,null)},on:{blur:function(t){return s.inputBlur(t,\"password\")},focus:function(t){return s.inputFocus(t,\"password\")},change:function(t){return s.$set(s.login_form,\"password\",null)}}}):i(\"input\",{directives:[{name:\"model\",rawName:\"v-model\",value:s.login_form.password,expression:\"login_form.password\"}],attrs:{maxlength:\"50\",type:s.login_form_look?\"text\":\"password\"},domProps:{value:s.login_form.password},on:{blur:function(t){return s.inputBlur(t,\"password\")},focus:function(t){return s.inputFocus(t,\"password\")},input:function(t){t.target.composing||s.$set(s.login_form,\"password\",t.target.value)}}}),i(\"i\",{staticClass:\"iconfont eyes\",class:[s.login_form_look?\"icon-xianshimima\":\"icon-yincangmima\"],on:{click:s.lookPwd}}),i(\"p\",{staticClass:\"inputAlert hasTitle\"},[s._v(\"请输入正确的密码\")])])])])]),i(\"div\",{staticClass:\"login-btn big-button\",on:{click:s.loginSubmit}},[s._v(\"登录\")]),i(\"p\",{staticClass:\"find-pass-des\",on:{click:function(t){s.tab_on=\"forgetPwd\"}}},[i(\"a\",{attrs:{href:\"javascript:;\"}},[s._v(\"忘记密码\")])])]):s._e()])]),i(\"div\",{staticClass:\"xiaoeDesc\"},[i(\"p\",{staticClass:\"xiaoe-des\"},[i(\"span\",{staticClass:\"xiaoe-line-left\"}),s._v(\" \"+s._s(s.enterprise_title)+\" \"),i(\"span\",{staticClass:\"dot\"}),s._v(\" \"+s._s(s.systemDesc)+\" \"),i(\"span\",{staticClass:\"xiaoe-line-right\"})]),i(\"p\",{staticClass:\"xiaoe-records\"},[s._v(\" Copyright © 2019-\"+s._s(s.fullYear)+\" \"+s._s(s.companyName)+\" 版权所有. \"),i(\"a\",{staticClass:\"a_tag\",attrs:{target:\"_blank\",href:\"http://www.beian.miit.gov.cn/\"}},[s._v(\" \"+s._s(s.case_text)+\" \")]),s._v(\" . \"+s._s(s.companyAddress)+\" \")])])])},o=[function(){var s=this,t=s.$createElement,i=s._self._c||t;return i(\"div\",{staticClass:\"login-bg\"},[i(\"img\",{staticClass:\"login-img\",attrs:{src:e(\"3428\")}})])}],r=e(\"2f62\"),n=e(\"c24f\"),a=e(\"778c\"),l=e(\"2934\"),c={name:\"CashierLogin\",data(){return{case_text:a[\"icCase\"],companyAddress:a[\"companyAddress\"],systemDesc:a[\"systemDesc\"],companyName:a[\"companyName\"],fullYear:(new Date).getFullYear(),login_form_look:!1,login_register_look:!1,forgetPwd_look:!1,enterprise_visible:!1,tab_on:\"login_form\",login_form_mobile:!1,login_form_password:!1,login_form:{mobile:\"\",password:\"\"},login_register_mobile:!1,login_register_password:!1,login_register_smsCode:!1,login_register:{mobile:\"\",smsCode:\"\",password:\"\"},enterprise_list:[],enterpriseName:\"\",forgetPwd_mobile:!1,forgetPwd_password:!1,forgetPwd_smsCode:!1,forgetPwd_enterpriseId:!1,forgetPwd:{mobile:\"\",smsCode:\"\",password:\"\",enterpriseId:\"\"},is_disF_yzm:!1,is_dis_yzm:!1,second_num:60,secondF_num:60}},mounted(){},methods:{...Object(r[\"b\"])({changeUserName:\"changeUserName\",changeEnterpriseSalt:\"changeEnterpriseSalt\"}),inputBlur(s,t){this[this.tab_on+\"_\"+t]=!this[this.tab_on][t],\"mobile\"===t&&\"login_register\"===this.tab_on&&this.mobileIsRegister(),(\"mobile\"===t&&\"forgetPwd\"===this.tab_on||\"smsCode\"===t&&\"forgetPwd\"===this.tab_on)&&this.getAllEnterprisePhone()},inputFocus(s,t){this[this.tab_on+\"_\"+t]=!1},async mobileIsRegister(){const s=/^1[3456789]\\d{9}$/;if(!s.test(this.login_register.mobile))return;const{data:t}=await Object(n[\"mobileIsRegister\"])(this.login_register.mobile);t&&(this.$message.warning(\"该手机号已被注册!\"),this.login_register.mobile=\"\")},async getYzm(s,t){if(!s)return void this.$message({type:\"error\",message:\"请输入手机号\"});await Object(l[\"sendMobileCode\"])({mobile:s,source:t});this.$message({type:\"success\",message:\"发送成功\"}),\"2\"===t?this.timeToTime(\"is_disF_yzm\",\"secondF_num\"):this.timeToTime(\"is_dis_yzm\",\"second_num\")},timeToTime(s,t){this[s]=!0,this[t]=60;const e=setInterval(()=>{this[t]--,0===this[t]&&(clearInterval(e),this[s]=!1)},1e3)},async Register(){this.login_register.mobile||(this.login_register_mobile=!0),this.login_register.smsCode||(this.login_register_smsCode=!0),this.login_register.password||(this.login_register_password=!0);const s=Object.values(this.login_register).every(s=>!!s);if(!s)return;await Object(n[\"Register\"])({mobile:this.login_register.mobile,password:this.login_register.password,repeatPassword:this.login_register.password,source:\"6\",smsCode:this.login_register.smsCode});this.$message({type:\"success\",message:\"注册成功\"}),this.tab_on=\"login_form\"},async loginSubmit(){this.login_form.mobile||(this.login_form_mobile=!0),this.login_form.password||(this.login_form_password=!0);const s=Object.values(this.login_form).every(s=>!!s);if(!s)return;this.changeUserName(this.login_form.mobile);const{data:t}=await Object(n[\"login\"])({mobile:this.login_form.mobile,password:this.login_form.password});this.changeEnterpriseSalt(t.salt),sessionStorage.removeItem(\"isCashier\"),setTimeout(()=>{sessionStorage.setItem(\"user_info\",JSON.stringify({...t,phone:this.login_form.mobile})),this.$router.push(\"/sIndex/1\")},500)},async forgetPwdSub(){this.forgetPwd.mobile||(this.forgetPwd_mobile=!0),this.forgetPwd.smsCode||(this.forgetPwd_smsCode=!0),this.forgetPwd.enterpriseId||(this.forgetPwd_enterpriseId=!0),this.forgetPwd.password||(this.forgetPwd_password=!0);const s=Object.values(this.forgetPwd).every(s=>!!s);if(!s)return;await Object(n[\"forgetPassword\"])({mobile:this.forgetPwd.mobile,password:this.forgetPwd.password,repeatPassword:this.forgetPwd.password,smsCode:this.forgetPwd.smsCode,enterpriseId:this.forgetPwd.enterpriseId});this.$message({type:\"success\",message:\"密码修改成功\"}),this.tab_on=\"login_form\"},async getAllEnterprisePhone(){if(!this.forgetPwd.mobile||!this.forgetPwd.smsCode)return;const{data:s}=await Object(n[\"getAllEnterprisePhone\"])({mobile:this.forgetPwd.mobile,smsCode:this.forgetPwd.smsCode});this.enterprise_list=s},selectEn(s){this.enterprise_visible=!1,this.forgetPwd.enterpriseId=s.id,this.enterpriseName=s.enterpriseName},lookPwd(){this[this.tab_on+\"_look\"]=!this[this.tab_on+\"_look\"]}}},m=c,g=(e(\"682d\"),e(\"2877\")),d=Object(g[\"a\"])(m,i,o,!1,null,\"7962f492\",null);t[\"default\"]=d.exports},\"273b\":function(s,t,e){s.exports=e.p+\"static/img/logo-21249f@2x.6583511d.png\"},3428:function(s,t,e){s.exports=e.p+\"static/img/login-bg.2387c241.jpg\"},\"682d\":function(s,t,e){\"use strict\";e(\"c869\")},c869:function(s,t,e){}}]);","extractedComments":[]}