diff --git a/publish/changeLog.md b/publish/changeLog.md index d2590fe..29c3713 100644 --- a/publish/changeLog.md +++ b/publish/changeLog.md @@ -3,6 +3,7 @@ - 同步功能新增对列表位置调整的支持(若你使用同步功能,请务必升级到此版本以上,不然会有问题) - 新增播放详情页歌词字体大小调整设置,可在详情页右上角的按钮进行调整 - 新增同步服务地址历史列表功能 +- 横屏播放详情页新增评论入口 ### 优化 diff --git a/src/screens/PlayDetail/Landscape/components/CommentBtn.js b/src/screens/PlayDetail/Landscape/components/CommentBtn.js new file mode 100644 index 0000000..f716795 --- /dev/null +++ b/src/screens/PlayDetail/Landscape/components/CommentBtn.js @@ -0,0 +1,35 @@ +import React, { memo } from 'react' +import { StyleSheet, TouchableOpacity } from 'react-native' +import Icon from '@/components/common/Icon' +import { useGetter, useDispatch } from '@/store' +import { navigations } from '@/navigation' + + +export default memo(() => { + const theme = useGetter('common', 'theme') + const componentIds = useGetter('common', 'componentIds') + + const handleShowCommentScreen = () => { + navigations.pushCommentScreen(componentIds.home) + } + + return ( + + + + ) +}) + +const styles = StyleSheet.create({ + cotrolBtn: { + marginLeft: 5, + width: 40, + height: 40, + justifyContent: 'center', + alignItems: 'center', + + // backgroundColor: '#ccc', + shadowOpacity: 1, + textShadowRadius: 1, + }, +}) diff --git a/src/screens/PlayDetail/Landscape/components/Header.js b/src/screens/PlayDetail/Landscape/components/Header.js index 211b55f..911b764 100644 --- a/src/screens/PlayDetail/Landscape/components/Header.js +++ b/src/screens/PlayDetail/Landscape/components/Header.js @@ -9,6 +9,7 @@ import Popup from '@/components/common/Popup' import Slider from '@/components/common/Slider' import { useTranslation } from '@/plugins/i18n' // import { AppColors } from '@/theme' +import CommentBtn from './CommentBtn' const LrcFontSizeStyles = StyleSheet.create({ content: { @@ -95,6 +96,7 @@ export default memo(() => { {playMusicInfo.musicInfo?.name} {playMusicInfo.musicInfo?.singer} +