| | |
| | | } |
| | | else { |
| | | that.phone = Cookies.get('loginAccount'); |
| | | //that.passwd = Cookies.get('passwd'); |
| | | const rememberPwdStr = Cookies.get('rememberPwd'); |
| | | that.rememberPwd = rememberPwdStr ? JSON.parse(rememberPwdStr.toLowerCase()) : false; |
| | | if (that.rememberPwd) { |
| | | that.passwd = Cookies.get('passwd'); |
| | | } |
| | | } |
| | | //that.phone = "admin"; |
| | | //that.passwd = "123456"; |
| | |
| | | that._userLogin(); |
| | | }, |
| | | _userLogin() { |
| | | |
| | | var that = this; |
| | | console.log(that.rememberPwd) |
| | | that.isLoading = true; |
| | | that.AxiosHttp("post", 'login/login', { |
| | | userID: that.phone, |
| | |
| | | Cookies.set('orgId', _orgId); |
| | | Cookies.set('orgNo', _orgNo); |
| | | Cookies.set('orgName', _orgName); |
| | | Cookies.set('passwd', that.passwd); |
| | | Cookies.set('rememberPwd', that.rememberPwd); |
| | | console.log(json.data.tbBillList); |
| | | console.log(Cookies); |
| | | window.location.href = ("/H5/Default.aspx?userGuid=" + _userGuid + "&userAccount=" + _userAccount); |