商品以及商品详情
This commit is contained in:
@@ -0,0 +1,74 @@
|
||||
/** 对话消息 */
|
||||
export interface ChatMessage {
|
||||
id: string
|
||||
sender: 'me' | 'other'
|
||||
content: string
|
||||
time: string
|
||||
}
|
||||
|
||||
/** 按聊天对象 ID 存储的对话记录 */
|
||||
export const conversations: Record<string, ChatMessage[]> = {
|
||||
// 张同学
|
||||
chat1: [
|
||||
{ id: 'm1', sender: 'other', content: '你好!看到你发布的代取快递任务,我有空可以帮忙', time: '10:25' },
|
||||
{ id: 'm2', sender: 'me', content: '太好了!是南区菜鸟驿站3号柜的快递,你方便什么时间?', time: '10:26' },
|
||||
{ id: 'm3', sender: 'other', content: '我今天下午都有空,2点左右可以吗?', time: '10:28' },
|
||||
{ id: 'm4', sender: 'me', content: '可以的,那就下午2点,我把取件码发给你', time: '10:30' },
|
||||
{ id: 'm5', sender: 'other', content: '好的,那明天下午3点图书馆见,我带教材过去', time: '10:32' },
|
||||
],
|
||||
|
||||
// 李同学
|
||||
chat2: [
|
||||
{ id: 'm1', sender: 'other', content: '同学你好,我已经到菜鸟驿站了,取件码发我一下', time: '09:05' },
|
||||
{ id: 'm2', sender: 'me', content: '好的,取件码是 3-2-8866,谢谢!', time: '09:07' },
|
||||
{ id: 'm3', sender: 'other', content: '收到了,正在取件中', time: '09:10' },
|
||||
{ id: 'm4', sender: 'other', content: '那个快递我已经帮你取了,放你宿舍一楼前台了', time: '09:15' },
|
||||
{ id: 'm5', sender: 'me', content: '太感谢了!报酬我微信转给你', time: '09:16' },
|
||||
],
|
||||
|
||||
// 王同学
|
||||
chat3: [
|
||||
{ id: 'm1', sender: 'other', content: '你好,想问一下你之前发布的那个二手教材还有吗?', time: '昨天 16:20' },
|
||||
{ id: 'm2', sender: 'me', content: '还有的,高等数学和线性代数两本都在', time: '昨天 16:25' },
|
||||
{ id: 'm3', sender: 'other', content: '太好了,能看一下实物照片吗?', time: '昨天 16:28' },
|
||||
{ id: 'm4', sender: 'me', content: '[图片]', time: '昨天 16:30' },
|
||||
{ id: 'm5', sender: 'other', content: '不错,我明天去西区图书馆找你拿可以吗?', time: '昨天 16:35' },
|
||||
{ id: 'm6', sender: 'me', content: '没问题,明天下午我在图书馆自习室', time: '昨天 16:38' },
|
||||
],
|
||||
|
||||
// 骑手-刘师傅
|
||||
chat4: [
|
||||
{ id: 'm1', sender: 'other', content: '你好,我已经接到你的代取订单了', time: '11:00' },
|
||||
{ id: 'm2', sender: 'me', content: '好的师傅,取件码 5-1-3321,菜鸟驿站2号柜', time: '11:02' },
|
||||
{ id: 'm3', sender: 'other', content: '收到,预计15分钟到驿站', time: '11:05' },
|
||||
{ id: 'm4', sender: 'other', content: '好的,快递已取到,预计15分钟送到北门,请准时来取', time: '11:20' },
|
||||
{ id: 'm5', sender: 'me', content: '好的,我这就下楼', time: '11:21' },
|
||||
],
|
||||
|
||||
// 骑手-陈师傅
|
||||
chat5: [
|
||||
{ id: 'm1', sender: 'other', content: '同学,你的快递到了,我在你宿舍楼下', time: '昨天 15:30' },
|
||||
{ id: 'm2', sender: 'me', content: '好的,马上下来', time: '昨天 15:31' },
|
||||
{ id: 'm3', sender: 'other', content: '同学你好,我已经到楼下了,你下来拿一下吧', time: '昨天 15:35' },
|
||||
{ id: 'm4', sender: 'me', content: '不好意思刚有事耽搁了,这就来', time: '昨天 15:38' },
|
||||
{ id: 'm5', sender: 'other', content: '没关系,我等你', time: '昨天 15:39' },
|
||||
],
|
||||
|
||||
// 校园咖啡馆
|
||||
chat6: [
|
||||
{ id: 'm1', sender: 'other', content: '您好,欢迎光临校园咖啡馆!我们今日推荐:冰拿铁 9.9 元', time: '08:30' },
|
||||
{ id: 'm2', sender: 'me', content: '来一杯冰拿铁,少冰', time: '08:32' },
|
||||
{ id: 'm3', sender: 'other', content: '好的,冰拿铁一杯少冰,预计5分钟做好', time: '08:33' },
|
||||
{ id: 'm4', sender: 'other', content: '您的拿铁已经做好了,请来取餐,谢谢!', time: '08:45' },
|
||||
{ id: 'm5', sender: 'me', content: '好的,马上来', time: '08:46' },
|
||||
],
|
||||
|
||||
// 二手书店
|
||||
chat7: [
|
||||
{ id: 'm1', sender: 'other', content: '您好,请问您之前咨询的数据结构教材还需要吗?', time: '周一 14:00' },
|
||||
{ id: 'm2', sender: 'me', content: '需要的,还有货吗?', time: '周一 14:30' },
|
||||
{ id: 'm3', sender: 'other', content: '那本数据结构还有货,可以来店里看看,西门旁边', time: '周一 15:00' },
|
||||
{ id: 'm4', sender: 'me', content: '好的,明天下午我过去看看', time: '周一 15:15' },
|
||||
{ id: 'm5', sender: 'other', content: '没问题,到了说是微信联系的就行', time: '周一 15:20' },
|
||||
],
|
||||
}
|
||||
Reference in New Issue
Block a user