From 52dbfd767f2485a1d615c5d9db50d648a1d8214a Mon Sep 17 00:00:00 2001
From: wbc <2597324127@qq.com>
Date: 星期二, 23 十二月 2025 23:56:58 +0800
Subject: [PATCH] 生产报工模糊查询

---
 H5/Js/UserLogin.js |   11 ++++++++++-
 1 files changed, 10 insertions(+), 1 deletions(-)

diff --git a/H5/Js/UserLogin.js b/H5/Js/UserLogin.js
index 1eb6aaf..48d1df3 100644
--- a/H5/Js/UserLogin.js
+++ b/H5/Js/UserLogin.js
@@ -5,6 +5,7 @@
             isLoading: false,
             phone: '',
             passwd: '',
+            rememberPwd: false,
             show: false,
             show2: false,
         }
@@ -15,7 +16,11 @@
         }
         else {
             that.phone = Cookies.get('loginAccount');
-            //that.passwd = Cookies.get('passwd');
+            const rememberPwdStr = Cookies.get('rememberPwd');
+            that.rememberPwd = rememberPwdStr ? JSON.parse(rememberPwdStr.toLowerCase()) : false;
+            if (that.rememberPwd) {
+                that.passwd = Cookies.get('passwd');
+            }
         }
         //that.phone = "admin";
         //that.passwd = "123456";
@@ -26,7 +31,9 @@
             that._userLogin();
         },
         _userLogin() {
+            
             var that = this;
+            console.log(that.rememberPwd)
             that.isLoading = true;
             that.AxiosHttp("post", 'login/login', {
                 userID: that.phone,
@@ -47,6 +54,8 @@
                         Cookies.set('orgId', _orgId);
                         Cookies.set('orgNo', _orgNo);
                         Cookies.set('orgName', _orgName);
+                        Cookies.set('passwd', that.passwd);
+                        Cookies.set('rememberPwd', that.rememberPwd);
                         console.log(json.data.tbBillList);
                         console.log(Cookies);
                         window.location.href = ("/H5/Default.aspx?userGuid=" + _userGuid + "&userAccount=" + _userAccount);

--
Gitblit v1.9.3