From 53e6c4d418f35384b40b090ab03b53768d5c21a1 Mon Sep 17 00:00:00 2001 From: 南骏 池 <chiffly@163.com> Date: 星期三, 06 八月 2025 16:57:32 +0800 Subject: [PATCH] 1.调拨入库取消选单号 --- 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 bbfa069..8963a96 100644 --- a/H5/Js/UserLogin.js +++ b/H5/Js/UserLogin.js @@ -11,13 +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") { } - that.phone = "admin"; - that.passwd = "123456"; + else { + that.phone = Cookies.get('loginAccount'); + //that.passwd = Cookies.get('passwd'); + } + //that.phone = "admin"; + //that.passwd = "123456"; }, methods: { onSubmit(name) { @@ -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