feat:完成首页、分类页内容管理功能开发
This commit is contained in:
@@ -4,15 +4,46 @@ export const ALL_CATEGORY: CategoryType = {
|
||||
id: 'all',
|
||||
name: '全部',
|
||||
icon: '📋',
|
||||
path: '/pages/category/category?id=all',
|
||||
};
|
||||
|
||||
export const CATEGORY_LIST: CategoryType[] = [
|
||||
{ id: 'math', name: '数感启蒙', icon: '📐' },
|
||||
{ id: 'puzzle', name: '益智游戏', icon: '🧩' },
|
||||
{ id: 'pinyin', name: '汉语拼音', icon: '🔤' },
|
||||
{ id: 'chinese', name: '趣味识字', icon: '✏️' },
|
||||
{ id: 'english', name: '英语启蒙', icon: '🔤' },
|
||||
{ id: 'craft', name: '创意手工', icon: '🌈' },
|
||||
{
|
||||
id: 'math',
|
||||
name: '数感启蒙',
|
||||
icon: '📐',
|
||||
path: '/pages/category/category?id=math',
|
||||
},
|
||||
{
|
||||
id: 'puzzle',
|
||||
name: '益智游戏',
|
||||
icon: '🧩',
|
||||
path: '/pages/category/category?id=puzzle',
|
||||
},
|
||||
{
|
||||
id: 'pinyin',
|
||||
name: '汉语拼音',
|
||||
icon: '🔤',
|
||||
path: '/pages/category/category?id=pinyin',
|
||||
},
|
||||
{
|
||||
id: 'chinese',
|
||||
name: '趣味识字',
|
||||
icon: '✏️',
|
||||
path: '/pages/category/category?id=chinese',
|
||||
},
|
||||
{
|
||||
id: 'english',
|
||||
name: '英语启蒙',
|
||||
icon: '🔤',
|
||||
path: '/pages/category/category?id=english',
|
||||
},
|
||||
{
|
||||
id: 'craft',
|
||||
name: '创意手工',
|
||||
icon: '🌈',
|
||||
path: '/pages/category/category?id=craft',
|
||||
},
|
||||
];
|
||||
|
||||
export const CATEGORY_LIST_WITH_ALL: CategoryType[] = [
|
||||
|
||||
@@ -10,6 +10,7 @@ export type CategoryId =
|
||||
export interface CategoryType {
|
||||
id: string;
|
||||
name: string;
|
||||
path: string;
|
||||
icon: string;
|
||||
img?: string;
|
||||
color?: string;
|
||||
|
||||
Reference in New Issue
Block a user