update pay function

This commit is contained in:
2025-11-23 13:15:41 +08:00
parent ad7c180e11
commit e01092365e

View File

@@ -187,11 +187,22 @@ const ConceptTimelineModal = ({
} }
} }
// 构建显示标题:同时显示事件和涨跌幅
let title = '';
if (hasEvents && item.price) {
// 同时有事件和价格数据
title = `📰${newsCount} 📊${reportCount} ${priceInfo.text}`;
} else if (hasEvents) {
// 只有事件
title = `📰${newsCount} 📊${reportCount}`;
} else if (item.price) {
// 只有价格数据
title = priceInfo.text;
}
return { return {
id: item.date, id: item.date,
title: hasEvents title,
? `📰${newsCount} 📊${reportCount}`
: (item.price ? priceInfo.text : ''),
date: item.date, date: item.date,
backgroundColor, backgroundColor,
borderColor: backgroundColor, borderColor: backgroundColor,