diff --git a/src/views/deepNine.vue b/src/views/deepNine.vue index 0b9a28c..3df6af2 100644 --- a/src/views/deepNine.vue +++ b/src/views/deepNine.vue @@ -43,7 +43,7 @@ import voice from "../assets/img/homePage/tail/voice.png"; import voiceNoActive from "../assets/img/homePage/tail/voice-no-active.png"; import { useChatStore } from "../store/chat"; -const homepageChatStore= useChatStore(); +const homepageChatStore = useChatStore(); const chatStore = useDeepNineStore(); const audioStore = useDeepNineAudioStore(); @@ -1320,7 +1320,7 @@ watch( audioQueue.value.length ); } - + // 添加第二个音频(link)到队列 if (audioPreloadStatus.two.url) { chatStore.messages[chatStore.inputUserIndex].audioArray.push( @@ -1519,7 +1519,10 @@ watch( audioPreloadStatus.three.url ); if (chatStore.currentUserIndex == chatStore.inputUserIndex) { - addToAudioQueue(audioPreloadStatus.three.url, "API2-第一个"); + addToAudioQueue( + audioPreloadStatus.three.url, + "API2-第一个" + ); } else { chatStore.messages[ chatStore.inputUserIndex @@ -1530,7 +1533,7 @@ watch( audioQueue.value.length ); } - + if (audioPreloadStatus.four.url) { chatStore.messages[chatStore.inputUserIndex].audioArray.push( audioPreloadStatus.four.url @@ -1561,23 +1564,25 @@ watch( "", 50 ); - const ac31 = result22.data.DXTSC; - const ac32 = result22.data.DXTSC2; - const ac33 = result22.data.ZJQSSC1; + const ac31 = `
【资金异动信号】
`; + const ac32 = result22.data.DXTSC; + const ac33 = result22.data.DXTSC2; + const ac34 = `
【资金趋势导航】
`; + const ac35 = result22.data.ZJQSSC1; const ac3 = `
${result23.data.DXTSC}
${result23.data.DXTSC2}
${result23.data.ZJQSSC1}
`; - const ac3Arr=[]; - if(ac31!=""){ - ac3Arr.push("") - ac3Arr.push(`${ac31}
`); - } - if(ac32!=""){ - ac3Arr.push("") + const ac3Arr = []; + ac3Arr.push(ac31); + if (ac32 != "") { ac3Arr.push(`${ac32}
`); } - if(ac33!=""){ - ac3Arr.push("") + if (ac33 != "") { + ac3Arr.push(""); ac3Arr.push(`${ac33}
`); } + ac3Arr.push(ac34); + if (ac35 != "") { + ac3Arr.push(`${ac35}
`); + } // 先推送初始消息 const aiMessage3 = reactive({ sender: "ai", @@ -1625,10 +1630,7 @@ watch( audioPreloadStatus.five.url ); if (chatStore.currentUserIndex == chatStore.inputUserIndex) { - addToAudioQueue( - audioPreloadStatus.five.url, - "API3-第一个" - ); + addToAudioQueue(audioPreloadStatus.five.url, "API3-第一个"); } else { chatStore.messages[ chatStore.inputUserIndex @@ -1764,7 +1766,7 @@ watch( } else { audioPreloadStatus.one.loaded = true; } - + if (result21?.data?.link) { await preloadAudio(result21.data.link.trim(), "two"); } else { @@ -1801,7 +1803,7 @@ watch( } else { audioPreloadStatus.three.loaded = true; } - + if (result22?.data?.link1) { await preloadAudio(result22.data.link1.trim(), "four"); } else { @@ -2297,7 +2299,7 @@ function KlineCanvsEcharts(containerId) { formatter: `${item[1]}`, textStyle: { color: "green", - fontSize: window.innerWidth > 769 ? 12 : 9, + fontSize: window.innerWidth > 769 ? 18 : 15, textBorderColor: "#FFFFFF", textBorderWidth: 2, fontWeight: "bold", @@ -2321,7 +2323,7 @@ function KlineCanvsEcharts(containerId) { formatter: `${item[1]}`, textStyle: { color: "green", - fontSize: window.innerWidth > 769 ? 18 : 15, + fontSize: window.innerWidth > 769 ? 12 : 9, textBorderColor: "#FFFFFF", textBorderWidth: 2, fontWeight: "bold",