diff --git a/src/pages/index/index.vue b/src/pages/index/index.vue index 7966550..6a8ceaf 100644 --- a/src/pages/index/index.vue +++ b/src/pages/index/index.vue @@ -154,10 +154,10 @@ const greeting = computed(() => { }); const tools = [ - { id: 'speak', name: '口算练习', emoji: '🧮', color: 'linear-gradient(135deg,#fde68a 0%,#f59e0b 100%)', enabled: false }, - { id: 'word', name: '英语单词', emoji: '🅰️', color: 'linear-gradient(135deg,#bfdbfe 0%,#3b82f6 100%)', enabled: false }, + // { id: 'speak', name: '口算练习', emoji: '🧮', color: 'linear-gradient(135deg,#fde68a 0%,#f59e0b 100%)', enabled: false }, + // { id: 'word', name: '英语单词', emoji: '🅰️', color: 'linear-gradient(135deg,#bfdbfe 0%,#3b82f6 100%)', enabled: false }, { id: 'wrong', name: '错题本', emoji: '📕', color: 'linear-gradient(135deg,#fecaca 0%,#ef4444 100%)', enabled: true }, - { id: 'rank', name: '排行榜', emoji: '🏆', color: 'linear-gradient(135deg,#bbf7d0 0%,#22c55e 100%)', enabled: false }, + // { id: 'rank', name: '排行榜', emoji: '🏆', color: 'linear-gradient(135deg,#bbf7d0 0%,#22c55e 100%)', enabled: false }, ]; const onToolClick = (t: any) => { diff --git a/src/pages/parent/home/index.vue b/src/pages/parent/home/index.vue index d534da9..ff0ca1e 100644 --- a/src/pages/parent/home/index.vue +++ b/src/pages/parent/home/index.vue @@ -52,13 +52,13 @@ --> - + @@ -71,7 +71,7 @@ import { useParentStore } from '@/state/modules/parent'; import { useUserStore } from '@/state/modules/user'; import ParentCard from '../components/ParentCard.vue'; import ParentPage from '../components/ParentPage.vue'; -import { quickActions, type GradeBand, type QuickAction, type SubjectTrend } from '../utils/data'; +import type { GradeBand, SubjectTrend } from '../utils/data'; const DEFAULT_AVATAR = 'https://xxl-1313840333.cos.ap-guangzhou.myqcloud.com/urm/logo.png'; @@ -175,25 +175,6 @@ const trendLabel = (item: SubjectTrend) => { }; return item.status ? map[item.status] : ''; }; - -const showComingSoon = (name: string) => { - uni.showToast({ - title: `${name}建设中`, - icon: 'none', - }); -}; - -const handleQuickAction = (item: QuickAction) => { - if (item.title === '学情追踪') { - uni.navigateTo({ url: '/pages/parent/analysis/index' }); - return; - } - if (item.title === '错题练习') { - uni.navigateTo({ url: '/pages/wrong/index' }); - return; - } - showComingSoon(item.title); -};