From fbe0595485e2e7c0fde9c0d95f02e38b58e7b2d3 Mon Sep 17 00:00:00 2001
From: 南骏 池 <chiffly@163.com>
Date: 星期一, 05 五月 2025 10:39:36 +0800
Subject: [PATCH] 1.现场收料界面 2.界面优化

---
 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