From b36a08875084bca2ab0a23595918a09d7a4aef7b Mon Sep 17 00:00:00 2001
From: jiangping <jp@doumee.com>
Date: 星期二, 31 十二月 2024 09:21:53 +0800
Subject: [PATCH] 最新版本541200007

---
 h5/pages/staffLogin/login.vue |   16 +++++++++++-----
 1 files changed, 11 insertions(+), 5 deletions(-)

diff --git a/h5/pages/staffLogin/login.vue b/h5/pages/staffLogin/login.vue
index ddde42d..af0b5a4 100644
--- a/h5/pages/staffLogin/login.vue
+++ b/h5/pages/staffLogin/login.vue
@@ -86,7 +86,9 @@
       ProtocolFlag: false,
       captcha: {},
       htmlText: '',
-			windowHeight: ''
+			windowHeight: '',
+			
+			ywinfo: {}
     }
   },
 
@@ -94,7 +96,12 @@
     this.initCaptcha()
 		const result = uni.getWindowInfo()
 		this.windowHeight = result.windowHeight
-		console.log('result', result);
+		
+		const ywinfo = uni.getStorageSync('ywinfo') || {}
+		if (ywinfo.ywid && ywinfo.type == 2) {
+			this.ywinfo = ywinfo
+			uni.setStorageSync('ywinfo', {})
+		}
   },
   onBackPress(options) {
     uni.redirectTo({
@@ -151,6 +158,7 @@
         if (res.code === 200) {
           this.setToken(res.data)
           getUserInfo().then(ress => {
+						uni.setStorageSync('ywinfo', this.ywinfo)
             this.setUserInfo(ress.data)
             uni.redirectTo({
               url: "/pages/staff/index"
@@ -160,9 +168,7 @@
         }else{
 					this.initCaptcha()
 				}
-      }, () => {
-				this.initCaptcha()
-			})
+      })
     }
   }
 }

--
Gitblit v1.9.3