| | |
| | | }, |
| | | _userLogin() { |
| | | var that = this; |
| | | var cjId = that.Request("cjId"); |
| | | if (cjId.length<= 0) { |
| | | that.$toast.fail("请先选择车间"); |
| | | return; |
| | | } |
| | | that.isLoading = true; |
| | | that.AxiosHttp("post", 'User/UserLogin', { |
| | | accountNo: that.formCustom.phone, |
| | |
| | | var json = res; |
| | | if (json.rtnCode * 1 > 0) { |
| | | Cookies.set('loginGuid', json.rtnData.loginGuid); |
| | | var cjId = "100100"; |
| | | window.location.href = ("/BaoGong/fjDefault.aspx?math=" + Math.random() + "&cjId=" + cjId); |
| | | // window.location.href = ("/BaoGong/fjDefault.aspx?math=" + Math.random() + "&cjId=" + that.Request("cjId")); |
| | | } |
| | | else { |
| | | that.$toast.fail(json.rtnMsg); |