${historyList.length === 0 ? '
暂无观看记录
' :
historyList.map(item => {
const ph = item.playHistory || {};
const epInfo = ph.playingIndex !== undefined ? `
第${ph.playingIndex + 1}集` : '';
const pct = calcProgressPercent(ph);
const progressInfo = pct > 0
? `
`
: '';
const poster = item.posterUrl
? `
})
`
: `
🎬
`;
return `
${poster}
${escapeHtml(item.movieName)}
${epInfo}${progressInfo}${formatHistoryTime(item.timestamp)}
`}).join('')}