|
@ -45,9 +45,9 @@ import back from "../assets/img/Feedback/back.png"; |
|
|
|
|
|
|
|
|
import HistoryRecord from "./components/HistoryRecord.vue"; |
|
|
import HistoryRecord from "./components/HistoryRecord.vue"; |
|
|
|
|
|
|
|
|
// import VConsole from "vconsole"; |
|
|
|
|
|
|
|
|
import VConsole from "vconsole"; |
|
|
|
|
|
|
|
|
// const vConsole = new VConsole(); |
|
|
|
|
|
|
|
|
const vConsole = new VConsole(); |
|
|
|
|
|
|
|
|
const isMobile = ref(null); |
|
|
const isMobile = ref(null); |
|
|
|
|
|
|
|
@ -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"); |
|
|
|
|
|
|
|
@ -1026,7 +1026,7 @@ const adjustFooterPosition = (height) => { |
|
|
console.log("window.visualViewport", window.visualViewport.height); |
|
|
console.log("window.visualViewport", window.visualViewport.height); |
|
|
const homePage = document.querySelector(".homepage"); |
|
|
const homePage = document.querySelector(".homepage"); |
|
|
|
|
|
|
|
|
homePage.style.height = `${height}px`; |
|
|
|
|
|
|
|
|
// homePage.style.height = `${height}px`; |
|
|
// homePage.style.height = `460px`; |
|
|
// homePage.style.height = `460px`; |
|
|
|
|
|
|
|
|
html.scrollTop = 0; |
|
|
html.scrollTop = 0; |
|
@ -1038,6 +1038,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 +1079,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) { |
|
@ -2676,7 +2667,7 @@ body { |
|
|
display: flex; |
|
|
display: flex; |
|
|
width: 100%; |
|
|
width: 100%; |
|
|
margin-bottom: 30px; |
|
|
margin-bottom: 30px; |
|
|
flex-wrap: wrap; |
|
|
|
|
|
|
|
|
justify-content: center; |
|
|
gap: 20px; |
|
|
gap: 20px; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
@ -2685,8 +2676,10 @@ body { |
|
|
background-color: #f8f8f8; |
|
|
background-color: #f8f8f8; |
|
|
border-radius: 5px; |
|
|
border-radius: 5px; |
|
|
padding: 10px 20px; |
|
|
padding: 10px 20px; |
|
|
/* width: 40%; */ |
|
|
|
|
|
|
|
|
width: 40%; |
|
|
white-space: nowrap; |
|
|
white-space: nowrap; |
|
|
|
|
|
align-items: center; |
|
|
|
|
|
justify-content: center; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
.changeImg { |
|
|
.changeImg { |
|
@ -2744,7 +2737,7 @@ body { |
|
|
.changeLevelContent { |
|
|
.changeLevelContent { |
|
|
display: flex; |
|
|
display: flex; |
|
|
flex-wrap: wrap; |
|
|
flex-wrap: wrap; |
|
|
gap: 15px; |
|
|
|
|
|
|
|
|
gap: 20px; |
|
|
margin-bottom: 10px; |
|
|
margin-bottom: 10px; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
@ -2814,6 +2807,7 @@ body { |
|
|
padding: 10px; |
|
|
padding: 10px; |
|
|
border-radius: 5px; |
|
|
border-radius: 5px; |
|
|
cursor: pointer; |
|
|
cursor: pointer; |
|
|
|
|
|
margin: 0 auto; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
.changeBtn:hover { |
|
|
.changeBtn:hover { |
|
@ -2972,7 +2966,7 @@ body { |
|
|
max-width: 500px; |
|
|
max-width: 500px; |
|
|
width: 70vw; |
|
|
width: 70vw; |
|
|
max-height: 70vh; |
|
|
max-height: 70vh; |
|
|
overflow-y: auto; |
|
|
|
|
|
|
|
|
/* overflow-y: auto; */ |
|
|
box-sizing: border-box; |
|
|
box-sizing: border-box; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
@ -3039,7 +3033,7 @@ body { |
|
|
.tokenRuleDialogContent { |
|
|
.tokenRuleDialogContent { |
|
|
width: 80vw; |
|
|
width: 80vw; |
|
|
padding: 15px 20px; |
|
|
padding: 15px 20px; |
|
|
max-height: 80vh; |
|
|
|
|
|
|
|
|
max-height: 85vh; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
.tokenRuleDialogTitle { |
|
|
.tokenRuleDialogTitle { |
|
@ -3123,10 +3117,17 @@ body { |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
.changeLevelItems { |
|
|
.changeLevelItems { |
|
|
flex: 0 0 calc(33% - 20px); |
|
|
|
|
|
|
|
|
flex: 0 0 calc(33% - 30px); |
|
|
/* margin-right: auto; */ |
|
|
/* margin-right: auto; */ |
|
|
|
|
|
font-size: 0.7rem; |
|
|
|
|
|
min-width: 0px; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/* .changeLevelItems { |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} */ |
|
|
|
|
|
|
|
|
.changeLevelTitle { |
|
|
.changeLevelTitle { |
|
|
align-items: center; |
|
|
align-items: center; |
|
|
display: flex; |
|
|
display: flex; |
|
@ -3153,10 +3154,7 @@ body { |
|
|
font-size: 0.5rem; |
|
|
font-size: 0.5rem; |
|
|
} */ |
|
|
} */ |
|
|
|
|
|
|
|
|
.changeLevelItems { |
|
|
|
|
|
font-size: 0.7rem; |
|
|
|
|
|
min-width: 0px; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
.changeLevelItemToken { |
|
|
.changeLevelItemToken { |
|
|
white-space: nowrap; |
|
|
white-space: nowrap; |
|
@ -3225,6 +3223,12 @@ body { |
|
|
font-size: 1rem; |
|
|
font-size: 1rem; |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
@media (min-width: 320px) and (max-width: 375px) { |
|
|
|
|
|
.tokenRuleDialog { |
|
|
|
|
|
bottom: 10%; |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
</style> |
|
|
</style> |
|
|
|
|
|
|
|
|
<style> |
|
|
<style> |
|
|