From 4b7e9f228c2889c553ea209cae184cf96e2f5253 Mon Sep 17 00:00:00 2001 From: no99 <17663930442@163.com> Date: Thu, 2 Oct 2025 10:25:23 +0800 Subject: [PATCH 1/6] =?UTF-8?q?=E8=BF=9B=E5=85=A5=E5=85=AC=E5=91=8A?= =?UTF-8?q?=E5=92=8C=E5=8F=8D=E9=A6=88=E9=A1=B5=E9=9D=A2=E6=97=B6=EF=BC=8C?= =?UTF-8?q?token=E5=B1=95=E7=A4=BA=E4=B8=BA=E8=BF=9B=E5=85=A5=E4=B9=8B?= =?UTF-8?q?=E5=89=8D=E5=B1=95=E7=A4=BA=E7=9A=84token=EF=BC=8CsecondTwo?= =?UTF-8?q?=E6=8E=A5=E5=8F=A3=E5=8F=98=E9=87=8F=E6=94=B9=E4=B8=BA=E5=BC=80?= =?UTF-8?q?=E5=A4=B4=E5=B0=8F=E5=86=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/deepNine.vue | 8 +- src/views/homePage.vue | 498 +++++++++++++++++++++++++++++++++++-------------- 2 files changed, 366 insertions(+), 140 deletions(-) diff --git a/src/views/deepNine.vue b/src/views/deepNine.vue index 0fecb5d..a6b080f 100644 --- a/src/views/deepNine.vue +++ b/src/views/deepNine.vue @@ -1557,10 +1557,10 @@ watch( "", 50 ); - const ac31 = result22.data.DXTSC; - const ac32 = result22.data.DXTSC2; - const ac33 = result22.data.ZJQSSC1; - const ac3 = `
${result23.data.DXTSC}
${result23.data.DXTSC2}
${result23.data.ZJQSSC1}
`; + const ac31 = result22.data.dXTSC; + const ac32 = result22.data.dXTSC2; + const ac33 = result22.data.zJQSSC1; + const ac3 = `${result23.data.dXTSC}
${result23.data.dXTSC2}
${result23.data.zJQSSC1}
`; const ac3Arr=[]; if(ac31!=""){ ac3Arr.push("") diff --git a/src/views/homePage.vue b/src/views/homePage.vue index 8d4a4de..0c525a7 100644 --- a/src/views/homePage.vue +++ b/src/views/homePage.vue @@ -105,21 +105,24 @@ const isDropdownOpen = ref(false); // 模型选项数据 const modelOptions = [ - { - label: "夺宝奇兵大模型", - value: "AIchat", - image: "https://d31zlh4on95l9h.cloudfront.net/images/0389f08c458c20b715be7acebf7a8eb2.png" + { + label: "夺宝奇兵大模型", + value: "AIchat", + image: + "https://d31zlh4on95l9h.cloudfront.net/images/0389f08c458c20b715be7acebf7a8eb2.png", }, - { - label: "AI情绪大模型", - value: "AiEmotion", - image: "https://d31zlh4on95l9h.cloudfront.net/images/aed3597ea187c5af6c88d5a5c67fc9c1.png" + { + label: "AI情绪大模型", + value: "AiEmotion", + image: + "https://d31zlh4on95l9h.cloudfront.net/images/aed3597ea187c5af6c88d5a5c67fc9c1.png", + }, + { + label: "深度九大模型", + value: "deepNine", + image: + "https://d31zlh4on95l9h.cloudfront.net/images/35bf808538183be0062e4647570a9abd.png", }, - { - label: "深度九大模型", - value: "deepNine", - image: "https://d31zlh4on95l9h.cloudfront.net/images/35bf808538183be0062e4647570a9abd.png" - } ]; // 监听activeTab变化,同步到activeTabMobile @@ -136,31 +139,35 @@ const toggleDropdown = () => { const selectOption = (value) => { activeTabMobile.value = value; isDropdownOpen.value = false; - + const tabIndexMap = { - "AIchat": 0, - "AiEmotion": 1, - "deepNine": 2 + AIchat: 0, + AiEmotion: 1, + deepNine: 2, }; setActiveTab(value, tabIndexMap[value]); }; // 获取当前选中选项的标签 const getSelectedOptionLabel = () => { - const option = modelOptions.find(opt => opt.value === activeTabMobile.value); + const option = modelOptions.find( + (opt) => opt.value === activeTabMobile.value + ); return option ? option.label : "请选择模型"; }; // 获取当前选中选项的图片 const getSelectedOptionImage = () => { - const option = modelOptions.find(opt => opt.value === activeTabMobile.value); + const option = modelOptions.find( + (opt) => opt.value === activeTabMobile.value + ); return option ? option.image : ""; }; // 点击外部关闭下拉菜单 onMounted(() => { - document.addEventListener('click', (e) => { - const container = document.querySelector('.custom-select-container'); + document.addEventListener("click", (e) => { + const container = document.querySelector(".custom-select-container"); if (container && !container.contains(e.target) && isDropdownOpen.value) { isDropdownOpen.value = false; } @@ -170,9 +177,9 @@ onMounted(() => { // 手机端选择器变化处理(保留原函数以兼容其他地方可能的调用) const handleMobileTabChange = (value) => { const tabIndexMap = { - "AIchat": 0, - "AiEmotion": 1, - "deepNine": 2 + AIchat: 0, + AiEmotion: 1, + deepNine: 2, }; setActiveTab(value, tabIndexMap[value]); }; @@ -388,7 +395,6 @@ const sendMessage = async () => { // 获取深度九大模型的 store const deepNineStore = useDeepNineStore(); - // 添加消息到深度九大模型的 store 中 const messageContent = message.value; message.value = ""; // 清空输入框 @@ -846,8 +852,8 @@ watch( activeTab.value == "AIchat" ? 1 : activeTab.value == "AiEmotion" - ? 2 - : 3; + ? 2 + : 3; const result = historyRecordRef.value.getHistoryList({ model: model, token: localStorage.getItem("localToken"), @@ -1409,37 +1415,72 @@ onUnmounted(() => {