|
|
@@ -207,7 +207,9 @@ const getChangeClass = (changePercent) => {
|
|
|
// 判断是否是当天加入的股票
|
|
|
const isAddedToday = (addDate) => {
|
|
|
if (!addDate) return false
|
|
|
- const today = new Date().toISOString().split('T')[0]
|
|
|
+ // 使用本地时间而不是UTC时间
|
|
|
+ const now = new Date()
|
|
|
+ const today = `${now.getFullYear()}-${String(now.getMonth() + 1).padStart(2, '0')}-${String(now.getDate()).padStart(2, '0')}`
|
|
|
return addDate === today
|
|
|
}
|
|
|
|
|
|
@@ -585,6 +587,7 @@ const handleDeleteStock = (item) => {
|
|
|
font-size: 22rpx;
|
|
|
color: #c0c4cc;
|
|
|
margin-top: 6rpx;
|
|
|
+ white-space: nowrap;
|
|
|
}
|
|
|
|
|
|
.stock-center {
|