Browse Source

改安卓输入框上弹1

milestone-20250924-接入大财神工作流
no99 5 days ago
parent
commit
49d35ba42c
  1. 26
      src/views/homePage.vue

26
src/views/homePage.vue

@ -455,7 +455,7 @@ const handleHistorySelect = (stockData) => {
console.log("接收到历史记录数据:", stockData);
//
if (activeTab.value === 'AiEmotion') {
if (activeTab.value === "AiEmotion") {
// addStock
nextTick(() => {
if (aiEmotionRef.value && aiEmotionRef.value.addStock) {
@ -1016,7 +1016,7 @@ const throttledHeightListener = _.throttle(heightListener, 500, {
// // window.open(rechargeUrl)
// };
const adjustFooterPosition = (height) => {
const adjustFooterPosition = async (height) => {
const html = document.querySelector("html");
const body = document.querySelector("body");
@ -1027,6 +1027,8 @@ const adjustFooterPosition = (height) => {
const homePage = document.querySelector(".homepage");
homePage.style.height = `${height}px`;
html.style.height = `${height}px`;
body.style.height = `${height}px`;
// homePage.style.height = `460px`;
html.scrollTop = 0;
@ -1038,6 +1040,8 @@ const adjustFooterPosition = (height) => {
html.scrollTop = 0;
}
await nextTick();
html.scrollTop = 0;
setTimeout(() => {
//
html.style.overflow = "hidden";
@ -1077,17 +1081,6 @@ const onBlur = function () {
}, 200);
};
// window.addEventListener("resize", () => {
// // iOS
// const isIOS = /iPhone|iPad|iPod|ios/i.test(navigator.userAgent);
// console.log("iOS:", isIOS);
// if (!isIOS) {
// console.log("");
// const homePage = document.querySelector(".homepage");
// homePage.style.height = `${window.innerHeight}px`;
// }
// });
let touchmoveHandlerRef = null;
const touchmoveHandler = (e) => {
if (!dataStore.isFeedback) {
@ -3230,10 +3223,9 @@ body {
}
@media (min-width: 320px) and (max-width: 375px) {
.tokenRuleDialog {
bottom: 10%;
}
.tokenRuleDialog {
bottom: 10%;
}
}
</style>

Loading…
Cancel
Save