diff --git a/src/views/AiEmotion.vue b/src/views/AiEmotion.vue index ebc1920..d7871ce 100644 --- a/src/views/AiEmotion.vue +++ b/src/views/AiEmotion.vue @@ -31,23 +31,25 @@
- -
-
- {{ stockName }}{{ stockName ? '量子四维矩阵图' : '' }} +
+ +
+
+ {{ stockName }}{{ stockName ? '量子四维矩阵图' : '' }} +
+ {{ displayDate }} +
+
+ 情绪监控图标 +
+ +
+
- {{ displayDate }} -
-
- 情绪监控图标 -
- -
- -
-
- 情绪解码图标
+
+ 情绪解码图标 +
@@ -273,7 +275,7 @@ async function handleSendMessage(input) { }); } } - +const version1 = ref(2); // 版本号 // 请求数据接口 async function fetchData(code, market) { try { @@ -283,7 +285,7 @@ async function fetchData(code, market) { market: 'usa', code: 'TSLA', language: 'cn', - version: 2 + version: version1.value }; const stockDataResult = await axios.post( @@ -445,7 +447,7 @@ onMounted(() => { .bk-image { background-image: url('@/assets/img/AiEmotion/bk03.png'); - background-size: cover; + background-size: 100% 100%; /* background-position: center; */ background-repeat: no-repeat; width: 95%; @@ -570,7 +572,7 @@ onMounted(() => { .class08 { background-image: url('@/assets/img/AiEmotion/bk03.png'); - background-size: cover; + background-size: 100% 100%; background-repeat: no-repeat; width: 95%; height: auto; @@ -582,7 +584,7 @@ onMounted(() => { .class06 { background-image: url('@/assets/img/AiEmotion/bk03.png'); /* 使用导入的背景图片 */ - background-size: cover; + background-size: 100% 100%; /* 确保背景图片完整显示 */ background-repeat: no-repeat; /* 防止背景图片重复 */ @@ -598,7 +600,7 @@ onMounted(() => { .class05 { background-image: url('@/assets/img/AiEmotion/bk03.png'); /* 使用导入的背景图片 */ - background-size: cover; + background-size: 100% 100%; /* 确保背景图片完整显示 */ background-repeat: no-repeat; /* 防止背景图片重复 */ @@ -614,7 +616,7 @@ onMounted(() => { .class04 { background-image: url('@/assets/img/AiEmotion/bk03.png'); /* 使用导入的背景图片 */ - background-size: cover; + background-size: 100% 100%; /* 确保背景图片完整显示 */ background-repeat: no-repeat; /* 防止背景图片重复 */ @@ -642,6 +644,19 @@ onMounted(() => { /* 设置最小高度,确保图片显示 */ margin: 0 auto; } +.class00{ + background-size: 100% 100%; + /* 确保背景图片完整显示 */ + background-repeat: no-repeat; + /* 防止背景图片重复 */ + width: 95%; + /* 设置容器宽度 */ + height: auto; + /* 高度根据内容动态变化 */ + min-height: 55rem; + /* 设置最小高度,确保图片显示 */ + margin: 0 auto; +} .span02 { font-size: 1.5rem; diff --git a/src/views/components/emotionDecod.vue b/src/views/components/emotionDecod.vue index 5bcd8d0..452e402 100644 --- a/src/views/components/emotionDecod.vue +++ b/src/views/components/emotionDecod.vue @@ -344,9 +344,9 @@ onBeforeUnmount(() => { });