Files
ZhiQiXiaoYuan/utils/data.js
ChuXun eaab9a762a 1
2025-10-19 20:28:31 +08:00

159 lines
4.9 KiB
JavaScript
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
// 模拟课程数据
const coursesData = [
{
id: 1,
name: '高等数学A',
teacher: '张教授',
credit: 4,
time: '周一 1-2节、周三 3-4节',
location: '东大主楼A201',
category: '必修',
department: '数学系',
capacity: 120,
enrolled: 98,
description: '本课程主要讲授微积分、级数、微分方程等内容,培养学生的数学思维和解决实际问题的能力。',
syllabus: ['极限与连续', '导数与微分', '积分学', '级数', '微分方程'],
isFavorite: false
},
{
id: 2,
name: '大学物理',
teacher: '李老师',
credit: 3,
time: '周二 3-4节、周四 1-2节',
location: '东大主楼B305',
category: '必修',
department: '物理系',
capacity: 100,
enrolled: 85,
description: '涵盖力学、热学、电磁学、光学和近代物理基础知识。',
syllabus: ['力学基础', '热力学', '电磁学', '光学', '量子物理'],
isFavorite: false
},
{
id: 3,
name: '数据结构与算法',
teacher: '王副教授',
credit: 4,
time: '周一 3-4节、周五 1-2节',
location: '信息学馆301',
category: '专业必修',
department: '计算机学院',
capacity: 80,
enrolled: 80,
description: '学习各种数据结构的特点及应用,掌握常用算法设计方法。',
syllabus: ['线性表', '栈与队列', '树与二叉树', '图', '排序与查找'],
isFavorite: false
},
{
id: 4,
name: 'Python程序设计',
teacher: '赵老师',
credit: 3,
time: '周三 5-6节',
location: '信息学馆实验室A',
category: '选修',
department: '计算机学院',
capacity: 60,
enrolled: 45,
description: 'Python语言基础、面向对象编程、常用库的使用。',
syllabus: ['Python基础', '函数与模块', '面向对象', '文件操作', '数据分析库'],
isFavorite: false
},
{
id: 5,
name: '大学英语',
teacher: '陈老师',
credit: 2,
time: '周二 1-2节',
location: '外语楼205',
category: '必修',
department: '外国语学院',
capacity: 40,
enrolled: 38,
description: '提升英语听说读写能力,培养跨文化交际能力。',
syllabus: ['听力训练', '口语表达', '阅读理解', '写作技巧', '翻译基础'],
isFavorite: false
},
{
id: 6,
name: '机器学习',
teacher: '刘教授',
credit: 3,
time: '周四 5-7节',
location: '信息学馆505',
category: '专业选修',
department: '计算机学院',
capacity: 50,
enrolled: 42,
description: '介绍机器学习的基本概念、算法及应用。',
syllabus: ['监督学习', '无监督学习', '神经网络', '深度学习', '实战项目'],
isFavorite: false
}
];
// 模拟论坛帖子数据
const forumData = [
{
id: 1,
title: '高数期中考试重点总结',
author: '学霸小明',
avatar: 'https://thirdwx.qlogo.cn/mmopen/vi_32/POgEwh4mIHO4nibH0KlMECNjjGxQUq24ZEaGT4poC6icRiccVGKSyXwibcPq4BWmiaIGuG1icwxaQX6grC9VemZoJ8rg/132',
content: '整理了高数期中考试的重点内容,包括极限、导数、积分等章节的核心知识点和典型例题...',
category: '数学',
views: 256,
likes: 45,
comments: 0, // 修改为0与实际评论数一致
time: '2小时前',
images: [],
isLiked: false
},
{
id: 2,
title: '数据结构课程设计求组队',
author: '编程爱好者',
avatar: 'https://thirdwx.qlogo.cn/mmopen/vi_32/DYAIOgq83eoj0hHXhgJNOTSOFsS4uZs8x1ConecaVOB8eIl115xmJZcT4oCicvia7wMEufibKtTLqiaJeanU2Lpg3w/132',
content: '老师布置了一个课程设计项目,需要实现一个校园导航系统,有没有同学想一起做的?',
category: '计算机',
views: 128,
likes: 23,
comments: 0, // 修改为0
time: '5小时前',
images: [],
isLiked: false
},
{
id: 3,
title: 'Python爬虫实战分享',
author: '技术达人',
avatar: 'https://thirdwx.qlogo.cn/mmopen/vi_32/Q0j4TwGTfTLL1byctY955Kv9oj8rR9pp0VfyGWXJL5gdZ8gibYJ0K4lP26icg7ib7Ws47kicIwmJxWnWJGcVQbGZOQ/132',
content: '分享一个用Python爬取教务系统课程信息的小项目附带完整代码和详细注释...',
category: '计算机',
views: 389,
likes: 67,
comments: 0, // 修改为0
time: '1天前',
images: [],
isLiked: false
},
{
id: 4,
title: '英语四级备考资料汇总',
author: '考试小助手',
avatar: 'https://thirdwx.qlogo.cn/mmopen/vi_32/Q0j4TwGTfTJq06KicLiatnXnWKg8eh6ibEF9EOJSqIbLJiaEPjKlPvBiatkvR2oeib9dN8TlBMRib2ib3EuY84sibVD1JibA/132',
content: '收集了历年四级真题、高频词汇、听力材料等资源,需要的同学可以下载...',
category: '英语',
views: 512,
likes: 89,
comments: 0, // 修改为0
time: '2天前',
images: [],
isLiked: false
}
];
module.exports = {
coursesData,
forumData
};