feat: 新增评论组件

This commit is contained in:
duanshuwen
2025-12-07 22:31:49 +08:00
parent 83d1053990
commit 8950a8d205
3 changed files with 92 additions and 2 deletions

View File

@@ -49,4 +49,52 @@ export const channels: Item[] = [
total: 70,
score: 4.5
}
]
interface ListItem {
id: number
userName: string
content: string
createTime: string
channelName: string
channelIcon: any
imageList: any[]
score: number
}
export const commentList: ListItem[] = [
{
id: 1,
userName: '用户98882',
content: '环境不错,温泉也很好',
createTime: '2022-11-09 16:24:30',
channelName: '携程',
channelIcon: xc,
imageList: [
xc,
xc,
xc,
xc,
xc,
xc,
],
score: 5,
},
{
id: 2,
userName: '用户98882',
content: '环境不错,温泉也很好',
createTime: '2022-11-09 16:24:30',
channelName: '抖音',
channelIcon: dy,
imageList: [
dy,
dy,
dy,
dy,
dy,
dy,
],
score: 5,
},
]