Browse Source

增加温度计红蓝框

ds_hxl
宋杰 3 weeks ago
parent
commit
8370201aaf
  1. BIN
      src/assets/img/AiEmotion/blueBorder.png
  2. BIN
      src/assets/img/AiEmotion/redBorder.png
  3. BIN
      src/assets/img/AiEmotion/round01.jpg
  4. BIN
      src/assets/img/AiEmotion/round02.jpg
  5. 80
      src/views/AiEmotion.vue

BIN
src/assets/img/AiEmotion/blueBorder.png

After

Width: 357  |  Height: 57  |  Size: 26 KiB

BIN
src/assets/img/AiEmotion/redBorder.png

After

Width: 357  |  Height: 57  |  Size: 28 KiB

BIN
src/assets/img/AiEmotion/round01.jpg

Before

Width: 672  |  Height: 554  |  Size: 22 KiB

BIN
src/assets/img/AiEmotion/round02.jpg

Before

Width: 694  |  Height: 550  |  Size: 31 KiB

80
src/views/AiEmotion.vue

@ -44,6 +44,13 @@
</div>
<!-- 温度计图表 -->
<div class="class03">
<div class="class003" style="padding-top: 7rem;padding-left: 12rem;">
<img src="@/assets/img/AiEmotion/温度计.png" alt="温度计图标" style="float: left;padding-left: 5rem;">
<div class="div00">
<div class="div01">galg</div>
<div class="div02">hkjkl</div>
</div>
</div>
<marketTemperature ref="marketTemperatureRef" />
</div>
</div>
@ -131,6 +138,7 @@ import emotionDecod from '@/views/components/emotionDecod.vue'; // 导入情绪
import emotionalBottomRadar from '@/views/components/emotionalBottomRadar.vue'; //
import emoEnergyConverter from '@/views/components/emoEnergyConverter.vue'; //
import marketTemperature from '@/views/components/marketTemperature.vue';
import blueBorderImg from '@/assets/img/AiEmotion/blueBorder.png' //
const stockName = ref(''); //
const marketTemperatureRef = ref(null); //
@ -206,7 +214,7 @@ async function handleSendMessage(input) {
isRotating.value = true;
try {
//
//
const params = {
content: userMessage.text,
userData: {
@ -299,9 +307,10 @@ async function fetchData(code, market) {
}
);
const stockDataResponse = stockDataResult.data; //
const stockDataResponse = stockDataResult.data; //
console.log('图表数据接口返回数据:', stockDataResponse.data);
if (stockDataResponse.code === 200 && stockDataResponse.data) {
messages.value.push({
sender: 'ai',
@ -382,43 +391,7 @@ function renderCharts(data) {
});
}
// function renderCharts(data) {
// return new Promise((resolve) => {
// nextTick(() => {
// //
// if (marketTemperatureRef.value && data.GSWDJ) {
// console.log('');
// console.log('', data.GSWDJ)
// marketTemperatureRef.value.initChart(data.GSWDJ, data.KLine20, data.WDRL);
// console.log('');
// }
// //
// if (emotionDecodRef.value && data.QXJMQ) {
// console.log('');
// console.log('', data.QXJMQ)
// emotionDecodRef.value.initQXNLZHEcharts(data.KLine20, data.QXJMQ);
// console.log('');
// }
// //
// if (emotionalBottomRadarRef.value && data.QXTDLD) {
// console.log('');
// console.log('', data.QXTDLD)
// emotionalBottomRadarRef.value.initEmotionalBottomRadar(data.KLine20, data.QXTDLD);
// console.log('');
// }
// //
// if (emoEnergyConverterRef.value && data.QXNLZHQ) {
// console.log('');
// console.log('KLine20:', data.KLine20);
// console.log('QXNLZHQ:', data.QXNLZHQ);
// emoEnergyConverterRef.value.initQXNLZHEcharts(data.KLine20, data.QXNLZHQ);
// console.log('');
// }
// // resolve
// resolve();
// });
// });
// }
//
onMounted(() => {
startImageRotation();
@ -428,6 +401,33 @@ onMounted(() => {
</script>
<style scoped>
.class003 .div02{
background-image: url('@/assets/img/AiEmotion/redBorder.png');
background-repeat: no-repeat;
background-size: 100% 100%;
width: 35%;
min-height: 40px;
float: left;
margin-left: 100px;
margin-top: 30px;
text-align: center;
font-size: 24px;
color: white;
}
.class003 .div01{
background-image: url('@/assets/img/AiEmotion/blueBorder.png');
background-repeat: no-repeat;
background-size: 100% 100%;
width: 35%;
min-height: 40px;
float: left;
margin-left: 100px;
text-align: center;
margin-top: 10px;
font-size: 24px;
color: white;
}
/* 定义旋转动画 */
@keyframes rotate {
from {
@ -632,7 +632,7 @@ onMounted(() => {
.class03 {
background-image: url('@/assets/img/AiEmotion/bk03.png');
/* 使用导入的背景图片 */
background-size: cover;
background-size: 100% 100%;
/* 确保背景图片完整显示 */
background-repeat: no-repeat;
/* 防止背景图片重复 */

Loading…
Cancel
Save