Browse Source

Merge branch 'milestone-20250924-接入大财神工作流' of http://39.101.133.168:8807/hongxilin/AIxiaocaishen into milestone-20250924-接入大财神工作流

milestone-20250924-接入大财神工作流
宋杰 5 days ago
parent
commit
949fcd3f7b
  1. 26
      src/views/homePage.vue

26
src/views/homePage.vue

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

Loading…
Cancel
Save