[add] 機台列表可滑動

This commit is contained in:
建喵 2023-12-07 11:06:11 +08:00
parent e845daa7a8
commit 0d8a5acabc

View File

@ -39,7 +39,10 @@ const SlotList = () => {
...gameData, ...gameData,
nowSlotId: slotId nowSlotId: slotId
}); });
if (componyID === BusinessEnum.ComponyType[BusinessEnum.ServerType[BusinessTypeSetting.UseServerType]]) { const UseServerType = BusinessTypeSetting.UseServerType;
const ServerType = BusinessEnum.ServerType[UseServerType];
const SDType = BusinessEnum.ComponyType[ServerType];
if (componyID === SDType) {
setGameUrl(url); setGameUrl(url);
} }
else { else {
@ -67,7 +70,7 @@ const SlotList = () => {
</Flex>}</> </Flex>}</>
: <div style={contentStyle}> : <div style={contentStyle}>
<Flex gap="small" wrap="wrap"> <Flex gap="small" wrap="wrap" style={{ overflowY: "scroll" }}>
{slotList.map((slotId: number, index: number) => {slotList.map((slotId: number, index: number) =>
<Image key={index} width={80} height={80} src={`${BusinessTypeSetting.UseDownloadUrl}game/${slotId}/s`} <Image key={index} width={80} height={80} src={`${BusinessTypeSetting.UseDownloadUrl}game/${slotId}/s`}
onClick={() => { CoroutineV2.Single(onClickSlotIn(slotId)).Start(); }} style={{ cursor: "pointer" }} /> onClick={() => { CoroutineV2.Single(onClickSlotIn(slotId)).Start(); }} style={{ cursor: "pointer" }} />