From cb4971066d03823b64b87816b2dc6ff092729455 Mon Sep 17 00:00:00 2001 From: hongxilin <17663930442@163.com> Date: Tue, 25 Mar 2025 16:09:07 +0800 Subject: [PATCH 1/3] =?UTF-8?q?=E5=9B=BE=E7=89=87=E5=AF=BC=E5=85=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .env.development | 2 +- src/views/AIchat.vue | 20 +++++++++++++++++++- src/views/homePage.vue | 38 +++++++++++++++++++++++++++----------- 3 files changed, 47 insertions(+), 13 deletions(-) diff --git a/.env.development b/.env.development index ab104ed..436b0ec 100644 --- a/.env.development +++ b/.env.development @@ -2,7 +2,7 @@ VITE_ENV = 'development' VITE_OUTPUT_DIR = 'dev' # public path -VITE_PUBLIC_PATH = /AIxiaocaishen +VITE_PUBLIC_PATH = / #新数据接口 VITE_APP_API_BASE_URL = "http://39.101.133.168:8828/link" diff --git a/src/views/AIchat.vue b/src/views/AIchat.vue index 4439c30..50b15b6 100644 --- a/src/views/AIchat.vue +++ b/src/views/AIchat.vue @@ -12,6 +12,24 @@ import { htmlToText } from 'html-to-text'; import { Howl, Howler } from 'howler'; import KLine from './Echarts/KLine.vue'; import * as echarts from 'echarts' + +import AIgif1 from '@/assets/img/AIchat/AIgif1.gif' +import AIgif2 from '@/assets/img/AIchat/AIgif2.gif' +import AIgif3 from '@/assets/img/AIchat/AIgif3.gif' +import AIgif4 from '@/assets/img/AIchat/AIgif4.gif' +import AIgif5 from '@/assets/img/AIchat/AIgif5.gif' +import AIgif6 from '@/assets/img/AIchat/AIgif6.gif' +import AIgif7 from '@/assets/img/AIchat/AIgif7.gif' +const gifList = [ + AIgif1, + AIgif2, + AIgif3, + AIgif4, + AIgif5, + AIgif6, + AIgif7 +] + const chatStore = useChatStore() const audioStore = useAudioStore() const dataStore = useDataStore() @@ -455,7 +473,7 @@ watch( // 初始化随机GIF onMounted(() => { const random = Math.floor(Math.random() * 6) + 1; - currentGif.value = `src/assets/img/AIchat/AIgif${random}.gif`; + currentGif.value = gifList[random]; getQuestionsList(); }); diff --git a/src/views/homePage.vue b/src/views/homePage.vue index d6c53a9..464288f 100644 --- a/src/views/homePage.vue +++ b/src/views/homePage.vue @@ -10,9 +10,25 @@ import { useDataStore } from '@/store/dataList.js' import { useChatStore } from '../store/chat' import { useAudioStore } from '../store/audio' import _ from "lodash"; + +import logo from "../assets/img/homePage/logo.png"; +import madeInHL from "../assets/img/homePage/madeInHL.png"; +import getCountAll from "../assets/img/homePage/get-count-all.png"; +import announcementBtn from "../assets/img/homePage/announcement.png"; +import thinkActive from "../assets/img/homePage/tail/think-active.png"; +import thinkNoActive from "../assets/img/homePage/tail/think-no-active.png"; +import languageBtn from "../assets/img/homePage/tail/language.png"; +import voice from "../assets/img/homePage/tail/voice.png"; +import voiceNoActive from "../assets/img/homePage/tail/voice-no-active.png"; +import sendBtn from "../assets/img/homePage/tail/send.png"; +import msgBtn from "../assets/img/homePage/tail/msg.png"; + + // import { useUserStore } from "../store/userPessionCode.js"; const { getQueryVariable } = useDataStore() + + // 变量 // 音频管理 const audioStore = useAudioStore() @@ -318,16 +334,16 @@ onMounted(async () => {
- +
{{ UserCount }}次
-
@@ -353,16 +369,16 @@ onMounted(async () => {