diff --git a/src/components/Comments/index.tsx b/src/components/Comments/index.tsx index 1066eb3..652c544 100644 --- a/src/components/Comments/index.tsx +++ b/src/components/Comments/index.tsx @@ -135,6 +135,8 @@ const CommentInput = forwardRef(function ( placeholder={ params?.reply_to_user_id ? `回复 @${params.nickname}` : "写评论" } + confirmType="send" + onConfirm={handleSend} focus maxlength={100} /> diff --git a/src/game_pages/detail/components/StickyBottom/index.tsx b/src/game_pages/detail/components/StickyBottom/index.tsx index 40ec7ad..17e8711 100644 --- a/src/game_pages/detail/components/StickyBottom/index.tsx +++ b/src/game_pages/detail/components/StickyBottom/index.tsx @@ -21,10 +21,15 @@ function isFull(counts) { is_substitute_supported, } = counts; - if (max_players === current_players &&is_substitute_supported === IsSubstituteSupported.NOTSUPPORT) { + if ( + max_players === current_players && + is_substitute_supported === IsSubstituteSupported.NOTSUPPORT + ) { return true; - } - else if (max_players === current_players &&is_substitute_supported === IsSubstituteSupported.SUPPORT) { + } else if ( + max_players === current_players && + is_substitute_supported === IsSubstituteSupported.SUPPORT + ) { return max_substitute_players === current_substitute_count; } @@ -113,7 +118,7 @@ export default function StickyButton(props) { is_substituting, waiting_start, } = user_action_status || {}; - + if (MATCH_STATUS.CANCELED === match_status) { return { text: "活动已取消", @@ -171,8 +176,8 @@ export default function StickyButton(props) { return { text: () => ( <> - - {price} + + {displayPrice} 继续支付 ),