任务、消息
This commit is contained in:
@@ -0,0 +1,103 @@
|
||||
import type { ChatItem } from '@/types/message'
|
||||
|
||||
/** 消息列表:置顶系统消息 + 聊天消息 */
|
||||
export const chatList: ChatItem[] = [
|
||||
// === 置顶系统消息 ===
|
||||
{
|
||||
id: 'sys1',
|
||||
type: 'system',
|
||||
title: '📢 系统通知',
|
||||
content: '新学期选课系统将于8月25日开放,请同学们提前做好准备...',
|
||||
time: '昨天',
|
||||
pinned: true,
|
||||
},
|
||||
{
|
||||
id: 'sys2',
|
||||
type: 'system',
|
||||
title: '🔔 校园公告',
|
||||
content: '图书馆暑期开放时间调整通知:7月15日-8月20日期间开放时间调整为...',
|
||||
time: '2天前',
|
||||
pinned: true,
|
||||
},
|
||||
|
||||
// === 用户对话(私信/同学) ===
|
||||
{
|
||||
id: 'chat1',
|
||||
type: 'chat',
|
||||
avatar: 'https://picsum.photos/seed/avat1/100/100',
|
||||
name: '张同学',
|
||||
role: 'user',
|
||||
lastMessage: '好的,那明天下午3点图书馆见,我带教材过去',
|
||||
time: '10:32',
|
||||
unread: 3,
|
||||
online: true,
|
||||
},
|
||||
{
|
||||
id: 'chat2',
|
||||
type: 'chat',
|
||||
avatar: 'https://picsum.photos/seed/avat2/100/100',
|
||||
name: '李同学',
|
||||
role: 'user',
|
||||
lastMessage: '那个快递我已经帮你取了,放你宿舍一楼前台了',
|
||||
time: '09:15',
|
||||
unread: 1,
|
||||
online: true,
|
||||
},
|
||||
{
|
||||
id: 'chat3',
|
||||
type: 'chat',
|
||||
avatar: 'https://picsum.photos/seed/avat3/100/100',
|
||||
name: '王同学',
|
||||
role: 'user',
|
||||
lastMessage: '[图片]',
|
||||
time: '昨天',
|
||||
unread: 0,
|
||||
},
|
||||
|
||||
// === 骑手对话 ===
|
||||
{
|
||||
id: 'chat4',
|
||||
type: 'chat',
|
||||
avatar: 'https://picsum.photos/seed/rider1/100/100',
|
||||
name: '骑手-刘师傅',
|
||||
role: 'rider',
|
||||
lastMessage: '好的,快递已取到,预计15分钟送到北门,请准时来取',
|
||||
time: '11:20',
|
||||
unread: 2,
|
||||
online: false,
|
||||
},
|
||||
{
|
||||
id: 'chat5',
|
||||
type: 'chat',
|
||||
avatar: 'https://picsum.photos/seed/rider2/100/100',
|
||||
name: '骑手-陈师傅',
|
||||
role: 'rider',
|
||||
lastMessage: '同学你好,我已经到楼下了,你下来拿一下吧',
|
||||
time: '昨天',
|
||||
unread: 0,
|
||||
online: true,
|
||||
},
|
||||
|
||||
// === 商家对话 ===
|
||||
{
|
||||
id: 'chat6',
|
||||
type: 'chat',
|
||||
avatar: 'https://picsum.photos/seed/merchant1/100/100',
|
||||
name: '校园咖啡馆',
|
||||
role: 'merchant',
|
||||
lastMessage: '您的拿铁已经做好了,请来取餐,谢谢!',
|
||||
time: '08:45',
|
||||
unread: 0,
|
||||
online: true,
|
||||
},
|
||||
{
|
||||
id: 'chat7',
|
||||
type: 'chat',
|
||||
avatar: 'https://picsum.photos/seed/merchant2/100/100',
|
||||
name: '二手书店',
|
||||
role: 'merchant',
|
||||
lastMessage: '那本数据结构还有货,可以来店里看看,西门旁边',
|
||||
time: '周一',
|
||||
unread: 1,
|
||||
},
|
||||
]
|
||||
@@ -0,0 +1,133 @@
|
||||
import type { Task } from '@/types/task'
|
||||
|
||||
export const tasks: Task[] = [
|
||||
// === 快递代取 ===
|
||||
{
|
||||
id: 't1',
|
||||
type: 'express',
|
||||
title: '帮我取个快递,菜鸟驿站3号柜',
|
||||
desc: '中通快递,小件包裹,就在南区菜鸟驿站3号柜,取件码已发你',
|
||||
reward: '¥5.00',
|
||||
location: '南区菜鸟驿站',
|
||||
time: '10分钟前',
|
||||
status: 'open',
|
||||
publisher: { name: '李同学', avatar: 'https://picsum.photos/seed/u1/100/100' },
|
||||
deadline: '今天 18:00 前',
|
||||
},
|
||||
{
|
||||
id: 't2',
|
||||
type: 'express',
|
||||
title: '顺丰快递代取,北门快递点',
|
||||
desc: '顺丰快递一个,较大件(鞋盒大小),北门快递柜,需今天内取',
|
||||
reward: '¥8.00',
|
||||
location: '北门快递柜',
|
||||
time: '25分钟前',
|
||||
status: 'open',
|
||||
publisher: { name: '王同学', avatar: 'https://picsum.photos/seed/u2/100/100' },
|
||||
deadline: '今天 20:00 前',
|
||||
},
|
||||
|
||||
// === 二手交易 ===
|
||||
{
|
||||
id: 't3',
|
||||
type: 'secondhand',
|
||||
title: '出手99新 iPad Air 5,带Apple Pencil',
|
||||
desc: '去年购入,使用不到半年,无拆无修,电池健康度95%,256G深空灰',
|
||||
reward: '¥3200',
|
||||
location: '东区宿舍',
|
||||
time: '1小时前',
|
||||
status: 'open',
|
||||
publisher: { name: '赵同学', avatar: 'https://picsum.photos/seed/u3/100/100' },
|
||||
images: [
|
||||
'https://picsum.photos/seed/ipad1/200/200',
|
||||
'https://picsum.photos/seed/ipad2/200/200',
|
||||
],
|
||||
tags: ['数码', '99新', '在保'],
|
||||
},
|
||||
{
|
||||
id: 't4',
|
||||
type: 'secondhand',
|
||||
title: '二手教材出售:高等数学+线性代数',
|
||||
desc: '大一教材,几乎全新,笔记很少,两本一起出',
|
||||
reward: '¥30',
|
||||
location: '西区图书馆',
|
||||
time: '3小时前',
|
||||
status: 'open',
|
||||
publisher: { name: '陈同学', avatar: 'https://picsum.photos/seed/u4/100/100' },
|
||||
images: ['https://picsum.photos/seed/book/200/200'],
|
||||
tags: ['教材', '大一'],
|
||||
},
|
||||
|
||||
// === 求助信息 ===
|
||||
{
|
||||
id: 't5',
|
||||
type: 'help',
|
||||
title: '找一位计算机学院的同学帮忙辅导数据结构',
|
||||
desc: '期末考试在即,希望找一位数据结构学得好的同学辅导,2小时左右,奶茶酬谢',
|
||||
reward: '¥50/次',
|
||||
location: '图书馆自习室',
|
||||
time: '2小时前',
|
||||
status: 'open',
|
||||
publisher: { name: '刘同学', avatar: 'https://picsum.photos/seed/u5/100/100' },
|
||||
tags: ['学习辅导', '数据结构'],
|
||||
},
|
||||
{
|
||||
id: 't6',
|
||||
type: 'help',
|
||||
title: '帮忙搬宿舍,男生,从南区搬到北区',
|
||||
desc: '暑假宿舍调整,需要搬运行李,东西不多,大概1小时能搞定',
|
||||
reward: '¥30',
|
||||
location: '南→北宿舍区',
|
||||
time: '1小时前',
|
||||
status: 'progress',
|
||||
publisher: { name: '周同学', avatar: 'https://picsum.photos/seed/u6/100/100' },
|
||||
tags: ['搬运', '急'],
|
||||
},
|
||||
|
||||
// === 校园活动 ===
|
||||
{
|
||||
id: 't7',
|
||||
type: 'activity',
|
||||
title: '周末桌游局,缺2人,狼人杀/阿瓦隆',
|
||||
desc: '周六下午2点,学校咖啡厅,已有8人,再找2个小伙伴一起玩',
|
||||
reward: '免费',
|
||||
location: '校内咖啡厅',
|
||||
time: '3小时前',
|
||||
status: 'open',
|
||||
publisher: { name: '吴同学', avatar: 'https://picsum.photos/seed/u7/100/100' },
|
||||
participants: 8,
|
||||
maxParticipants: 10,
|
||||
tags: ['桌游', '周末', '社交'],
|
||||
},
|
||||
{
|
||||
id: 't8',
|
||||
type: 'activity',
|
||||
title: '校园夜跑团招新,每周二四六晚8点',
|
||||
desc: '欢迎喜欢跑步的同学加入,各种配速都有,一起锻炼身体',
|
||||
reward: '免费',
|
||||
location: '田径场',
|
||||
time: '5小时前',
|
||||
status: 'open',
|
||||
publisher: { name: '跑步社团', avatar: 'https://picsum.photos/seed/u8/100/100' },
|
||||
participants: 35,
|
||||
maxParticipants: 100,
|
||||
tags: ['运动', '跑步', '社团'],
|
||||
},
|
||||
|
||||
// === 拼车出行 ===
|
||||
{
|
||||
id: 't9',
|
||||
type: 'carpool',
|
||||
title: '周五下午去市中心,有车,还有3个空位',
|
||||
desc: '周五下午4点出发,可以到市中心任意地点,有车的同学顺路带人',
|
||||
reward: '¥15/人',
|
||||
location: '学校南门出发',
|
||||
time: '30分钟前',
|
||||
status: 'open',
|
||||
publisher: { name: '郑同学', avatar: 'https://picsum.photos/seed/u9/100/100' },
|
||||
deadline: '周五 16:00',
|
||||
participants: 1,
|
||||
maxParticipants: 4,
|
||||
tags: ['拼车', '周五', '市中心'],
|
||||
},
|
||||
]
|
||||
Reference in New Issue
Block a user