update pay function
This commit is contained in:
@@ -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 {
|
||||
id: item.date,
|
||||
title: hasEvents
|
||||
? `📰${newsCount} 📊${reportCount}`
|
||||
: (item.price ? priceInfo.text : ''),
|
||||
title,
|
||||
date: item.date,
|
||||
backgroundColor,
|
||||
borderColor: backgroundColor,
|
||||
|
||||
Reference in New Issue
Block a user