diff --git a/packages/kit/src/store/reducers/market.ts b/packages/kit/src/store/reducers/market.ts index 95e43227cb1..7532114a6e9 100644 --- a/packages/kit/src/store/reducers/market.ts +++ b/packages/kit/src/store/reducers/market.ts @@ -397,13 +397,14 @@ export const MarketSlicer = createSlice({ : (marketTokens[id1]?.priceChangePercentage24H ?? 0) - (marketTokens[id2]?.priceChangePercentage24H ?? 0); } - case EMarketCellData.Token24hVolume: { + /*case EMarketCellData.Token24hVolume: { return payload.direction === 'down' ? (marketTokens[id2]?.totalVolume ?? 0) - (marketTokens[id1]?.totalVolume ?? 0) : (marketTokens[id1]?.totalVolume ?? 0) - (marketTokens[id2]?.totalVolume ?? 0); - } + }*/ + //隐藏24h volume case EMarketCellData.CollectionStarOrSerialNumber: case EMarketCellData.TokenMarketCap: { return payload.direction === 'down' diff --git a/packages/kit/src/views/Market/Components/MarketList/MarketListHeader.tsx b/packages/kit/src/views/Market/Components/MarketList/MarketListHeader.tsx index e09305de27b..a8acf678b72 100644 --- a/packages/kit/src/views/Market/Components/MarketList/MarketListHeader.tsx +++ b/packages/kit/src/views/Market/Components/MarketList/MarketListHeader.tsx @@ -46,7 +46,8 @@ const MarketListHeader: FC = ({ headTags }) => { tag.id === EMarketCellData.TokenInfo || tag.id === EMarketCellData.TokenPrice || tag.id === EMarketCellData.Token24hChange || - tag.id === EMarketCellData.Token24hVolume || + /*tag.id === EMarketCellData.Token24hVolume ||*/ + //隐藏24hVolume tag.id === EMarketCellData.TokenMarketCap || tag.id === EMarketCellData.TokenSparklineChart ) { diff --git a/packages/kit/src/views/Market/Components/MarketList/MarketTokenCell.tsx b/packages/kit/src/views/Market/Components/MarketList/MarketTokenCell.tsx index bdabddeeee5..fbbb6addf7a 100644 --- a/packages/kit/src/views/Market/Components/MarketList/MarketTokenCell.tsx +++ b/packages/kit/src/views/Market/Components/MarketList/MarketTokenCell.tsx @@ -369,7 +369,7 @@ const MarketTokenCell: FC = ({ ); } - case EMarketCellData.Token24hVolume: { + /*case EMarketCellData.Token24hVolume: { return marketTokenItem && marketTokenItem.totalVolume !== undefined ? ( = ({ ); - } + }*/ + //隐藏24hVolume case EMarketCellData.TokenMarketCap: { return marketTokenItem && marketTokenItem.marketCap !== undefined ? ( diff --git a/packages/kit/src/views/Market/config.ts b/packages/kit/src/views/Market/config.ts index 6d2fddc7060..24fa0305776 100644 --- a/packages/kit/src/views/Market/config.ts +++ b/packages/kit/src/views/Market/config.ts @@ -87,7 +87,7 @@ export const ListHeadTags: ListHeadTagType[] = [ { id: EMarketCellData.Token24hChange, title: 'form__24h%_uppercase', - minW: '70px', + minW: '96px', textAlign: 'right', showVerticalLayout: true, }, @@ -97,9 +97,10 @@ export const ListHeadTags: ListHeadTagType[] = [ minW: '130px', textAlign: 'right', showVerticalLayout: false, - hide824Width: true, + hide824Width: true, + hide924Width: true, }, - { + /*{ id: EMarketCellData.Token24hVolume, title: 'form__24h_volume_uppercase', minW: '120px', @@ -107,7 +108,8 @@ export const ListHeadTags: ListHeadTagType[] = [ showVerticalLayout: false, hide924Width: true, hide824Width: true, - }, + },*/ + //不再显示24h volume { id: EMarketCellData.TokenSparklineChart, title: 'form__last_7_days_uppercase',