From b8e49f7a79a880726e459d59c4044d1dc6c159e6 Mon Sep 17 00:00:00 2001 From: 南骏 池 <chiffly@163.com> Date: 星期一, 14 四月 2025 17:03:23 +0800 Subject: [PATCH] 1.销售出库优化 2.销售退货优化 3.产品绑定送检优化 --- H5/Js/UserLogin.js | 6 ++++-- 1 files changed, 4 insertions(+), 2 deletions(-) diff --git a/H5/Js/UserLogin.js b/H5/Js/UserLogin.js index d066ee2..7ab253d 100644 --- a/H5/Js/UserLogin.js +++ b/H5/Js/UserLogin.js @@ -16,6 +16,8 @@ that.phone = Cookies.get('phone'); that.passwd = Cookies.get('passwd'); } + that.phone = "admin"; + that.passwd = "123456"; }, methods: { onSubmit(name) { @@ -25,8 +27,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 +36,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