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 {
|
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,
|
||||||
|
|||||||
Reference in New Issue
Block a user