diff --git a/src/screens/SonglistDetail/Header.js b/src/screens/SonglistDetail/Header.js index b78cee3..ba3187e 100644 --- a/src/screens/SonglistDetail/Header.js +++ b/src/screens/SonglistDetail/Header.js @@ -4,7 +4,7 @@ import { AppColors, BorderWidths } from '@/theme' import { useGetter } from '@/store' import ButtonBar from './ActionBar' -const Header = memo(() => { +const Header = memo(({ animatePlayed }) => { const selectListInfo = useGetter('songList', 'selectListInfo') const { info: listDetailDataInfo = {} } = useGetter('songList', 'listDetailData') const playCount = selectListInfo.play_count || listDetailDataInfo.play_count @@ -13,16 +13,15 @@ const Header = memo(() => { - - {/* { - playCount - ? {playCount} + + { + playCount && animatePlayed + ? {playCount} : null - } */} - + } - {selectListInfo.name} + {selectListInfo.name || listDetailDataInfo.name} {selectListInfo.desc || listDetailDataInfo.desc} @@ -66,6 +65,19 @@ const styles = StyleSheet.create({ // }, // }), }, + playCount: { + position: 'absolute', + bottom: 0, + left: 0, + width: '100%', + fontSize: 12, + paddingLeft: 3, + paddingRight: 3, + backgroundColor: 'rgba(0, 0, 0, 0.5)', + color: '#fff', + borderBottomLeftRadius: 4, + borderBottomRightRadius: 4, + }, }) export default Header diff --git a/src/screens/SonglistDetail/List.js b/src/screens/SonglistDetail/List.js index c153208..43a32c6 100644 --- a/src/screens/SonglistDetail/List.js +++ b/src/screens/SonglistDetail/List.js @@ -37,7 +37,7 @@ export default ({ animatePlayed }) => { onRefresh={handleListRefresh} onLoadMore={handleListLoadMore} isLoading={listDetailData.isLoading} - ListHeaderComponent={} + ListHeaderComponent={} /> { isGetListDetailFailed ? : null }