fix: 隐藏没开发的内容

This commit is contained in:
阿梦 2026-05-31 17:50:43 +08:00
parent 9badd93bfe
commit 01707e0bf5
2 changed files with 6 additions and 25 deletions

View File

@ -154,10 +154,10 @@ const greeting = computed(() => {
}); });
const tools = [ const tools = [
{ id: 'speak', name: '口算练习', emoji: '🧮', color: 'linear-gradient(135deg,#fde68a 0%,#f59e0b 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: '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: '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) => { const onToolClick = (t: any) => {

View File

@ -52,13 +52,13 @@
</ParentCard> </ParentCard>
</view> --> </view> -->
<view class="quick-grid"> <!-- <view class="quick-grid">
<ParentCard v-for="item in quickActions" :key="item.title" class="quick-card" clickable @click="handleQuickAction(item)"> <ParentCard v-for="item in quickActions" :key="item.title" class="quick-card" clickable @click="handleQuickAction(item)">
<view class="quick-icon" :class="item.tone">{{ item.title.slice(0, 1) }}</view> <view class="quick-icon" :class="item.tone">{{ item.title.slice(0, 1) }}</view>
<text class="quick-title">{{ item.title }}</text> <text class="quick-title">{{ item.title }}</text>
<text class="quick-desc">{{ item.desc }}</text> <text class="quick-desc">{{ item.desc }}</text>
</ParentCard> </ParentCard>
</view> </view> -->
</ParentPage> </ParentPage>
</template> </template>
@ -71,7 +71,7 @@ import { useParentStore } from '@/state/modules/parent';
import { useUserStore } from '@/state/modules/user'; import { useUserStore } from '@/state/modules/user';
import ParentCard from '../components/ParentCard.vue'; import ParentCard from '../components/ParentCard.vue';
import ParentPage from '../components/ParentPage.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'; 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] : ''; 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);
};
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>