diff --git a/src/assets/img/AIfind/dailyReplay1.png b/src/assets/img/AIfind/dailyReplay1.png new file mode 100644 index 0000000..02c91e4 Binary files /dev/null and b/src/assets/img/AIfind/dailyReplay1.png differ diff --git a/src/assets/img/AIfind/dailyReplay2.png b/src/assets/img/AIfind/dailyReplay2.png new file mode 100644 index 0000000..3ecd7d7 Binary files /dev/null and b/src/assets/img/AIfind/dailyReplay2.png differ diff --git a/src/assets/img/Feedback/feedback.png b/src/assets/img/Feedback/feedback.png new file mode 100644 index 0000000..05c647b Binary files /dev/null and b/src/assets/img/Feedback/feedback.png differ diff --git a/src/assets/img/Feedback/feedbackBtn.png b/src/assets/img/Feedback/feedbackBtn.png new file mode 100644 index 0000000..4b82b1b Binary files /dev/null and b/src/assets/img/Feedback/feedbackBtn.png differ diff --git a/src/assets/img/Feedback/feedbackImg.png b/src/assets/img/Feedback/feedbackImg.png new file mode 100644 index 0000000..d5f2558 Binary files /dev/null and b/src/assets/img/Feedback/feedbackImg.png differ diff --git a/src/assets/img/Feedback/feedbackSuccess.png b/src/assets/img/Feedback/feedbackSuccess.png new file mode 100644 index 0000000..cb9be5e Binary files /dev/null and b/src/assets/img/Feedback/feedbackSuccess.png differ diff --git a/src/router/index.js b/src/router/index.js index e8a1b4b..67ff88b 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -25,6 +25,11 @@ const routes = [ path: '/Announcement', name: 'Announcement', component: () => import('@/views/Announcement.vue'), + }, + { + path: '/Feedback', + name: 'Feedback', + component: () => import('@/views/Feedback.vue'), } ] // 创建路由实例 diff --git a/src/store/dataList.js b/src/store/dataList.js index 9b39b3e..739761e 100644 --- a/src/store/dataList.js +++ b/src/store/dataList.js @@ -25,6 +25,7 @@ export const useDataStore = defineStore('data', () => { const loading = ref(false) const klineData = ref(null) const activeTabIndex = ref(null) + const isFeedback = ref(false) // 用于控制是否显示反馈页面的标志 const setKlineData = (data) => { klineData.value = data } @@ -189,6 +190,7 @@ export const useDataStore = defineStore('data', () => { initData, getMarket, getQueryVariable, - setActiveTabIndex + setActiveTabIndex, + isFeedback } }) diff --git a/src/views/AIfind.vue b/src/views/AIfind.vue index 16eb02e..e2e4cfe 100644 --- a/src/views/AIfind.vue +++ b/src/views/AIfind.vue @@ -4,6 +4,11 @@ import { getNewsAPI, newsClickAPI } from "../api/AIxiaocaishen" import { marked } from 'marked'; // 引入marked库 import katex from 'katex'; // 引入 KaTeX 库 +const dailyReplayList = [ + { img: '/src/assets/img/AIfind/dailyReplay1.png' }, + { img: '/src/assets/img/AIfind/dailyReplay2.png' }, +] + // 新闻飘屏数据 const newsList = ref([]) const getNewsList = async () => { @@ -43,7 +48,9 @@ const dailyReplayDialogVisible = ref(false) const dailyReplay = () => { dailyReplayDialogVisible.value = true } - +const closeDailyReplay = () => { + dailyReplayDialogVisible.value = false +} onMounted(() => { getNewsList() @@ -72,9 +79,18 @@ onMounted(() => { - - 每日复盘 - 每日复盘 + +
+ + + +
+
每日复盘
+
+
+ 加载失败 +
+
@@ -142,7 +158,38 @@ onMounted(() => { margin: 0 auto; } -.el-dialog { - background-color: #5583d3 !important; +.dailyReplayImg { + text-align: center; + /* display: flex; */ +} + +.dailyReplayItem { + margin-bottom: 20px; +} + +.closeBtn{ + display: flex; +} + + + \ No newline at end of file diff --git a/src/views/Announcement.vue b/src/views/Announcement.vue index a758e5e..6ebe11b 100644 --- a/src/views/Announcement.vue +++ b/src/views/Announcement.vue @@ -42,9 +42,9 @@ onMounted(() => {

各位AI小财神的用户,大家好!

试运行期间,用户可在AI小财神中查看全

市场数据,每个市场可查看20只股票.

-

试运行结束后,会员用户可查看市场与弘

-

历软件云版静态市场一致!

-

特此公告!

+

以下为各个市场可以查看的股票:

+ diff --git a/src/views/Feedback.vue b/src/views/Feedback.vue new file mode 100644 index 0000000..5d2bb1b --- /dev/null +++ b/src/views/Feedback.vue @@ -0,0 +1,22 @@ + + + + + \ No newline at end of file diff --git a/src/views/homePage.vue b/src/views/homePage.vue index dab88e8..680f57f 100644 --- a/src/views/homePage.vue +++ b/src/views/homePage.vue @@ -6,6 +6,7 @@ import { getUserCountAPI } from "../api/AIxiaocaishen"; import { ElMessage } from 'element-plus' import AIchat from "./AIchat.vue"; import AIfind from "./AIfind.vue"; +import Feedback from "./Feedback.vue"; import { useAppBridge } from '../assets/js/useAppBridge.js' import { useDataStore } from '@/store/dataList.js' import { useChatStore } from '../store/chat' @@ -23,6 +24,7 @@ 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 feedbackBtn from "../assets/img/Feedback/feedbackBtn.png"; import VConsole from 'vconsole'; @@ -31,7 +33,6 @@ const vConsole = new VConsole(); // import { useUserStore } from "../store/userPessionCode.js"; const { getQueryVariable, setActiveTabIndex } = useDataStore() - const dataStore = useDataStore() const chatStore = useChatStore() // 变量 @@ -168,6 +169,12 @@ const showAnnouncement = async () => { isAnnouncementVisible.value = true; // 显示公告页面 }; +// 跳转用户反馈 +const showFeedback = () => { + console.log("打开用户反馈"); + dataStore.isFeedback = true; // 显示用户反馈页面 +} + // 点击剩余次数会弹出的弹窗 // 新增一个 ref 来控制弹窗的显示与隐藏 const dialogVisible = ref(false); @@ -430,7 +437,7 @@ onMounted(async () => {