From 99cda620b8e070ea621b1b6dfa8b555790186d89 Mon Sep 17 00:00:00 2001 From: 南骏 池 <chiffly@163.com> Date: 星期五, 01 八月 2025 08:38:17 +0800 Subject: [PATCH] 1.巡检新增工位扫描 2.生产报工优化 3.生产领料条码打印优化 4.产品绑定送检新增AGV 5.产品绑定提交优化 --- H5/Js/UserLogin.js | 15 +++++++++------ 1 files changed, 9 insertions(+), 6 deletions(-) diff --git a/H5/Js/UserLogin.js b/H5/Js/UserLogin.js index d066ee2..8963a96 100644 --- a/H5/Js/UserLogin.js +++ b/H5/Js/UserLogin.js @@ -11,11 +11,14 @@ }, mounted() { var that = this; - if (typeof (Cookies.get('phone')) == "undefined") { } - else { - that.phone = Cookies.get('phone'); - that.passwd = Cookies.get('passwd'); + if (typeof (Cookies.get('loginAccount')) == "undefined") { } + else { + that.phone = Cookies.get('loginAccount'); + //that.passwd = Cookies.get('passwd'); + } + //that.phone = "admin"; + //that.passwd = "123456"; }, methods: { onSubmit(name) { @@ -25,8 +28,6 @@ _userLogin() { var that = this; that.isLoading = true; - that.phone = "admin"; - that.passwd = "123456"; that.AxiosHttp("post", 'login/login', { userID: that.phone, userPass: that.passwd, @@ -36,8 +37,10 @@ if (json.status == 0) { var _userGuid = json.data.tbBillList.guid; var _userAccount = json.data.tbBillList.account; + var _userName = json.data.tbBillList.userName; Cookies.set('loginGuid', _userGuid); Cookies.set('loginAccount', _userAccount); + Cookies.set('loginName', _userName); window.location.href = ("/H5/Default.aspx?userGuid=" + _userGuid + "&userAccount=" + _userAccount); } else { -- Gitblit v1.9.3