商品以及商品详情
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' },
|
||||
],
|
||||
}
|
||||
@@ -0,0 +1,131 @@
|
||||
import type { Product } from '@/types/product'
|
||||
|
||||
export const products: Product[] = [
|
||||
// === 数码 ===
|
||||
{
|
||||
id: 'p1',
|
||||
title: '蓝牙无线耳机 降噪版',
|
||||
desc: '高品质降噪蓝牙耳机,续航30小时,佩戴舒适',
|
||||
price: 129,
|
||||
originalPrice: 199,
|
||||
image: 'https://picsum.photos/seed/earphone/400/400',
|
||||
category: 'digital',
|
||||
merchant: { name: '数码小店', avatar: 'https://picsum.photos/seed/ms1/100/100' },
|
||||
sales: 326,
|
||||
tags: ['热卖', '蓝牙5.3'],
|
||||
},
|
||||
{
|
||||
id: 'p2',
|
||||
title: '机械键盘 青轴 RGB背光',
|
||||
desc: '87键紧凑布局,青轴手感,RGB幻彩背光,Type-C键线分离',
|
||||
price: 199,
|
||||
originalPrice: 299,
|
||||
image: 'https://picsum.photos/seed/keyboard/400/400',
|
||||
category: 'digital',
|
||||
merchant: { name: '外设天地', avatar: 'https://picsum.photos/seed/ms2/100/100' },
|
||||
sales: 158,
|
||||
tags: ['电竞', 'RGB'],
|
||||
},
|
||||
|
||||
// === 图书 ===
|
||||
{
|
||||
id: 'p3',
|
||||
title: '数据结构(C语言版)教材',
|
||||
desc: '计算机专业核心教材,全新正版,附习题答案',
|
||||
price: 35,
|
||||
originalPrice: 49,
|
||||
image: 'https://picsum.photos/seed/dsbook/400/400',
|
||||
category: 'book',
|
||||
merchant: { name: '二手书店', avatar: 'https://picsum.photos/seed/ms3/100/100' },
|
||||
sales: 82,
|
||||
tags: ['教材', '九成新'],
|
||||
},
|
||||
{
|
||||
id: 'p4',
|
||||
title: '三体全集 刘慈欣 典藏版',
|
||||
desc: '科幻巨著三体三部曲全集合订本,刘慈欣代表作',
|
||||
price: 68,
|
||||
originalPrice: 93,
|
||||
image: 'https://picsum.photos/seed/threebody/400/400',
|
||||
category: 'book',
|
||||
merchant: { name: '校园书社', avatar: 'https://picsum.photos/seed/ms4/100/100' },
|
||||
sales: 215,
|
||||
tags: ['科幻', '畅销'],
|
||||
},
|
||||
|
||||
// === 生活 ===
|
||||
{
|
||||
id: 'p5',
|
||||
title: 'LED护眼台灯 三档调光',
|
||||
desc: '无频闪护眼台灯,三档色温可调,USB充电,宿舍必备',
|
||||
price: 49,
|
||||
originalPrice: 79,
|
||||
image: 'https://picsum.photos/seed/lamp/400/400',
|
||||
category: 'life',
|
||||
merchant: { name: '生活优选', avatar: 'https://picsum.photos/seed/ms5/100/100' },
|
||||
sales: 487,
|
||||
tags: ['宿舍', '护眼'],
|
||||
},
|
||||
{
|
||||
id: 'p6',
|
||||
title: '宿舍桌面收纳盒 大容量',
|
||||
desc: '多层分区收纳,节省桌面空间,简约白色,承重强',
|
||||
price: 19.9,
|
||||
image: 'https://picsum.photos/seed/storage/400/400',
|
||||
category: 'life',
|
||||
merchant: { name: '收纳专家', avatar: 'https://picsum.photos/seed/ms6/100/100' },
|
||||
sales: 632,
|
||||
tags: ['收纳', '爆款'],
|
||||
},
|
||||
|
||||
// === 美食 ===
|
||||
{
|
||||
id: 'p7',
|
||||
title: '手冲咖啡礼盒 精品挂耳包',
|
||||
desc: '埃塞俄比亚耶加雪菲挂耳咖啡,10包装,现磨新鲜',
|
||||
price: 39.9,
|
||||
originalPrice: 59,
|
||||
image: 'https://picsum.photos/seed/coffee/400/400',
|
||||
category: 'food',
|
||||
merchant: { name: '校园咖啡馆', avatar: 'https://picsum.photos/seed/ms7/100/100' },
|
||||
sales: 198,
|
||||
tags: ['精品', '挂耳'],
|
||||
},
|
||||
{
|
||||
id: 'p8',
|
||||
title: '进口零食大礼包 30包组合',
|
||||
desc: '日韩进口零食混装,膨化食品+糖果+巧克力,适合追剧',
|
||||
price: 29.9,
|
||||
originalPrice: 45,
|
||||
image: 'https://picsum.photos/seed/snack/400/400',
|
||||
category: 'food',
|
||||
merchant: { name: '零食铺子', avatar: 'https://picsum.photos/seed/ms8/100/100' },
|
||||
sales: 891,
|
||||
tags: ['进口', '追剧'],
|
||||
},
|
||||
|
||||
// === 服饰 ===
|
||||
{
|
||||
id: 'p9',
|
||||
title: '校园文化T恤 纯棉短袖',
|
||||
desc: '校名logo印花T恤,100%纯棉,多色可选,男女同款',
|
||||
price: 39,
|
||||
originalPrice: 69,
|
||||
image: 'https://picsum.photos/seed/tshirt/400/400',
|
||||
category: 'cloth',
|
||||
merchant: { name: '校园文创', avatar: 'https://picsum.photos/seed/ms9/100/100' },
|
||||
sales: 445,
|
||||
tags: ['文创', '纯棉'],
|
||||
},
|
||||
{
|
||||
id: 'p10',
|
||||
title: '帆布单肩包 学院风大容量',
|
||||
desc: '加厚帆布材质,大容量设计,可装14寸笔记本,上课通勤两用',
|
||||
price: 45,
|
||||
image: 'https://picsum.photos/seed/bag/400/400',
|
||||
category: 'cloth',
|
||||
merchant: { name: '包袋工坊', avatar: 'https://picsum.photos/seed/ms10/100/100' },
|
||||
sales: 273,
|
||||
tags: ['帆布', '文艺'],
|
||||
},
|
||||
]
|
||||
Reference in New Issue
Block a user