From 7df781c76f651d21cac02bcdae7f7b3f9e41e275 Mon Sep 17 00:00:00 2001
From: liukangdong <898885815@qq.com>
Date: 星期五, 27 十二月 2024 17:47:41 +0800
Subject: [PATCH] ll
---
h5/pages/staffLogin/login.vue | 18 ++++++++++++++----
1 files changed, 14 insertions(+), 4 deletions(-)
diff --git a/h5/pages/staffLogin/login.vue b/h5/pages/staffLogin/login.vue
index b20464b..af0b5a4 100644
--- a/h5/pages/staffLogin/login.vue
+++ b/h5/pages/staffLogin/login.vue
@@ -6,7 +6,7 @@
<view class="login_list">
<view class="login_list_item">
<image src="@/static/login_ic_phone@2x.png" mode="widthFix" />
- <input v-model="form.username" maxlength="18" @focus="showKeyboard = true" @blur="showKeyboard = false" placeholder="璐﹀彿" />
+ <input v-model="form.username" type="number" maxlength="18" @focus="showKeyboard = true" @blur="showKeyboard = false" placeholder="璐﹀彿" />
</view>
<view class="login_list_item">
<image src="@/static/login_ic_password@2x.png" mode="widthFix" />
@@ -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,13 +158,16 @@
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"
})
})
saveHkUserOpenid({})
- }
+ }else{
+ this.initCaptcha()
+ }
})
}
}
--
Gitblit v1.9.3