From b8566c1651fc09eda65b971f0fcf971397b7783b Mon Sep 17 00:00:00 2001 From: HullQin Date: Sun, 3 Oct 2021 01:55:28 +0800 Subject: [PATCH] =?UTF-8?q?=E5=87=BA=E7=89=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/Room/GamingRoom/index.jsx | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/pages/Room/GamingRoom/index.jsx b/src/pages/Room/GamingRoom/index.jsx index c240406..3fa6856 100644 --- a/src/pages/Room/GamingRoom/index.jsx +++ b/src/pages/Room/GamingRoom/index.jsx @@ -66,6 +66,11 @@ const GamingRoom = (props) => {
{game.state === 2 && game.landlord === seat ? 'πŸ‘² 地主' : 'πŸ‘¨β€πŸŒΎ ε†œζ°‘'}
{game.held[seat]} εΌ η‰Œ
+ {game.state === 2 && ( +
+ {game.last[seat].sort((a, b) => pokerMap[b === 0 ? 0 : b % 54 === 0 ? 54 : b % 54] - pokerMap[a === 0 ? 0 : a % 54 === 0 ? 54 : a % 54]).map((id, index) => )} +
+ )}
)} /> @@ -94,4 +99,6 @@ const GamingRoom = (props) => { ); }; +const pokerMap = [0, 14.2, 15.2, 3.2, 4.2, 5.2, 6.2, 7.2, 8.2, 9.2, 10.2, 11.2, 12.2, 13.2, 14.4, 15.4, 3.4, 4.4, 5.4, 6.4, 7.4, 8.4, 9.4, 10.4, 11.4, 12.4, 13.4, 14.6, 15.6, 3.6, 4.6, 5.6, 6.6, 7.6, 8.6, 9.6, 10.6, 11.6, 12.6, 13.6, 14.8, 15.8, 3.8, 4.8, 5.8, 6.8, 7.8, 8.8, 9.8, 10.8, 11.8, 12.8, 13.8, 54, 53]; + export default GamingRoom;