Browse Source

Merge branch 'hongxilin/feature-20250628153758-财神优化:字正确性,一致性等' into milestone-20250710-上线前优化

master
no99 21 hours ago
parent
commit
e7ae9ba2b6
  1. 6
      index.html
  2. 26
      src/views/homePage.vue

6
index.html

@ -1,5 +1,5 @@
<!doctype html> <!doctype html>
<html lang="cn" style="min-height: 100vh !important;">
<html lang="cn" >
<head> <head>
<meta charset="UTF-8" /> <meta charset="UTF-8" />
@ -11,8 +11,8 @@
<title>AI小财神</title> <title>AI小财神</title>
</head> </head>
<body style="margin: 0px; padding: 0px; min-height: 100vh !important;">
<div id="app" style="min-height: 100vh !important;"></div>
<body style="margin: 0px; padding: 0px;">
<div id="app" ></div>
<script type="module" src="/src/main.js"></script> <script type="module" src="/src/main.js"></script>
</body> </body>

26
src/views/homePage.vue

@ -536,32 +536,6 @@ onMounted(async () => {
// //
throttledHeightListener(); throttledHeightListener();
const isAndroid = /Android/i.test(navigator.userAgent);
if (isAndroid) {
window.visualViewport.addEventListener("resize", () => {
const keyboardHeight = window.innerHeight - window.visualViewport.height;
console.log("视口大小变化", keyboardHeight);
// 100px
if (keyboardHeight > 100) {
const footer = document.querySelector(".el-footer");
footer.style.paddingBottom = `${keyboardHeight}px`;
//
setTimeout(() => {
const msgInput = document.querySelector(".msg-input");
if (msgInput) {
msgInput.scrollIntoView({ behavior: "smooth" });
}
}, 300);
} else {
//
const footer = document.querySelector(".el-footer");
footer.style.paddingBottom = "0px";
}
});
}
// //
// handleInputFocus(); // handleInputFocus();

Loading…
Cancel
Save